/* ============================================================
   批处理大师 Pro  —  全站样式
   主色：紫色（LOGO 紫橙渐变取色） #6E45E2 / #8B5CF6
   辅色：橙色 #FF7A18 / 金黄 #FFB84D
   背景：#FAFAFC 浅灰白，卡片白 #FFFFFF
   文字：#1F2937 主 / #6B7280 次
   ============================================================ */
:root {
  --pri: #6E45E2;
  --pri-2: #8B5CF6;
  --pri-dark: #4C1D95;
  --acc: #FF7A18;
  --acc-2: #FFB84D;
  --bg: #FAFAFC;
  --card: #FFFFFF;
  --line: #E5E7EB;
  --text: #1F2937;
  --muted: #6B7280;
  --shadow: 0 6px 24px rgba(110,69,226,0.08);
  --shadow-lg: 0 12px 40px rgba(110,69,226,0.14);
  --radius: 14px;
  --container: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 全局键盘焦点环：所有可交互元素 Tab 聚焦时均有清晰可见的焦点样式（:focus-visible 仅键盘触发） */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--pri); outline-offset: 2px;
}
html { scroll-behavior: smooth; }

/* ===== 滚动条（渐进增强）：原生兜底 + 自定义高性能滚动条 =====
   设计原则：
   1) 原生滚动始终可用——脚本未加载/被缓存/失败时，仍有原生条可拖，绝不“看不到滚动条”。
   2) 自定义条在 JS 成功挂载后才激活（html.csb-active），隐藏原生条避免双条。
   3) 自定义条：18px 轨道 / 14px 滑块 / 品牌紫 / 圆角 / 悬停加深；
      拖动用 Pointer Events + requestAnimationFrame 节流，滑块位移走 transform（合成层），
      不触发重排，丝滑无卡顿；滑块高度与拖动灵敏度、滚轮步长随页面内容长短动态计算。 */
