/* ============================================================
   望窗AI集 · WANGCHUANG AI INDEX — Design System
   母题：窗格 / 深空 / 电光青
   ============================================================ */

:root {
  /* 底色 */
  --bg:        #06080F;
  --bg-soft:   #090D16;
  --surface:   #0E1420;
  --surface-2: #131A28;
  --surface-3: #1A2233;

  /* 线 */
  --line:   rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .24);

  /* 字 */
  --text:   #E9EDF6;
  --text-2: #98A3B8;
  --text-3: #77849B;   /* 4.6:1 @ --surface，小字号正文可读下限 */

  /* 品牌 */
  --brand:   #22E3B4;
  --brand-d: #0FBB90;
  --violet:  #8B6BFF;
  --orange:  #FF7A4D;
  --gold:    #FFD166;

  --radius:   14px;
  --radius-s: 10px;
  --radius-l: 22px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans CN",
          -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Menlo", monospace;

  --maxw: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

/* [hidden] 必须压得住 .btn 之类的 display 声明 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 全局氛围：网格 + 双色光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -8%,  rgba(34, 227, 180, .10), transparent 62%),
    radial-gradient(760px 480px at 88% 4%,   rgba(139, 107, 255, .10), transparent 60%),
    radial-gradient(1100px 620px at 50% 108%, rgba(34, 227, 180, .05), transparent 66%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 20%, transparent 85%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* 键盘焦点：只在键盘操作时出现，不影响鼠标观感 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ============================ 顶部导航 ============================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 8, 15, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }

/* 品牌：2x2 窗格 logo */
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px; position: relative;
  background: linear-gradient(140deg, var(--brand) 0%, #17b9d8 55%, var(--violet) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(34,227,180,.28);
  overflow: hidden;
}
.logo-mark::before,
.logo-mark::after {
  content: ""; position: absolute; background: rgba(6,8,15,.72);
}
.logo-mark::before { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); }
.logo-mark::after  { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.logo-txt { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.logo-txt em { font-style: normal; color: var(--brand); }
.logo-en {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.6px;
  color: var(--text-3); display: block; margin-top: -3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; color: var(--text-2); padding: 8px 14px;
  border-radius: 8px; transition: all .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.on { color: var(--brand); background: rgba(34,227,180,.09); }

.hdr-sp { flex: 1; }

.hdr-search {
  display: flex; align-items: center; gap: 8px;
  width: 210px; height: 38px; padding: 0 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line); border-radius: 10px;
  transition: all .2s var(--ease);
}
.hdr-search:focus-within { border-color: rgba(34,227,180,.5); background: rgba(34,227,180,.05); }
.hdr-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px;
}
.hdr-search input::placeholder { color: var(--text-3); }
.hdr-search svg { flex-shrink: 0; opacity: .55; }

/* ---- 移动端菜单：≤860px 替代隐藏的 .nav ---- */
.nav-tog {
  display: none; width: 38px; height: 38px; padding: 0 9px; flex-shrink: 0;
  flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-tog:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .08); }
.nav-tog span {
  display: block; width: 100%; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform .22s var(--ease), opacity .16s var(--ease);
}
.nav-tog[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-tog[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-tog[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mnav {
  position: fixed; left: 0; right: 0; top: 68px; z-index: 58;
  padding: 8px 20px 22px;
  background: rgba(8, 12, 20, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 26px 52px rgba(0, 0, 0, .55);
  animation: mnavIn .2s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav-nav { display: flex; flex-direction: column; }
.mnav-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mnav-nav a span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.8px; color: var(--text-3);
}
.mnav-nav a[aria-current="page"] { color: var(--brand); }
.mnav-search { width: 100%; height: 42px; margin-top: 16px; }
.mnav-submit { width: 100%; justify-content: center; margin-top: 12px; }
@keyframes mnavIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .2s var(--ease);
}
.btn-p {
  background: linear-gradient(120deg, var(--brand), #17c8d8);
  color: #04140F;
  box-shadow: 0 6px 20px rgba(34,227,180,.24);
}
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(34,227,180,.34); }
.btn-g {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text);
}
.btn-g:hover { border-color: var(--line-3); background: rgba(255,255,255,.09); }

/* ============================ Hero ============================ */
.hero { position: relative; padding: 76px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(34,227,180,.08); border: 1px solid rgba(34,227,180,.26);
  font-size: 12.5px; color: var(--brand); letter-spacing: .2px;
}
.badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(34,227,180,.16); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,227,180,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(34,227,180,.03); }
}

