/* =====================================================================
   vidaiu · 设计系统 (Clean Workspace / 清爽工具工作台 · 浅色)
   面向「短视频运营 AI 工具箱」的克制工具风：
   · 浅中性底 + 单一暖珊瑚强调 + 大圆角 + 柔和分层阴影
   · 常驻输入魔法框 + 工具网格 + 结果工作流卡片
   · 充足留白、清晰层级、尊重 reduced-motion
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg:         #F7F8FA;   /* 浅中性底（冷静、透气） */
  --surface:    #FFFFFF;
  --surface-2:  #F1F3F6;   /* 极浅填充 */
  --ink:        #1B1D21;   /* 主文字（近黑、微冷） */
  --text:       var(--ink);
  --muted:      #6B7280;   /* 次要灰 */
  --faint:      #9AA1AC;
  --line:       #E8EAED;   /* 浅 hairline */
  --line-strong:#D8DBE0;

  --accent:     #F2543B;   /* 暖珊瑚红（唯一强调色，品牌温度） */
  --accent-d:   #D8432E;   /* 深一档 hover */
  --accent-soft:#FDECE8;   /* 强调浅底 */
  --ok:         #2E9E6B;
  --warn:       #E0922B;
  --err:        #E0533B;

  --radius-xl:  22px;
  --radius-lg:  16px;
  --radius-md:  12px;
  --radius-sm:  9px;
  --radius-pill:999px;

  --shadow-sm:  0 1px 2px rgba(17,19,24,.04), 0 2px 8px rgba(17,19,24,.04);
  --shadow-md:  0 4px 14px rgba(17,19,24,.06), 0 12px 32px rgba(17,19,24,.07);
  --shadow-lg:  0 8px 22px rgba(17,19,24,.09), 0 22px 50px rgba(17,19,24,.10);

  --maxw: 1160px;
  --nav-h: 66px;

  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font: var(--font-sans);
}

/* ---------- 暗色（自动跟随系统，保留珊瑚温度） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0F1115;
    --surface:    #171A21;
    --surface-2:  #1F232C;
    --ink:        #F2F4F8;
    --text:       var(--ink);
    --muted:      #9AA1AC;
    --faint:      #6B7280;
    --line:       #262B34;
    --line-strong:#333A45;
    --accent:     #FF6A52;
    --accent-d:   #FF8269;
    --accent-soft:#2A1814;
    --ok:         #4FC08D;
    --err:        #FF6A52;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.3);
    --shadow-md:  0 6px 20px rgba(0,0,0,.36), 0 18px 44px rgba(0,0,0,.4);
    --shadow-lg:  0 10px 28px rgba(0,0,0,.45), 0 26px 60px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

/* ---------- 导航（白底 · 细线 · 轻微阴影 · 滚动感） ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .brand {
  font-family: var(--font);
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.nav .links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; align-items: center; }
.nav .links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color .18s ease, background .18s ease;
}
.nav .links a:hover { color: var(--ink); background: var(--surface-2); }
.nav .links a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav .auth { display: flex; align-items: center; gap: 8px; }

/* ---------- 布局容器 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.card.fx-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card.fx-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------- 标题层级 ---------- */
h1 { font-size: 30px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 22px; margin: 0 0 14px; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; line-height: 1.4; }
.muted { color: var(--muted); font-size: 13.5px; }

