/* ============================================================
   蒸汽离线游戏库 — 设计系统
   浅色 · 通透 · 微动效
   ============================================================ */

:root {
  --bg: #f4f6fb;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #3d4a5c;
  --muted: #8a97a8;
  --line: #e6ebf2;
  --line-2: #eef1f6;

  --primary: #2f6bff;
  --primary-2: #7b5cff;
  --primary-soft: #eaf0ff;
  --pink: #ff5a76;
  --pink-soft: #ffe9ee;
  --green: #12b76a;
  --green-soft: #e6f8ef;
  --amber: #f79009;
  --amber-soft: #fff4e5;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, .08);
  --shadow: 0 10px 28px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, .28);

  --header-h: 68px;
  --ease: cubic-bezier(.22, .68, .26, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(47, 107, 255, .16); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.site-main { padding-bottom: 72px; min-height: 60vh; }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn-primary {
  --btn-fg: #fff;
  --btn-bd: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px -10px rgba(47, 107, 255, .8);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(47, 107, 255, .9); color: #fff; }

.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(47, 107, 255, .45); color: var(--primary); box-shadow: var(--shadow-sm); }

.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-mini {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: all .16s var(--ease);
}
.btn-mini:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-mini.danger:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .5); background: rgba(255, 255, 255, .94); }

.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 6px 16px -8px rgba(47, 107, 255, .9);
}
.logo-text { white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.main-nav a {
  position: relative;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--primary); }