h1 {
  font-size: 56px; line-height: 1.16; font-weight: 800;
  letter-spacing: -1.2px; margin: 22px 0 20px;
}
h1 .hl {
  background: linear-gradient(100deg, var(--brand) 0%, #5FE0F0 42%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 17px; color: var(--text-2); max-width: 500px; line-height: 1.75; }

/* 大搜索 */
.bigsearch {
  display: flex; align-items: center; gap: 12px; margin: 32px 0 18px;
  padding: 9px 9px 9px 20px; max-width: 560px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); border-radius: 16px;
  transition: all .22s var(--ease);
}
.bigsearch:focus-within {
  border-color: rgba(34,227,180,.48);
  box-shadow: 0 0 0 4px rgba(34,227,180,.07);
  background: rgba(34,227,180,.035);
}
.bigsearch input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 15.5px;
}
.bigsearch input::placeholder { color: var(--text-3); }
.kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px;
}

.tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.tags span { font-size: 12.5px; color: var(--text-3); margin-right: 2px; }
.tag {
  font-size: 12.5px; color: var(--text-2); padding: 5px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); transition: all .18s var(--ease);
}
.tag:hover { color: var(--brand); border-color: rgba(34,227,180,.4); background: rgba(34,227,180,.07); }

/* Hero 右侧：窗 */
.win {
  position: relative; aspect-ratio: 1 / .92; border-radius: var(--radius-l);
  border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(560px 380px at 70% 12%, rgba(139,107,255,.24), transparent 62%),
    linear-gradient(165deg, #101827 0%, #0A0F1A 62%, #080C14 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
/* 窗格十字 */
.win::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.13) 1.5px, transparent 1.5px) center / 100% 50% no-repeat,
    linear-gradient(90deg, rgba(255,255,255,.13) 1.5px, transparent 1.5px) center / 50% 100% no-repeat;
  mix-blend-mode: screen;
}
/* 内网格 */
.win::after {
  content: ""; position: absolute; inset: 1px; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .65;
}
.win-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 4;
  display: flex; align-items: center; gap: 6px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,20,.72); backdrop-filter: blur(8px);
}
.win-dot { width: 9px; height: 9px; border-radius: 50%; }
.win-bar span {
  margin-left: 8px; font-family: var(--mono); font-size: 10.5px;
  color: var(--text-3); letter-spacing: .6px;
}
.win-body { position: absolute; inset: 40px 0 0 0; z-index: 2; padding: 22px; }
.win-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; height: 100%; }
.win-cell {
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.win-cell:hover { transform: translateY(-3px); }
.win-ic {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #04140F;
}
.win-cell b { font-size: 12.5px; font-weight: 600; }
.win-cell p { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.win-cell .spark {
  margin-top: auto; height: 3px; border-radius: 2px; opacity: .5;
}

/* ============================ 通用区块 ============================ */
.sec { padding: 74px 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.eyebrow {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.4px; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
h2 { font-size: 34px; font-weight: 800; letter-spacing: -.6px; line-height: 1.25; }
.sec-sub { color: var(--text-2); font-size: 15px; margin-top: 9px; max-width: 560px; }
.more { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .18s; }
.more:hover { color: var(--brand); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); }

/* ============================ 焦点推荐 ============================ */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 236px; padding: 28px; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.fcard:hover { transform: translateY(-4px); border-color: var(--line-3); }
.fcard .art { position: absolute; inset: 0; z-index: 0; }
.fcard.a .art { background:
  radial-gradient(420px 260px at 82% 8%, rgba(34,227,180,.34), transparent 64%),
  radial-gradient(320px 240px at 12% 96%, rgba(23,200,216,.20), transparent 66%); }
.fcard.b .art { background:
  radial-gradient(420px 260px at 82% 8%, rgba(139,107,255,.38), transparent 64%),
  radial-gradient(320px 240px at 10% 96%, rgba(255,122,77,.16), transparent 66%); }
.fcard .art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.fcard .veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,15,.18) 0%, rgba(6,8,15,.72) 58%, rgba(6,8,15,.94) 100%);
}
.fcard > .in { position: relative; z-index: 2; }
.fcard .chip {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .4px;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}
.fcard h3 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.fcard p { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.7; max-width: 420px; }
.fcard .go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}

