/* =========================================================================
   Pchat 下载页 · 暗黑黑金主题（外链样式，移动端为主 + 手机/桌面能力对比）
   仅此一份样式，禁止再内联进页面。资源直链：/download/css/download.css
   ========================================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --surface: rgba(20, 20, 27, 0.72);
  --surface-2: rgba(28, 28, 37, 0.85);
  --line: rgba(231, 198, 106, 0.16);
  --line-strong: rgba(231, 198, 106, 0.34);
  --line-soft: rgba(255, 255, 255, 0.06);
  --gold: #e7c66a;
  --gold-bright: #f7e7a6;
  --gold-deep: #b8893a;
  --gold-grad: linear-gradient(135deg, #fbe7a6 0%, #e7c66a 42%, #c79a3e 100%);
  --text: #ecebe6;
  --text-2: #9c978c;
  --text-3: #6e6a62;
  --danger: #ff6b6b;
  --ok: #5fd49a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 740px at 50% -12%, #16120a 0%, var(--bg) 56%) fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== 背景装饰 ===== */
.bg-aurora {
  position: fixed;
  inset: -22% -20% auto -20%;
  height: 76vh;
  background:
    radial-gradient(42% 60% at 18% 18%, rgba(231, 198, 106, 0.18), transparent 70%),
    radial-gradient(42% 60% at 82% 8%, rgba(184, 137, 58, 0.16), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(-12px);
  }

  to {
    transform: translateY(22px);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 198, 106, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 198, 106, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 18%, #000 0%, transparent 82%);
  mask-image: radial-gradient(72% 62% at 50% 18%, #000 0%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(231, 198, 106, 0.6), transparent 38%, transparent 68%, rgba(231, 198, 106, 0.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 全站统一内容宽度：所有区块（顶栏/Hero/下载/亮点/对比/教程/FAQ）共用同一宽度 */
:root {
  --content-width: 1220px;
}

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

/* ===== 顶栏 ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 8, 11, 0.66);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .4px;
}

.brand-tag {
  margin-left: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 6px 18px rgba(231, 198, 106, 0.32);
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.brand-name {
  background: linear-gradient(180deg, #fff 0%, #e7c66a 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.site-nav>a,
.nav-faq-label {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, background .2s, border-color .2s;
}

.site-nav>a:hover,
.nav-faq-label:hover {
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.07);
  border-color: var(--line);
}

/* 切换到另一版本（付费版 ↔ 免费版）的入口 */
.site-nav>a.nav-alt {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(231, 198, 106, 0.09);
}

.site-nav>a.nav-alt:hover {
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.18);
}

/* 登录入口（跳 /upgrade） */
.site-nav>a.nav-login {
  color: #1a1407;
  font-weight: 800;
  background: var(--gold-grad);
  border-color: transparent;
}

.site-nav>a.nav-login:hover {
  color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 6px 18px rgba(231, 198, 106, 0.4);
}

.site-nav>a.is-active {
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.1);
  border-color: var(--line);
}

a.brand {
  cursor: pointer;
}

.dl-switch {
  margin: 22px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
}

.dl-switch a {
  color: var(--gold-bright);
  font-weight: 700;
  border-bottom: 1px dashed var(--line-strong);
}

.dl-switch a:hover {
  color: var(--gold);
}

.nav-faq {
  position: relative;
}

.nav-faq-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-faq-chevron {
  transition: transform .2s;
}

.nav-faq.is-open .nav-faq-chevron {
  transform: rotate(180deg);
}

.nav-faq-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 40;
}

.nav-faq.is-open .nav-faq-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-faq-menu a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-2);
  transition: color .15s, background .15s;
}

.nav-faq-menu a:hover {
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.08);
}

