:root {
  --brand: #c8102e;
  --brand-dark: #8f0a20;
  --brand-light: #ff6b81;
  --brand-soft: #fdecee;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #e5e6eb;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(29, 33, 41, 0.05);
  --shadow-md: 0 10px 28px rgba(29, 33, 41, 0.08);
  --shadow-brand: 0 12px 32px rgba(200, 16, 46, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

img,
svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 顶部导航（毛玻璃） ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--brand);
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.28);
  transition: transform 0.35s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
}

nav.main ul {
  display: flex;
  list-style: none;
  gap: 22px;
  font-size: 15px;
  color: var(--ink-2);
}

nav.main a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

nav.main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.3s var(--ease);
}

nav.main a:hover {
  color: var(--brand);
}

nav.main a:hover::after {
  width: 100%;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
  background: var(--bg-2);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 130px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--ink-3);
}

.search-box button {
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease);
}

.search-box button:hover {
  background: var(--brand-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #e63950 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.36);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

#darkToggle {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 16px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease);
}

#darkToggle:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.25s var(--ease);
}

.menu-toggle:hover {
  background: var(--bg-2);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  padding: 16px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a {
  color: var(--ink-2);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--ink-3);
}

/* ============ 渐变 Banner Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(200, 16, 46, 0.14), transparent 60%),
    radial-gradient(760px 380px at 92% 8%, rgba(255, 107, 129, 0.18), transparent 62%),
    linear-gradient(160deg, #fff5f6 0%, #ffffff 52%, #f7f8fa 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  font-weight: 800;
  animation: heroIn 0.7s var(--ease) both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.hero p.lead {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 24px;
  animation: heroIn 0.7s 0.08s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: heroIn 0.7s 0.16s var(--ease) both;
}

.hero-stats {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  animation: heroIn 0.7s 0.24s var(--ease) both;
}

.stat b {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #ff6b81);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.stat span {
  font-size: 13px;
  color: var(--ink-2);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ 轮播（毛玻璃 + 圆角） ============ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-brand);
  animation: heroIn 0.8s 0.12s var(--ease) both;
}

.slides {
  position: relative;
  height: 320px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.46), transparent 62%);
  z-index: 0;
}

.slide .slide-txt {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 14px 18px;
  border-radius: 12px;
}

.slide h3 {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 700;
}

.slide p {
  font-size: 13px;
  opacity: 0.94;
  line-height: 1.65;
}

.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}

.dots i.on {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

/* ============ 锚点导航（毛玻璃胶囊） ============ */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.anchor-nav a {
  font-size: 13px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.anchor-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.12);
}

/* ============ 通用区块 ============ */
section.block {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

section.block:nth-child(even) {
  background: var(--bg-2);
}

.sec-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.sec-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.sec-head h2 {
  font-size: 27px;
  line-height: 1.45;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.sec-head p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ============ 网格 ============ */
.grid {
  display: grid;
  gap: 20px;
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ 卡片（圆角 + 毛玻璃感 + hover） ============ */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.22);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.card h4 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: var(--brand-dark);
  font-weight: 700;
}

.card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

.card p + p {
  margin-top: 10px;
}

.card ul {
  margin: 10px 0 0 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.card li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.card li::marker {
  color: var(--brand);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #ffe3e7);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.16);
}

/* ============ 文章卡片 ============ */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card .meta {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card .meta span:last-child {
  color: var(--brand);
  font-weight: 600;
}

.article-card h3 {
  font-size: 16px;
  line-height: 1.55;
}

.article-card p {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}

.readmore {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.readmore:hover {
  gap: 10px;
  color: var(--brand-dark);
}

/* ============ FAQ 手风琴 ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  border-color: rgba(200, 16, 46, 0.28);
}

.faq-item.open {
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.08);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: var(--bg-2);
}

.faq-q .arrow {
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  font-size: 13px;
}

.faq-item.open .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 560px;
  padding: 0 22px 20px;
}

.faq-a p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.85;
}

/* ============ HowTo 步骤 ============ */
.howto-step {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(200, 16, 46, 0.24);
}

.step-num {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.24);
  transition: transform 0.3s var(--ease);
}

.howto-step:hover .step-num {
  transform: scale(1.08);
}

.howto-step h3 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}

.howto-step p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ============ 案例卡片 ============ */
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.case-card svg {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}

.case-card:hover svg {
  transform: scale(1.04);
}

.case-card .case-body {
  padding: 20px;
}

.case-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.case-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ============ 引用评价 ============ */
.quote {
  background: #fff;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.quote b {
  display: block;
  color: var(--ink);
  margin-top: 10px;
  font-size: 14px;
}

/* ============ 联系信息 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: baseline;
  word-break: break-all;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list li b {
  color: var(--ink);
  min-width: 84px;
  display: inline-block;
  flex-shrink: 0;
  font-weight: 600;
}

/* ============ 对比表格 ============ */
table.cmp {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.cmp th,
table.cmp td {
  border: 1px solid var(--line);
  padding: 13px 16px;
  text-align: left;
}

table.cmp th {
  background: linear-gradient(135deg, var(--brand-soft), #ffe9ec);
  color: var(--brand-dark);
  font-weight: 700;
}

table.cmp td {
  color: var(--ink-2);
}

table.cmp tbody tr {
  transition: background-color 0.25s var(--ease);
}

table.cmp tbody tr:hover {
  background: var(--bg-2);
}

/* ============ 提示框 ============ */
.notice {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: #874d00;
  margin-top: 18px;
  line-height: 1.75;
}

/* ============ 标签云 ============ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tags a {
  font-size: 13px;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.tags a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(200, 16, 46, 0.2);
  transform: translateY(-2px);
}

/* ============ 目录盒 ============ */
.toc-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
}

.toc-box h3 {
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 700;
}

.toc-box ol {
  margin-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.toc-box li {
  margin-bottom: 8px;
}

.toc-box a:hover {
  color: var(--brand);
}

/* ============ 作者信息 ============ */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 28px;
  transition: box-shadow 0.3s var(--ease);
}

.author-box:hover {
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.24);
}

.author-box p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}

.author-box b {
  font-size: 15px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* ============ 页脚 ============ */
.site-footer {
  background: linear-gradient(180deg, #1d2129 0%, #15181e 100%);
  color: #c9cdd4;
  padding: 52px 0 26px;
  font-size: 14px;
}

.site-footer a {
  color: #c9cdd4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-grid p {
  line-height: 1.8;
  color: #a9aeb8;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 9px;
  color: #a9aeb8;
  transition: transform 0.25s var(--ease);
}

.footer-grid li:hover {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid #2e323a;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #86909c;
}

/* ============ 返回顶部 ============ */
.backtop {
  position: fixed;
  right: 22px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #e63950);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 120;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.4);
}

.backtop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.backtop:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.5);
}

/* ============ 滚动动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.18s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============ 暗色模式 ============ */
body.dark {
  --ink: #e5e6eb;
  --ink-2: #a9aeb8;
  --ink-3: #7a828e;
  --line: #2e323a;
  --bg: #17181c;
  --bg-2: #1d2129;
  --glass: rgba(23, 24, 28, 0.74);
  --glass-border: rgba(255, 255, 255, 0.08);
  --brand-soft: #3a1620;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 12px 32px rgba(200, 16, 46, 0.28);
}

body.dark header.site {
  background: var(--glass);
  border-bottom-color: var(--line);
}

body.dark .hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(200, 16, 46, 0.26), transparent 60%),
    radial-gradient(760px 380px at 92% 8%, rgba(255, 107, 129, 0.16), transparent 62%),
    linear-gradient(160deg, #24161a 0%, #17181c 58%, #1d2129 100%);
}

