/* ===================================================
   我的AI软件 — 站点样式
   =================================================== */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f9;
  --surface: #ffffff;
  --surface-2: #f3f5fc;
  --text: #12142a;
  --text-soft: #525873;
  --text-mute: #878daa;
  --border: #e5e8f3;
  --brand: #6366f1;
  --brand-2: #a855f7;
  --brand-soft: #eef0fe;
  --accent: #06b6d4;
  --grad-brand: linear-gradient(135deg, #6366f1, #a855f7 52%, #06b6d4);
  --grad-text: linear-gradient(100deg, #6366f1, #a855f7 45%, #06b6d4 72%, #6366f1);
  --shadow-sm: 0 1px 2px rgba(20, 24, 60, .05), 0 2px 8px rgba(20, 24, 60, .04);
  --shadow: 0 4px 12px rgba(20, 24, 60, .06), 0 12px 32px rgba(20, 24, 60, .06);
  --shadow-lg: 0 10px 24px rgba(20, 24, 60, .08), 0 24px 64px rgba(20, 24, 60, .10);
  --shadow-xl: 0 18px 40px rgba(20, 24, 60, .10), 0 40px 90px rgba(20, 24, 60, .12);
  --glow: 0 10px 30px rgba(99, 102, 241, .28);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #0a0c17;
  --bg-soft: #12152a;
  --surface: #141830;
  --surface-2: #1b2040;
  --text: #f0f2fa;
  --text-soft: #b0b6d2;
  --text-mute: #767da2;
  --border: #242a4d;
  --brand: #8b8bf7;
  --brand-2: #c084fc;
  --brand-soft: #1e2247;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .5);
  --glow: 0 10px 34px rgba(139, 139, 247, .3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4em; }

::selection { background: var(--brand); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
html[data-theme="dark"] .header { background: rgba(12, 14, 25, .82); }
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(91, 91, 214, .35);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px;
  transition: all .18s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: none; }

.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 91, 214, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(91, 91, 214, .38); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(91, 91, 214, .20), transparent 70%),
    radial-gradient(34% 38% at 78% 22%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(30% 34% at 55% 68%, rgba(6, 182, 212, .14), transparent 70%);
  filter: blur(6px);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: .5;
}
.hero .container { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .06); }
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.18;
  margin: 22px 0 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stats .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .lbl { font-size: 13px; color: var(--text-mute); }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--text-mute); font-size: 15px; }