/* ===== Hero + 顶部下载 ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 52px 0 26px;
}

.hero-head {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line);
}

.hero-badge .bx {
  color: var(--gold-bright);
}

.hero-title {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #fff 0%, #f3e6bf 46%, #d9b257 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-pill {
  display: inline-block;
  margin: 22px 0 0;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 8px 26px rgba(231, 198, 106, 0.26);
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.hero-sub strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.hero-cta {
  margin: 32px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  transition: transform .14s ease, box-shadow .2s, border-color .2s, background .2s;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.cta .bx {
  font-size: 19px;
}

.cta.primary {
  color: #1a1407;
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(231, 198, 106, 0.32);
}

.cta.primary:hover {
  box-shadow: 0 16px 42px rgba(231, 198, 106, 0.46);
}

.hero-stats {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  opacity: 0;
  transition: opacity .4s ease;
}

.hero-stats.is-ready {
  opacity: 1;
}

.hero-stats b {
  color: var(--gold-bright);
  font-weight: 600;
}

.hero-stats .dot-sep {
  color: var(--line-strong);
}

/* ===== 通用区块 ===== */
section.block {
  position: relative;
  z-index: 1;
  padding: 64px 0 8px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-3);
  font-size: 14px;
}

/* ===== 六大亮点 ===== */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hl-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .14s, box-shadow .2s;
}

.hl-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hl-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: rgba(231, 198, 106, 0.16);
}

.hl-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.hl-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.hl-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ===== 手机端 vs 桌面端 对比 ===== */
.compare-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.compare-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-2);
}

.compare-table thead th.col-feature {
  color: var(--text);
}

.compare-table thead th.col-paid {
  color: #1a1407;
  background: var(--gold-grad);
  text-align: center;
}

.compare-table thead th.col-free {
  text-align: center;
}

.compare-table tbody td.cell-center {
  text-align: center;
}

.compare-table tbody tr:hover {
  background: rgba(231, 198, 106, 0.04);
}

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

.feat-name {
  font-weight: 600;
  color: var(--text);
}

.feat-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
}

.yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-bright);
}

.yes .bx {
  font-size: 18px;
}

.yes-strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  color: #1a1407;
  background: var(--gold-grad);
}

.no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.no .bx {
  font-size: 16px;
}

.compare-foot {
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--text-3);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

/* ===== 使用教程 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.step-no {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  color: #1a1407;
  background: var(--gold-grad);
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.step p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.step p:last-child {
  margin-bottom: 0;
}

.step .em {
  color: var(--gold-bright);
  font-weight: 600;
}

.step a.link {
  color: var(--gold-bright);
  border-bottom: 1px dashed var(--line-strong);
}

.step a.link:hover {
  color: var(--gold);
}

.step-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.step-note b {
  color: var(--gold-bright);
}

.subline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

.subline .bx {
  color: var(--gold);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ===== 下载区 ===== */
.download-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}

.dl-panel {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dl-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dl-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line);
}

.dl-panel-head h2,
.dl-panel-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.dl-panel-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.download-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  /* 先隐藏，待 JS 把「当前系统」排到最前并接好链接后再淡入，避免重排交错闪烁 */
  opacity: 0;
  transition: opacity .32s ease;
}

.download-group.is-ready {
  opacity: 1;
}

/* 当前系统按钮平滑移动到最前 */
.btn-cyber {
  order: 1;
}

.btn-cyber.primary {
  order: 0;
}

.btn-cyber {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s, border-color .2s, background .2s;
}

.btn-cyber img,
.btn-cyber .bx {
  flex-shrink: 0;
}

.btn-cyber .bx {
  font-size: 19px;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(231, 198, 106, 0.06);
}

.btn-cyber.primary {
  color: #1a1407;
  font-weight: 800;
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 12px 34px rgba(231, 198, 106, 0.32);
}

.btn-cyber.primary:hover {
  box-shadow: 0 16px 42px rgba(231, 198, 106, 0.46);
}

/* 主按钮图标保持原样，禁止用 filter 把图标涂黑遮挡 */

.btn-cyber .os-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .4px;
  background: rgba(26, 20, 7, 0.22);
  color: #2a1f08;
  border: 1px solid rgba(26, 20, 7, 0.18);
}

.btn-cyber:not(.primary) .os-badge {
  background: rgba(231, 198, 106, 0.14);
  color: var(--gold-bright);
  border-color: var(--line);
}

.btn-cyber.disabled {
  cursor: not-allowed;
  opacity: .4;
  pointer-events: none;
}