.search { position: relative; display: flex; align-items: center; margin-left: auto; }
.search input {
  width: 220px;
  height: 38px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: width .3s var(--ease), border-color .2s, box-shadow .2s, background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  width: 280px;
  background: #fff;
  border-color: rgba(47, 107, 255, .5);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .12);
}
.search button {
  position: absolute;
  right: 6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.search button:hover { color: var(--primary); background: var(--primary-soft); }

.user-area { display: flex; align-items: center; gap: 10px; position: relative; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.avatar {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 13px; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta b { font-size: 13px; }
.user-meta em { font-style: normal; font-size: 11px; color: var(--muted); }
.user-meta em.vip { color: var(--pink); font-weight: 700; }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.user-area:hover .user-menu, .user-area:focus-within .user-menu { opacity: 1; visibility: visible; transform: none; }
.user-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.user-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.logout-form { margin: 0; }
.logout-form button {
  display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); background: none; border: 0; cursor: pointer;
}
.logout-form button:hover { background: var(--primary-soft); color: var(--primary); }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: .22s var(--ease); }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  margin: 26px 0 26px;
  padding: 56px 48px 48px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 12% 8%, #e8f0ff 0%, rgba(232, 240, 255, 0) 55%),
    radial-gradient(100% 100% at 88% 12%, #f2e9ff 0%, rgba(242, 233, 255, 0) 52%),
    linear-gradient(180deg, #fbfcff, #f2f6ff 60%, #eef3ff);
  border: 1px solid rgba(47, 107, 255, .1);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.hero::before { width: 380px; height: 380px; left: -80px; top: -140px; background: #cfe0ff; }
.hero::after { width: 320px; height: 320px; right: -60px; bottom: -160px; background: #e3d5ff; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(47, 107, 255, .18);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: var(--shadow-xs);
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .18); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  margin: 20px auto 14px;
  max-width: 820px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--primary) 10%, var(--primary-2) 55%, #ff6a9a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero > p { max-width: 660px; margin: 0 auto 30px; color: var(--ink-2); font-size: 15.5px; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .04);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hero-search:focus-within { transform: translateY(-2px); box-shadow: 0 24px 50px -24px rgba(47, 107, 255, .55); }
.hero-search svg { color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.hero-search button { height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 650; box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .9); transition: filter .18s, transform .18s; }
.hero-search button:hover { filter: brightness(1.06); transform: translateY(-1px); }

.hero-words { margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: var(--muted); }
.hero-words a { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(15, 23, 42, .06); color: var(--ink-2); transition: all .18s var(--ease); }
.hero-words a:hover { background: #fff; color: var(--primary); border-color: rgba(47, 107, 255, .35); transform: translateY(-1px); }

.hero-stats { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats > div { min-width: 132px; padding: 14px 20px; border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-xs); }
.hero-stats b { display: block; font-size: 21px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- 特色条 ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 26px 0 30px; }
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(47, 107, 255, .2); }
.feature .ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.feature:nth-child(2) .ico { background: var(--green-soft); color: var(--green); }
.feature:nth-child(3) .ico { background: var(--amber-soft); color: var(--amber); }
.feature:nth-child(4) .ico { background: var(--pink-soft); color: var(--pink); }
.feature:nth-child(5) .ico { background: #f0ecff; color: #7b5cff; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12.5px; color: var(--muted); }

/* ---------- 分类胶囊 ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: all .18s var(--ease);
}
.cat-chips a small { font-size: 11.5px; color: var(--muted); }
.cat-chips a:hover { color: var(--primary); border-color: rgba(47, 107, 255, .4); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.cat-chips a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px -14px rgba(47, 107, 255, .95);
}
.cat-chips a.active small { color: rgba(255, 255, 255, .78); }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 16px; }
.section-head h2 { position: relative; padding-left: 14px; font-size: 20px; letter-spacing: -.02em; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.section-head .more { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.section-head .more:hover { color: var(--primary); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(47, 107, 255, .22); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #eef3fb, #e6ecf7); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.card:hover .card-cover img { transform: scale(1.06); }
.card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, .34));
  opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover .card-cover::after { opacity: 1; }

.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff7a90, #ff4d6d);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px -8px rgba(255, 77, 109, .9);
}
.card-cat {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  transition: color .18s;
}
.card:hover .card-title { color: var(--primary); }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags a {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 11.5px;
}
.card-tags a:hover { background: var(--primary-soft); color: var(--primary); border-color: rgba(47, 107, 255, .3); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .18s var(--ease);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pagination .current { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; font-weight: 650; }
.pagination .dots { background: transparent; border: 0; color: var(--muted); }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; padding: 20px 0 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink-2); }

/* ---------- 文章页 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }

.article {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 30px 32px 34px;
  box-shadow: var(--shadow-xs);
}
.article-cover { margin: -30px -32px 26px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 2.8 / 1; max-height: 340px; background: var(--bg-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-head h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.025em; }
.article-info { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.article-info .tag-link { color: var(--primary); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pill-vip { background: var(--pink-soft); color: var(--pink); }
.pill-user { background: var(--primary-soft); color: var(--primary); }

.article-body { margin-top: 22px; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); }
.article-body img { border-radius: 12px; margin: 14px auto; }
.article-body h2, .article-body h3 { margin: 26px 0 12px; color: var(--ink); }
.article-body h2 { font-size: 20px; }
.article-body h3 { font-size: 17px; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(47, 107, 255, .35); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }

/* 会员专属横幅 */
.vip-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 18px 0 0; padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(100deg, #1f2937, #334155 60%, #3b2f5c);
  color: #fff;
  font-size: 14px;
}
.vip-banner .tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 8px; background: linear-gradient(135deg, #f7c46c, #f0a13c); color: #4a2c00; font-weight: 700; font-size: 12.5px; }
.vip-banner .free { font-size: 13px; color: rgba(255, 255, 255, .86); }

/* 凭据卡 */
.cred-box {
  margin: 22px 0 8px;
  border-radius: 14px;
  border: 1px solid rgba(47, 107, 255, .18);
  background: linear-gradient(180deg, #f7faff, #f2f6ff);
  overflow: hidden;
}
.cred-head { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-bottom: 1px solid rgba(47, 107, 255, .12); font-size: 13.5px; font-weight: 700; color: var(--primary); background: rgba(255, 255, 255, .6); }
.cred-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .16); }
.cred-body { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.cred-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; transition: background .18s; }
.cred-row:hover { background: rgba(255, 255, 255, .9); }
.cred-row .k { width: 62px; flex: none; font-size: 13px; color: var(--muted); }
.cred-row .v {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-all;
  letter-spacing: .01em;
}
.copy {
  flex: none;
  height: 30px; padding: 0 13px;
  border: 1px solid rgba(47, 107, 255, .3);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 650;
  transition: all .18s var(--ease);
}
.copy:hover { background: var(--primary); border-color: transparent; color: #fff; transform: translateY(-1px); }
.copy.done { background: var(--green); border-color: transparent; color: #fff; }
.copy.fail { background: var(--pink); border-color: transparent; color: #fff; }
.cred-note { padding: 12px 18px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed rgba(47, 107, 255, .16); }

/* 付费墙 */
.paywall {
  margin: 24px 0 8px;
  padding: 34px 24px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(47, 107, 255, .35);
  background: linear-gradient(180deg, #f8faff, #f3f7ff);
}
.paywall .lock { font-size: 30px; margin-bottom: 6px; }
.paywall h3 { font-size: 17px; margin-bottom: 8px; }
.paywall p { max-width: 460px; margin: 0 auto 18px; color: var(--muted); font-size: 13.5px; }

/* 步骤 */
.panel {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}
.panel > h3 { font-size: 15.5px; margin-bottom: 14px; }
.steps-panel { margin: 24px 0 0; background: var(--surface-2); border-style: dashed; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { position: relative; padding-left: 38px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(47, 107, 255, .9);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .18s var(--ease);
}
.tag-cloud a:hover { background: var(--primary-soft); border-color: rgba(47, 107, 255, .3); color: var(--primary); transform: translateY(-1px); }

/* ---------- 侧栏 ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 18px); }
.sidebar .panel:last-child { margin-bottom: 0; }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-item { display: flex; gap: 11px; align-items: center; padding: 6px; border-radius: 10px; transition: background .18s; }
.side-item:hover { background: var(--surface-2); }
.side-item .thumb { width: 76px; height: 46px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.side-item:hover .thumb img { transform: scale(1.07); }
.side-item .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.side-item .txt b { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item .txt span { font-size: 11.5px; color: var(--muted); }

/* ---------- 认证页 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 56px 0 40px; }
.auth-card {
  width: min(420px, 100%);
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 14.5px;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus { background: #fff; border-color: rgba(47, 107, 255, .55); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.auth-card .btn { margin-top: 8px; height: 46px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--pink-soft); color: #d92d4b; font-size: 13px; }

/* ---------- 会员页 ---------- */
.page-head { text-align: center; padding: 44px 0 26px; }
.page-head h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.page-head p { margin: 10px auto 0; max-width: 560px; color: var(--muted); font-size: 14.5px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47, 107, 255, .3); }
.plan.hot { border-color: rgba(47, 107, 255, .55); box-shadow: 0 18px 40px -24px rgba(47, 107, 255, .8); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 11.5px; font-weight: 700;
  white-space: nowrap;
}
.plan h3 { font-size: 15px; color: var(--ink-2); }
.plan .price { margin: 12px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan .desc { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.plan-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--ink-2); }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }

.notice-ok, .notice-warn {
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 18px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: #087443;
}
.notice-warn { border-left-color: var(--amber); background: var(--amber-soft); color: #92400e; }
.qq-box { margin: 26px 0 0; padding: 20px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); text-align: center; font-size: 14px; color: var(--ink-2); }
.qq-box b { color: var(--primary); font-size: 17px; letter-spacing: .04em; }

/* ---------- 用户中心 ---------- */
.me-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 24px; }
.me-head { text-align: center; }
.me-head .avatar { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 12px; }
.me-head h2 { font-size: 18px; }
.me-head .pill { margin-top: 8px; }
.kv-list { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 650; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.feat-list li { display: flex; gap: 9px; }
.feat-list li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- 后台 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-xs); }
.stat .n { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.stat .l { font-size: 12.5px; color: var(--muted); }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--surface-2); }
.table th:first-child { border-radius: 10px 0 0 10px; }
.table th:last-child { border-radius: 0 10px 10px 0; }
.table tbody tr:hover td { background: #fbfcff; }
.table .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: rgba(47, 107, 255, .28); box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-size: 14.5px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; color: var(--primary); }
.faq-item p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 空态 / 404 ---------- */
.empty { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 38px; margin-bottom: 10px; }
.err-page { padding: 90px 20px; text-align: center; }
.err-page .code { font-size: 72px; font-weight: 800; letter-spacing: -.05em; background: linear-gradient(120deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-page p { color: var(--muted); margin: 8px 0 22px; }

/* ---------- 提示条 ---------- */
.flash { padding: 11px 0; font-size: 13.5px; }
.flash-ok { background: var(--green-soft); color: #087443; }
.flash-err { background: var(--pink-soft); color: #d92d4b; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--line-2); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 34px; padding: 40px 0 30px; }
.footer-brand p { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 340px; }
.footer-links h4 { font-size: 13.5px; margin-bottom: 12px; }
.footer-links a { display: block; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.footer-links a:hover { color: var(--primary); }
.footer-links p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line-2); padding: 16px 0; font-size: 12.5px; color: var(--muted); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 288px; }
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .search input { width: 170px; }
  .search input:focus { width: 220px; }
}

@media (max-width: 960px) {
  .container { width: min(1240px, 100% - 32px); }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  body.menu-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  body.menu-open .main-nav a { padding: 11px 12px; border-radius: 10px; }
  .search { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .me-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 42px 26px 36px; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { margin: 14px 0 18px; border-radius: 18px; padding: 34px 18px 28px; }
  .hero h1 { font-size: 26px; }
  .hero > p { font-size: 14px; }
  .hero-search { padding: 6px 6px 6px 14px; }
  .hero-search button { padding: 0 16px; height: 40px; }
  .hero-stats > div { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  .hero-stats b { font-size: 17px; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .article { padding: 20px 18px 24px; }
  .article-cover { margin: -20px -18px 20px; aspect-ratio: 16 / 9; }
  .card-title { font-size: 13.5px; min-height: 38px; }
  .plans { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 30px 0 20px; }
  .user-meta { display: none; }
  .logo-text { font-size: 15px; }
}

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