/* ==========================================================================
   放假空间 · 设计系统
   --------------------------------------------------------------------------
   设计 token 全部集中在 :root，深色为默认皮肤，html[data-theme="light"] 覆盖。
   组件只消费 token，不写死颜色 —— 所以换肤不需要改任何组件。
   ========================================================================== */

:root {
  /* ---- 版式尺度 ---- */
  --max: 1200px;
  --radius-xs: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* ---- 品牌 ---- */
  --brand: #6b8afd;
  --brand-dark: #4c6ef5;
  --brand-soft: rgba(107, 138, 253, .13);
  --brand-2: #a78bfa;
  --brand-3: #22d3ee;
  --grad: linear-gradient(135deg, #6b8afd 0%, #9b7cfb 50%, #22d3ee 100%);
  --grad-line: linear-gradient(90deg, #6b8afd, #a78bfa 50%, #22d3ee);

  /* ---- 中性色（深色皮肤） ---- */
  --bg: #08090d;
  --bg-2: #0b0d13;
  --bg-3: #14161f;
  --surface: #101219;
  --surface-2: #171a24;
  --surface-3: #1e2230;
  --glass: rgba(16, 18, 25, .72);

  --text: #f0f2f8;
  --text-2: #a8b0c2;
  --text-3: #6e7789;

  --border: rgba(255, 255, 255, .075);
  --border-2: rgba(255, 255, 255, .15);

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(107, 138, 253, .32), 0 16px 44px -16px rgba(107, 138, 253, .5);

  --ok: #34d399;  --ok-bg: rgba(52, 211, 153, .12);
  --err: #f87171; --err-bg: rgba(248, 113, 113, .12);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .12);

  --header-h: 64px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f4f5f9;
  --bg-3: #eceef5;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef1f8;
  --glass: rgba(255, 255, 255, .78);

  --text: #0e1119;
  --text-2: #4c5468;
  --text-3: #878fa3;

  --border: rgba(14, 17, 25, .08);
  --border-2: rgba(14, 17, 25, .16);

  --brand: #3b5bf5;
  --brand-dark: #2a45d8;
  --brand-soft: rgba(59, 91, 245, .08);

  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -16px rgba(16, 24, 40, .22);
  --shadow-lg: 0 26px 60px -22px rgba(16, 24, 40, .26);
  --glow: 0 0 0 1px rgba(59, 91, 245, .28), 0 16px 40px -16px rgba(59, 91, 245, .38);

  --ok: #059669;  --ok-bg: rgba(5, 150, 105, .09);
  --err: #dc2626; --err-bg: rgba(220, 38, 38, .08);
  --warn: #b45309; --warn-bg: rgba(180, 83, 9, .09);
  color-scheme: light;
}

/* ---------------------------------------------------------------- 基础 */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}

a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

::selection { background: rgba(107, 138, 253, .3); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 背景氛围层：网格 + 光晕（纯 CSS，无图片请求） */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 0%, transparent 72%);
}
.bg-fx::after {
  content: "";
  position: absolute;
  left: 50%; top: -420px;
  width: 1400px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(107, 138, 253, .34), transparent 72%) 28% 50% / 660px 500px no-repeat,
    radial-gradient(closest-side, rgba(167, 139, 250, .26), transparent 72%) 64% 32% / 580px 440px no-repeat,
    radial-gradient(closest-side, rgba(34, 211, 238, .18), transparent 72%) 50% 80% / 540px 380px no-repeat;
}
html[data-theme="light"] .bg-fx::before {
  background-image:
    linear-gradient(rgba(14, 17, 25, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 17, 25, .045) 1px, transparent 1px);
}
html[data-theme="light"] .bg-fx::after { opacity: .55; }

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(107, 138, 253, .8);
  flex-shrink: 0;
}
.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: .3px;
  padding-left: 9px;
  margin-left: 1px;
  border-left: 1px solid var(--border-2);
  line-height: 1.2;
}

.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface-2); }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
}