.dl-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
}

/* 免费版页：升级付费版 CTA 卡片 */
.dl-panel.upsell {
  display: flex;
  flex-direction: column;
}

.upsell-list {
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.upsell-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
}

.upsell-list li .bx {
  color: var(--gold-bright);
  font-size: 18px;
  flex-shrink: 0;
}

.upsell .cta {
  margin-top: auto;
}

.dl-meta b {
  color: var(--gold-bright);
  font-weight: 600;
}

#release-notes-wrap {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
}

#release-notes-wrap .rn-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

#release-notes-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ===== 更新历史 / 时间线 ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 40%, rgba(184, 137, 58, 0.08) 100%);
}

.tl-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--gold-deep);
}

.tl-item.is-latest .tl-dot {
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(231, 198, 106, 0.7);
}

.tl-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s;
}

.tl-card:hover {
  border-color: var(--line);
}

.tl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tl-ver {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  color: var(--gold-bright);
}

.tl-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #1a1407;
  background: var(--gold-grad);
}

.tl-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.tl-notes {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ===== 教程（公网部署 / iOS 自签）· CSS 手绘步骤 ===== */
.tut-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.tut-step {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .14s, box-shadow .2s;
}

.tut-step:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.tut-step:nth-child(even) {
  grid-template-columns: 1fr 250px;
}

.tut-step:nth-child(even) .tut-art {
  order: 2;
}

.tut-step-no {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--gold);
  text-transform: uppercase;
}

.tut-step-no b {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #1a1407;
  background: var(--gold-grad);
  font-size: 15px;
}

.tut-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.tut-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.tut-body .em {
  color: var(--gold-bright);
  font-weight: 600;
}

.tut-body a.link {
  color: var(--gold-bright);
  border-bottom: 1px dashed var(--line-strong);
}

.tut-body a.link:hover {
  color: var(--gold);
}

.tut-cmd {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gold-bright);
  white-space: pre-wrap;
  word-break: break-all;
}

.tut-opt {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.tut-opt .bx {
  color: var(--gold);
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* 插画通用画框 */
.tut-art {
  position: relative;
  height: 176px;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 18%, rgba(231, 198, 106, 0.12), rgba(0, 0, 0, 0.28));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* 终端 */
.art-terminal .scr {
  width: 82%;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.art-terminal .bar {
  display: flex;
  gap: 5px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.04);
}

.art-terminal .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.art-terminal .bar i:nth-child(1) {
  background: #ff5f56;
}

.art-terminal .bar i:nth-child(2) {
  background: #ffbd2e;
}

.art-terminal .bar i:nth-child(3) {
  background: #27c93f;
}

.art-terminal .ln {
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--gold-bright);
}

.art-terminal .cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 2px;
  animation: tut-blink 1s steps(1) infinite;
}

@keyframes tut-blink {
  50% {
    opacity: 0;
  }
}

/* 桌面端窗口 */
.art-window .win {
  width: 84%;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.art-window .top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.art-window .top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.art-window .top span {
  margin-left: 6px;
  font-size: 10px;
  color: var(--text-3);
}

.art-window .path {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px 6px;
  font-size: 11px;
  color: var(--gold-bright);
}

.art-window .path .bx {
  color: var(--gold);
  font-size: 14px;
}

.art-window .paste {
  margin: 4px 12px 12px;
  height: 36px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--text-3);
  background: rgba(231, 198, 106, 0.04);
}

/* 手机 */
.art-phone .ph {
  width: 96px;
  height: 152px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow);
}

.art-phone .ph::before {
  content: "";
  position: absolute;
  top: 9px;
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-strong);
}

.art-phone .ph .bx {
  font-size: 48px;
  color: var(--gold-bright);
}

.art-phone .scan {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: tut-scan 2.2s ease-in-out infinite;
}

@keyframes tut-scan {

  0%,
  100% {
    top: 34px;
  }

  50% {
    top: 118px;
  }
}

.art-phone.art-bob .ph .bx {
  animation: tut-bob 1.6s ease-in-out infinite;
}

