/* ============================================================
   干大事教育官网 · 公共样式
   配色：深蓝 #0a2540 / 金色 #c9a961 / 辅助蓝 #2563eb
   风格：沉稳专业 · 高端信任
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色 - 深蓝系 */
  --ink: #0a2540;
  --ink-2: #14365c;
  --ink-3: #1e4a7a;
  --brand: #0a2540;
  --brand-soft: #eef3f9;

  /* 强调色 - 金色 */
  --gold: #c9a961;
  --gold-2: #b8964a;
  --gold-soft: #f7f0dd;

  /* 辅助蓝 */
  --blue: #2563eb;
  --blue-soft: #dbeafe;

  /* 中性色 */
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #f0f2f5;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --text-muted: #9ca3af;

  /* 功能色 */
  --success: #059669;
  --warning: #d97706;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  --shadow-gold: 0 8px 28px rgba(201, 169, 97, 0.22);

  /* 容器 */
  --container: 1200px;
  --container-narrow: 920px;
}

/* ---------- 全局重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- 容器 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: var(--gold); }
.topbar .topbar-right { display: flex; gap: 18px; }
.topbar .topbar-right a { color: rgba(255,255,255,0.78); }
.topbar .topbar-right a:hover { color: var(--gold); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: block;
}
.logo-footer-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: block;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .zh { font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: 0.5px; }
.logo-text .en { font-size: 10px; color: var(--text-3); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  font-weight: 500;
  position: relative;
}
.nav-menu a:hover { color: var(--ink); background: var(--brand-soft); }
.nav-menu a.active { color: var(--ink); font-weight: 600; }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 12px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-toggle { display: none; font-size: 24px; color: var(--ink); padding: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- 通用区块 ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--gold-soft);
  border-radius: var(--r-full);
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.section-title .accent { color: var(--gold-2); }
.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.8;
}
.section-left .section-head { text-align: left; margin-left: 0; }

/* ---------- Hero 通用 ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a2540 0%, #14365c 55%, #1e4a7a 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,169,97,0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(37,99,235,0.22), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--gold);
  padding: 6px 16px;
  border: 1px solid rgba(201,169,97,0.45);
  border-radius: var(--r-full);
  background: rgba(201,169,97,0.08);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: 52px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.5px;
}
.hero-stat .num .unit { font-size: 18px; margin-left: 2px; }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* Hero 右侧视觉卡 */
.hero-visual {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xl);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.hero-visual h3 { font-size: 18px; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.hero-feature {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-feature:last-child { border-bottom: none; }
.hero-feature .ic {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(201,169,97,0.15);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 18px;
}
.hero-feature .ft { font-size: 15px; font-weight: 600; color: #fff; }
.hero-feature .fd { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft));
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.8; }

/* ---------- 平台 Logo（店铺矩阵 / 卡片内 logo） ---------- */
.platform-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .platform-logo { transform: scale(1.1); }

/* 网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 数据条/数字卡 ---------- */
.stat-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(201,169,97,0.18), transparent 50%);
}
.stat-item { position: relative; text-align: left; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-num .unit { font-size: 22px; margin-left: 2px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.72); margin-top: 12px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--line));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-2);
  background: var(--gold-soft);
  padding: 3px 12px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}
.timeline-item h4 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.timeline-item p { color: var(--text-2); font-size: 15px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.3px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }
td strong { color: var(--ink); }

/* ---------- 标签/徽章 ---------- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.3px;
}
.tag-gold { background: var(--gold-soft); color: var(--gold-2); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-ink { background: var(--brand-soft); color: var(--ink); }
.tag-success { background: #d1fae5; color: var(--success); }
.tag-outline { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }

/* ---------- 引用块 ---------- */
.quote {
  background: var(--brand-soft);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
}
.quote strong { color: var(--gold-2); }