.h-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.icon-btn svg { display: block; }
html[data-theme="dark"] .icon-btn .i-sun,
html:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
html[data-theme="dark"] .icon-btn .i-moon,
html:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
html[data-theme="light"] .icon-btn .i-sun { display: none; }
html[data-theme="light"] .icon-btn .i-moon { display: block; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 68px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  margin-bottom: 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
  box-shadow: var(--shadow);
}
.hero-badge .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}
.hero-badge b {
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.hero h1 .g {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin: 0 auto 30px;
  max-width: 640px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}

/* 首屏搜索（带结果面板） */
.hero-search { position: relative; max-width: 620px; margin: 0 auto; }
.hs-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-search.open .hs-field,
.hs-field:focus-within {
  border-color: rgba(107, 138, 253, .6);
  box-shadow: var(--glow);
}
.hs-field .hs-ico { color: var(--text-3); flex-shrink: 0; }
.hs-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  padding: 11px 0;
}
.hs-field input::placeholder { color: var(--text-3); }
.hs-field input::-webkit-search-cancel-button { display: none; }
.hs-kbd {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-3);
}
.hs-go {
  flex-shrink: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.hs-go:hover { filter: brightness(1.08); }
.hs-go:active { transform: translateY(1px); }

.hs-panel {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 10px);
  z-index: 40;
  max-height: 388px;
  overflow-y: auto;
  padding: 8px;
  text-align: left;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: hsIn .16s var(--ease);
}
@keyframes hsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hs-label {
  padding: 8px 10px 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-3);
}
.hs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  color: var(--text);
}
.hs-item:hover,
.hs-item.act { background: var(--surface-2); color: var(--text); }
.hs-item .hs-ic {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.hs-item .hs-tx { min-width: 0; flex: 1; }
.hs-item .hs-n {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-item .hs-n em { font-style: normal; color: var(--brand); }
.hs-item .hs-d {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-item .hs-k {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
}
.hs-empty { padding: 22px 12px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.hs-more {
  display: block;
  margin: 6px 4px 2px;
  padding: 8px;
  text-align: center;
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
}

.hot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}
.hot-row a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-2);
  transition: all .15s var(--ease);
}
.hot-row a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* 数据条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 700px;
  margin: 40px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-strip > div {
  padding: 18px 10px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  border-left: 1px solid var(--border);
}
.stat-strip > div:first-child { border-left: 0; }
.stat-strip b {
  display: block;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--text);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- 区块 */
main { padding: 48px 0 72px; }
.section { margin-bottom: 56px; }
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head .sub {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
  font-weight: 400;
}
.section-head .more {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  transition: color .15s var(--ease), gap .15s var(--ease);
}
.section-head .more:hover { color: var(--brand); gap: 8px; }

/* ---------------------------------------------------------------- 卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad-line);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.5px;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover .icon {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(107, 138, 253, .8);
}
.card-head { min-width: 0; }
.card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand); }
.card .ver { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.card .desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.card-foot .dl {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  transition: transform .15s var(--ease);
}
.card:hover .card-foot .dl { transform: translateX(2px); }

.tag {
  display: inline-block;
  padding: 1.5px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.7;
}
.tag.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

.badge-live {
  display: inline-block;
  padding: 1.5px 9px;
  border-radius: var(--radius-full);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 分类墙 */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cat-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.cat-item::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0;
  filter: blur(28px);
  transition: opacity .3s var(--ease);
}
.cat-item:hover {
  border-color: var(--border-2);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-item:hover::after { opacity: .18; }
.cat-ico {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--brand);
}
.cat-tx { position: relative; min-width: 0; }
.cat-item b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 2px; }
.cat-item span { font-size: 12.5px; color: var(--text-3); }
.cat-go {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.cat-item:hover .cat-go { color: var(--brand); transform: translateX(3px); }

/* ---------------------------------------------------------------- 卖点条 */
.usp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  overflow: hidden;
}
.usp > div {
  padding: 26px 24px;
  background: var(--surface);
  transition: background .2s var(--ease);
}
.usp > div:hover { background: var(--surface-2); }
.usp-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid var(--border);
  color: var(--brand);
}
.usp h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.usp p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }

/* ---------------------------------------------------------------- 面包屑 */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-3);
}
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; color: var(--text-3); opacity: .6; }

/* ---------------------------------------------------------------- 详情页 */
.detail-head {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.detail-head::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad-line);
}
.detail-head .icon { width: 62px; height: 62px; font-size: 25px; border-radius: var(--radius-lg); }
.detail-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.6px;
}
.detail-head .sub { margin: 0; color: var(--text-2); font-size: 14.5px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 28px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-2);
}
.specs b { color: var(--text-3); font-weight: 400; margin-right: 6px; }

.panel {
  padding: 22px 26px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.panel > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.panel > h2::before {
  content: "";
  width: 3px; height: 16px;
  border-radius: 2px;
  background: var(--grad-line);
}
.panel p { margin: 0 0 12px; color: var(--text-2); }
.panel p:last-child { margin-bottom: 0; }
.panel .sub { color: var(--text-2); font-size: 14px; }

.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat li { position: relative; padding-left: 24px; color: var(--text-2); font-size: 14px; }
.feat li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------------------------------------------------------------- 下载按钮 */
.dl-list { display: grid; gap: 11px; }
.dl-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.dl-btn:hover {
  border-color: rgba(107, 138, 253, .55);
  background: var(--brand-soft);
  color: var(--text);
  transform: translateX(2px);
}
.dl-btn .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px var(--bg-3); }
.dl-btn .nm { font-weight: 650; font-size: 14.5px; }
.dl-btn .cd { font-size: 12.5px; color: var(--text-3); }
.dl-btn .go {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.dl-btn .inpack {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-2);
}
.dl-btn .inpack::before { content: "↳ "; color: var(--brand); }
.dl-btn .cd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 1.5px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: color .15s var(--ease);
}
.dl-btn .cd code:hover { color: var(--brand); }