@keyframes tut-bob {
  50% {
    transform: translateY(7px);
  }
}

/* 证书 */
.art-cert .badge {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(231, 198, 106, 0.18), transparent 72%);
  border: 2px solid var(--gold-deep);
}

.art-cert .badge .bx {
  font-size: 56px;
  color: var(--gold-bright);
}

.art-cert .badge::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: tut-spin 14s linear infinite;
}

@keyframes tut-spin {
  to {
    transform: rotate(360deg);
  }
}

.tut-tip {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(231, 198, 106, 0.06);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.tut-tip b {
  color: var(--gold-bright);
}

.tut-tip+.tut-tip {
  margin-top: 12px;
}

/* 最重要的红色警告条 */
.tut-warn {
  max-width: 980px;
  margin: 0 auto 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(255, 107, 107, 0.05));
  border: 1px solid rgba(255, 107, 107, 0.55);
  box-shadow: 0 14px 36px rgba(255, 107, 107, 0.14);
}

.tut-warn .warn-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #c0392b);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.45);
  animation: warn-pulse 1.8s ease-in-out infinite;
}

@keyframes warn-pulse {
  50% {
    transform: scale(1.08);
  }
}

.tut-warn .warn-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #ff8a8a;
}

.tut-warn .warn-body {
  flex: 1;
}

.tut-warn .warn-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text);
}

.tut-warn .warn-body b {
  color: #ff8a8a;
}

@media (max-width: 720px) {

  .tut-step,
  .tut-step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .tut-step:nth-child(even) .tut-art {
    order: 0;
  }
}

/* ===== FAQ ===== */
.faq-wrapper {
  width: 100%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  position: relative;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s;
}

.faq-item:hover {
  border-color: var(--line);
}

.faq-item-title {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--gold-bright);
}

.faq-item-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.faq-block-title {
  font-weight: 700;
  color: var(--text) !important;
  margin-top: 18px !important;
}

.faq-em {
  color: var(--gold-bright);
  font-weight: 600;
}

.faq-steps {
  margin: 6px 0 14px;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.faq-steps li {
  margin-bottom: 6px;
}

.faq-code {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gold-bright);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.faq-inline-code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line-soft);
  color: var(--gold-bright);
}

/* ===== 页脚 ===== */
footer.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  padding: 30px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: 13px;
}

/* ===== macOS 下载弹窗 ===== */
.mac-dl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .2s;
}

/* 关键修复：hidden 时必须真正隐藏；否则全屏遮罩(display:grid + opacity:0)会吞掉整页点击 */
.mac-dl-modal-backdrop[hidden] {
  display: none !important;
}

.mac-dl-modal-backdrop.is-open {
  opacity: 1;
}

.mac-dl-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow: auto;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(.98);
  transition: transform .2s;
}

.mac-dl-modal-backdrop.is-open .mac-dl-modal {
  transform: translateY(0) scale(1);
}

.mac-dl-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s;
}

.mac-dl-close:hover {
  color: var(--text);
}

.mac-dl-modal h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mac-dl-modal p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.mac-dl-hint-title {
  margin-top: 16px !important;
}

.mac-dl-path {
  font-size: 12px !important;
  color: var(--text-3) !important;
}

.mac-dl-path #mac-dl-app-path {
  font-family: var(--mono);
  color: var(--gold-bright);
}

.mac-dl-cmd {
  margin: 6px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gold-bright);
  white-space: pre-wrap;
  word-break: break-all;
}

.mac-dl-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.mac-dl-btn {
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: box-shadow .2s, transform .12s;
}

.mac-dl-btn-primary {
  color: #1a1407;
  background: var(--gold-grad);
  box-shadow: 0 8px 24px rgba(231, 198, 106, 0.3);
}

.mac-dl-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(231, 198, 106, 0.45);
}

.mac-dl-btn-primary:active {
  transform: translateY(1px);
}

.mac-dl-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 95;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .22s, transform .22s;
}