.link-more { color: var(--brand); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- 筛选条 ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(91, 91, 214, .28);
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  opacity: 0;
  transition: opacity .22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
  background: var(--surface-2);
}
.card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card .meta { font-size: 13px; color: var(--text-mute); }
.card-region {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.card-region.cn { background: rgba(34, 197, 94, .13); color: #16a34a; }
.card-region.gl { background: rgba(245, 158, 11, .15); color: #d97706; }
html[data-theme="dark"] .card-region.cn { background: rgba(34, 197, 94, .16); color: #4ade80; }
html[data-theme="dark"] .card-region.gl { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-soft); line-height: 1.7; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-mute);
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-mute);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.badge-free {
  font-size: 12px; padding: 2px 9px; border-radius: 6px;
  background: rgba(34,197,94,.12); color: #16a34a; font-weight: 600;
}
.badge-paid {
  font-size: 12px; padding: 2px 9px; border-radius: 6px;
  background: rgba(245,158,11,.14); color: #d97706; font-weight: 600;
}

/* ---------- 文章列表 ---------- */
.post-list { display: grid; gap: 14px; }
.post {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  align-items: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.post-thumb {
  height: 92px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 34px;
  background: var(--surface-2);
}
.post h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.post p { margin: 0 0 8px; font-size: 14.5px; color: var(--text-soft); }
.post-meta { font-size: 13px; color: var(--text-mute); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 侧栏 ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.widget h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.widget li { font-size: 14.5px; color: var(--text-soft); display: flex; gap: 10px; align-items: baseline; }
.widget li span.idx { color: var(--text-mute); font-variant-numeric: tabular-nums; font-size: 13px; }
.widget li:hover { color: var(--brand); cursor: pointer; }

/* ---------- 正文排版 ---------- */
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text-soft);
}
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); color: var(--text); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 14px; }
.prose h2 { font-size: 23px; color: var(--text); font-weight: 700; margin: 38px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.prose h3 { font-size: 18.5px; color: var(--text); font-weight: 700; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  color: var(--text);
}
.prose code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 14.5px;
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
  color: var(--brand);
}
.prose pre {
  background: #12142a;
  color: #d7dcf5;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.prose img { border-radius: 12px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ---------- 关于 ---------- */
.about-hero {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-size: 52px; color: #fff;
  box-shadow: 0 10px 30px rgba(91,91,214,.3);
}
.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-date { color: var(--brand); font-weight: 700; font-size: 14px; }

/* ---------- 订阅 ---------- */
.subscribe {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 22px;
  padding: 46px 40px;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 44px rgba(91, 91, 214, .28);
}
.subscribe h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.subscribe p { margin: 0 auto 24px; max-width: 540px; opacity: .9; }
.subscribe form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe input {
  flex: 1 1 240px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.subscribe .btn { background: #12142a; color: #fff; }
.subscribe .btn:hover { background: #000; }
.subscribe .note { font-size: 13px; opacity: .8; margin-top: 14px; }
.subscribe-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 44px; flex-wrap: wrap;
}
.subscribe-text { flex: 1 1 320px; max-width: 540px; }
.subscribe-text p { margin: 0 0 22px; }
.subscribe-qr {
  flex: 0 0 auto;
  background: #fff; padding: 14px; border-radius: 18px;
  display: grid; place-items: center; gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.subscribe-qr img { width: 132px; height: 132px; border-radius: 8px; display: block; }
.subscribe-qr span { color: #334; font-size: 13px; font-weight: 600; }

/* ---------- 顶部通知横条 ---------- */
#topBar {
  position: relative;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(91, 91, 214, .25);
  transition: max-height .5s ease, opacity .45s ease;
}
#topBar.show { max-height: 320px; opacity: 1; }
/* 收起后：横条归零，只留一个向下垂出的小舌片标签 */
#topBar.peek { max-height: 0; opacity: 1; overflow: visible; }
.topbar-peek { display: none; }
#topBar.peek .topbar-peek {
  display: flex; align-items: center; gap: 6px;
  position: absolute; top: 100%; left: 50%; z-index: 999;
  transform: translateX(-50%);
  padding: 7px 18px 9px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 7px 16px rgba(91, 91, 214, .32);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
#topBar.peek .topbar-peek:hover {
  transform: translate(-50%, 2px);
  box-shadow: 0 10px 20px rgba(91, 91, 214, .4);
}
#topBar.peek .topbar-inner { display: none; }
.topbar-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 56px 20px 24px;
  min-height: 150px;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
}
.topbar-img {
  flex: 0 1 180px;
  width: 180px; max-width: 42%;
  height: auto; aspect-ratio: 3 / 2;
  border-radius: 14px; object-fit: cover;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.topbar-text { flex: 1 1 auto; min-width: 0; }
.topbar-text strong {
  display: block; color: #fff;
  font-size: 17px; font-weight: 800; line-height: 1.45; margin-bottom: 7px;
}
.topbar-text span {
  display: block; color: #fff; opacity: .92;
  font-size: 14px; line-height: 1.7;
}
.topbar-btn {
  flex: 0 0 auto;
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: #fff; color: var(--brand);
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  transition: transform .2s, box-shadow .2s;
}
.topbar-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.topbar-btn.soon { background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; }
.topbar-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 16px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s;
}
.topbar-close:hover { background: rgba(255, 255, 255, .32); }

/* ---------- 自制 AI 工具推广板块 ---------- */
#mytool { scroll-margin-top: 90px; }
.promo {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-soft), transparent 58%), var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.promo::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.promo-inner {
  display: grid; grid-template-columns: 1fr 296px;
  gap: 38px; padding: 38px 40px; align-items: start;
}
.promo-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.promo-main h2 { margin: 14px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.promo-main > p { margin: 0 0 16px; color: var(--text-soft); line-height: 1.8; font-size: 15px; }
.promo-slogan {
  margin: 0 0 22px; padding: 13px 17px; border-radius: 12px;
  background: var(--surface-2); border-left: 3px solid var(--brand);
  font-size: 14.5px; color: var(--text-soft); line-height: 1.75;
}
.promo-notes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.promo-notes li { position: relative; padding-left: 21px; font-size: 14px; color: var(--text-soft); }
.promo-notes li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--brand); font-weight: 800; font-size: 14px;
}
.promo-side { position: sticky; top: 90px; }
.price-card {
  padding: 26px 24px; border-radius: 18px; text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 40px rgba(91, 91, 214, .3);
}
.price-old { font-size: 13.5px; opacity: .85; }
.price-old span { margin-left: 1px; }
.price-tag {
  display: inline-block; margin: 11px 0 9px; font-size: 12px; font-weight: 700;
  padding: 4px 13px; border-radius: 999px; background: rgba(255, 255, 255, .22);
}
.price-now { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.price-now .cur { font-size: 20px; font-weight: 600; vertical-align: middle; margin-right: 2px; }
.price-now .unit { font-size: 15px; font-weight: 500; opacity: .9; }
.price-save { margin: 12px 0 18px; font-size: 13px; opacity: .9; }
.price-card .btn, .price-card .btn:hover { background: #fff; color: var(--brand); }
.price-note { margin-top: 13px; font-size: 12.5px; opacity: .8; line-height: 1.6; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h5 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li, .footer p { font-size: 14px; color: var(--text-mute); }
.footer a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-mute);
}
.beian { display: inline-flex; align-items: center; gap: 6px; }
.beian:hover { color: var(--brand); }
.footer-bottom a { text-decoration: none; }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed; right: 26px; bottom: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 18px;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 90;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-inner { grid-template-columns: 1fr; gap: 26px; padding: 32px 28px; }
  .promo-side { position: static; }
  .price-card { max-width: 340px; margin: 0 auto; }
  .topbar-img { max-width: 48%; }
  .topbar-inner { gap: 16px; padding: 16px 54px 16px 18px; }
  .topbar-text strong { font-size: 15.5px; }
  .topbar-text span { font-size: 13px; }
  .topbar-btn { padding: 10px 16px; font-size: 13.5px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.open a { border-radius: 10px; padding: 12px 14px; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header .container { position: relative; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 26px; }
  .post { grid-template-columns: 1fr; }
  .post-thumb { height: 130px; }
  .prose { padding: 26px 20px; }
  .about-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .subscribe { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .promo-inner { padding: 26px 20px; }
  .promo-main h2 { font-size: 22px; }
  #topBar.show { max-height: 520px; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; padding: 14px 50px 16px 14px; min-height: 0; }
  .topbar-img { flex: 1 1 100%; width: 100%; max-width: 100%; height: 150px; }
  .topbar-text strong { font-size: 15px; }
  .topbar-text span { font-size: 12.5px; }
  .topbar-btn { width: 100%; text-align: center; padding: 11px 18px; }
  .topbar-close { top: 10px; transform: none; }
  #topBar.peek { max-height: 0; }
  #topBar.peek .topbar-peek { font-size: 12px; padding: 6px 15px 8px; left: 50%; }
}

/* ===================================================
   AI 游戏 页面
   =================================================== */
.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 64px 24px;
}
.stage-empty-icon { font-size: 46px; line-height: 1; }
.stage-empty h3 { margin: 6px 0 2px; font-size: 18px; }
.stage-empty p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

.stage-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;   /* 关键：窄屏时高度跟着宽度自动缩放，不会溢出也不会被裁掉 */
  border: 0;
  background: #101722;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.stage-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stage-title { font-weight: 700; font-size: 14.5px; }
.stage-tip {
  color: var(--text-mute);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-close { padding: 7px 13px; font-size: 13px; flex-shrink: 0; }

.game-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-card.playing {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow);
}

.game-ctrl {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}
.ctrl-key {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.game-card .btn-play { width: 100%; justify-content: center; }

.game-note {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}
.game-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .stage-empty { padding: 44px 18px; }
  .stage-frame { aspect-ratio: 1 / 1; }   /* 手机上给更高的画面比例，游戏内容不至于太小 */
  .stage-bar { flex-wrap: wrap; }
  .stage-tip { white-space: normal; }
  .game-note { padding: 14px 15px; font-size: 13px; }
}


/* ===================================================
   视觉升级 v2 — 现代质感层
   只做视觉增强，不改变任何结构与类名
   =================================================== */

/* ---------- 基础排版 ---------- */
body { letter-spacing: .004em; }
h1, h2, h3 { text-wrap: balance; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- 顶部导航：更强的玻璃感 ---------- */
.header { height: var(--header-h); }
.header.scrolled {
  background: rgba(255, 255, 255, .76);
  backdrop-filter: saturate(200%) blur(20px);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  box-shadow: 0 8px 30px rgba(20, 24, 60, .07);
}
html[data-theme="dark"] .header.scrolled { background: rgba(10, 12, 23, .78); }
html[data-theme="dark"] .header { background: rgba(10, 12, 23, .7); }

.logo { font-size: 18.5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
  font-size: 18px;
}
.nav a { padding: 8px 15px; font-size: 15px; }
.nav a.active {
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .16);
  font-weight: 600;
}
.icon-btn { border-radius: 11px; }
.icon-btn:hover { transform: translateY(-1px); }

/* ---------- Hero：动态光斑 + 流光标题 ---------- */
.hero { padding: 104px 0 74px; isolation: isolate; }
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::before {
  width: 440px; height: 440px;
  left: 4%; top: 16%;
  background: radial-gradient(circle, rgba(99, 102, 241, .42), transparent 68%);
  animation: heroFloat1 17s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 380px; height: 380px;
  right: 6%; top: 4%;
  background: radial-gradient(circle, rgba(168, 85, 247, .38), transparent 68%);
  animation: heroFloat2 21s ease-in-out infinite alternate;
}
@keyframes heroFloat1 { to { transform: translate3d(70px, 46px, 0) scale(1.14); } }
@keyframes heroFloat2 { to { transform: translate3d(-56px, 66px, 0) scale(1.08); } }
html[data-theme="dark"] .hero-bg::before { background: radial-gradient(circle, rgba(99, 102, 241, .30), transparent 68%); }
html[data-theme="dark"] .hero-bg::after { background: radial-gradient(circle, rgba(168, 85, 247, .26), transparent 68%); }

.hero-grid-bg { opacity: .34; background-size: 62px 62px; }

.badge {
  padding: 7px 16px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(99, 102, 241, .16);
  font-weight: 500;
}
html[data-theme="dark"] .badge { background: rgba(20, 24, 48, .6); border-color: rgba(139, 139, 247, .22); }

.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.14;
  margin: 24px 0 20px;
}
.hero h1 .grad {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 9s linear infinite;
}
@keyframes gradFlow { to { background-position: 220% 0; } }

.hero p.lead { font-size: 18.5px; line-height: 1.85; max-width: 640px; }

/* 数据区改成一条带上边框的分栏，更有质感 */
.hero-stats {
  gap: 0;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats > div { padding: 0 34px; border-left: 1px solid var(--border); }
.hero-stats > div:first-child { padding-left: 0; border-left: none; }
.hero-stats .num { font-size: 34px; font-variant-numeric: tabular-nums; }
.hero-stats .lbl { font-size: 13px; letter-spacing: .03em; }

/* ---------- 按钮：流光 + 发光 ---------- */
.btn { padding: 12px 22px; }
.btn-primary {
  background: var(--grad-brand);
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 125%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(99, 102, 241, .4); }
.btn-ghost {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, .05); }

/* ---------- 区块标题 ---------- */
.section { padding: 62px 0; }
.section-head { margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(25px, 3.1vw, 34px);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 渐变小方块作点缀；标题本身保持实色，避免 emoji 被 background-clip 裁透明 */
.section-head h2::before {
  content: "";
  flex: 0 0 auto;
  width: 8px; height: 26px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .28);
}
.link-more { font-size: 15px; }

/* ---------- 卡片：鼠标光晕 + 更立体的悬停 ---------- */
.grid { gap: 22px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.card {
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(430px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .10), transparent 62%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.app-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 23px; }
.card h3 { font-size: 17.5px; }
.card-foot { padding-top: 14px; }
.card-tags .tag { border-radius: 999px; padding: 4px 11px; }

/* ---------- 筛选条 ---------- */
.chip { padding: 8px 17px; }
.chip.on { box-shadow: 0 6px 16px rgba(99, 102, 241, .3); }

/* ---------- 文章列表 ---------- */
.post { border-radius: var(--radius-lg); padding: 18px; }
.post-thumb { height: 96px; border-radius: 14px; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-list { gap: 16px; }

/* ---------- 侧栏 / 正文 / 推广块 ---------- */
.widget { border-radius: var(--radius-lg); padding: 22px; }
.prose { border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.prose blockquote { border-radius: 14px; }

.promo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.promo-inner { padding: 40px 42px; gap: 40px; }
.promo-badge { padding: 6px 15px; }
.promo-slogan { border-radius: 14px; }
.price-card { border-radius: 22px; background: linear-gradient(160deg, var(--brand), var(--brand-2) 70%, #06b6d4); box-shadow: 0 18px 44px rgba(99, 102, 241, .32); }
.price-now { font-size: 46px; }

/* ---------- 订阅区 ---------- */
.subscribe {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 54px 44px;
  background: var(--grad-brand);
  box-shadow: 0 26px 64px rgba(99, 102, 241, .3);
}
.subscribe::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -120px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
  pointer-events: none;
}
.subscribe > * { position: relative; z-index: 1; }
.subscribe h2 { font-size: 30px; }
.subscribe-qr { border-radius: 20px; padding: 15px; }

/* ---------- 顶部通知条 ---------- */
.topbar-inner { background: linear-gradient(100deg, var(--brand), var(--brand-2) 70%, #06b6d4); }
#topBar.peek .topbar-peek { background: var(--grad-brand); box-shadow: 0 8px 18px rgba(99, 102, 241, .34); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 84px; padding: 54px 0 30px; background: var(--surface); }
.footer-grid { gap: 36px; }

/* ---------- 回到顶部 ---------- */
#toTop {
  width: 46px; height: 46px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
#toTop:hover { background: var(--grad-brand); border-color: transparent; box-shadow: var(--glow); }

/* ---------- 进场动画：更柔和 ---------- */
.reveal { transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }

/* ---------- 尊重「减少动效」偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg::after, .hero h1 .grad { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 窄屏适配升级层 ---------- */
@media (max-width: 720px) {
  .hero { padding: 56px 0 44px; }
  .hero-stats { gap: 0; }
  .hero-stats > div { padding: 0 16px; border-left: 1px solid var(--border); }
  .hero-stats > div:first-child { padding-left: 0; }
  .hero-stats > div:nth-child(3) { border-left: none; padding-left: 0; }
  .hero-stats .num { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .prose { padding: 26px 20px; }
  .subscribe { padding: 38px 22px; border-radius: 26px; }
  .subscribe h2 { font-size: 24px; }
  .promo-inner { padding: 28px 22px; }
}


/* ===================================================
   视觉升级 v3 — 科技感排版层
   重点：Hero 双栏（左文右终端）+ 等宽数字 + 字阶收紧
   =================================================== */

:root {
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;
}

/* ---------- Hero：大字号 + 紧行距 ---------- */
.hero { padding: 96px 0 80px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 22px 0 18px;
}
.hero p.lead { font-size: 17.5px; line-height: 1.85; max-width: 600px; }

/* badge 改等宽标签，更像命令行注释 */
.badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .01em;
}

/* ---------- Hero 右侧终端窗口（绝对定位，窄屏隐藏，零破版风险） ---------- */
.hero-visual {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-53%);
  width: 400px;
  z-index: 1;
  animation: termIn .8s cubic-bezier(.2, .8, .3, 1) both .15s;
}
@keyframes termIn {
  from { opacity: 0; transform: translateY(-42%) scale(.96); }
  to   { opacity: 1; transform: translateY(-53%) scale(1); }
}
.term {
  border-radius: 16px;
  background: rgba(9, 12, 26, .94);
  border: 1px solid rgba(99, 102, 241, .28);
  box-shadow:
    0 26px 70px rgba(20, 24, 60, .38),
    0 0 46px rgba(99, 102, 241, .14),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.05;
  color: #c6cfef;
}
.term::after {  /* 玻璃反光 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 34%);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .045);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.term-bar span { width: 10px; height: 10px; border-radius: 50%; }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar i {
  margin-left: 8px; font-style: normal;
  font-size: 11px; color: #5c6488; letter-spacing: .06em;
}
.term-body { padding: 16px 18px 18px; }
.term-body p { margin: 0; white-space: nowrap; }
.term-body .p { color: #6ee7b7; }
.term-body .ok { color: #6ee7b7; margin-right: 7px; }
.term-body b { color: #a5b4fc; font-weight: 700; }
.term-body .dim { color: #7a82a8; }
.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: #6ee7b7;
  margin-left: 5px; vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 浅色页面上给终端加一圈柔光，与背景融合 */
.hero-visual::before {
  content: ""; position: absolute; inset: -36px; z-index: -1; border-radius: 32px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(99, 102, 241, .18), transparent 72%);
}

@media (max-width: 1120px) { .hero-visual { display: none; } }

/* ---------- 指标栏：数字用等宽字体，更像仪表盘 ---------- */
.hero-stats .num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .lbl { font-size: 12.5px; letter-spacing: .04em; }

/* ---------- 卡片：标签与徽章等宽化，数据感 ---------- */
.card-region,
.tag,
.badge-free,
.badge-paid { font-family: var(--font-mono); letter-spacing: .01em; }
.tag { font-size: 11.5px; }
.card-region { font-size: 11.5px; }
.card h3 { letter-spacing: -.015em; }
.card p { font-size: 14px; line-height: 1.72; }

/* 卡片 hover：品牌色描边 + 内发光（科技感边框） */
.card:hover {
  border-color: rgba(99, 102, 241, .45);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(99, 102, 241, .22), 0 0 34px rgba(99, 102, 241, .10);
}

/* ---------- 区块标题：等宽编号点缀 ---------- */
.section-head { margin-bottom: 32px; }

/* ---------- 章节节奏微调 ---------- */
.section { padding: 64px 0; }

/* ---------- 页脚等宽备案号 ---------- */
.footer-bottom { font-family: var(--font-mono); font-size: 13px; }
.footer-bottom .beian { font-family: inherit; }

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero p.lead { font-size: 16px; }
}

/* ==================================================================
   卡片 v4：重新排版（每张卡用自己的主题色 --c，层次更清晰）
   ================================================================== */
.grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.card {
  --c: var(--brand);
  padding: 21px 20px 16px;
  gap: 12px;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--c) 15%, var(--border));
  background: var(--surface);
}

/* 顶部细彩条：默认微亮，悬停点亮 */
.card::after {
  height: 2.5px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 35%, transparent));
  opacity: .5;
}
.card:hover::after { opacity: 1; }

/* 右下角巨型水印图标 */
.card-mark {
  position: absolute; right: -12px; bottom: -22px; z-index: 0;
  font-size: 96px; line-height: 1;
  opacity: .05; pointer-events: none;
  transform: rotate(-8deg);
  transition: opacity .35s, transform .4s cubic-bezier(.2, .8, .3, 1);
  filter: saturate(.7);
}
.card:hover .card-mark { opacity: .09; transform: rotate(-8deg) scale(1.09) translate(-5px, -5px); }

/* 右上角圆形访问按钮 */
.card-go {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  opacity: 0;
  transform: translate(-5px, 5px) scale(.88);
  transition: .3s cubic-bezier(.2, .8, .3, 1);
}
.card:hover .card-go { opacity: 1; transform: none; }

/* 头部 */
.card-top { position: relative; z-index: 1; gap: 13px; padding-right: 36px; }
.card-id { min-width: 0; }
.card-id h3 {
  font-size: 17px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .meta { font-size: 12.5px; letter-spacing: .02em; }
.app-icon {
  width: 48px; height: 48px; border-radius: 14px; font-size: 23px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
  transition: transform .32s cubic-bezier(.2, .8, .3, 1), box-shadow .32s;
}
.card:hover .app-icon {
  transform: scale(1.07) rotate(-4deg);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent),
    0 8px 20px color-mix(in srgb, var(--c) 24%, transparent);
}

/* 描述：固定两行，卡片高度统一 */
.card p {
  position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 46px;
}

/* 标签 */
.card-tags { position: relative; z-index: 1; gap: 6px; }
.card-tags .tag {
  background: color-mix(in srgb, var(--c) 8%, var(--surface-2));
  color: var(--text-soft);
  transition: .22s;
}
.card:hover .card-tags .tag { background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); }

