/* ============================================
   贵生运动官方网站样式
   主题色取自 App UI：src/shared/theme/colors.ts
   ============================================ */

:root {
  --primary: #176B5C;
  --primary-strong: #114E43;
  --primary-soft: #DCEFE8;
  --accent: #D97745;
  --accent-soft: #F9E5D9;
  --background: #F5F6F3;
  --surface: #FFFFFF;
  --surface-muted: #EAF0EB;
  --text: #19312C;
  --text-muted: #6B7B75;
  --border: #DCE5DF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 6px 24px rgba(17, 78, 67, 0.08);
  --shadow-float: 0 12px 40px rgba(17, 78, 67, 0.16);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* 使用 .main-nav a.nav-download-btn 提高优先级，避免被 .main-nav a / :hover 的
   文字颜色规则覆盖，保证按钮始终白字绿底 */
.main-nav a.nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.main-nav a.nav-download-btn:hover {
  color: #fff;
  background: var(--primary-strong);
  transform: translateY(-1px);
}

/* 移动端菜单开关 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero 区 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F2F8F5 0%, var(--background) 55%, #EAF3EE 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 107, 92, 0.12) 0%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.10) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 107, 92, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(23, 107, 92, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--primary-strong);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero 手机模型（纯 CSS 绘制 App 首页示意） */

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: 290px;
  height: 590px;
  background: #111827;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(17, 78, 67, 0.2);
  transform: rotate(2deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-notch {
  width: 110px;
  height: 22px;
  background: #111827;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 10px;
}

.phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3BAE96);
}

.phone-greeting {
  flex: 1;
}

.phone-greeting b {
  display: block;
  font-size: 12px;
}

.phone-greeting small {
  font-size: 9px;
  color: var(--text-muted);
}

.phone-search {
  margin: 0 16px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 10px;
  color: var(--text-muted);
}

.phone-card {
  margin: 0 12px 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
}

.phone-card small {
  font-size: 9px;
  opacity: 0.85;
}

.phone-card b {
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.phone-stats {
  display: flex;
  gap: 8px;
  margin: 0 12px 10px;
}

.phone-stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.phone-stat b {
  display: block;
  font-size: 14px;
  color: var(--primary);
}

.phone-stat small {
  font-size: 9px;
  color: var(--text-muted);
}

.phone-menus {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 12px 10px;
}

.phone-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 2px;
  text-align: center;
}

.phone-menu i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  margin: 0 auto 4px;
  background: var(--primary-soft);
}

.phone-menu:nth-child(2) i { background: var(--accent-soft); }
.phone-menu:nth-child(3) i { background: #E3EDF9; }
.phone-menu:nth-child(4) i { background: #F3E8F7; }

.phone-menu small {
  font-size: 8.5px;
  color: var(--text-muted);
}

.phone-post {
  margin: 0 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.phone-post b {
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}

.phone-post p {
  font-size: 9px;
  color: var(--text-muted);
}

.phone-post .pics {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.phone-post .pics i {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: var(--surface-muted);
}

.phone-tabbar {
  margin-top: auto;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0 10px;
}

.phone-tabbar span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: var(--text-muted);
}

.phone-tabbar span.active {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 业务闭环 ---------- */

.loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: loop;
}

.loop-step {
  counter-increment: loop;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.loop-step::before {
  content: "0" counter(loop);
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 6px;
}

.loop-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.loop-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.loop-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  z-index: 2;
}

/* ---------- 功能特色 ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  background: var(--primary-soft);
}

.feature-card:nth-child(2n) .feature-icon {
  background: var(--accent-soft);
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.feature-card ul {
  list-style: none;
  margin-top: 12px;
}

.feature-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}

.feature-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 下载区 ---------- */

.download-panel {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 70%, #1F8471 100%);
  border-radius: 28px;
  padding: 56px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-float);
  position: relative;
  overflow: hidden;
}

.download-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.download-panel::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.download-info {
  position: relative;
  z-index: 1;
}

.download-info h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.download-info > p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 26px;
}

.download-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 13.5px;
  margin-bottom: 30px;
}

.download-specs div {
  display: flex;
  gap: 8px;
}

.download-specs span {
  opacity: 0.75;
  white-space: nowrap;
}

.download-specs b {
  font-weight: 600;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-download {
  background: #fff;
  color: var(--primary-strong);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.22);
}

.download-guide {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(6px);
}

.download-guide h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-guide ol {
  list-style: none;
  counter-reset: guide;
}

.download-guide ol li {
  counter-increment: guide;
  font-size: 13.5px;
  opacity: 0.95;
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
}

.download-guide ol li:last-child {
  margin-bottom: 0;
}

.download-guide ol li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.download-guide .tip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  font-size: 12.5px;
  opacity: 0.85;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 关于我们 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about-value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.about-value b {
  display: block;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.about-value small {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: #0E2B26;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-grid p {
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

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

.footer-grid ul li {
  margin-bottom: 9px;
}

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

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 2;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ---------- 法律文档页（隐私政策 / 用户协议） ---------- */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-card);
}

.legal-page h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.legal-meta {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 19px;
  margin: 32px 0 12px;
  color: var(--primary-strong);
}

.legal-page p,
.legal-page li {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.9;
}

.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-page li {
  margin-bottom: 6px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .phone-wrap {
    order: -1;
  }

  .phone {
    transform: none;
    width: 260px;
    height: 530px;
  }

  .loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-step:not(:last-child)::after {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--background);
  }

  .nav-download-btn {
    margin-top: 12px;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .loop {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-specs {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-page article {
    padding: 32px 24px;
  }
}