.mac-dl-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #1a1407;
  background: var(--gold-grad);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(231, 198, 106, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 14px 36px rgba(231, 198, 106, 0.55);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .download-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== 今日免费试用码弹窗（复用 .mac-dl-modal 外壳） ===== */
.trial-modal {
  max-width: 460px;
}

.trial-modal-sub {
  font-size: 13px !important;
}

.trial-modal-sub b {
  color: var(--gold-bright);
}

.trial-stat {
  margin: 2px 0 12px;
  font-size: 12.5px;
  color: var(--text-3);
}

.trial-stat b {
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.trial-code-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 44vh;
  overflow: auto;
  margin: 2px 0 4px;
}

.trial-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-soft);
}

.trial-code.is-used {
  opacity: 0.55;
}

.trial-code-text {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--gold-bright);
  word-break: break-all;
}

.trial-code.is-used .trial-code-text {
  color: var(--text-3);
  text-decoration: line-through;
}

.trial-code-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #1a1407;
  background: var(--gold-grad);
  white-space: nowrap;
}

.trial-code-badge.is-used {
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.08);
}

.trial-code-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--line-strong);
  transition: background .15s, color .15s, border-color .15s;
}

.trial-code-copy:hover {
  background: var(--gold-grad);
  color: #1a1407;
  border-color: transparent;
}

.trial-code-copy.is-disabled {
  color: var(--text-3);
  border-color: var(--line-soft);
  cursor: default;
  font-weight: 600;
}

.trial-modal-foot {
  margin: 12px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--text-3) !important;
}

/* 右侧悬浮「领激活码」按钮（高亮金色，复用 .gd-tab 外形，常态即金底以吸引点击） */
.gd-trial {
  background: var(--gold-grad);
  color: #1a1407;
  border-color: transparent;
}

.gd-trial:hover {
  filter: brightness(1.06);
  transform: translateX(-2px);
}

/* 弹窗「今日不再提醒」（小按钮，仅加金色背景使其可见，不撑高弹窗） */
.trial-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.trial-dismiss-btn {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line-strong);
  transition: background .15s, color .15s, border-color .15s;
}

.trial-dismiss-btn:hover {
  color: #1a1407;
  background: var(--gold-grad);
  border-color: transparent;
}

/* =========================================================================
   手机端适配补全（此前缺失）：
   1) 顶栏汉堡按钮样式（之前无任何 CSS，导致按钮裸露、导航在窄屏挤成竖排单字）
   2) 右侧悬浮 dock（.group-dock/.gd-* 之前无 CSS，整块塌进正文流堆在页尾）
   3) ≤900 顶栏折叠为下拉抽屉；≤600 正文排版细化
   ========================================================================= */

/* ----- 顶栏汉堡按钮：桌面隐藏，窄屏由媒体查询显示 ----- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 0;
  border-radius: 11px;
  font-size: 24px;
  color: var(--gold-bright);
  background: rgba(231, 198, 106, 0.08);
  border: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, transform .12s;
}

.nav-toggle:hover {
  background: rgba(231, 198, 106, 0.16);
  border-color: var(--line-strong);
}

.nav-toggle:active {
  transform: scale(.94);
}

/* ----- 右侧悬浮 dock：固定定位，脱离正文流 ----- */
.group-dock {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.gd-item {
  position: relative;
}

.gd-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  padding: 10px 4px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  color: var(--gold-bright);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .15s, box-shadow .2s, filter .15s;
}

.gd-tab .bx {
  font-size: 22px;
  line-height: 1;
}

