/* 钧泓数联官网门户 - 共享样式（纯静态，无构建）
   设计口径：与小程序端视觉同源（主色渐变 #4A90E2 → #6A5ACD，圆角卡片，浅色底）
   约束：不引入任何第三方 CSS/JS；端口宽 <= 1180px，正文阅读区 <= 860px */

:root {
  --brand-1: #4A90E2;
  --brand-2: #6A5ACD;
  --brand-grad: linear-gradient(135deg, #4A90E2, #6A5ACD);
  --text-1: #1f2430;
  --text-2: #4a5262;
  --text-3: #7a8496;
  --line: #e6eaf2;
  --bg: #f5f6f8;
  --card: #ffffff;
  --note-bg: #FFF9E6;
  --note-line: #FFE599;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 顶部导航 ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text-1);
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand .slogan {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 2px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}
.site-nav nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav nav a {
  color: var(--text-2);
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav nav a:hover { color: var(--brand-1); text-decoration: none; }
.site-nav nav a.active { color: var(--brand-1); border-bottom-color: var(--brand-1); font-weight: 600; }

/* ── 通用容器 ───────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section-block { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: 0.5px; }
.section-head p { margin: 0; color: var(--text-3); font-size: 15px; }

/* ── 首页 Hero ──────────────────────────────────────────── */
.hero {
  background: var(--brand-grad);
  color: #fff;
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 18px; letter-spacing: 1px; }
.hero .lead { font-size: 18px; line-height: 1.9; max-width: 720px; opacity: 0.95; margin: 0 0 26px; }
.hero .slogan-line {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: #fff; color: var(--brand-2); }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { text-decoration: none; background: rgba(255, 255, 255, 0.12); }

/* ── 卡片网格 ───────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .site-nav .inner { gap: 14px; }
  .brand .slogan { display: none; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.8; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brand-1);
  background: #eef4ff;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ── 表格（收费公示） ───────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.price { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.price th, table.price td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.price th { background: #f8f9fc; font-weight: 600; color: var(--text-2); font-size: 14px; white-space: nowrap; }
table.price tr:last-child td { border-bottom: none; }
table.price td.num { font-variant-numeric: tabular-nums; }
.price-em { color: #d4380d; font-weight: 700; }
.muted { color: var(--text-3); font-size: 14px; }

.notice {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #8B6914;
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 0;
}
.notice-soft {
  background: #f8f9fc;
  border: 1px solid var(--line);
  color: var(--text-2);
}

/* ── 协议页（由生成器从小程序 wxml 单向生成） ───────────── */
.legal-hero {
  background: var(--brand-grad);
  color: #fff;
  padding: 48px 0 64px;
}
.legal-hero h1 { margin: 0 0 14px; font-size: 32px; letter-spacing: 1px; }
.legal-hero .meta { font-size: 14px; opacity: 0.88; line-height: 1.9; }

.legal-body {
  margin: -34px auto 0;
  max-width: 920px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px 44px;
  position: relative;
}
@media (max-width: 700px) { .legal-body { padding: 24px 20px 32px; margin-left: 14px; margin-right: 14px; } }

/* 以下类名与小程序 wxml 一一对应，勿改名（生成器直接沿用 class） */
.platform-note {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 26px;
  color: #8B6914;
  font-size: 14px;
  line-height: 1.8;
}
.toc { background: #f8f9fc; border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 30px; }
.toc-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.toc-item {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--brand-1);
  font-size: 14px;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { text-decoration: none; color: var(--brand-2); }

.section { margin-bottom: 34px; scroll-margin-top: 84px; }
.section-title { display: block; font-size: 19px; font-weight: 700; margin: 26px 0 14px; }
.sub-title { display: block; font-size: 16px; font-weight: 600; margin: 18px 0 8px; color: var(--text-1); }
.p { display: block; margin: 0 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.bold { font-weight: 700; color: var(--text-1); }
.link { color: var(--brand-1); border-bottom: 1px dashed var(--brand-1); }
.platform-statement {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

/* ── 页脚 ───────────────────────────────────────────────── */
.site-footer {
  margin-top: 64px;
  background: #1f2430;
  color: #c3c9d6;
  font-size: 14px;
  line-height: 2;
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 26px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer a { color: #c3c9d6; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.site-footer .copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 28px;
  font-size: 13px;
  color: #8f97a8;
}
.site-footer .icp { display: inline-flex; align-items: center; gap: 6px; }