/* 底栏 */
.card-foot {
  position: relative; z-index: 1;
  border-top: 1px solid color-mix(in srgb, var(--c) 18%, var(--border));
  padding-top: 12px;
  gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.card-end { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.stars { font-size: 12px; letter-spacing: 0; }
.card-region { padding: 2.5px 9px; }
.badge-free, .badge-paid { border-radius: 999px; padding: 2.5px 9px; white-space: nowrap; }

/* 悬停：抬起 + 主题色描边光 */
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent),
    0 16px 40px color-mix(in srgb, var(--c) 14%, transparent);
}

@media (max-width: 520px) {
  .card-mark { font-size: 74px; }
}

/* ==================================================================
   关注公众号按钮：鼠标悬停弹出二维码名片
   ================================================================== */
.qr-hover { position: relative; display: block; }
.qr-pop {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  z-index: 40;
  width: 198px;
  padding: 15px 14px 13px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 20px 46px rgba(20, 24, 60, .18);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-50%) scale(.94);
  transform-origin: right center;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .3, 1), visibility .22s;
}
.qr-hover:hover .qr-pop,
.qr-hover:focus-within .qr-pop,
.qr-hover.on .qr-pop { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }

/* 指向按钮的小尖角 */
.qr-pop::after {
  content: ""; position: absolute;
  right: -6px; top: 50%; margin-top: -6px;
  width: 11px; height: 11px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}.qr-pop-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.qr-pop-title b { color: var(--brand); }