.gd-tab:hover {
  transform: translateX(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}

.gd-join {
  text-decoration: none;
}

/* 「领激活码」高亮金底：本规则需置于 .gd-tab 之后以覆盖默认底色 */
.gd-trial {
  background: var(--gold-grad);
  color: #1a1407;
  border-color: transparent;
}

.gd-trial:hover {
  filter: brightness(1.06);
  transform: translateX(-3px);
}

/* 扫码加群弹出卡：默认隐藏，点击「扫码加群」展开于 dock 左侧 */
.gd-pop {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: 208px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.gd-qr.is-open .gd-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.gd-pop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.gd-pop-qr {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.gd-pop-sub {
  font-size: 12px;
  color: var(--text-2);
  margin: 10px 0;
}

.gd-pop-sub b {
  color: var(--gold-bright);
}

.gd-pop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1407;
  background: var(--gold-grad);
  text-decoration: none;
}

/* ----- ≤900：顶栏折叠为汉堡下拉抽屉 ----- */
@media (max-width: 900px) {
  .header-inner {
    position: relative;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav>a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* ----- ≤600：手机端正文排版细化 ----- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 11px 14px;
  }

  .hero {
    padding: 30px 0 16px;
  }

  .hero-sub {
    font-size: 14.5px;
  }

  section.block {
    padding: 44px 0 4px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  /* 六大亮点：窄屏单列，双列在 ~360px 过窄 */
  .hl-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hl-card {
    padding: 20px 18px;
  }

  /* 对比表：收紧内边距/字号，三列在窄屏不溢出 */
  .compare-card {
    border-radius: 14px;
  }

  .compare-table {
    font-size: 13px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 9px;
  }

  .compare-table thead th {
    font-size: 11.5px;
  }

  .feat-name {
    font-size: 13px;
  }

  .feat-desc {
    font-size: 11px;
  }

  /* 悬浮 dock：移到右下、整体缩小，避免遮挡正文与返回顶部 */
  .group-dock {
    top: auto;
    bottom: 80px;
    right: 10px;
    transform: none;
    gap: 8px;
  }

  .gd-tab {
    width: 50px;
    padding: 8px 3px;
    font-size: 10px;
    border-radius: 13px;
  }

  .gd-tab .bx {
    font-size: 19px;
  }

  .gd-pop {
    width: 184px;
  }

  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .mac-dl-modal-backdrop {
    padding: 16px;
  }

  .mac-dl-modal {
    padding: 24px 18px 18px;
  }
}

/* =========================================================================
   常用命令 / 复制按钮样式补全（network.html 等教程页此前完全缺失 .cmd-* 样式，
   「复制」按钮与命令卡片裸露无样式；HTML 与 download.js 逻辑均在，只缺 CSS）
   ========================================================================= */

/* Linux / Windows 切换标签 */
.cmd-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.cmd-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}

.cmd-tab .bx {
  font-size: 17px;
}

.cmd-tab:hover {
  color: var(--gold-bright);
}

.cmd-tab.is-active {
  color: #1a1407;
  background: var(--gold-grad);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(231, 198, 106, 0.28);
}

/* 命令卡片网格；windows 面板带 hidden 属性，必须保留 hidden 语义 */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cmd-grid[hidden] {
  display: none;
}

.cmd-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .2s;
}

.cmd-card:hover {
  border-color: var(--line);
}

.cmd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cmd-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cmd-name .bx {
  flex-shrink: 0;
  font-size: 17px;
  color: var(--gold);
}

/* 「复制」按钮（卡片内静态 + JS 注入裸 pre 的浮动版共用此外观） */
.cmd-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--line-strong);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}

.cmd-copy .bx {
  font-size: 15px;
}

.cmd-copy:hover {
  color: #1a1407;
  background: var(--gold-grad);
  border-color: transparent;
}

.cmd-copy:active {
  transform: translateY(1px);
}

/* 命令代码块 */
.cmd-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gold-bright);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.cmd-desc {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.cmd-desc b {
  color: var(--text-2);
}

/* 描述 / 提示里的内联 <code>（此前无任何样式） */
.cmd-desc code,
.tut-tip code,
.tut-body code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(231, 198, 106, 0.1);
  border: 1px solid var(--line-soft);
  color: var(--gold-bright);
  word-break: break-all;
}

/* JS 注入到裸 pre.tut-cmd / pre.faq-code 右上角的浮动「复制」按钮 */
pre.has-copy {
  position: relative;
  padding-right: 86px;
}

.cmd-copy-float {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* 窄屏：命令卡片单列、切换标签占满 */
@media (max-width: 600px) {
  .cmd-grid {
    grid-template-columns: 1fr;
  }

  .cmd-tabs {
    display: flex;
  }

  .cmd-tab {
    flex: 1;
    justify-content: center;
  }
}
