/* ============================================================
   kireading.net 使用了解站 样式表 v2
   设计方向：参考七牛官网 / 主站 brainpassword.com
   —— 深蓝渐变科技感首屏 + 蓝色主视觉 + 圆角卡片 + 大留白
   手机 / 平板 / 电脑自适应，移动优先
   ============================================================ */

:root {
  /* 主视觉色板 */
  --brand:      #1f66ff;
  --brand-2:    #4d8dff;
  --brand-deep: #0b2559;
  --brand-navy: #0a1e4e;
  --brand-wash: #ecf3ff;
  --accent:     #ff9a3c;
  --accent-wash:#fff4e8;

  /* 文字与底色 */
  --ink:        #17233d;
  --ink-soft:   #3e4d6b;
  --ink-faint:  #7a89a3;
  --paper:      #ffffff;
  --wash:       #f6f8fc;
  --line:       #e3eaf5;

  /* 渐变与质感 */
  --grad-main:  linear-gradient(135deg, #1f66ff 0%, #4d8dff 100%);
  --grad-hero:  radial-gradient(900px 420px at 12% -8%, rgba(77,141,255,.45), transparent 60%),
                radial-gradient(700px 380px at 95% 8%, rgba(47,110,255,.28), transparent 55%),
                linear-gradient(165deg, #0b2559 0%, #10307c 55%, #1c4fd6 120%);
  --shadow-sm:  0 1px 2px rgba(23,45,110,.06), 0 4px 14px rgba(23,45,110,.07);
  --shadow-lg:  0 6px 18px rgba(23,45,110,.10), 0 18px 44px rgba(23,45,110,.12);
  --radius:     16px;
  --radius-sm:  10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.78;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 99;
}
.skip:focus { left: 0; }

/* ---------- 头部导航（玻璃质感吸顶） ---------- */
.site-header {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(23,45,110,.08);
  position: sticky; top: 0; z-index: 20;
}
.header-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.35; position: relative; padding-left: 16px; }
.brand::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
  border-radius: 3px; background: var(--grad-main);
}
.brand-mark {
  font-size: 19px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub  { font-size: 12px; color: var(--ink-faint); letter-spacing: 2px; }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: all .2s ease;
}
.nav a:hover { background: var(--brand-wash); color: var(--brand); }
.nav a.active {
  background: var(--grad-main); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(31,102,255,.35);
}
.nav-toggle { display: none; }

/* ---------- 通用排版 ---------- */
main.wrap { padding-top: 0; }
section { padding: 42px 0; }
h1 { font-size: 34px; line-height: 1.35; margin: 0 0 14px; letter-spacing: .5px; }
h2 { font-size: 26px; margin: 30px 0 16px; letter-spacing: .5px; position: relative; padding-left: 16px; }
h2::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 5px;
  border-radius: 3px; background: var(--grad-main);
}
h3 { font-size: 18px; margin: 20px 0 8px; }
p  { margin: 10px 0; }
a  { color: var(--brand); }
ul, ol { padding-left: 22px; }
li { margin: 7px 0; }
strong { color: var(--brand-deep); }

/* 眉标：区块小标签 */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--brand); background: var(--brand-wash);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- 首页大横幅（深蓝渐变科技感） ---------- */
.hero {
  background: var(--grad-hero);
  color: #fff; text-align: center;
  padding: 88px 0 84px; position: relative; overflow: hidden;
  border-radius: 0 0 36px 36px;
  margin-bottom: 8px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(6px); pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(120,180,255,.35), transparent 70%);
}
.hero::after {
  width: 340px; height: 340px; left: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(77,141,255,.30), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 800; font-size: 38px; letter-spacing: 1px; margin-bottom: 14px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #9cc4ff, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 17px; color: rgba(255,255,255,.82); max-width: 680px; margin: 0 auto 26px;
}
.hero .note { display: none; } /* 深色横幅内不显示浅色提示框，改用 hero-tips */

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px;
}
.hero-badges span {
  font-size: 13px; color: #cfe0ff; letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  padding: 5px 16px; border-radius: 999px;
}
.hero .btn-row { justify-content: center; margin-bottom: 20px; }
.hero-tips {
  font-size: 13px; color: rgba(255,255,255,.55); max-width: 640px; margin: 0 auto;
}