.qr-pop-img {
  width: 152px; height: 152px; display: block;
  border-radius: 10px; border: 1px solid var(--border);
  background: #fff; padding: 4px;
}
.qr-pop-tip { font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }

/* 窄屏/触屏：改为在按钮正上方弹出 */
@media (max-width: 900px) {
  .qr-pop {
    right: auto; left: 50%; top: auto; bottom: calc(100% + 12px);
    transform: translateX(-50%) scale(.94);
    transform-origin: bottom center;
  }
  .qr-hover:hover .qr-pop,
  .qr-hover:focus-within .qr-pop,
  .qr-hover.on .qr-pop { transform: translateX(-50%) scale(1); }
  .qr-pop::after {
    right: auto; left: 50%; top: auto; bottom: -6px;
    margin: 0 0 0 -6px;
    border: none;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

/* ==================================================================
   卡片 v5：酷炫层 —— 3D 倾斜 / 流光顶条 / 扫光 / 图标发光
   ================================================================== */

/* 3D 跟随倾斜（角度由 JS 写入 --rx/--ry），悬停时抬得更立体 */
.card {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: perspective(1000px)
             rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
             translateY(-8px) scale(1.015);
  will-change: transform;
}

/* 顶部彩条 → 流动渐变（悬停时开始流动） */
.card::after {
  background: linear-gradient(90deg,
    var(--c),
    color-mix(in srgb, var(--c) 45%, #fff),
    var(--c));
  background-size: 200% 100%;
}
.card:hover::after { animation: cardBarFlow 1.6s linear infinite; }
@keyframes cardBarFlow { to { background-position: 200% 0; } }

/* 光晕升级成主题色 + 悬停时来一道斜向扫光 */
.card::before {
  background:
    radial-gradient(430px circle at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, var(--c) 15%, transparent), transparent 60%),
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .13) 48%, transparent 64%);
  background-size: 100% 100%, 260% 100%;
  background-repeat: no-repeat;
}
.card:hover::before { animation: cardShine 1.4s ease-in-out infinite; }
@keyframes cardShine {
  from { background-position: 0 0, -140% 0; }
  to   { background-position: 0 0,  140% 0; }
}

