/* ==========================================================================
   青禾聚官网 — 设计令牌与样式系统
   主色锚定青禾聚应用图标（青禾绿 #12A159 + 日光暖黄 #F7C660 + 中性灰阶）
   ========================================================================== */

:root {
  /* 品牌与强调色 */
  --brand: #12a159;
  --brand-hover: #0e884b;
  --brand-active: #0b703d;
  --brand-soft: #eef9f3;
  --brand-soft-2: #dcf4e7;
  --brand-border: rgba(18, 161, 89, 0.22);
  --accent-sun: #f7c660;
  --accent-sun-soft: #fef8e7;

  /* 中性色 */
  --bg: #ffffff;
  --bg-subtle: #f7f9f8;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --border: rgba(17, 24, 39, 0.08);
  --border-strong: rgba(17, 24, 39, 0.14);

  /* 圆角与景深 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 12px 32px rgba(17, 24, 39, 0.08);
  --shadow-phone: 0 24px 48px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(17, 24, 39, 0.06);

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 240ms;

  /* 布局 */
  --container: 1120px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================================================
   顶部导航
   ========================================================================== */

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

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 6px rgba(18, 161, 89, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(18, 161, 89, 0.24);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 14px rgba(18, 161, 89, 0.3);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: rgba(17, 24, 39, 0.22);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero 首屏
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(640px 320px at 82% 16%, rgba(18, 161, 89, 0.08), transparent 70%),
    radial-gradient(480px 260px at 14% 24%, rgba(247, 198, 96, 0.08), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

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

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-title-accent {
  color: var(--brand);
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.meta-item svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* 右侧高保真手机端预览 */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 344px;
  background: #ffffff;
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  border: 1px solid var(--border);
}

.phone-screen {
  background: #f5f7f6;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.phone-appbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.phone-appbar-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.phone-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-hover);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.phone-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 392px;
}

.mock-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.mock-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.mock-tag-sun {
  background: var(--accent-sun-soft);
  color: #9a6700;
}

.mock-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.mock-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.mock-text {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mock-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
}

.mock-wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-hover);
  font-weight: 600;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 6px 8px;
  gap: 4px;
}

.phone-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.phone-tab-btn.is-active {
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 600;
}

/* ==========================================================================
   通用分区
   ========================================================================== */

.section {
  padding: 80px 0;
}

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

.section-header {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 核心功能 4 格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.feature-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

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

/* 使用流程 3 步 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 13px;
  font-weight: 700;
}

.flow-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.flow-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 微信分享与规范卡片 */
.highlight-box {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.check-list svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.share-card-preview {
  background: #f5f7f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.wx-msg-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.wx-msg-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.wx-msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.wx-msg-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.wx-msg-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

.wx-msg-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.wx-msg-foot img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* 应用信息规格表 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.spec-label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.spec-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* FAQ 手风琴 */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

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

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease);
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* 底部 CTA 与关于 */
.cta-panel {
  background: var(--text-primary);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  max-width: 520px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-light {
  background: #ffffff;
  color: var(--text-primary);
}

.btn-light:hover {
  background: #f3f4f6;
}

/* 页脚 */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  margin: 12px 0 0;
  max-width: 380px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-icp a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ==========================================================================
   弹窗（下载 / 联系说明）
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-subtle);
}

.modal-info-list {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-info-row span:first-child {
  color: var(--text-tertiary);
}

.modal-info-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   法律协议页面（/terms, /privacy）
   ========================================================================== */

.legal-main {
  padding: 48px 0 80px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-xs);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.legal-meta {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal-card ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

/* ==========================================================================
   移动端抽屉与响应式
   ========================================================================== */

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 24px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

@media (max-width: 960px) {
  .hero-grid,
  .highlight-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

@media (max-width: 720px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

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

  .highlight-box {
    padding: 24px;
  }

  .cta-panel {
    padding: 32px 24px;
  }

  .legal-card {
    padding: 28px 20px;
  }
}