/* ---------- 栏目页头（浅色渐变 + 圆角） ---------- */
.page-head {
  background: linear-gradient(140deg, var(--brand-wash) 0%, #f7faff 70%);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 36px;
}
.page-head h1 {
  background: linear-gradient(110deg, var(--brand-deep), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.page-head p { color: var(--ink-soft); max-width: 720px; margin: 8px 0 0; font-size: 16px; }

.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 卡片体系 ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin: 16px 0;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(31,102,255,.35); }
.card h3 { margin-top: 2px; margin-bottom: 8px; color: var(--brand-deep); }
.card p  { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* 卡片顶部图标圆点（首页等页面使用 .icon-dot） */
.icon-dot {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--brand-wash);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 21px; font-weight: 800;
}

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 20px 0; }
.grid .card { margin: 0; }

/* ---------- 按钮 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; transition: all .2s ease;
}
.btn-primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 6px 18px rgba(31,102,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,102,255,.45); }
.btn-ghost { background: var(--paper); color: var(--brand); border-color: rgba(31,102,255,.4); }
.btn-ghost:hover { background: var(--brand-wash); transform: translateY(-2px); }
.btn-warn { background: linear-gradient(135deg, #ff9a3c, #ff7d2e); color: #fff; box-shadow: 0 6px 16px rgba(255,125,46,.30); }
.btn-warn:hover { transform: translateY(-2px); }

/* 深色横幅上的描边按钮 */
.hero .btn-ghost {
  background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.4);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- 提示框 ---------- */
.note {
  background: var(--brand-wash); border-left: 4px solid var(--brand);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; font-size: 15px;
  color: var(--ink-soft);
}
.note-warn { background: var(--accent-wash); border-left-color: var(--accent); }

/* ---------- 流程步骤（带连接线） ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 20px 16px 64px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  margin: 14px 0; box-shadow: var(--shadow-sm);
  color: var(--ink-soft); font-size: 15px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 18px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad-main); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 4px 10px rgba(31,102,255,.3);
}
.steps li::after { /* 步骤间连接线 */
  content: ""; position: absolute; left: 31px; bottom: -15px; width: 2px; height: 15px;
  background: linear-gradient(var(--brand-2), var(--line));
}
.steps li:last-child::after { display: none; }
.steps li strong { display: block; margin-bottom: 3px; font-size: 16px; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; margin: 20px 0;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper); font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 13px 18px; text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }
th {
  background: linear-gradient(120deg, var(--brand-wash), #f7faff);
  color: var(--brand-deep); font-weight: 700; white-space: nowrap;
}
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f7faff; }

/* ---------- FAQ 折叠 ---------- */
.faq-cat { margin-top: 10px; }
.faq-cat > h2 { padding-bottom: 8px; }

details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  margin: 12px 0; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
details.faq[open] { border-color: rgba(31,102,255,.4); box-shadow: var(--shadow-lg); }
details.faq summary {
  cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; font-size: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px; background: var(--brand-wash);
  color: var(--brand); font-size: 18px; font-weight: 700; line-height: 26px; text-align: center;
  transition: all .2s ease;
}
details.faq[open] summary::after { content: "–"; background: var(--grad-main); color: #fff; }
details.faq summary:hover { background: var(--brand-wash); }
details.faq .faq-body { padding: 4px 20px 18px; color: var(--ink-soft); font-size: 15px; }
details.faq .faq-body p { margin: 8px 0; }

/* ---------- 锚点小导航 ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.anchor-nav a {
  font-size: 14px; padding: 7px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
  transition: all .18s ease;
}
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }

/* ---------- 检查清单 ---------- */
.checklist { list-style: none; padding: 0; margin: 16px 0; }
.checklist li {
  padding: 13px 18px 13px 52px; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  margin: 10px 0; box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 9px; background: var(--grad-main);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- 案例卡片 / 占位 ---------- */
.story-card { border-left: 4px solid var(--brand); }
.placeholder {
  text-align: center; padding: 60px 24px; color: var(--ink-faint);
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius);
}
.placeholder h2::before { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(170deg, var(--brand-navy) 0%, #081638 100%);
  color: #b9c9e8; margin-top: 56px; padding: 44px 0 28px; font-size: 14px;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--brand), #4d8dff) 1;
}
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { margin: 0 0 12px; font-size: 15px; color: #fff; letter-spacing: 1px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #b9c9e8; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-note { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; color: #6f83ab; }
.footer-note p { margin: 5px 0; }

/* ---------- 入场动画（轻微，不喧宾） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap, .page-head > * { animation: riseIn .5s ease both; }
  .hero-badges, .hero .btn-row { animation: riseIn .6s .1s ease both; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  h1 { font-size: 26px; }
  .hero { padding: 56px 0 50px; border-radius: 0 0 24px 24px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15px; }
  section { padding: 30px 0; }
  h2 { font-size: 21px; }
  .card { padding: 18px 18px; }

  .nav { width: 100%; }
  .nav ul {
    display: none; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px;
  }
  .nav.open ul { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 10px; }
  .nav a.active { box-shadow: none; }
  .nav-toggle {
    display: block; align-self: flex-start;
    background: var(--brand-wash); color: var(--brand);
    border: 1px solid rgba(31,102,255,.25); border-radius: 999px;
    padding: 8px 20px; font-size: 14px; font-weight: 600; margin-top: 4px;
  }
}
