/* ============================================================
   司铭 · 德国双元制自助申请 —— 全局样式（时尚简约 / 响应式）
   ============================================================ */

:root {
  /* 品牌色：克制的深蓝（德国严谨感）+ 暖金（专业、信任） */
  --brand: #1a3a5c;         /* 主深蓝 */
  --brand-dark: #10243c;
  --brand-light: #2c5a8c;
  --accent: #c9a227;        /* 暖金点缀 */
  --accent-soft: #f4e9c8;

  --text: #1e2a38;
  --text-soft: #4a5a6a;
  --muted: #7a8794;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-alt: #eef2f6;
  --line: #e3e9ef;
  --danger: #c0392b;
  --ok: #2e7d32;

  --shadow-sm: 0 1px 3px rgba(16, 36, 60, 0.06);
  --shadow-md: 0 6px 24px rgba(16, 36, 60, 0.09);
  --shadow-lg: 0 16px 48px rgba(16, 36, 60, 0.12);

  --radius: 14px;
  --radius-lg: 20px;

  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

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

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: 0.15s;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }

/* 移动端汉堡菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #1a2a15;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: #d8b23a;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--brand-light) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0 0 20px;
  line-height: 1.25;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 信任徽章条 */
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.badge svg { flex-shrink: 0; }
.badge .tick { color: var(--ok); font-weight: 700; }

/* ---------- 配图 / 视觉卡片 ---------- */
.visual {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.visual h3 { font-size: 1.4rem; margin-bottom: 8px; color: #ffffff; }
.visual .num { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 12px 0; }
.visual p { color: #ffffff; font-weight: 700; }
/* 提高特异性，确保 .visual 内的标题不被 .section h3 覆盖 */
.section .visual h3 { color: #ffffff; }

/* ---------- 区块 ---------- */
.section { padding: 72px 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
  color: var(--brand-dark);
  letter-spacing: 0.3px;
}
.section h3 { margin: 0 0 10px; color: var(--brand-dark); }
.section .lead { color: var(--text-soft); font-size: 1.05rem; max-width: 720px; }

.section-title-wrap { text-align: center; margin-bottom: 44px; }
.section-title-wrap h2 { margin-bottom: 12px; }
.section-title-wrap .lead { margin: 0 auto; }

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card.featured {
  border: 2px solid var(--accent);
  position: relative;
}
.product-card .tag {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent);
  color: #1a2a15;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.price .unit { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.price-old {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

/* ---------- 对比表 ---------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.compare-table th { background: var(--brand); color: #fff; font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- 试读正文 ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text);
}
.article h1 { font-size: 1.9rem; color: var(--brand-dark); margin: 0 0 24px; line-height: 1.35; }
.article h2 { font-size: 1.35rem; color: var(--brand-dark); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-alt); }
.article h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--brand-dark); }
.article p { margin: 0 0 18px; }
.article blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--text-soft);
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.article table th, .article table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.article table th { background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); }
.article table tr:nth-child(even) td { background: var(--bg-soft); }
.article ul, .article ol { margin: 0 0 20px 24px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--brand-dark); }
.article code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  color: var(--brand);
}
.article hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* 试读页底部 CTA */
.trial-cta {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.trial-cta h2 { color: #fff; margin-bottom: 8px; }
.trial-cta p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.trial-cta .btn-accent { font-size: 1.05rem; }

/* ---------- 表单 ---------- */
.order-form { max-width: 480px; }
.order-form label { display: block; margin-bottom: 18px; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.order-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 6px;
  transition: 0.15s;
  background: #fff;
}
.order-form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }

/* 问卷单选/复选：恢复默认尺寸，与文字同行对齐（覆盖上面的 width:100%） */
.order-form input[type="radio"],
.order-form input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0 8px 0 0;
  border: none;
  vertical-align: middle;
  cursor: pointer;
}
.order-form label:has(input[type="radio"]),
.order-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin-bottom: 8px;
}
.hint { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---------- 二维码 ---------- */
.qr-wrap { text-align: center; padding: 24px; }
.qr-img { max-width: 240px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 64px;
  background: var(--bg-soft);
  color: var(--muted);
}
.site-footer .container { display: flex; flex-direction: column; gap: 12px; }
.site-footer p { font-size: 0.9rem; }

/* ---------- 后台表格 ---------- */
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.88rem;
}
.order-table th { background: var(--bg-alt); font-weight: 700; color: var(--brand-dark); }
.order-table button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin: 2px;
}
.order-table button:hover { background: var(--brand-light); }

/* ============================================================
   响应式适配
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav { height: 58px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 0; padding: 12px 16px; }

  .hero { padding: 56px 0 40px; }
  .section { padding: 48px 0; }
  .section-title-wrap { margin-bottom: 32px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 18px; }

  .btn { width: 100%; padding: 14px 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: 15px 24px; }

  .article { font-size: 0.98rem; }
  .article h1 { font-size: 1.55rem; }
  .article h2 { font-size: 1.2rem; }

  /* 表格在手机上横向滚动 */
  .compare-table-wrap, .order-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .trial-cta { padding: 28px 20px; }
}