body.dark .card,
body.dark .faq-item,
body.dark .howto-step,
body.dark .case-card,
body.dark .quote,
body.dark .toc-box,
body.dark .author-box,
body.dark table.cmp,
body.dark .carousel {
  background: #1d2129;
}

body.dark .search-box {
  background: #1d2129;
}

body.dark .search-box input {
  color: var(--ink);
}

body.dark .btn-ghost {
  background: #1d2129;
  color: var(--ink-2);
}

body.dark #darkToggle {
  background: #1d2129;
  color: var(--ink-2);
}

body.dark .slide .slide-txt {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark .notice {
  background: #2b2413;
  border-color: #5c4a1a;
  color: #e8c87a;
}

body.dark .tags a {
  background: #2e323a;
  color: var(--ink-2);
}

body.dark .tags a:hover {
  background: var(--brand-soft);
  color: var(--brand-light);
}

body.dark .icon-badge {
  background: linear-gradient(135deg, #3a1620, #4a1a26);
  color: var(--brand-light);
}

body.dark table.cmp th {
  background: linear-gradient(135deg, #3a1620, #4a1a26);
  color: var(--brand-light);
}

body.dark table.cmp tbody tr:hover {
  background: #23262d;
}

body.dark .faq-q:hover {
  background: #23262d;
}

body.dark .site-footer {
  background: linear-gradient(180deg, #101216 0%, #0c0e11 100%);
}

body.dark .anchor-nav a {
  background: var(--glass);
  border-color: var(--line);
}

body.dark .contact-list li {
  border-bottom-color: #2e323a;
}

/* ============ 响应式：平板 ============ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .slides {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .g3,
  .g4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sec-head h2 {
    font-size: 24px;
  }

  section.block {
    padding: 48px 0;
  }
}

/* ============ 响应式：手机 ============ */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  nav.main {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px;
    box-shadow: var(--shadow-md);
    animation: menuIn 0.28s var(--ease);
  }

  @keyframes menuIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  nav.main.open {
    display: block;
  }

  nav.main ul {
    flex-direction: column;
    gap: 4px;
  }

  nav.main a {
    display: block;
    padding: 10px 4px;
    border-radius: 8px;
  }

  nav.main a::after {
    display: none;
  }

  nav.main a:hover {
    background: var(--bg-2);
    padding-left: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero-grid,
  .g2,
  .g3,
  .g4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 25px;
    line-height: 1.45;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat b {
    font-size: 24px;
  }

  .slides {
    height: 240px;
  }

  .slide {
    padding: 18px;
  }

  .slide h3 {
    font-size: 16px;
  }

  .sec-head h2 {
    font-size: 22px;
  }

  .sec-head p {
    font-size: 14px;
  }

  section.block {
    padding: 40px 0;
  }

  .card {
    padding: 20px;
  }

  .logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .backtop {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  table.cmp {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .author-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-list li {
    flex-direction: column;
    gap: 2px;
  }

  .contact-list li b {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 22px;
  }

  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .hero-actions {
    gap: 10px;
  }
}

/* ============ 无障碍与动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ 打印 ============ */
@media print {
  header.site,
  .backtop,
  .anchor-nav,
  .hero-actions,
  .carousel,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  section.block {
    padding: 20px 0;
    break-inside: avoid;
  }
}