.tip {
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}
.tip b { color: var(--text-2); font-weight: 600; }

/* ---------------------------------------------------------------- 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-bar a {
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  transition: all .15s var(--ease);
}
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.on {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 16px -8px rgba(107, 138, 253, .8);
}

.empty { padding: 56px 0; text-align: center; color: var(--text-3); font-size: 14px; }
.dl-list .empty { padding: 6px 0 2px; text-align: left; }
.netdisk-todo {
  margin: 2px 0 0;
  padding: 9px 15px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--text-3);
}
.netdisk-todo::before { content: "◌ "; }

/* ---------------------------------------------------------------- 关于页 */
.prose h2 {
  margin: 30px 0 11px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 14.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 5px; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0 30px;
  font-size: 13px;
  color: var(--text-3);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px 28px;
  padding-bottom: 30px;
}
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand p { margin: 0; max-width: 300px; line-height: 1.75; color: var(--text-3); }
.foot-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: .2px;
}
.foot-col a { display: block; padding: 4px 0; color: var(--text-3); }
.foot-col a:hover { color: var(--brand); }
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}
.foot-bar .sp { margin-left: auto; }

/* ================================================================ 在线工具 */
.tool-shell {
  padding: 22px 24px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.tool-shell > h2 { margin: 0 0 16px; font-size: 16.5px; font-weight: 700; }

.dropzone {
  padding: 34px 20px;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.dropzone:hover, .dropzone.over {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone .dz-t { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.dropzone .dz-s { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--text-3); }

.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  margin: 17px 0 0;
}
.tool-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.tool-row select, .tin {
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tool-row select:focus, .tin:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.tool-row select option { background: var(--surface); color: var(--text); }
.tin { flex: 1 1 320px; min-width: 200px; }
input[type="range"] { width: 120px; accent-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(107, 138, 253, .9);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.tool-msg { margin-top: 13px; font-size: 13px; line-height: 1.7; }
.tool-msg.on { padding: 11px 15px; border-radius: var(--radius-xs); }
.tool-msg.err { background: var(--err-bg); color: var(--err); }
.tool-msg.ok { background: var(--ok-bg); color: var(--ok); }

.filelist { display: grid; gap: 10px; margin-top: 17px; }
.frow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 13px;
}
.frow img {
  width: 44px; height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
}
.frow .fmeta { min-width: 0; flex: 1; }
.frow .fname {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frow .fsize { margin-top: 1px; font-size: 12px; color: var(--text-3); }
.frow .fsize .down { color: var(--ok); }
.frow .fsize .up { color: var(--warn); }
.frow .btn { flex-shrink: 0; padding: 6px 13px; }

.tool-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.68;
  resize: vertical;
  outline: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.tool-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.tsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.tscell {
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color .15s var(--ease);
}
.tscell:hover { border-color: var(--border-2); }
.tscell b { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.tscell span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.tscell span:hover { color: var(--brand); }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: h; }
.howto li {
  position: relative;
  padding-left: 36px;
  counter-increment: h;
  color: var(--text-2);
  font-size: 14px;
}
.howto li::before {
  content: counter(h);
  position: absolute;
  left: 0; top: 2px;
  width: 23px; height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.faq { margin: 0; }
.faq details { padding: 13px 0; border-bottom: 1px solid var(--border); }
.faq details:last-child { padding-bottom: 0; border-bottom: 0; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  width: 15px;
  flex-shrink: 0;
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq .fa { margin: 9px 0 2px 24px; font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .logo-sub { display: none; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 11px; font-size: 13.5px; white-space: nowrap; }
  .nav a.on::after { left: 11px; right: 11px; }
  .site-header .wrap { height: auto; padding: 12px 16px 0; flex-wrap: wrap; }
  .h-actions { margin-left: auto; padding-bottom: 8px; }

  .hero { padding: 40px 0 36px; }
  .hero h1 { letter-spacing: -.6px; }
  .hero-sub { font-size: 14.5px; }
  .hs-field { padding: 5px 6px 5px 14px; }
  .hs-kbd { display: none; }
  .hs-go { padding: 10px 16px; font-size: 13.5px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat-strip b { font-size: 22px; }

  main { padding: 32px 0 52px; }
  .section { margin-bottom: 40px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .section-head h2 { font-size: 18px; }
  .section-head .more { width: 100%; margin-left: 0; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-head { flex-direction: column; gap: 14px; padding: 20px; }
  .panel { padding: 18px 18px; }
  .tool-shell { padding: 17px 16px 19px; }
  .tool-row { gap: 10px 12px; }
  .tool-row label { width: 100%; justify-content: space-between; }
  .frow { flex-wrap: wrap; }
  .tsgrid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
}

@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印：去掉装饰层 */
@media print {
  .bg-fx, .site-header, .site-footer, .hs-panel { display: none !important; }
  body { background: #fff; color: #000; }
}