/* 图标：悬停呼吸光晕 */
.card:hover .app-icon {
  animation: iconPulse 1.5s ease-in-out infinite;
}
@keyframes iconPulse {
  50% { box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent),
    0 10px 26px color-mix(in srgb, var(--c) 34%, transparent); }
}

/* 水印图标：悬停发光 */
.card:hover .card-mark { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 45%, transparent)); }

/* 箭头按钮：悬停弹起 + 主题色填充 */
.card:hover .card-go {
  background: var(--c);
  color: #fff;
  border-color: var(--c);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 45%, transparent);
}

/* 标签：悬停时集体亮一下 */
.card:hover .card-tags .tag {
  color: color-mix(in srgb, var(--c) 70%, var(--text-soft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}

/* 深色模式下扫光更亮一点 */
html[data-theme="dark"] .card::before {
  background:
    radial-gradient(430px circle at var(--mx, 50%) var(--my, 0%),
      color-mix(in srgb, var(--c) 20%, transparent), transparent 60%),
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .07) 48%, transparent 64%);
  background-size: 100% 100%, 260% 100%;
  background-repeat: no-repeat;
}

/* 减少动态：关掉所有花活 */
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: none; }
  .card:hover::after, .card::before,
  .card:hover .app-icon { animation: none; }
}

