/* ===== MIGO FIT Official Website Styles ===== */
/* Brand: MIGO FIT — Your AI Workout MIGO */
/* Design tokens — 与品牌 VI 文档 BRAND.md 对齐 */
:root {
  /* 品牌主渐变: #FF4D4F → #FFA940 (温暖红橙) */
  --color-primary: #FF4D4F;
  --color-primary-dark: #D9363E;
  --color-accent: #FFA940;
  --color-text: #1F1F1F;
  --color-text-secondary: #595959;
  --color-text-tertiary: #8C8C8C;
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAFAFA;
  --color-bg-section: #F5F5F7;
  --color-border: #EAEAEA;
  --gradient-hero: linear-gradient(135deg, #FF4D4F 0%, #FFA940 100%);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius-card: 12px;
  --radius-button: 8px;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    Helvetica, "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

.nav-brand .logo-svg {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  /* 微弱阴影，让 logo 在浅色 header 上更立体 */
  filter: drop-shadow(0 2px 4px rgba(255, 77, 79, 0.20));
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* ===== Hero ===== */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 96px 24px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: #fff;
  color: #fff;
}

/* ===== Section ===== */
.section {
  padding: 96px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-section {
  background: var(--color-bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--color-text-secondary);
  font-size: 17px;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFE0E0 0%, #FFE9D6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== About / Stats ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat {
  padding: 24px 16px;
}

.stat-num {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  background: #1F1F1F;
  color: #BFBFBF;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #BFBFBF;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #8C8C8C;
  line-height: 1.8;
}

.footer-bottom a {
  color: #BFBFBF;
}

/* ICP 备案号占位（备案完成后去掉 .icp-placeholder class 并填入真号即可） */
.icp-placeholder {
  color: #595959;
  font-style: italic;
  opacity: 0.7;
}

/* ===== Document Page (privacy / terms) ===== */
.doc-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-page h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.doc-meta {
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.doc-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.doc-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.doc-page p,
.doc-page li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.doc-page ul,
.doc-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.doc-page strong {
  color: var(--color-text);
}

.doc-page blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--color-bg-soft);
  color: var(--color-text-secondary);
  font-size: 15px;
  border-radius: 0 8px 8px 0;
}

.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.doc-page th,
.doc-page td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.doc-page th {
  background: var(--color-bg-soft);
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.contact-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.contact-card .contact-value {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 17px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 64px 24px 80px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 17px;
  }
  .section {
    padding: 64px 24px;
  }
  .section-title h2 {
    font-size: 28px;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-page h1 {
    font-size: 28px;
  }
}
