/* ================================
   微PE工具箱官网 - 共享样式
   简洁 · 轻量 · 现代感
================================ */

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

:root {
  /* 主题色 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-2: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;

  /* 中性色 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --shadow-blue: 0 12px 32px rgba(37, 99, 235, .25);

  /* 圆角 */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 过渡 */
  --t: .3s cubic-bezier(.4, 0, .2, 1);

  /* 渐变 */
  --grad-hero: linear-gradient(135deg, #0c4a6e 0%, #1e40af 45%, #2563eb 100%);
  --grad-blue: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  /* 容器 */
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: linear-gradient(90deg, #0c4a6e, #1e40af, #06b6d4);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .3px;
}

.topbar strong {
  color: #fef08a;
  margin: 0 4px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-blue);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-blue);
}

.logo small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--t);
}

.nav-menu a:hover {
  color: var(--primary);
  background: var(--bg-muted);
}

.nav-menu a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 20px !important;
  background: var(--grad-blue);
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--shadow-blue);
}

.nav-cta:hover {
  background: var(--grad-blue);
  transform: translateY(-1px);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--t);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--t);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .35);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, .35), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .4), transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.jpg") center/cover no-repeat;
  opacity: .22;
  mix-blend-mode: screen;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, .1); }
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #67e8f9, #fef08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .86);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero-stat .num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin-top: 6px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.hero-tags span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

/* ---------- 通用区块 ---------- */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-head p {
  color: var(--text-soft);
  font-size: 16px;
}

.section-alt {
  background: var(--bg-soft);
}

/* ---------- 特性卡片 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
  color: var(--primary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 对比表格 ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare th {
  background: var(--bg-muted);
  font-weight: 700;
  font-size: 14px;
}

.compare th:first-child { width: 28%; }
.compare th.wepe,
.compare td.wepe {
  background: rgba(37, 99, 235, .04);
}

.compare th.wepe {
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
}

.compare td.wepe {
  font-weight: 600;
  color: var(--primary-dark);
}

.compare tr:last-child td { border-bottom: none; }

.compare .yes { color: var(--accent-2); font-weight: 700; }
.compare .no { color: var(--danger); font-weight: 700; }

/* ---------- 工具分类 ---------- */
.tool-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
}

.tool-box:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.tool-box .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.tool-box .head .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-blue);
  color: #fff;
  font-size: 20px;
}

.tool-box h3 {
  font-size: 17px;
  font-weight: 700;
}

.tool-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-box ul li {
  padding: 5px 12px;
  background: var(--bg-muted);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-soft);
  transition: var(--t);
}

.tool-box ul li:hover {
  background: rgba(37, 99, 235, .1);
  color: var(--primary);
}

/* ---------- 用户评价 ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all var(--t);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial .stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.testimonial .name {
  font-weight: 700;
  font-size: 15px;
}

.testimonial .meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- CTA 区块 ---------- */
.cta-final {
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, .3), transparent 50%);
}

.cta-final > * { position: relative; z-index: 2; }

.cta-final h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-final p {
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ---------- 下载页 ---------- */
.dl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  position: relative;
  transition: all var(--t);
  overflow: hidden;
}

.dl-card.recommended {
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.dl-card .tag-rec {
  position: absolute;
  top: 20px;
  right: -32px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 36px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.dl-card .bit-badge {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--grad-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: var(--shadow-blue);
}

.dl-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dl-card .sub {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 22px;
}

.dl-card ul.spec {
  margin-bottom: 26px;
}

.dl-card ul.spec li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.dl-card ul.spec li:last-child { border-bottom: none; }

.dl-card ul.spec li .k { color: var(--text-muted); }
.dl-card ul.spec li .v { color: var(--text); font-weight: 600; }

.dl-card .feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.dl-card .feat-tags span {
  padding: 4px 10px;
  background: rgba(37, 99, 235, .08);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  gap: 28px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: var(--t);
}

.step:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.step .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: var(--shadow-blue);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-soft);
  font-size: 15px;
}

.step .tip {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(6, 182, 212, .08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.step .tip.warn {
  background: rgba(239, 68, 68, .06);
  border-left-color: var(--danger);
}

.step .tip b { color: var(--text); }

/* ---------- 提示框 ---------- */
.note {
  padding: 18px 22px;
  background: rgba(6, 182, 212, .06);
  border: 1px solid rgba(6, 182, 212, .25);
  border-radius: var(--r);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-soft);
}

.note.warn {
  background: rgba(245, 158, 11, .06);
  border-color: rgba(245, 158, 11, .3);
}

.note.danger {
  background: rgba(239, 68, 68, .05);
  border-color: rgba(239, 68, 68, .25);
}

.note .ico { font-size: 20px; line-height: 1; }
.note b { color: var(--text); }

/* ---------- 教程侧边目录 ---------- */
.tut-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.tut-toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}

.tut-toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.tut-toc ul { display: grid; gap: 4px; }

.tut-toc ul a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-soft);
  transition: var(--t);
}

.tut-toc ul a:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

.tut-section {
  scroll-margin-top: 80px;
  margin-bottom: 56px;
}

.tut-section h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.5px;
}

.tut-section > .desc {
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* ---------- 更新日志 ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.tl-item {
  position: relative;
  margin-bottom: 40px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

.tl-item .ver {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tl-item .ver h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}

.tl-item .ver .date {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 3px 10px;
  border-radius: 100px;
}

.tl-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--text);
}

.tl-item ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.tl-item ul li {
  list-style: disc;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer .brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.footer p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 320px;
}

.footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.footer ul { display: grid; gap: 10px; }

.footer ul a {
  color: #94a3b8;
  font-size: 14px;
  transition: var(--t);
}

.footer ul a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--bg-soft);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-muted); }

/* ---------- 页面 hero（内页） ---------- */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, .3), transparent 50%);
}

.page-hero > * { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.page-hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* ---------- 浮动渐变球装饰 ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tut-layout { grid-template-columns: 1fr; }
  .tut-toc { position: static; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 18px; }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    transition: transform var(--t);
    align-items: stretch;
    gap: 4px;
  }

  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .compare { font-size: 14px; }
  .compare th,
  .compare td { padding: 12px 14px; }

  .dl-card { padding: 28px 22px; }
  .step { padding: 24px; }
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 2px solid var(--bg-muted);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ---------- 选中文字 ---------- */
::selection {
  background: rgba(37, 99, 235, .2);
  color: var(--primary-dark);
}