/* ==================================================================
   v6：首页 Bento 杂志式排布 —— 大卡 + 紧凑分类列表 + 区块编号
   ================================================================== */

/* 区块编号：01 / 02 / 03 */
.sec-no {
  display: inline-grid; place-items: center;
  font-family: var(--font-mono); font-style: normal;
  font-size: 13px; font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  width: 36px; height: 36px; border-radius: 11px;
  margin-right: 13px; vertical-align: -9px;
}
html[data-theme="dark"] .sec-no { background: rgba(99, 102, 241, .16); color: #a5b4fc; }
.section-head h2:has(.sec-no)::before { display: none; }   /* 有编号时不再要渐变小条 */

/* 精选区：固定四列，第一张跨两列（Bento） */
.grid-featured {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card-hero {
  grid-column: span 2;
  padding: 30px 28px 22px;
  gap: 15px;
}
.card-hero .app-icon { width: 64px; height: 64px; font-size: 31px; border-radius: 18px; }
.card-hero .card-id h3 { font-size: 23px; white-space: normal; }
.card-hero .meta { font-size: 13px; margin-top: 3px; }
.card-hero p {
  display: block; -webkit-line-clamp: none;
  font-size: 15px; line-height: 1.85; min-height: 0;
}
.card-hero .card-mark { font-size: 150px; right: -20px; bottom: -34px; }
.card-hero .tag { font-size: 12.5px; padding: 5px 13px; }

/* 大卡右上角的小旗标 */
.hero-flag {
  position: absolute; top: 0; right: 54px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--grad-brand);
  padding: 5px 13px 6px;
  border-radius: 0 0 11px 11px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}

/* 分类速览：紧凑列表行 */
.cat-list { display: grid; gap: 12px; }
.cat-row {
  --c: var(--brand);
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 13px 22px 13px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.cat-row::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px;
  width: 3px; border-radius: 3px;
  background: var(--c); opacity: .35;
  transition: opacity .22s;
}
.cat-row:hover::before { opacity: 1; }
.cat-row .app-icon {
  width: 44px; height: 44px; font-size: 21px; border-radius: 13px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1);
}
.cat-row:hover .app-icon { transform: scale(1.08) rotate(-4deg); }
.cat-row .cat-info { min-width: 116px; }
.cat-row .cat-info h3 { margin: 0; font-size: 16px; white-space: nowrap; }
.cat-row .meta { font-size: 12px; color: var(--text-mute); }
.cat-names {
  flex: 1; min-width: 0; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  color: var(--text-soft); font-size: 14px;
}
.cat-arrow { color: var(--text-mute); font-weight: 700; transition: .22s; }
.cat-row:hover {
  border-color: color-mix(in srgb, var(--c) 42%, var(--border));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 13%, transparent);
}
.cat-row:hover .cat-arrow { color: var(--c); transform: translateX(5px); }

