/*
 * 静态页共享皮肤。色板、圆角、间距、字体栈与 docs/design-tokens.md 一致。
 * 争夺页、FAQ、产品静态大页都链接本文件，并复用同一块 .site-litebar。
 * 产品页结构特殊，页内版式仍写在各页 <style> 里；主色以本文件 token 为准，
 * body.site-product 只负责把固定导航让到顶栏下面。
 */

:root {
  --primary: #0E4D92;
  --primary-dark: #0A3A6F;
  --primary-light: #E8F0FA;
  --accent: #2E86C1;
  --accent-warm: #E67E22;
  --dark: #1A1A2E;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --radius-tag: 20px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --nav-h: 64px;
  --max-w: 1200px;
  --transition: 0.3s ease;
  --leading: 1.7;
  --font-stack: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  /* 产品页固定导航下移用。桌面顶栏一行；窄屏改成两行，高度跟 min-height 对齐。 */
  --litebar-h: 48px;
}

/* 争夺页轻量顶栏：双店一行 + 电话 + 回主站。白字落在主色底上。 */
.site-litebar {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-stack);
  font-size: 13px;
  line-height: 1.45;
  position: sticky;
  top: 0;
  z-index: 10050;
}
.site-litebar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-8) var(--space-16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-16);
}
.site-litebar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.site-litebar a:hover {
  text-decoration: underline;
}
.site-litebar-home {
  white-space: nowrap;
}
.site-litebar-stores {
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}
.site-litebar-tel {
  margin-left: auto;
  background: var(--white);
  color: var(--primary) !important;
  border-radius: var(--radius-pill);
  padding: var(--space-4) var(--space-12);
  font-weight: 700;
  text-decoration: none !important;
}
.site-litebar-tel:hover {
  background: var(--primary-light);
}
.site-litebar a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-litebar-inner {
    padding: var(--space-8) var(--space-12);
    gap: var(--space-4) var(--space-12);
  }
  .site-litebar-tel {
    margin-left: 0;
  }
}

/* 主色实心按钮（轻量 B 的 a.cta）。英雄区白底按钮保持反色，避免主色叠主色。 */
a.cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  padding: 14px var(--space-32);
  font-family: var(--font-stack);
  font-weight: 600;
  text-decoration: none;
}
a.cta:hover {
  background: var(--primary-dark);
}

.cta-btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-stack);
}

/* 横幅里的电话做成白底主色字按钮，横幅本身用主色实底。 */
div.cta a[href^="tel"],
.cta-box a[href^="tel"],
.contact-bar a[href^="tel"] {
  display: inline-block;
  background: var(--white);
  color: var(--primary) !important;
  border-radius: var(--radius-pill);
  padding: 10px var(--space-24);
  font-weight: 700;
  text-decoration: none;
}
div.cta,
.cta-box,
.contact-bar {
  border-radius: var(--radius);
}
.contact-bar {
  background: var(--primary);
  color: var(--white);
}

/* 去掉促销橙强调后，提示里的强调字改回主色。 */
.disclaimer strong,
.tip strong {
  color: var(--primary);
}

/* 产品静态大页：顶栏在文档流里，固定导航从顶栏下沿开始，避免盖住回主站。 */
body.site-product .site-litebar {
  min-height: var(--litebar-h);
  display: flex;
  align-items: center;
}
body.site-product .site-litebar-inner {
  width: 100%;
}
body.site-product :is(nav, .nav) {
  top: var(--litebar-h);
}
body.site-product :is(#scroll-progress, .scroll-progress, #progress-bar, #scrollProgress) {
  top: calc(var(--litebar-h) - 3px);
  z-index: 10060;
}

@media (max-width: 720px) {
  :root {
    --litebar-h: 92px;
  }
  body.site-product .site-litebar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-12);
    row-gap: 2px;
  }
  body.site-product .site-litebar-home {
    grid-column: 1;
  }
  body.site-product .site-litebar-tel {
    grid-column: 2;
    margin-left: 0;
    justify-self: end;
  }
  body.site-product .site-litebar-stores {
    grid-column: 1 / -1;
  }
}