html { overflow-y: scroll; }
/* 原生兜底样式（自定义条激活后由 html.csb-active 隐藏） */
html { scrollbar-width: thin; scrollbar-color: #8B5CF6 #ECECF3; }
html::-webkit-scrollbar { width: 16px; height: 16px; }
html::-webkit-scrollbar-track { background: #ECECF3; }
html::-webkit-scrollbar-thumb { background: #8B5CF6; border-radius: 8px; border: 4px solid #ECECF3; }
html::-webkit-scrollbar-thumb:hover { background: #6E45E2; }

/* 自定义滚动条：轨道 + 滑块 */
.csb-track { position: fixed; top: 0; right: 0; bottom: 0; width: 18px; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .18s ease; background: linear-gradient(to left, rgba(236,236,243,.6), rgba(236,236,243,0)); }
.csb-track.csb-show { opacity: 1; }
.csb-thumb { position: absolute; right: 2px; top: 0; width: 14px; height: 40px; border-radius: 8px; background: #8B5CF6; cursor: grab; pointer-events: auto; will-change: transform; box-shadow: 0 1px 4px rgba(110,69,226,.35); transition: background .15s ease; }
.csb-thumb:hover { background: #6E45E2; }
.csb-thumb.csb-dragging { cursor: grabbing; background: #5b34c7; }

/* 激活自定义条：隐藏原生条；body 右侧留白补偿，避免布局抖动 */
html.csb-active { scrollbar-width: none; }
html.csb-active::-webkit-scrollbar { width: 0; height: 0; }
html.csb-active body { padding-right: 16px; }

/* 移动端：用原生触摸滚动，不启用自定义条 */
@media (max-width: 768px) {
  .csb-track { display: none !important; }
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { width: 0; height: 0; }
  html.csb-active body { padding-right: 0; }
}
body {
  font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--pri-2); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 68px; max-width: var(--container); margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 700; font-size: 17.5px; letter-spacing: .2px; color: var(--text); }
.brand img { height: 34px; }
.brand-name { background: linear-gradient(135deg, var(--pri) 0%, #EA6A12 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* --- 导航菜单：等间距胶囊项，悬停给底色 + 渐变下划线，当前页加粗高亮 --- */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { display: flex; align-items: center; }
.nav-links > li > a {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; line-height: 1; color: var(--text);
  transition: color .18s ease, background-color .18s ease;
}
/* 下划线：悬停 / 当前页时由中间向两侧展开 */
.nav-links > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--pri), var(--acc));
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.nav-links > li > a:hover { color: var(--pri); background: rgba(110,69,226,.07); }
.nav-links > li > a:hover::after { transform: scaleX(1); }
/* 当前页：兼容历史内联写法 is-active，新写法统一用 aria-current（语义 + 无障碍） */
.nav-links > li > a[aria-current="page"],
.nav-links > li > a.is-active { color: var(--pri); font-weight: 700; background: rgba(110,69,226,.09); }
.nav-links > li > a[aria-current="page"]::after,
.nav-links > li > a.is-active::after { transform: scaleX(1); }
.nav-links > li > a:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
/* 下拉菜单内的当前项（如 modules/encrypt.html 下的「加密工具」） */
.nav-dropdown-menu a[aria-current="page"] { background: rgba(110,69,226,.10); color: var(--pri); font-weight: 700; }

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(110,69,226,.26);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(110,69,226,.36); }

/* 移动端汉堡按钮（默认隐藏，≤860px 显示） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle:hover { background: rgba(110,69,226,0.08); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 桌面端：折叠容器不生成盒子（子元素直接参与 .nav-inner 弹性布局），
   恢复「品牌 | 菜单链接 | 免费下载」三段分布，下载按钮与菜单保持间距不重叠 */
.nav-collapse { display: contents; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapse {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 8px 20px 18px;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open .nav-collapse { display: flex; }
  .nav-collapse .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-collapse .nav-links > li { display: block; width: 100%; }
  .nav-collapse .nav-links > li > a {
    display: flex; width: 100%; height: auto; padding: 12px 14px; border-radius: 10px;
    font-size: 15px; font-weight: 600; gap: 6px;
  }
  /* 触屏窄屏不用下划线，改用左侧色条 + 底色标识当前页，避免与行内布局错位 */
  .nav-collapse .nav-links > li > a::after { display: none; }
  .nav-collapse .nav-links > li > a:hover { background: rgba(110,69,226,.07); }
  .nav-collapse .nav-links > li > a[aria-current="page"],
  .nav-collapse .nav-links > li > a.is-active {
    background: rgba(110,69,226,.10); color: var(--pri); box-shadow: inset 3px 0 0 var(--pri);
  }
  .nav-collapse .nav-dropdown { width: 100%; }
  /* 触屏无 hover：分类菜单直接平铺展开，便于浏览发现 */
  .nav-collapse .nav-dropdown-menu {
    position: static; display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 10px 12px;
    min-width: 0; margin-top: 0;
  }
  .nav-collapse .nav-dropdown-menu a { padding: 7px 10px; font-size: 13px; white-space: normal; }
  .nav-collapse .nav-cta { margin: 16px 0 4px; display: flex; width: 100%; }
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 400;
  width: 50px; height: 50px; border: none; cursor: pointer; padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s, background .2s;
}
.back-to-top svg { display: block; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover {
  background: linear-gradient(135deg, var(--pri-dark) 0%, var(--pri) 100%);
  box-shadow: 0 16px 44px rgba(110,69,226,0.32);
  transform: translateY(-3px) scale(1.04);
}
.back-to-top:active { transform: translateY(0) scale(.95); }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* 功能分类下拉 */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown .caret { font-size: 11px; opacity: .7; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 16px 12px 12px; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px 22px; min-width: 380px; z-index: 300;
}
/* 透明桥接：消除触发区与菜单之间的空隙，鼠标移入菜单途中不再丢失 hover，菜单不再闪退 */
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.show .nav-dropdown-menu { display: grid; }
/* 点击也可展开（触发区与菜单整体可点，体验更稳） */
.nav-dropdown.open .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a { color: var(--text); font-size: 14px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(110,69,226,0.08); color: var(--pri); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  /* 2026-09-11 修复：移除 hero 两个角上的橙/紫 radial 光晕（用户反馈「页面顶部两侧出现多余的其他颜色」），
     只保留干净的纵向白→底色渐变 */
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}
.hero-logo { width: 130px; height: 130px; margin: 0 auto 20px; filter: drop-shadow(0 12px 24px rgba(110,69,226,0.22)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 14px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--pri) 0%, #EA6A12 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }
.hero .actions { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  /* 统一 2px 透明边框：让主按钮/描边按钮/教程入口三种胶囊外框尺寸完全一致 */
  border: 2px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.35; cursor: pointer; transition: all .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--pri-dark) 0%, var(--pri) 100%); color: #fff; box-shadow: 0 8px 20px rgba(110,69,226,0.30); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(110,69,226,0.40); }
.btn-ghost { background: #fff; color: var(--pri); border: 2px solid var(--pri); }
.btn-ghost:hover { background: var(--pri); color: #fff; }
/* 教程入口 CTA：与同排胶囊按钮共用「描边 + 圆角 + 内边距」规格，
   淡紫底用于区分主次（历史问题是它只用了 .btn-link，没有外框） */
.btn-tutorial {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(110,69,226,.08); color: var(--pri); border-color: rgba(110,69,226,.30);
}
.btn-tutorial .ico { font-size: 17px; line-height: 1; }
.btn-tutorial:hover {
  background: rgba(110,69,226,.15); border-color: var(--pri); color: var(--pri-dark);
  transform: translateY(-2px); box-shadow: 0 12px 26px rgba(110,69,226,.20);
}
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 50px; flex-wrap: wrap; background: rgba(255,255,255,0.62); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: var(--shadow); }
.stat { min-width: 96px; }
.stat { text-align: center; }
.stat .n { font-size: 32px; font-weight: 800; color: var(--pri); background: linear-gradient(135deg, var(--pri) 0%, #EA6A12 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Hero / 内页大标题响应式：此前窄屏仍用 44px 桌面字号，导致文字横向溢出 */
@media (max-width: 768px) {
  .hero { padding: 46px 0 42px; }
  .hero-logo { width: 96px; height: 96px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.25; }
  .hero .sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero .actions { gap: 12px; }
  .hero .actions .btn { padding: 12px 26px; font-size: 14.5px; }
  .hero-stats { gap: 20px 26px; padding: 18px 20px; margin-top: 34px; }
  .stat { min-width: 84px; }
  .stat .n { font-size: 26px; }
  .page-hero { padding: 44px 0 32px; }
  .page-hero h1 { font-size: 28px; }
}
@media (max-width: 460px) {
  /* 极窄屏：CTA 纵向铺满，避免并排时被压扁或溢出 */
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .actions .btn { width: 100%; }
  /* 数据条改 2×2 网格，避免 4 项折成「3+1」的孤立换行 */
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; justify-items: center; }
  .stat { min-width: 0; }
  .stat .n { font-size: 23px; }
}

/* ===== Section ===== */
.section { padding: 70px 0; }
/* 锚点跳转时为吸顶导航留出余量，避免标题被遮挡 */
.section, .page-hero { scroll-margin-top: 78px; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(110,69,226,0.10); color: var(--pri); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-head .desc { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ===== 5 大模块卡片 ===== */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }
.module-card {
  background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
  transition: all .25s; position: relative; overflow: hidden;
}
.module-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--pri), var(--acc)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module-card:hover::before { transform: scaleX(1); }
.module-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  margin-bottom: 16px; box-shadow: 0 6px 16px rgba(110,69,226,0.25);
}
.module-card.alt .module-icon { background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%); box-shadow: 0 6px 16px rgba(255,122,24,0.30); }
.module-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.module-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 42px; }
.module-card .features { list-style: none; margin-bottom: 20px; }
.module-card .features li { font-size: 13px; color: var(--text); padding: 4px 0; padding-left: 20px; position: relative; }
.module-card .features li::before { content: "✓"; position: absolute; left: 0; color: var(--acc); font-weight: 800; }
.module-card .actions { display: flex; gap: 10px; }
.module-card .btn { padding: 10px 20px; font-size: 14px; }
/* 卡片内的文字型次级入口：保持轻量不加框，悬停用下划线 + 位移给出反馈 */
.btn-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 0; color: var(--pri); font-weight: 600; font-size: 14px;
}
.btn-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px;
  background: currentColor; opacity: 0; transform: scaleX(.35); transform-origin: left center;
  transition: opacity .2s ease, transform .26s cubic-bezier(.4, 0, .2, 1);
}
.btn-link:hover { color: var(--pri-dark); }
.btn-link:hover::after { opacity: .85; transform: scaleX(1); }

/* ===== 首页“完全免费”高亮带：跨整行，作为分类卡片后的收束 CTA ===== */
.module-card.free-band {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 26px; text-align: left;
  padding: 28px 34px;
}
.module-card.free-band .module-icon { margin-bottom: 0; flex: 0 0 auto; }
.module-card.free-band h3 { margin-bottom: 6px; }
.module-card.free-band .desc { margin-bottom: 0; max-width: 760px; }
.module-card.free-band .features { display: none; }
.module-card.free-band .actions { margin: 0 0 0 auto; flex: 0 0 auto; }
.module-card.free-band:hover { transform: translateY(-3px); }
@media (max-width: 640px) {
  .module-card.free-band { flex-direction: column; align-items: flex-start; gap: 14px; }
  .module-card.free-band .actions { margin-left: 0; width: 100%; }
  .module-card.free-band .actions .btn { width: 100%; text-align: center; }
}

/* ===== 按模块查看功能（分类目录） ===== */
.func-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
/* tab 按钮：原生 <button>（键盘可达），显式继承字体；min-height 保证移动端点按目标 ≥40px */
.func-tab { padding: 9px 20px; min-height: 40px; display: inline-flex; align-items: center; font-family: inherit; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.func-tab:hover { border-color: var(--pri); color: var(--pri); }
.func-tab.active { background: linear-gradient(135deg, #5B34C7, var(--pri)); color: #fff; border-color: transparent; }
.func-tab.active:hover { color: #fff; }
.func-list { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.func-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--bg); display: flex; align-items: center; gap: 10px; }
.func-list h3 .num { background: linear-gradient(135deg, var(--pri), var(--acc)); color: #fff; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; }
@media (max-width: 980px) { .func-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .func-grid { grid-template-columns: repeat(2, 1fr); } }
.func-grid a {
  color: var(--text); font-size: 13px; padding: 9px 10px; min-height: 40px; border-radius: 6px;
  display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.func-grid a:hover { background: rgba(110,69,226,0.08); color: var(--pri); }
.func-more { text-align: center; margin-top: 14px; }

/* ===== 行业场景 ===== */
.scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .scenes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
.scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
/* .scene 为纯展示卡（无跳转目标），不做悬停上浮/描边等"可点击"暗示 */
.scene .ico { font-size: 32px; margin-bottom: 10px; }
.scene h4 { font-size: 15px; font-weight: 700; }
.scene p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 核心优势 ===== */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
@media (max-width: 768px) { .advantages { grid-template-columns: 1fr; } }
.adv { background: #fff; padding: 32px 24px; border-radius: var(--radius); text-align: center; border: 1px solid var(--line); }
.adv .ico {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--acc) 100%);
  color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(110,69,226,0.25);
}
.adv h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.adv p { color: var(--muted); font-size: 14px; }

/* ===== 用户评价 ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }
.tm { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.tm::before { content: "“"; position: absolute; top: -10px; left: 16px; font-size: 60px; color: var(--pri); opacity: 0.18; line-height: 1; font-family: Georgia,serif; }
.tm p { color: var(--text); font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.tm .author { display: flex; align-items: center; gap: 10px; }
.tm .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--pri), var(--acc)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.tm .role { font-size: 13px; color: var(--muted); }
.tm .role b { color: var(--text); display: block; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; color: var(--pri); font-size: 22px; font-weight: 300; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all .3s; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 320px; }

/* ===== 下载区 ===== */
/* 渐变取深紫系（#5B34C7→pri），白字最暗处对比度 ≥5.8:1（原紫→橙渐变末端仅 2.6:1） */
.download-band { background: linear-gradient(135deg, #5B34C7 0%, var(--pri) 55%, var(--pri-2) 125%); padding: 70px 0; color: #fff; text-align: center; }
.download-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.download-band p { font-size: 16px; margin-bottom: 28px; }
.download-band .btn { background: #fff; color: var(--pri); }
.download-band .btn:hover { transform: translateY(-2px); }

/* ===== 页脚 ===== */
.footer { background: #1F2937; color: #9CA3AF; padding: 50px 0 24px; }
.footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
@media (max-width: 768px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; font-size: 13px; }
.footer a { color: #9CA3AF; }
.footer a:hover { color: #fff; }
.footer .brand-block .brand { color: #fff; margin-bottom: 12px; }
.footer .brand-block .brand-name { background: linear-gradient(135deg, var(--pri-2) 0%, var(--acc-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer .brand-block p { font-size: 13px; line-height: 1.7; }
.footer .copyright { border-top: 1px solid #374151; padding-top: 20px; font-size: 12px; text-align: center; color: #9CA3AF; }
/* 备案 / 网警备案信息条 */
.footer .filing { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; margin: 0 auto 14px; padding: 10px 16px; border-top: 1px solid #374151; font-size: 12px; color: #9CA3AF; }
.footer .filing a { color: #9CA3AF; text-decoration: none; }
.footer .filing a:hover { color: #fff; }
.footer .filing img { height: 12px; width: auto; vertical-align: middle; margin-right: 4px; }
/* 国徽：作为独立元素夹在 ICP 备案号与公安备案号正中间，不隶属于任何一侧 */
.footer .filing .filing-badge { height: 12px; width: auto; display: block; margin: 0; flex: 0 0 auto; }
.footer .filing .filing-icp::before, .footer .filing .filing-police::before { content: ""; display: none; }
/* 备案信息 + 版权信息 合并到同一行（备案在前、版权在后，整体居中；
   间距 10px 让国徽与两侧备案号挨紧凑） */
.footer .bottomline { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; align-items: center; margin: 0 auto; padding: 14px 16px; border-top: 1px solid #374151; font-size: 12px; color: #9CA3AF; }
.footer .bottomline a { color: #9CA3AF; text-decoration: none; }
.footer .bottomline a:hover { color: #fff; }
.footer .bottomline .copyright, .footer .bottomline .copy { border-top: none; padding: 0; margin: 0; color: #9CA3AF; }
/* 国徽尺寸：合并到 .bottomline 后原 .filing .filing-badge 规则不再匹配，
   必须在此重新约束，否则会按原图尺寸渲染显得过大。高度取 13px（较原 10px 略放大一点点）。 */
.footer .bottomline .filing-badge { height: 13px; width: auto; display: block; margin: 0; flex: 0 0 auto; }

/* ===== 内页通用 ===== */
.page-hero { padding: 60px 0 40px; background: linear-gradient(135deg, rgba(110,69,226,0.06) 0%, rgba(255,122,24,0.06) 100%); text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero .crumbs { color: var(--muted); font-size: 13px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--pri); }
.article-body { max-width: 820px; margin: 50px auto; background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.article-body .meta { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
/* 大节标题：左侧色条 + 顶部留白，形成清晰的层级节奏 */
.article-body h2 { font-size: 22px; font-weight: 700; line-height: 1.4; margin: 36px 0 16px; padding-left: 14px; border-left: 4px solid var(--pri); }
.article-body h2:first-of-type { margin-top: 0; }
/* 小节标题：小于 h2、大于正文 */
.article-body h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 26px 0 10px; }
/* 正文：舒适行高，便于连续阅读 */
.article-body p { color: var(--text); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
/* 标题后的首段不再额外上挤，保持节奏连贯 */
.article-body h2 + p, .article-body h3 + p { margin-top: 0; }
.article-body ol, .article-body ul { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; font-size: 15px; line-height: 1.8; }
/* 插图：响应式居中、圆角、轻微阴影，融入正文 */
.article-body img { display: block; max-width: 100%; height: auto; margin: 22px auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(15,23,42,.08); }
/* 行内代码 */
.article-body code { font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace; font-size: 13px; background: var(--bg); color: var(--pri-dark); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
/* 正文内链接（排除导航按钮） */
.article-body a:not(.nav-prev):not(.nav-next) { color: var(--pri); text-decoration: none; border-bottom: 1px solid rgba(110,69,226,.3); }
.article-body a:not(.nav-prev):not(.nav-next):hover { border-bottom-color: var(--pri); }

/* ===== 上一篇 / 下一篇 翻页导航 ===== */
.article-nav { display: flex; gap: 16px; margin: 38px 0 6px; }
.article-nav a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.article-nav a:hover { border-color: var(--pri); box-shadow: var(--shadow); }
.article-nav .nav-dir { font-size: 12px; color: var(--muted); }
.article-nav .nav-title { font-size: 15px; font-weight: 700; color: var(--pri); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav .nav-prev { align-items: flex-start; text-align: left; }
.article-nav .nav-next { align-items: flex-end; text-align: right; }
/* 边界占位：保留布局、不可点击/不可见 */
.article-nav .disabled { visibility: hidden; }

/* 移动端：阅读区收窄留白，导航改为纵向堆叠、统一左对齐 */
@media (max-width: 640px) {
  .article-body { padding: 24px; margin: 28px auto; }
  .article-body h2 { margin: 28px 0 14px; padding-left: 12px; }
  .article-nav { flex-direction: column; gap: 12px; margin: 30px 0 4px; }
  .article-nav .nav-prev, .article-nav .nav-next { align-items: flex-start; text-align: left; }
}

/* 文章列表 */
.article-list { max-width: 960px; margin: 0 auto; }
.article-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; transition: all .2s; }
.article-item:hover { border-color: var(--pri); box-shadow: var(--shadow); transform: translateX(4px); }
.article-item h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.article-item p { font-size: 13px; color: var(--muted); }

/* 下载页 */
.dl-card { max-width: 720px; margin: 50px auto; background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow); }
.dl-card .big-logo { width: 100px; margin: 0 auto 20px; }
.dl-card h2 { font-size: 26px; margin-bottom: 8px; }
.dl-card .ver { color: var(--muted); margin-bottom: 24px; }
.dl-card .sys { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.dl-card .sys .sys-btn { padding: 10px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--text); }
.dl-card .sys .sys-btn.active { background: var(--pri); color: #fff; border-color: var(--pri); }
.dl-card .size { color: var(--muted); font-size: 13px; }
.dl-card .note { color: var(--muted); font-size: 12px; margin-top: 20px; line-height: 1.7; }

/* 首页功能总览 tab 面板切换 */
.func-panel { display: none; }
.func-panel.active { display: block; }

/* ============================================================
   会员制 预留
   开关：assets/app.js 中 SITE_CONFIG.membership
   规则：data-when-membership 元素默认隐藏，开启会员时由 JS 移除该属性
   ============================================================ */
[data-when-membership] { display: none !important; }

/* 会员价目卡 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(110,69,226,0.10); }
.plan-card.featured { border: 2px solid var(--pri); box-shadow: 0 8px 24px rgba(110,69,226,0.12); }
.plan-card .badge { position: absolute; top: -12px; right: 24px; background: linear-gradient(135deg,var(--pri),var(--pri-2)); color:#fff; font-size:12px; padding:4px 12px; border-radius:12px; font-weight:600; }
.plan-card h3 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.plan-card .price { font-size: 36px; font-weight: 700; color: var(--pri); margin: 12px 0 4px; }
.plan-card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; min-height: 40px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-card ul li { padding: 8px 0; color: var(--text); font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.plan-card ul li::before { content: "✓"; color: var(--pri); font-weight: 700; flex-shrink: 0; }
.plan-card ul li.no::before { content: "—"; color: var(--muted); }
.plan-card ul li.no { color: var(--muted); text-decoration: line-through; }
.plan-card .btn { width: 100%; display: block; text-align: center; }

/* 会员功能对比表 */
.compare { max-width: 1080px; margin: 0 auto; border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.compare th { background: var(--bg); font-weight: 600; color: var(--text); }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--pri); font-weight: 700; }
.compare .no { color: var(--muted); }

/* 会员页 "敬请期待" 占位 */
.member-coming-soon { text-align: center; padding: 80px 24px; }
.member-coming-soon .ico { font-size: 64px; margin-bottom: 16px; }
.member-coming-soon h2 { font-size: 28px; color: var(--text); margin-bottom: 12px; }
.member-coming-soon p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* 升级会员 CTA 卡片(下载页) */
.upgrade-band { background: linear-gradient(135deg, #F5F1FF 0%, #FFF6EC 100%); border-radius: 16px; padding: 32px; text-align: center; margin: 32px auto; max-width: 720px; }
.upgrade-band h3 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.upgrade-band p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ============================================================
   打赏 / 请作者喝杯咖啡 —— 入口区块 + 支付弹窗
   设计上与 Windows 客户端「打赏作者」弹窗保持一致：
   白底圆角卡片、品牌紫主色、右上 X + 底部「关闭」+ 点遮罩关闭。
   ============================================================ */

/* ---------- 入口区块 ---------- */
.donate-section { padding: 70px 0; }
.donate-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
}
.donate-emoji { display: block; font-size: 44px; line-height: 1; margin-bottom: 12px; }
.donate-box h3 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.donate-box .donate-lead {
  color: var(--muted); font-size: 14.5px; line-height: 1.8;
  max-width: 660px; margin: 0 auto 26px;
}
.donate-box .donate-lead b { color: var(--pri); }
.donate-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
.donate-tier {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px;
  background: #F8FAFC; cursor: pointer; font-family: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.donate-tier:hover { border-color: var(--pri); transform: translateY(-3px); box-shadow: var(--shadow); }
.donate-tier .t-amt { font-size: 22px; font-weight: 800; color: var(--pri); }
.donate-tier .t-amt i { font-size: 13px; font-style: normal; margin-right: 1px; }
.donate-tier .t-name { font-size: 14px; font-weight: 600; color: var(--text); }
.donate-tier .t-desc { font-size: 11.5px; color: var(--muted); }
.donate-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); }

/* ---------- 打赏弹窗 ---------- */
.dn-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.dn-mask[hidden] { display: none; }
.dn-dialog {
  width: 100%; max-width: 460px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}
.dn-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.dn-head-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.dn-heart { color: #eb2f96; }
.dn-x {
  border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; padding: 4px 9px; border-radius: 8px; cursor: pointer;
}
.dn-x:hover { color: var(--text); background: #F3F4F6; }
.dn-body { padding: 18px 20px; overflow-y: auto; }
.dn-lead { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.dn-lead b { color: var(--text); }

/* 错误提示 */
.dn-err {
  margin-bottom: 12px; padding: 10px 12px; text-align: left;
  border: 1px solid #FFCCC7; background: #FFF2F0; border-radius: 10px;
  font-size: 12px; color: #CF1322; line-height: 1.6;
}
.dn-err[hidden] { display: none; }
.dn-err-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* 档位选择视图 */
.dn-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dn-tier {
  text-align: center; padding: 12px 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #F8FAFC;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dn-tier:hover { border-color: var(--pri); }
.dn-tier.active { border-color: #eb2f96; background: #FFF0F6; box-shadow: 0 0 0 1px #eb2f96; }
.dn-tier-amt { font-size: 20px; font-weight: 800; color: #eb2f96; }
.dn-tier-amt i { font-size: 12px; font-style: normal; }
.dn-tier-name { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.dn-tier-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dn-hint { margin-top: 10px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* 支付二维码视图 */
#dnViewQr { text-align: center; }
.dn-qr-amount { font-size: 15px; font-weight: 700; color: var(--text); }
.dn-qr-amt { color: #eb2f96; }
.dn-qr-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.dn-qr-card {
  display: inline-block; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(110, 69, 226, .10);
}
.dn-qr-card canvas { display: block; max-width: 100%; height: auto !important; }
.dn-qr-tip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--text);
}
.dn-alipay { color: #1677ff; font-size: 16px; }
.dn-qr-tip2 { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* 按钮 */
.dn-primary {
  width: 100%; margin-top: 16px; padding: 11px 16px;
  border: 0; border-radius: 10px; font-family: inherit;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.dn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.dn-primary:disabled { background: #E5E7EB; color: #9CA3AF; cursor: not-allowed; }
.dn-primary.dn-close { width: auto; margin-top: 0; min-width: 88px; padding: 8px 18px; font-size: 14px; }
.dn-ghost {
  flex: 1; padding: 9px 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--text); font-size: 14px; cursor: pointer; transition: all .15s;
}
.dn-ghost:hover { border-color: var(--pri); color: var(--pri); }
.dn-dashed {
  padding: 8px 16px; font-family: inherit;
  border: 1px dashed var(--pri); border-radius: 10px;
  background: transparent; color: var(--pri); font-size: 14px; cursor: pointer;
}
.dn-dashed:hover { background: rgba(110, 69, 226, .06); }
.dn-link {
  border: 0; background: transparent; font-family: inherit;
  color: var(--pri); font-size: 13px; padding: 6px 0; cursor: pointer;
}
.dn-link:hover { color: var(--pri-2); }
.dn-actions { display: flex; gap: 10px; margin-top: 14px; }
.dn-actions[hidden] { display: none; }

/* 底部操作栏 */
.dn-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; padding: 12px 20px;
  border-top: 1px solid var(--line); background: #FCFCFD;
}
.dn-foot-l, .dn-foot-r { display: flex; align-items: center; gap: 8px; }
.dn-foot-note { font-size: 11.5px; color: var(--muted); }
.dn-foot-note[hidden], .dn-link[hidden], .dn-dashed[hidden] { display: none; }

/* 轻提示 */
.dn-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 3000; padding: 10px 20px; border-radius: 999px;
  background: rgba(31, 41, 55, .94); color: #fff; font-size: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.dn-toast[hidden] { display: none; }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 640px) {
  .donate-section { padding: 48px 0; }
  .donate-box { padding: 28px 16px; }
  .donate-tiers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dn-mask { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .dn-dialog { max-height: none; }
  .dn-body { padding: 14px; }
  .dn-head { padding: 14px; }
  .dn-foot { padding: 10px 14px; }
  .dn-tiers { gap: 8px; }
  .dn-tier { padding: 10px 4px; }
  .dn-tier-amt { font-size: 18px; }
  .dn-tier-desc { display: none; }
  .dn-actions { flex-direction: column; }
  .dn-foot { flex-direction: column; align-items: stretch; }
  .dn-foot-l { justify-content: center; }
  .dn-foot-r { justify-content: space-between; }
}

/* ============================================================
   模块页「使用指南」（usage）：步骤卡 + 配图
   ============================================================ */
.usage {
  max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow);
}
.usage h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.usage ol { list-style: none; counter-reset: usage-step; padding: 0; margin: 0; display: grid; gap: 10px; }
.usage ol li {
  counter-increment: usage-step; position: relative;
  padding: 10px 14px 10px 44px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text); line-height: 1.7;
}
.usage ol li::before {
  content: counter(usage-step); position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pri), var(--pri-2)); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.usage .usage-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.usage .usage-shots figure { margin: 0; }
.usage .usage-shots img { width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.usage .usage-shots figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .usage { padding: 20px 16px; } }

/* ============================================================
   文章内提示块（notice）
   ============================================================ */
.notice {
  background: #FFFBEF; border: 1px solid #FFE1AD; border-radius: 10px;
  padding: 12px 16px; font-size: 13.5px; color: #8A5A00;
  margin: 18px 0; line-height: 1.7;
}

/* ============================================================
   产品页 通用卡片网格（features-grid / feature-card）
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; text-align: center; transition: all .2s;
}
.feature-card:hover { border-color: var(--pri); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 14px;
  background: linear-gradient(135deg, var(--pri), var(--pri-2)); color: #fff;
  font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(110,69,226,.25);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ============================================================
   下载页 自定义打赏金额（donate-custom）
   ============================================================ */
.donate-custom {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 12px 14px; border: 1px dashed var(--pri); border-radius: 12px; background: #FCFCFF;
}
.donate-custom-label { font-size: 12.5px; color: var(--muted); text-align: left; }
.donate-custom-row { display: flex; gap: 10px; align-items: stretch; }
.donate-custom-input {
  flex: 1 1 120px; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.donate-custom-input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(110,69,226,.12); }
.donate-custom-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .donate-custom-row { flex-direction: column; }
}

/* ============================================================
   帮助中心 / 反馈页（help.html）
   设计：左「反馈表单」+ 右「联系方式/贴士」双栏卡片，
   底部独立「常见问题」卡片；表单控件统一高度/圆角/聚焦态。
   ============================================================ */
.page-hero.help-hero { padding: 52px 0 40px; }
.help-hero h1 { margin-bottom: 10px; }
.help-hero .sub { margin: 0 auto; max-width: 760px; color: var(--muted); font-size: 15.5px; }
/* Hero 内的快捷锚点，便于直接跳到表单 / 联系方式 / FAQ */
.help-quick { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.help-quick a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.help-quick a:hover { color: var(--pri); border-color: var(--pri); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.help-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.help-layout {
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 24px; align-items: start; margin: 44px 0 0;
}
@media (max-width: 940px) { .help-layout { grid-template-columns: minmax(0, 1fr); } }

.help-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 30px; box-shadow: var(--shadow);
}
.help-card[id] { scroll-margin-top: 92px; }
.help-card + .help-card { margin-top: 22px; }
.help-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 18px;
}
.help-card-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--pri), var(--acc));
}

/* 卡片头：图标 + 标题 + 说明 */
.help-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.help-card-head .help-ico {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-2) 100%);
  box-shadow: 0 8px 18px rgba(110,69,226,.25);
}
.help-card-head h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.help-card-head p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* --- 反馈表单 --- */
.fb-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
.field > label em {
  font-style: normal; font-weight: 600; font-size: 12px; color: var(--pri);
  background: rgba(110,69,226,.09); border-radius: 6px; padding: 1px 7px; margin-left: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 46px;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 132px; line-height: 1.75; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B7280; }
/* 统一聚焦态：品牌紫描边 + 柔和外光圈 */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(110,69,226,.14);
}
.field-hint { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
/* 自绘下拉箭头（零外部依赖） */
.select-wrap { position: relative; display: block; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--muted); font-size: 12px; line-height: 1;
}
.select-wrap select { padding-right: 38px; cursor: pointer; }

.fb-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-actions .btn { min-width: 148px; padding: 13px 30px; }
.fb-msg { font-size: 13px; color: var(--muted); line-height: 1.6; }
.fb-msg.is-ok { color: #15803D; font-weight: 600; }
.fb-msg.is-error { color: #CF1322; font-weight: 600; }

/* --- 联系方式列表 --- */
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.contact-list li:hover { border-color: rgba(110,69,226,.35); box-shadow: var(--shadow); transform: translateY(-1px); }
.contact-list .ci {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(110,69,226,.09);
}
.contact-list .ct { min-width: 0; }
.contact-list b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-list a { font-size: 13.5px; word-break: break-all; }
.contact-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* --- 反馈小贴士 --- */
.tip-list { list-style: none; display: grid; gap: 10px; }
.tip-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.tip-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pri); font-weight: 800; }
.tip-list li b { color: var(--text); }

/* --- 常见问题 --- */
.help-faq { margin: 24px 0 60px; }
.help-faq h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--pri); }
.help-faq .faq-item { border-radius: 14px; margin-bottom: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.help-faq .faq-item:hover { border-color: rgba(110,69,226,.35); }
.help-faq .faq-item.open { border-color: rgba(110,69,226,.45); box-shadow: var(--shadow); }
.help-faq .faq-q { font-size: 15px; }
.help-faq .faq-a { line-height: 1.85; }

@media (max-width: 640px) {
  .page-hero.help-hero { padding: 40px 0 30px; }
  .help-layout { margin-top: 30px; gap: 18px; }
  .help-card { padding: 22px 18px; border-radius: 16px; }
  .help-card + .help-card { margin-top: 18px; }
  .help-card-head { gap: 12px; margin-bottom: 20px; }
  .help-card-head .help-ico { flex-basis: 42px; width: 42px; height: 42px; font-size: 19px; }
  .help-card-title, .help-card-head h2, .help-faq h2 { font-size: 18px; }
  .fb-actions .btn { width: 100%; }
  .help-faq { margin: 18px 0 44px; }
}