/* ============================ 专题四卡 ============================ */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tcard {
  padding: 24px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .26s var(--ease), border-color .26s var(--ease);
}
.tcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tcard .glow {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  top: -80px; right: -60px; opacity: .2; filter: blur(30px);
}
.tcard .en {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--text-3);
}
.tcard h3 { font-size: 18px; font-weight: 700; margin: 8px 0 16px; }
.tcard ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tcard li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text-2); transition: color .18s;
}
.tcard li:hover { color: var(--text); }
.tcard li i { width: 5px; height: 5px; border-radius: 1px; flex-shrink: 0; }

/* ============================ Tab ============================ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px;
  color: var(--text-2); border: 1px solid var(--line);
  background: rgba(255,255,255,.028); transition: all .18s var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.on {
  color: #04140F; font-weight: 600; border-color: transparent;
  background: linear-gradient(120deg, var(--brand), #26cfdd);
}

/* ============================ 工具卡网格 ============================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.card {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--violet));
  opacity: 0; transition: opacity .22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

/* ---- 图标：窗格徽标（几何由 icons.js 生成，这里只管排布与状态） ---- */
.ic {
  display: inline-flex; flex-shrink: 0; line-height: 0;
  align-items: center; align-self: flex-start;
  transition: transform .22s var(--ease);
}
.ic-svg { display: block; overflow: visible; }
.ic .ic-frame,
.ic .ic-mullion { transition: stroke-opacity .22s var(--ease); }
.ic .ic-glyph { transition: filter .22s var(--ease); }
.card:hover .ic .ic-frame { stroke-opacity: .6; }
.card:hover .ic .ic-mullion { stroke-opacity: .5; }
.card:hover .ic .ic-glyph { filter: drop-shadow(0 0 7px var(--hue)); }
.card:hover .ic { transform: translateY(-1px); }
.card .meta { min-width: 0; flex: 1; }
.card .nm {
  font-size: 14.5px; font-weight: 700; letter-spacing: .1px;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px;
  letter-spacing: .3px; flex-shrink: 0;
}
.pill.hot { background: rgba(255,122,77,.16); color: var(--orange); border: 1px solid rgba(255,122,77,.3); }
.pill.new { background: rgba(34,227,180,.14); color: var(--brand); border: 1px solid rgba(34,227,180,.3); }
.pill.off { background: rgba(255,255,255,.05); color: var(--text-3); border: 1px solid var(--line-2); }
.card .ds {
  font-size: 12.5px; color: var(--text-3); line-height: 1.62; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .cat {
  display: inline-block; font-size: 11px; color: var(--text-3);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.card:hover .cat { color: var(--hue, var(--brand)); border-color: color-mix(in srgb, var(--hue, #22E3B4) 34%, transparent); }
/* 卡片底栏：分类 / 评分 / 收录日期 */
.cfoot {
  display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap;
}
.cfoot .rt {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  font-size: 12px; font-weight: 700; color: var(--gold);
}
.cfoot .dtadd { font-size: 11px; color: var(--text-3); }

/* 详情页评分与提示 */
.scoreline { display: flex; align-items: baseline; gap: 7px; margin-bottom: 16px; }
.scoreline .bignum {
  font-size: 30px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(120deg, var(--brand), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scoreline .of { font-size: 11.5px; color: var(--text-3); }
.scoreline .of a { color: var(--text-3); border-bottom: 1px dashed var(--line-2); }
.scoreline .of a:hover { color: var(--brand); }
.hint { font-size: 11.5px; color: var(--text-3); margin-top: 10px; line-height: 1.6; }
.btn.is-off {
  background: rgba(255,255,255,.05); color: var(--text-3);
  box-shadow: none; pointer-events: none;
}

/* ============================ CTA ============================ */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  padding: 56px 48px; text-align: center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(34,227,180,.14), transparent 68%),
    linear-gradient(180deg, #0E1626, #0A0E18);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 78%);
}
.cta > * { position: relative; }
.cta h2 { font-size: 32px; }
.cta p { color: var(--text-2); margin: 14px auto 26px; max-width: 480px; font-size: 15px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================ 页脚 ============================ */
.ft { border-top: 1px solid var(--line); margin-top: 60px; position: relative; overflow: hidden; }
.ft-water {
  position: absolute; left: 50%; bottom: -56px; transform: translateX(-50%);
  font-size: 118px; font-weight: 900; letter-spacing: 4px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 72%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}
.ft-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; position: relative; }
.ft-brand p { color: var(--text-3); font-size: 13px; margin-top: 14px; max-width: 300px; line-height: 1.7; }
.ft-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.ft-col a { display: block; font-size: 13px; color: var(--text-3); padding: 5px 0; transition: color .18s; }
.ft-col a:hover { color: var(--brand); }
.ft-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0 28px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3); position: relative; flex-wrap: wrap;
}

/* ============================ 分类页 ============================ */
.pg-head { padding: 46px 0 30px; }
.crumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.pg-head h1 { font-size: 40px; margin: 0 0 12px; }
.pg-head .lede { max-width: 640px; }

.layout { display: grid; grid-template-columns: 216px 1fr; gap: 36px; align-items: start; padding-bottom: 80px; }
.side { position: sticky; top: 92px; }
.side-g { margin-bottom: 26px; }
.side-g h5 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--text-3);
  padding: 0 12px 10px;
}
.side-g a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-2);
  transition: all .16s var(--ease);
}
.side-g a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-g a.on { background: rgba(34,227,180,.1); color: var(--brand); font-weight: 600; }
.side-g a b { font-family: var(--mono); font-size: 11px; font-weight: 400; opacity: .6; }
/* 分类色点：与图标同源，把「颜色 = 分类」的规则延伸到导航 */
.side-g a .cdot {
  width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; opacity: .75;
  margin-right: -2px; transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.side-g a:hover .cdot { opacity: 1; transform: scale(1.2); }
.side-g a span { flex: 1; }
.side-g a:not([data-c]) .cdot { display: none; }

.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.count { font-size: 13px; color: var(--text-3); }
.count b { color: var(--brand); font-family: var(--mono); }
.sortsel {
  margin-left: auto; height: 34px; padding: 0 12px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; outline: none;
}

.empty { padding: 70px 0; text-align: center; color: var(--text-3); }
.empty b { display: block; font-size: 17px; color: var(--text-2); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }
.empty-ln { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 分页：分批渲染，避免一次塞进上百张卡片 */
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.more-wrap .btn { min-width: 220px; justify-content: center; }
.more-wrap .btn:disabled { opacity: .5; pointer-events: none; }

/* ============================ 详情页 ============================ */
.dt { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding: 40px 0 90px; }
.dt-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dbox {
  padding: 34px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
}
.dbox-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
.dbox-h h4 { font-size: 14px; letter-spacing: .3px; }
.dbox-h .more { font-size: 12.5px; }
.dbox-en {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--text-3);
  white-space: nowrap;
}
.dt-top { display: flex; gap: 20px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.dt-top .ic { align-self: center; line-height: 0; }

/* ---- 详情页官方标识：按自带底色类型配衬板 ---- */
.ic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; line-height: 0;
  position: relative;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ic-badge img { display: block; object-fit: contain; }
.ic-badge.none { background: #101724; }
.ic-badge.light { background: #F4F6FA; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.ic-badge.dark { background: #0A0F19; }
.dt-top h1 { font-size: 30px; margin: 0; }
.dt-top .sub { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dt-body { padding-top: 26px; }
.dt-body h4 { font-size: 14px; margin: 26px 0 12px; letter-spacing: .3px; }
.dt-body h4:first-child { margin-top: 0; }
.dt-body p { font-size: 14.5px; color: var(--text-2); line-height: 1.85; }
.dt-body a {
  color: var(--brand); text-decoration: none;
  border-bottom: 1px solid rgba(34, 227, 180, .4);
  padding-bottom: 1px; transition: border-color .18s, color .18s;
}
.dt-body a:hover { color: var(--violet); border-bottom-color: var(--violet); }
.dt-body ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.dt-body li { font-size: 14px; color: var(--text-2); padding-left: 20px; position: relative; }
.dt-body li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(120deg, var(--brand), var(--violet));
}
.dt-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.panel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h5 { font-size: 13px; margin-bottom: 14px; letter-spacing: .3px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: none; }
.kv span { color: var(--text-3); }
.kv b { font-weight: 600; }

/* ---- 详情页：三步上手 ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  position: relative; padding: 16px 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .022); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.step::before {
  content: ""; position: absolute; left: 16px; top: 0; width: 18px; height: 1.5px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: .8;
}
.step:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .035); }
.step i {
  font-family: var(--mono); font-style: normal; font-size: 10.5px;
  letter-spacing: 1.6px; color: var(--brand);
}
.step > b { display: block; font-size: 13.5px; font-weight: 700; margin: 7px 0 6px; }
.step p { font-size: 12.5px; color: var(--text-3); line-height: 1.72; }
.step p b { display: inline; color: var(--text-2); font-weight: 600; font-size: inherit; }

/* ---- 详情页：同类对比行 ---- */
.cmp { display: flex; flex-direction: column; }
.cmp-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center; gap: 14px;
  padding: 11px 10px; border-radius: 10px;
  border-top: 1px solid var(--line);
  transition: background .18s var(--ease);
}
.cmp-row:first-child { border-top: none; }
.cmp-row:hover { background: rgba(255, 255, 255, .04); }
.cmp-row .ic { align-self: center; }
.cmp-main { min-width: 0; display: block; }
.cmp-main .nm2 {
  display: block; font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-main .ds2 {
  display: block; font-size: 12px; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-rt {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px;
  min-width: 54px;
  font-family: var(--mono); font-size: 12.5px; color: var(--gold);
}
.cmp-date {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  min-width: 66px; text-align: right;
}
.cmp-empty { font-size: 13px; color: var(--text-3); padding: 8px 2px; }

/* ---- 详情页：编辑说明 FAQ ---- */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: none; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 12px 26px 12px 0;
  font-size: 13.5px; color: var(--text-2);
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 14px; color: var(--text-3);
  transition: color .18s var(--ease);
}
.faq details[open] summary { color: var(--text); }
.faq details[open] summary::after { content: "−"; color: var(--brand); }
.faq p {
  font-size: 12.5px; color: var(--text-3); line-height: 1.78;
  padding: 0 26px 14px 0; max-width: 660px;
}

/* ---- 详情页：更正条 ---- */
.dt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3);
}
.dt-foot a { color: var(--brand); border-bottom: 1px solid rgba(34, 227, 180, .4); padding-bottom: 1px; }
.dt-foot a:hover { color: var(--violet); border-bottom-color: var(--violet); }

/* 法律页快速跳转链接 */
.ft-lk {
  display: block; font-size: 13.5px; color: var(--text-2);
  padding: 9px 0; border-top: 1px solid var(--line); transition: color .18s var(--ease);
}
.ft-lk:first-of-type { border-top: none; }
.ft-lk:hover { color: var(--brand); }

/* 详情页的合规提示条 */
.notice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-s); margin-top: 22px;
  background: rgba(34,227,180,.05); border: 1px solid rgba(34,227,180,.2);
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.notice a { color: var(--brand); }

/* ============================ 工具总索引 ============================ */
.hub-g { margin-bottom: 48px; }
.hub-g > h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 25px; margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.hub-g > h2 em {
  font-family: var(--mono); font-size: 11px; font-style: normal;
  letter-spacing: 2.2px; color: var(--text-3); text-transform: uppercase;
}
.hub-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px 32px; }
.hub-cat h3 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.hub-cat h3 span { font-family: var(--mono); font-size: 11px; color: var(--text-3); font-weight: 400; }
.hub-cat ul { list-style: none; }
.hub-cat li { padding: 3px 0; }
.hub-cat a { font-size: 13.5px; color: var(--text-2); transition: color .16s var(--ease); }
.hub-cat a:hover { color: var(--brand); }