.section { margin: 64px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 { margin: 0; font-size: 24px; }
.section-head a { color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.section-head a:hover { text-decoration: underline; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* ---------- 表单 ---------- */
form label { display: block; margin: 16px 0 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search],
select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
::placeholder { color: var(--faint); }
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }

/* ---------- 按钮 ---------- */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
}
button:hover, .btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-1px); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 34%, transparent); }
button:active, .btn:active { transform: translateY(0); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn.secondary, .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.secondary:hover, .btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); transform: none; color: var(--ink); }
.btn-dark {
  background: var(--ink); border-color: var(--ink); color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover { background: #000; border-color: #000; }
.btn.block { width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: var(--radius-md); }

/* 导航上的登录/注册（旧 class 兼容） */
.nav .auth a.btn-ghost { border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: none; }
.nav .auth a.btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.nav .auth a.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 8px 18px; border-radius: var(--radius-pill); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.nav .auth a.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }

/* ---------- 行 / 栅格 ---------- */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

/* ---------- 标签 / 徽章 ---------- */
.tag, .badge {
  display: inline-block;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  margin: 2px;
  font-weight: 600;
}
.tag:hover { background: var(--accent-soft); color: var(--accent-d); }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.err { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* ---------- 结果 / 代码块 ---------- */
.result {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .04em; border-bottom: 2px solid var(--line-strong); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: var(--surface-2); }
td a { color: var(--accent); text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---------- 计划 / 定价卡 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.plan {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}
.plan.featured::after {
  content: "推荐";
  position: absolute;
  top: -12px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.plan h2 { font-size: 19px; margin-bottom: 4px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 12px 0; letter-spacing: -.02em; }
.plan .price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; }
.plan li { font-size: 13.5px; color: var(--muted); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- 提示消息 ---------- */
.msg { font-size: 13.5px; margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-md);
       border-left: 3px solid var(--line-strong); background: var(--surface-2); }
.msg.ok { color: var(--ok); border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.msg.err { color: var(--err); border-left-color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 44px 20px;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

/* ---------- 图片网格 ---------- */
.img-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.img-grid img { width: 120px; border-radius: var(--radius-md); border: 1px solid var(--line); }

/* =====================================================================
   Hero（首页主视觉 · 工具工作台风）
   ===================================================================== */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 0 auto 0; height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 auto 18px;
  max-width: 16em;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* 输入魔法框 */
.magic-input {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 660px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.magic-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.magic-input .mi-icon { color: var(--faint); flex-shrink: 0; }
.magic-input input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-size: 15.5px;
  box-shadow: none !important;
  outline: none;
}
.magic-input input:focus { box-shadow: none; }
.magic-input button { border-radius: var(--radius-pill); white-space: nowrap; padding: 12px 26px; }
.hero-hint { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-hint b { color: var(--ink); font-weight: 700; }

/* ---------- 数据栏 ---------- */
.stats { display: flex; margin-top: 44px; flex-wrap: wrap; gap: 14px; }
.stat {
  flex: 1; min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat .num .u { color: var(--accent); }
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 三步引导 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-d);
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* =====================================================================
   工具枢纽网格（工作台核心）
   ===================================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}
.tool-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tool-card .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-d);
  margin-bottom: 16px;
}
.tool-card .ic svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 17.5px; margin: 0 0 6px; font-weight: 700; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tool-card .go {
  position: absolute; top: 22px; right: 22px;
  color: var(--faint); transition: transform .2s ease, color .2s ease;
}
.tool-card:hover .go { transform: translateX(3px); color: var(--accent); }

/* =====================================================================
   工具结果工作流面板（展示 AI 产出）
   ===================================================================== */
.workflow { display: grid; grid-template-columns: 1fr; gap: 16px; }
.io-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.io-card .label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); flex-shrink: 0; width: 64px;
}
.io-card .val { font-size: 14px; color: var(--ink); word-break: break-all; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--accent-d);
  background: var(--accent-soft); padding: 4px 12px; border-radius: var(--radius-pill);
}
.result-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rb {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.rb .k { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .03em; }
.rb .v { font-size: 14px; color: var(--ink); line-height: 1.6; }
.copy-btn {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  border-radius: var(--radius-pill); padding: 4px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* =====================================================================
   资讯 / 博客模块（工作台风）
   ===================================================================== */
.blog-hero { text-align: left; margin: 40px 0 24px; }
.blog-hero .eyebrow { margin-bottom: 10px; }
.blog-hero h1 { font-size: 34px; margin-bottom: 8px; }
.blog-hero p { color: var(--muted); margin-bottom: 18px; }
.blog-search { display: flex; gap: 10px; max-width: 520px; }
.blog-search input { flex: 1; }
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.blog-card {
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.blog-card .cover { width: 100%; height: 160px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.blog-card .cover.ph {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: var(--accent-d);
}
.blog-card .body { padding: 16px; }
.blog-card .cat { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.blog-card h3 { font-size: 18px; margin: 8px 0; line-height: 1.4; }
.blog-card .summary { color: var(--muted); font-size: 13px; margin: 0 0 12px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; }

.sidebar .card { margin: 0 0 22px; }
.cat-list a, .tag-cloud a {
  display: inline-block; margin: 4px 8px 4px 0; color: var(--ink);
  text-decoration: none; font-size: 13px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 5px 13px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cat-list a:hover, .tag-cloud a:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-soft); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  text-decoration: none; color: var(--text); font-size: 13px; background: var(--surface);
  transition: border-color .15s ease, color .15s ease;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .cur { background: var(--accent); color: #fff; border-color: var(--accent); }

.article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 18px; border: 1px solid var(--line); }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-meta a { color: var(--accent); text-decoration: none; }
.blog-content { font-size: 16px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.blog-content h2, .blog-content h3 { margin: 30px 0 12px; }
.blog-content img { max-width: 100%; border-radius: var(--radius-md); margin: 14px 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.related-grid .blog-card .cover { height: 120px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: 13.5px;
  margin-bottom: 18px; font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* =====================================================================
   后台（admin）轻量化
   ===================================================================== */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .admin-wrap { grid-template-columns: 1fr; } }
.admin-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.admin-nav a { display: block; padding: 10px 14px; border-radius: var(--radius-md); color: var(--muted); text-decoration: none; font-size: 14px; transition: all .15s ease; }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a.active { background: var(--accent-soft); color: var(--accent-d); font-weight: 700; }

/* ---------- 顶部小工具条 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* =====================================================================
   视觉特效层（克制：仅轻入场 + 卡片微动，无极光/无点阵/无扫光）
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }

.orb { display: none !important; }
.glass { background: var(--surface); border: 1px solid var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nav { gap: 8px; padding: 0 14px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav .links { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hero { padding: 46px 0 34px; }
  .magic-input { flex-direction: column; align-items: stretch; padding: 14px; border-radius: var(--radius-lg); }
  .magic-input button { width: 100%; }
  .container { padding: 0 16px; }
  .card { padding: 18px; }
  .stats { flex-direction: column; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
