/* ============================================================
 * 桂洪兵 · 个人博客 样式表
 * 目录：
 *   01 设计令牌 / 主题
 *   02 基础重置
 *   03 通用组件（按钮/标签/卡片/容器）
 *   04 页头导航
 *   05 首页各区块
 *   06 文章列表
 *   07 文章详情
 *   08 表单 / 留资
 *   09 页脚
 *   10 响应式
 * ============================================================ */

/* ---------- 01 设计令牌 ---------- */
:root {
  /* 中性色 */
  --ink:        #0B1B2B;
  --ink-2:      #3D4F63;
  --ink-3:      #7A8CA3;
  --ink-4:      #A9B7C7;

  /* 品牌 */
  --brand:      #1B5FE0;
  --brand-dark: #1249B8;
  --brand-soft: #EAF1FE;
  --accent:     #FF6A2B;
  --accent-soft:#FFF0E9;

  /* 背景 */
  --bg:         #FFFFFF;
  --bg-soft:    #F6F8FC;
  --bg-card:    #FFFFFF;
  --bg-dark:    #0B1B2B;
  --bg-dark-2:  #10243A;

  /* 线条 */
  --line:       #E4EAF2;
  --line-2:     #EFF3F8;

  /* 阴影 */
  --sh-xs: 0 1px 2px rgba(11,27,43,.05);
  --sh-sm: 0 2px 8px rgba(11,27,43,.06);
  --sh-md: 0 8px 28px rgba(11,27,43,.08);
  --sh-lg: 0 18px 50px rgba(11,27,43,.12);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* 尺寸 */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 68px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 暗色主题 */
html[data-theme="dark"] {
  --ink:        #E8EEF6;
  --ink-2:      #B4C3D4;
  --ink-3:      #8095AD;
  --ink-4:      #64798F;

  --brand:      #4C87F0;
  --brand-dark: #6B9CF5;
  --brand-soft: #14263F;
  --accent:     #FF7F4D;
  --accent-soft:#2A1B12;

  --bg:         #0A141F;
  --bg-soft:    #0F1D2C;
  --bg-card:    #101E2E;
  --bg-dark:    #060E18;
  --bg-dark-2:  #0D1B29;

  --line:       #1E3145;
  --line-2:     #17293B;

  --sh-xs: 0 1px 2px rgba(0,0,0,.4);
  --sh-sm: 0 2px 8px rgba(0,0,0,.45);
  --sh-md: 0 8px 28px rgba(0,0,0,.5);
  --sh-lg: 0 18px 50px rgba(0,0,0,.6);
}

/* ---------- 02 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.4em; }
h1,h2,h3,h4 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12em .42em;
  color: var(--brand-dark);
}
pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.65;
  margin: 0 0 1.4em;
}
pre code { background: none; border: 0; padding: 0; color: var(--ink); font-size: 13.5px; }

::selection { background: var(--brand); color: #fff; }

/* ---------- 03 通用组件 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #E8EEF6; }

.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.sec-kicker::before {
  content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.sec-title { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.sec-desc { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.section-dark .sec-desc { color: #9DB0C6; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: all .2s var(--ease); text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(27,95,224,.28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(27,95,224,.34); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(255,106,43,.3); }
.btn-accent:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,106,43,.38); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* 标签 */
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-dark);
}
.tag-accent { background: var(--accent-soft); color: var(--accent); }

/* 卡片 */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  transition: all .26s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }

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

/* 阅读进度条 */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 999; transition: width .1s linear;
}