/* ============================ 404 ============================ */
.nf {
  position: relative; overflow: hidden;
  padding: 84px 0 64px; max-width: 720px;
}
.nf::before {
  content: ""; position: absolute; z-index: -1;
  left: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,107,255,.13), transparent 62%);
  pointer-events: none;
}
.nf-code {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--text-3); text-transform: uppercase;
}
.nf-code i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,122,77,.14);
}
.nf h1 { font-size: 52px; line-height: 1.18; margin: 18px 0 18px; }
.nf-lede { font-size: 15px; color: var(--text-2); line-height: 1.85; max-width: 560px; }
.nf-search { margin-top: 28px; max-width: 560px; }
.nf-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.nf-cats {
  display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.nf-cats span { margin-right: 2px; }
.nf-cats a { color: var(--text-2); border-bottom: 1px solid transparent; padding-bottom: 1px; transition: .18s var(--ease); }
.nf-cats a:hover { color: var(--brand); border-bottom-color: rgba(34,227,180,.45); }
.nf-more { padding: 10px 0 90px; }

/* ============================ 响应式 ============================ */
@media (max-width: 1180px) {
  .hdr-in { gap: 18px; }
  .nav a { padding: 8px 10px; }
  .hdr-search { width: 168px; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .win { max-width: 520px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .dt { grid-template-columns: 1fr; }
  .dt-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .nav-tog { display: inline-flex; }
  .hdr-search { width: 150px; }
  h1 { font-size: 38px; }
  .feat { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  /* 侧边分类：横向滚动条，不再把 20 多个分类竖着铺在结果前面 */
  .side {
    position: static; display: flex; gap: 8px; margin-bottom: 18px;
    overflow-x: auto; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .side::-webkit-scrollbar { height: 4px; }
  .side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
  .side-g { display: flex; gap: 8px; margin: 0; flex: 0 0 auto; }
  .side-g h5 { display: none; }
  .side-g a {
    white-space: nowrap; padding: 7px 13px; border: 1px solid var(--line);
    border-radius: 999px; background: rgba(255, 255, 255, .03);
  }
  .side-g a b { margin-left: 6px; }
  h2 { font-size: 26px; }
  .cta { padding: 40px 24px; }
  .dbox { padding: 22px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  /* 详情页两栏收成一栏：320px 的侧栏留在原地会把整个页面撑出屏幕 */
  .dt { grid-template-columns: 1fr; gap: 26px; }
  .dt-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .ft-in { grid-template-columns: 1fr; gap: 28px; }
  .ft-water { font-size: 92px; bottom: -40px; }
}
@media (max-width: 700px) {
  /* 头部搜索框让位给汉堡按钮，搜索移入抽屉，避免把按钮挤出屏幕 */
  .hdr-in .hdr-search { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: 31px; }
  /* 手机头部：收紧间距，藏掉英文副标题，否则「提交收录 + 汉堡」会把宽度撑破 */
  .hdr-in { gap: 10px; }
  .logo { gap: 9px; }
  .logo-txt { font-size: 17px; }
  .logo-en { display: none; }
  .hdr .btn.btn-p { padding: 0 13px; font-size: 13px; height: 36px; }
  .bigsearch .kbd { display: none; }   /* 手机上这枚 Enter 提示会压住 placeholder */
  .topics { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .dt-side { grid-template-columns: 1fr; }
  .cmp-date { display: none; }
  .dbox { padding: 20px; }
}