/* 响应式：中屏两列、手机单列 */
@media (max-width: 1080px) {
  .grid-featured { grid-template-columns: repeat(2, 1fr); }
  .card-hero { grid-column: span 2; }
}
@media (max-width: 720px) {
  .cat-names { display: none; }
  .cat-row .cat-info { min-width: 0; flex: 1; }
}
@media (max-width: 640px) {
  .grid-featured { grid-template-columns: 1fr; }
  .card-hero { grid-column: auto; padding: 24px 22px 18px; }
  .card-hero .app-icon { width: 54px; height: 54px; font-size: 26px; }
  .card-hero .card-id h3 { font-size: 20px; }
  .card-hero .card-mark { font-size: 110px; }
}

/* ==================================================================
   v8c：高科技赛博朋克配色 + 城市夜景页脚
   霓虹青 · 品红 —— 图标彩色元素保持高科技调
   ================================================================== */

/* ---- 浅色：净白 + 赛博青品红点缀 ---- */
:root {
  --bg: #f3f6fa;
  --bg-soft: #e8edf4;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #101828;
  --text-soft: #475467;
  --text-mute: #8a94a6;
  --border: #d8dfe9;
  --brand: #0891b2;                        /* 赛博青 */
  --brand-2: #c026d3;                      /* 品红 */
  --brand-soft: rgba(8, 145, 178, .10);
  --accent: #0ea5e9;
  --grad-brand: linear-gradient(135deg, #0e7490, #0891b2 50%, #a21caf);
  --grad-text: linear-gradient(100deg, #101828, #0891b2 52%, #c026d3 88%);
  --shadow-sm: 0 1px 2px rgba(10, 30, 50, .06), 0 2px 8px rgba(10, 30, 50, .05);
  --shadow: 0 4px 12px rgba(10, 30, 50, .07), 0 12px 32px rgba(10, 30, 50, .06);
  --shadow-lg: 0 10px 24px rgba(10, 30, 50, .09), 0 24px 64px rgba(10, 30, 50, .08);
  --shadow-xl: 0 18px 40px rgba(10, 30, 50, .10), 0 40px 90px rgba(10, 30, 50, .11);
  --glow: 0 10px 30px rgba(8, 145, 178, .26);
}
/* ---- 深色：霓虹夜城 ---- */
html[data-theme="dark"] {
  --bg: #090d16;
  --bg-soft: #0e1420;
  --surface: #121828;
  --surface-2: #1a2234;
  --text: #e8eef8;
  --text-soft: #a3b1c9;
  --text-mute: #64748f;
  --border: #253048;
  --brand: #22d3ee;                        /* 霓虹青 */
  --brand-2: #e879f9;                      /* 霓虹品红 */
  --brand-soft: rgba(34, 211, 238, .10);
  --grad-text: linear-gradient(100deg, #eef4ff, #22d3ee 52%, #e879f9 90%);
  --glow: 0 10px 34px rgba(34, 211, 238, .30);
}

/* ---- 区块标题装饰条 → 青黑警示纹 ---- */
.section-head h2::before {
  background: repeating-linear-gradient(45deg, #22d3ee 0 5px, #101828 5px 10px);
  box-shadow: none;
}

/* ---- Hero：霓虹光球 + 青色扫描线 ---- */
.hero-bg::before { background: radial-gradient(circle, rgba(8, 145, 178, .13), transparent 68%); }
.hero-bg::after { background: radial-gradient(circle, rgba(192, 38, 211, .09), transparent 68%); }
html[data-theme="dark"] .hero-bg::before { background: radial-gradient(circle, rgba(34, 211, 238, .17), transparent 68%); }
html[data-theme="dark"] .hero-bg::after { background: radial-gradient(circle, rgba(232, 121, 249, .12), transparent 68%); }

.hero-grid-bg {
  background-image:
    linear-gradient(transparent 47%, rgba(8, 145, 178, .15) 50%, transparent 53%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100% 320px, 56px 56px, 56px 56px;
  animation: wastelandScan 6s linear infinite;
}
@keyframes wastelandScan { to { background-position: 0 320px, 0 0, 0 0; } }
html[data-theme="dark"] .hero-grid-bg {
  background-image:
    linear-gradient(transparent 47%, rgba(34, 211, 238, .12) 50%, transparent 53%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
}

/* ---- 终端窗口 → 赛博终端（青读数 + 品红数据） ---- */
.term { border-color: rgba(8, 145, 178, .40); }
html[data-theme="dark"] .term {
  border-color: rgba(34, 211, 238, .32);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .5),
    0 0 46px rgba(34, 211, 238, .12),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}
.term-body .p, .term-body .ok { color: #67e8f9; }
.term-body b { color: #f0abfc; }
.cursor { background: #67e8f9; }

/* ---- 订阅区 / 价格卡 → 青→品红（2077 风） ---- */
.price-card {
  background: linear-gradient(160deg, #0e7490, #0891b2 45%, #a21caf);
  box-shadow: 0 18px 44px rgba(14, 116, 144, .38);
}
.price-card .btn, .price-card .btn:hover { color: #0e7490; }
.subscribe { box-shadow: 0 26px 64px rgba(8, 145, 178, .30); }

/* ---- 深色主按钮：青底 + 品红描边 ---- */
html[data-theme="dark"] .btn-primary { box-shadow: 0 8px 24px rgba(34, 211, 238, .35), 0 0 0 1px rgba(232, 121, 249, .45); }

/* ---- 滚动条 ---- */
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .4); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, .3); }

/* ---- 顶部通知条：青→品红，中段压深色过渡 ---- */
.topbar-inner { background: linear-gradient(100deg, #155e75, #0891b2 38%, #101828 62%, #a21caf); }
html[data-theme="dark"] .topbar-inner {
  background: linear-gradient(100deg, #164e63, #22d3ee 38%, #101828 62%, #c026d3);
}
.topbar-btn { box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* ==================================================================
   页脚：高科技赛博朋克城市夜景背景
   ================================================================== */
.footer {
  position: relative;
  margin-top: 84px;
  padding: 64px 0 34px;
  border-top: none;
  background: #070b14 url("../img/cyber-city.jpg") center 28% / cover no-repeat;
  color: #c7d3e8;
  isolation: isolate;
}
/* 上端融入页面底色，下端透出城市 */
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 45%, rgba(7, 11, 20, .9)) 22%,
    rgba(7, 11, 20, .42) 58%,
    rgba(7, 11, 20, .18) 100%);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer h5 { color: #eaf1fb; }
.footer li, .footer p { color: #a9b7cf; }
.footer a { color: #c7d3e8; }
.footer a:hover { color: #67e8f9; }
.footer .logo { color: #f2f6fd; }
.footer-bottom { color: #8fa0bc; border-color: rgba(255, 255, 255, .14); }
.footer-bottom a { color: #a9b7cf; }
.footer-bottom a:hover { color: #67e8f9; }
.footer-bottom .beian img { filter: brightness(0) invert(.7); }
.footer img[alt*="二维码"] { box-shadow: 0 8px 24px rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .2) !important; }
/* 回到顶部按钮在夜景上更亮 */
#toTop { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) {
  .hero-grid-bg { animation: none; }
}