/* ---------- 04 页头导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
html[data-theme="dark"] .site-header { background: rgba(10,20,31,.86); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(135deg, var(--brand), #3D82F5);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 3px 10px rgba(27,95,224,.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16px; font-weight: 700; }
.brand-sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px;
  color: var(--ink-2); font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--brand); font-weight: 600; }

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

.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-2); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  place-items: center;
}
.nav-toggle svg { width: 19px; height: 19px; }

/* ---------- 05 首页 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 520px at 78% -10%, #1A4C93 0%, transparent 60%),
              linear-gradient(160deg, #0B1B2B 0%, #10263D 52%, #0B1B2B 100%);
  color: #EAF1F9;
  padding: 104px 0 92px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(900px 460px at 30% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 460px at 30% 20%, #000 0%, transparent 78%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.hero-inner { max-width: 620px; }

/* 首屏右侧卡片 */
.hero-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 30px 30px 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-card h4 { color: #fff; font-size: 16.5px; margin-bottom: 7px; }
.hero-card > p { color: #93A9C2; font-size: 13.5px; margin: 0 0 22px; line-height: 1.65; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-card li {
  display: flex; gap: 11px; align-items: flex-start;
  color: #C6D5E6; font-size: 14.5px; line-height: 1.62;
}
.hero-card li svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 4px; color: #4FD69C; }
.hero-card-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px; color: #8DA5BF;
}
.hero-card-foot b { color: #fff; font-size: 15px; font-weight: 700; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px 6px 7px; border-radius: 30px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 13.5px; color: #B9CCE2; margin-bottom: 26px;
}
.hero-badge b {
  background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.16; margin-bottom: 20px; color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6BA4FF, #FFB08A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; color: #A8BED6; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 54px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 30px;
}
.hero-stat { flex: 1 1 0; min-width: 130px; padding-right: 26px; }
.hero-stat b {
  display: block; font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; line-height: 1.15;
}
.hero-stat b i { font-style: normal; color: var(--accent); }
.hero-stat span { font-size: 13.5px; color: #8DA5BF; }

/* 痛点列表 */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain-item {
  background: var(--bg-card); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 26px 28px;
  transition: all .24s var(--ease);
}
.pain-item:hover { box-shadow: var(--sh-sm); transform: translateX(3px); }
.pain-item h3 { font-size: 17.5px; margin-bottom: 9px; }
.pain-item p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* 服务 */
.service-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 32px; overflow: hidden;
  transition: all .28s var(--ease);
}
.service-card::before {
  content: attr(data-tag);
  position: absolute; top: 18px; right: 24px;
  font-size: 44px; font-weight: 800; color: var(--line);
  letter-spacing: -.04em; line-height: 1; pointer-events: none;
}
.service-card:hover { border-color: var(--brand); box-shadow: var(--sh-md); transform: translateY(-4px); }
.service-card h3 { font-size: 20px; margin-bottom: 12px; position: relative; }
.service-card > p { color: var(--ink-2); font-size: 15px; min-height: 66px; }
.service-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line-2); padding-top: 18px; }
.service-list li {
  position: relative; padding-left: 22px; font-size: 14.5px;
  color: var(--ink-2); margin-bottom: 9px;
}
.service-list li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand); opacity: .8;
}