/* ---------- 提示框 ---------- */
.callout {
  background: var(--gold-soft);
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

/* ---------- 通用页面 hero（子页） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 70px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(201,169,97,0.18), transparent 50%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }
.page-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.page-hero h1 .accent { color: var(--gold); }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.78); max-width: 640px; line-height: 1.8; }

/* ---------- 产品卡 ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  transition: all 0.25s;
  height: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
/* 左侧图片区 */
.product-card .pc-thumb {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  min-height: 240px;
}
.product-card .pc-thumb img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .pc-thumb img { transform: scale(1.05); }
/* 无图占位 */
.product-card .pc-thumb.pc-thumb-empty {
  font-size: 56px;
  color: rgba(10, 37, 64, 0.15);
}
/* 右侧信息区 */
.product-card .pc-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.product-card .pc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 10px; }
.product-card h4 { font-size: 17px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.product-card .pc-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.product-card .pc-body { flex: 1; }
.product-card .pc-row { font-size: 13px; color: var(--text-2); margin: 8px 0; line-height: 1.7; }
.product-card .pc-row strong { color: var(--ink); }
.product-card .pc-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 旧样式清理（保留兼容但不再使用） */
.product-card .product-cover { max-width: 100%; max-height: 260px; object-fit: contain; }

/* 无图产品占位：整卡彩色渐变背景 + 居中大 emoji（兼容竖版/横版/方版） */
.product-card.no-cover {
  position: relative;
  overflow: hidden;
}
.product-card.no-cover::before { content: none; }
.product-card.no-cover::after {
  content: attr(data-icon);
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.product-card.no-cover > * { position: relative; z-index: 1; }
.product-card.no-cover .pc-head h4 { color: #fff; }
.product-card.no-cover .pc-head .pc-sub { color: rgba(255,255,255,0.75); }
.product-card.no-cover .pc-row { color: rgba(255,255,255,0.85); }
.product-card.no-cover .pc-row strong { color: #fff; }
.product-card.no-cover .pc-foot { border-top-color: rgba(255,255,255,0.18); }
.product-card.no-cover .pc-foot .tag { background: rgba(255,255,255,0.18); color: #fff; border: none; }
/* 物理：金色调 */
.subject-physics .product-card.no-cover::before { background: linear-gradient(135deg, #0a2540 0%, #1e4a7a 50%, #c9a961 100%); }
/* 化学：蓝绿调 */
.subject-chemistry .product-card.no-cover::before { background: linear-gradient(135deg, #0a2540 0%, #134e5e 50%, #71b280 100%); }
/* 生物：绿色调 */
.subject-biology .product-card.no-cover::before { background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #84cc16 100%); }
/* 英语：红金调 */
.subject-english .product-card.no-cover::before { background: linear-gradient(135deg, #1e1b4b 0%, #7c2d12 50%, #f59e0b 100%); }
/* 数学：有真实图，这里仅作fallback */
.subject-math .product-card.no-cover::before { background: linear-gradient(135deg, var(--ink) 0%, var(--gold-2) 100%); }

/* 学科分区 */
.subject-block {
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.subject-head {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #fff;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.subject-head .sh-title { display: flex; align-items: center; gap: 14px; }
.subject-head .sh-ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(201,169,97,0.2);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.subject-head h3 { font-size: 22px; font-weight: 700; }
.subject-head .sh-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.subject-body { padding: 28px; background: #fff; }

/* ---------- 服务步骤 ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(6, 1fr); position: relative; }
.step {
  position: relative;
  padding: 24px 18px;
  text-align: center;
}
.step .step-num {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.step .step-num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
.step h4 { font-size: 15px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.steps::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--line) 100%);
  z-index: 1;
}

/* ---------- 对比卡 ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: #fff;
  position: relative;
  transition: all 0.25s;
}
.compare-card.featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.compare-card.featured::before {
  content: "推荐";
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--r-full);
}
.compare-card h4 { font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.compare-card .cc-sub { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.compare-card ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px dashed var(--line);
}
.compare-card ul li:last-child { border-bottom: none; }
.compare-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  width: 18px; height: 18px;
  background: var(--gold-soft);
  color: var(--gold-2);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item.open { border-color: var(--gold); box-shadow: var(--shadow); }
.faq-q {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  gap: 16px;
}
.faq-q .faq-ic {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 16px;
  transition: all 0.25s;
}
.faq-item.open .faq-ic { background: var(--gold); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; }

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  border-radius: var(--r-xl);
  padding: 60px 56px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(201,169,97,0.2), transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.cta-band h3 .accent { color: var(--gold); }
.cta-band p { color: rgba(255,255,255,0.78); font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text .zh { color: #fff; }
.footer-brand .logo-text .en { color: rgba(255,255,255,0.5); }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.6); }
.footer-brand .social { display: flex; gap: 10px; margin-top: 18px; }
.footer-brand .social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all 0.2s;
}
.footer-brand .social a:hover { background: var(--gold); color: #fff; }
.footer-brand .social a .social-logo {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.2s;
}
.footer-brand .social a:hover .social-logo { transform: scale(1.12); }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .contact-line { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.footer-col .contact-line .ic { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 浮动咨询 ---------- */
.float-consult {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-consult a {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s;
  position: relative;
}
.float-consult a:hover { background: var(--gold); transform: scale(1.08); }
.float-consult a .tip {
  position: absolute;
  right: 62px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.float-consult a:hover .tip { opacity: 1; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- 通用辅助 ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.bg-soft { background: var(--bg-2); }
.bg-ink { background: var(--ink); color: #fff; }
.text-gold { color: var(--gold-2); }
.text-ink { color: var(--ink); }
.fw-700 { font-weight: 700; }

/* 分隔金线 */
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ---------- 资质荣誉墙 ---------- */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.honor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.honor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.honor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--bg-2);
  display: block;
}
.honor-card .hc-label {
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 12px;
  padding: 0 4px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-item:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps::before { display: none; }
  .honors-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .honor-card img { height: 180px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container, .container-narrow { padding: 0 18px; }
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav-menu.open a { width: 100%; padding: 12px 14px; }
  .nav-menu.open a.active::after { display: none; }
  .nav-cta { display: none; }
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; padding-top: 24px; }
  .hero-stat .num { font-size: 28px; }
  .hero-visual { padding: 22px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 24px; }
  .stat-num { font-size: 32px; }
  .stat-item::after { display: none !important; }
  .compare { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; padding: 40px 28px; text-align: center; }
  .page-hero { padding: 50px 0 48px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 15px; }
  .subject-body { padding: 20px; }
  .subject-head { padding: 18px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .timeline { padding-left: 32px; }
  .float-consult { right: 16px; bottom: 16px; }
  .float-consult a { width: 46px; height: 46px; font-size: 18px; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .honor-card { padding: 10px; }
  .honor-card img { height: 150px; }
  .honor-card .hc-label { font-size: 13px; margin-top: 10px; }
  .product-card { grid-template-columns: 110px 1fr; }
  .product-card .pc-thumb { padding: 8px; min-height: 160px; }
  .product-card .pc-thumb img { max-height: 150px; }
  .product-card .pc-thumb.pc-thumb-empty { font-size: 36px; }
  .product-card .pc-info { padding: 12px 14px; }
  .product-card h4 { font-size: 15px; }
  .product-card .pc-row { font-size: 12px; }
  .qrcode-card { padding: 32px 22px; }
  .qrcode-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .qrcode-img { width: 180px; height: 180px; }
  .qrcode-info h3 { font-size: 20px; }
  .qrcode-features { display: inline-block; text-align: left; }
}

/* ---------- 二维码联系区 ---------- */
.qrcode-section {
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--gold-soft) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.qrcode-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(37,99,235,0.06), transparent 45%),
                    radial-gradient(circle at 85% 80%, rgba(201,169,97,0.10), transparent 50%);
  pointer-events: none;
}
.qrcode-section .container { position: relative; }

.qrcode-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.qrcode-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.qrcode-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.qrcode-img-wrap {
  position: relative;
  display: inline-block;
}
.qrcode-img {
  width: 200px;
  height: 200px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
  display: block;
  object-fit: contain;
}
.qrcode-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow);
  letter-spacing: 0.3px;
}
.qrcode-info h3 {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.qrcode-tagline {
  font-size: 16px;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  line-height: 1.7;
}
.qrcode-features {
  margin-bottom: 20px;
}
.qrcode-features li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
}
.qrcode-features li .ic {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--brand-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.qrcode-note {
  font-size: 13px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 10px 16px;
  border-radius: var(--r-md);
  display: inline-block;
}

/* ---------- 联系方式列表 ---------- */
.section-subtitle {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 28px;
  transition: all 0.25s;
}
.contact-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.contact-item .ci-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.25s;
}
.contact-item:hover .ci-icon {
  transform: scale(1.05);
}
.contact-item .ci-text {
  flex: 1;
  min-width: 0;
}
.contact-item .ci-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.contact-item .ci-value {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.6;
  word-break: break-all;
}
.contact-item .ci-value a {
  color: var(--text-3);
  transition: color 0.2s;
}
.contact-item .ci-value a:hover {
  color: var(--blue);
}
@media (max-width: 768px) {
  .contact-list { gap: 14px; }
  .contact-item {
    padding: 16px 18px;
    gap: 14px;
  }
  .contact-item .ci-icon {
    width: 48px;
    height: 48px;
  }
  .contact-item .ci-icon svg {
    width: 20px;
    height: 20px;
  }
  .contact-item .ci-label {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .contact-item .ci-value {
    font-size: 14px;
  }
  .section-subtitle {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    font-size: 14px;
  }
}

/* ---------- 微信二维码弹窗 ---------- */
.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wechat-modal.show { display: flex; }
.wechat-modal-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px 32px 28px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  position: relative;
  animation: wechatModalIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes wechatModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.wechat-modal-card .wm-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-2);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.wechat-modal-card .wm-close:hover { background: var(--bg-3); transform: rotate(90deg); }
.wechat-modal-card .wm-img {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 8px auto 18px;
  border: 1px solid var(--line);
  display: block;
}
.wechat-modal-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
}
.wechat-modal-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}
.wechat-modal-card .wm-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  background: var(--gold-soft);
  color: var(--gold-2);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}