/* 文章卡片 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .26s var(--ease); color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; color: inherit; }
.post-cover {
  height: 140px; position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.post-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.post-cover b {
  position: relative; z-index: 2; color: #fff; font-size: 26px;
  font-weight: 800; letter-spacing: -.02em; opacity: .95;
}
/* 有真实封面图时的样式：图铺满，分类标签压成角标 */
.post-cover.has-img { display: block; }
.post-cover.has-img::after { display: none; }
.post-cover.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-cover.has-img b {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: rgba(11,27,43,.74); color: #fff;
  padding: 5px 12px; border-radius: 999px; opacity: 1;
}
.cov-1 { background: linear-gradient(135deg, #1B5FE0, #2E8BF2); }
.cov-2 { background: linear-gradient(135deg, #0B3D91, #4C87F0); }
.cov-3 { background: linear-gradient(135deg, #FF6A2B, #FF9A5C); }
.cov-4 { background: linear-gradient(135deg, #0E4C8A, #1FA2A6); }
.cov-5 { background: linear-gradient(135deg, #2B3A55, #4A6382); }
.cov-6 { background: linear-gradient(135deg, #1249B8, #7A5CF0); }
.cov-7 { background: linear-gradient(135deg, #B34700, #FF8A3D); }
.cov-8 { background: linear-gradient(135deg, #0F5257, #159A9C); }

.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.post-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.45; }
.post-card:hover h3 { color: var(--brand); }
.post-card .excerpt {
  color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 15px; border-top: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-3);
}
.post-foot .more { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.post-card:hover .post-foot .more { gap: 8px; }

/* 信任 / 数据区 */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 30px 28px;
}
.trust-item b {
  display: block; font-size: 34px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.trust-item b i { font-style: normal; color: var(--accent); font-size: 22px; }
.trust-item span { color: #93A9C2; font-size: 14.5px; }

.quote-block {
  background: rgba(255,255,255,.05); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 26px 30px; margin-top: 20px;
}
.quote-block p { color: #C4D3E5; font-size: 16px; margin: 0 0 12px; }
.quote-block cite { color: #8DA5BF; font-style: normal; font-size: 14px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left;
  padding: 22px 44px 22px 0; position: relative;
  font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.faq-q::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item.open .faq-q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-a p { color: var(--ink-2); font-size: 15.5px; margin: 0; padding: 0 40px 24px 0; }

/* 问答知识库页（/faq.html）：分组标题 */
.kb-group { margin-bottom: 44px; }
.kb-group:last-child { margin-bottom: 0; }
.kb-group .faq-item:first-of-type { border-top: 1px solid var(--line); }
.kb-group-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 21px; color: var(--ink); margin: 0 0 14px;
}
.kb-group-n {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  background: var(--line); border-radius: 20px; padding: 2px 10px;
}

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(130deg, #1249B8 0%, #1B5FE0 45%, #0F3D96 100%);
  border-radius: var(--r-xl); padding: 52px 54px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band h2 { font-size: clamp(21px, 2.6vw, 29px); margin-bottom: 8px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); font-size: 16px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------- 06 文章列表 ---------- */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.page-head p { color: var(--ink-2); font-size: 16.5px; margin: 0; max-width: 640px; }
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 7px; }

.filter-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.search-box { position: relative; flex: 1 1 260px; max-width: 340px; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-3); pointer-events: none;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-2);
  font-size: 14px; font-weight: 500; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
html[data-theme="dark"] .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty-state {
  text-align: center; padding: 76px 24px; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-state b { display: block; font-size: 17px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- 07 文章详情 ---------- */
.article-head { padding: 52px 0 38px; border-bottom: 1px solid var(--line); }
.article-head .tag { margin-bottom: 16px; }
.article-head h1 {
  font-size: clamp(25px, 3.8vw, 40px); line-height: 1.28;
  letter-spacing: -.02em; margin-bottom: 20px; max-width: 860px;
}
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.article-meta .who { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 600; }
.article-meta .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #3D82F5);
  color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px;
  gap: 56px; align-items: start; padding: 46px 0 84px;
}
.article-body { font-size: 17px; line-height: 1.86; color: var(--ink-2); min-width: 0; }
.article-body h2 {
  font-size: 25px; color: var(--ink); margin: 2.2em 0 .75em;
  padding-left: 15px; border-left: 4px solid var(--brand); line-height: 1.35;
}
.article-body h3 { font-size: 19.5px; color: var(--ink); margin: 1.9em 0 .6em; }
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.25em; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--brand); }
.article-body blockquote {
  margin: 1.6em 0; padding: 18px 24px;
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body a { border-bottom: 1px solid var(--brand-soft); }
.article-body a:hover { border-bottom-color: var(--brand); }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: 15px; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.article-body th {
  background: var(--bg-soft); color: var(--ink); font-weight: 700;
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.article-body tr:last-child td { border-bottom: 0; }
.article-body hr { margin: 2.6em 0; }
.article-body > p:first-of-type {
  font-size: 17.5px; color: var(--ink); 
}

/* 正文图片 */
.article-body .md-figure { margin: 1.9em 0; }
.article-body .md-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-soft);
}
/* 强调卡片块（CARD: 开头） */
.article-body .md-card {
  margin: 1.7em 0; padding: 17px 21px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink); font-size: 16.5px; line-height: 1.75;
}
/* 文末署名（SIG: 开头） */
.article-body .md-sig {
  margin: 2.6em 0 0; padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px; color: var(--ink-3); line-height: 1.7;
}
/* 文章头图 */
.article-cover {
  margin-bottom: 36px; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft);
}
.article-cover[hidden] { display: none; }
.article-cover img { width: 100%; display: block; }

/* 侧栏 */
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.aside-card h4 {
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px; font-weight: 700;
}
.toc { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.toc li { margin-bottom: 3px; }
.toc a {
  display: block; color: var(--ink-2); padding: 5px 10px;
  border-left: 2px solid var(--line); line-height: 1.5;
  transition: all .2s var(--ease);
}
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.toc .lvl-3 a { padding-left: 24px; font-size: 13.8px; }

.aside-cta {
  background: linear-gradient(150deg, #0B1B2B, #14304C);
  border: 0; color: #D9E5F2;
}
.aside-cta h4 { color: #8DA5BF; }
.aside-cta p { font-size: 14.5px; color: #B4C7DC; margin: 0 0 16px; }
.aside-cta .btn { width: 100%; }

.article-nav {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line);
}
.article-nav a {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; color: var(--ink); display: block;
  transition: all .22s var(--ease);
}
.article-nav a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.article-nav small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.article-nav b { font-size: 15px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav .next { text-align: right; }

/* ---------- 08 表单 ---------- */
.form-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.field label span { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.65; }

.form-success {
  text-align: center; padding: 34px 20px;
}
.form-success .ok-mark {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.form-success .ok-mark svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 20px; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }

.copy-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: all .2s var(--ease);
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.done { border-color: #1BA97B; color: #1BA97B; background: rgba(27,169,123,.08); }

/* 联系页两栏 */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* 联系信息块 */
.contact-lines { display: grid; gap: 14px; }
.contact-line {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 20px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.contact-line .ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.contact-line .ico svg { width: 19px; height: 19px; }
.contact-line small { display: block; font-size: 12.5px; color: var(--ink-3); }
.contact-line b { font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* ---------- 09 页脚 ---------- */
.site-footer {
  background: var(--bg-dark); color: #93A9C2;
  padding: 62px 0 30px; font-size: 14.5px;
}
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 42px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #7D93AC; font-size: 14px; line-height: 1.75; margin: 0; max-width: 320px; }
.footer-col h5 {
  color: #fff; font-size: 14px; font-weight: 700;
  margin: 0 0 16px; letter-spacing: .03em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #93A9C2; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 9px; }
.footer-contact div { color: #93A9C2; font-size: 14px; }
.footer-contact b { color: #fff; font-weight: 600; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #6B819A;
}
.footer-bottom a { color: #6B819A; }
.footer-bottom a:hover { color: #fff; }

/* 悬浮咨询按钮 */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 30px;
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 8px 26px rgba(255,106,43,.4);
  transition: all .24s var(--ease);
}
.float-cta:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,106,43,.5); }
.float-cta svg { width: 17px; height: 17px; }

/* ---------- 10 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { max-width: none; }
  .hero-card { max-width: 560px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
  .aside-toc-wrap { display: none; }
  .post-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn-header { display: none; }

  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; gap: 2px; box-shadow: var(--sh-md);
  }
  .nav.open a { padding: 13px 12px; border-radius: 9px; font-size: 16px; }

  .section { padding: 62px 0; }
  .hero { padding: 72px 0 62px; }
  .pain-grid, .grid-2, .grid-4, .trust-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 30px; border-radius: var(--r-lg); }
  .cta-band .btn { width: 100%; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat { padding-right: 0; }
  .hero-cta .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .float-cta { right: 16px; bottom: 16px; padding: 12px 17px; font-size: 14px; }
  .article-body { font-size: 16.5px; }
  .article-body table { font-size: 14px; }
  .article-body th, .article-body td { padding: 10px 12px; }
}

@media print {
  .site-header, .float-cta, .aside, .article-nav, .site-footer { display: none; }
  .article-layout { grid-template-columns: 1fr; }
}
