/* ==========================================================================
   潇湘头条 · 重新设计 - 设计系统 (style.css)
   风格：极简编辑式新闻门户 / Minimal Editorial News
   主色：新闻红 #DC2626 | 辅助：深蓝 #1E40AF
   字体：Newsreader(标题) + 系统无衬线(正文)
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --brand: #dc2626;
  --brand-hover: #b91c1c;
  --brand-light: #ef4444;
  --brand-soft: #fef2f2;
  --brand-soft-2: #fee2e2;
  --brand-border: #fecaca;

  /* 辅助色 */
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --accent-soft: #eff6ff;

  /* 中性色 */
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --ink-5: #d1d5db;

  /* 背景 */
  --bg: #fafafa;
  --bg-warm: #fefefe;
  --bg-soft: #f3f4f6;
  --bg-tint: #f9fafb;
  --card: #ffffff;

  /* 边框 */
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --line-light: #f3f4f6;

  /* 功能色 */
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --error: #dc2626;
  --error-soft: #fef2f2;

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, .06), 0 1px 2px rgba(17, 24, 39, .04);
  --shadow: 0 4px 12px rgba(17, 24, 39, .06), 0 2px 4px rgba(17, 24, 39, .04);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, .10), 0 4px 8px rgba(17, 24, 39, .06);
  --shadow-header: 0 1px 0 rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .06);

  /* 布局 */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: 20px;
  --header-h: 68px;
  --topbar-h: 36px;

  /* 字体 */
  --font-serif: "Newsreader", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;

  /* 动效 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.35; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
::selection { background: var(--brand-soft-2); color: var(--ink); }

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

/* ---------- 布局工具 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 两栏布局 */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.layout .main { min-width: 0; }
.layout .aside { min-width: 0; position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease);
}
.tag:hover { background: var(--brand-soft); color: var(--brand); }
.tag-red { background: var(--brand-soft); color: var(--brand); }
.tag-red:hover { background: var(--brand); color: #fff; }
.tag-blue { background: var(--accent-soft); color: var(--accent); }
.tag-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }

/* ---------- 元信息 ---------- */
.meta {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-5); display: inline-block; }
.meta a { color: var(--ink-3); }
.meta a:hover { color: var(--brand); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line); }

/* ---------- 输入框 ---------- */
.input, .textarea, .select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.field .hint { margin-top: 6px; font-size: 12px; color: var(--ink-4); }

/* ---------- 分页 ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 32px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease);
}
.pagination a:hover { background: var(--brand-soft); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; font-weight: 700; }
.pagination .info { color: var(--ink-4); font-size: 13px; margin-left: 8px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 16px 0;
  font-size: 13px; color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-5); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.empty .icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty p { font-size: 15px; }

/* ==========================================================================
   顶部工具条
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: var(--topbar-h);
  height: var(--topbar-h);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar .brand-tag { color: var(--brand-light); font-weight: 700; letter-spacing: .5px; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar-links a { color: rgba(255,255,255,.7); }
.topbar-links a:hover { color: #fff; }
.topbar-links .sep { opacity: .3; }

/* ==========================================================================
   主头部
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
}
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--ink); line-height: 1.1; font-family: var(--font-serif); }
.logo-text b { color: var(--brand); }

.header-search { flex: 1; display: flex; justify-content: center; }
.search-box {
  display: flex; align-items: center;
  width: min(480px, 100%);
  height: 42px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
  overflow: hidden;
}
.search-box:focus-within {
  background: var(--card);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-box input {
  flex: 1; height: 100%;
  padding: 0 16px 0 18px;
  border: 0; background: transparent;
  font-size: 14px; color: var(--ink);
  outline: none;
}
.search-box input::placeholder { color: var(--ink-4); }
.search-box button {
  height: 100%; padding: 0 22px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: background var(--dur-fast) var(--ease);
}
.search-box button:hover { background: var(--brand-hover); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .user-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   主导航
   ========================================================================== */
.main-nav {
  border-top: 1px solid var(--line-light);
  background: var(--card);
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center;
  height: 48px; padding: 0 16px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--brand); }
.nav-item.active .nav-link { color: var(--brand); }
.nav-item.active .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--brand); border-radius: 2px 2px 0 0;
}
.nav-caret { margin-left: 4px; font-size: 10px; color: var(--ink-4); }

/* 下拉菜单 */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur) var(--ease-out);
  z-index: 50;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 8px 14px;
  font-size: 14px; color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.nav-dropdown a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right a { font-size: 13px; color: var(--ink-3); }
.nav-right a:hover { color: var(--brand); }

/* 汉堡按钮 */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
}
.drawer-mask {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .5);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--card);
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-mask { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-3);
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease);
}
.drawer-close:hover { background: var(--bg-soft); color: var(--ink); }
.drawer-body { padding: 12px; }
.drawer-item a {
  display: block; padding: 12px 16px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease);
}
.drawer-item a:hover { background: var(--brand-soft); color: var(--brand); }
.drawer-item.active a { color: var(--brand); background: var(--brand-soft); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 60px;
  background: var(--ink);
  color: rgba(255,255,255,.6);
}
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 36px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text b { color: var(--brand-light); }
.footer-desc {
  margin-top: 16px;
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,.5);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--brand-light); }

/* 回到顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 18px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==========================================================================
   首页 - Hero 焦点区
   ========================================================================== */
.hero-section { padding: 24px 0 8px; }
.hero {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.hero-lead {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  display: block;
}
.hero-lead img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero-lead:hover img { transform: scale(1.03); }
.hero-lead-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.hero-lead-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: #fff;
}
.hero-lead-body .tag { margin-bottom: 10px; }
.hero-lead-body h2 {
  font-size: 26px; font-weight: 800; line-height: 1.3;
  font-family: var(--font-serif);
  margin-bottom: 8px;
  color: #fff;
}
.hero-lead-body p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; }
.hero-lead-body .meta { color: rgba(255,255,255,.65); margin-top: 10px; }
.hero-lead-body .meta .dot { background: rgba(255,255,255,.4); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  min-height: 0;
}
.hero-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero-card:hover img { transform: scale(1.04); }
.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}
.hero-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  color: #fff;
}
.hero-card-body h3 {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-card-body .meta { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; }
.hero-card-body .meta .dot { background: rgba(255,255,255,.4); }

/* ==========================================================================
   首页 - 头条速递
   ========================================================================== */
.breaking {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  padding: 20px 24px;
}
.breaking-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--ink);
  margin-bottom: 14px;
  font-family: var(--font-serif);
}
.breaking-head::before {
  content: ''; width: 4px; height: 18px;
  background: var(--brand); border-radius: 2px;
}
.breaking-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.breaking-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
}
/* 同 .article-item：只位移内容，避免重排 / 分隔线被推走 */
.breaking-item > * { transition: transform var(--dur) var(--ease-out); }
.breaking-item:hover > * { transform: translateX(4px); }
.breaking-item img {
  width: 72px; height: 54px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.breaking-body { flex: 1; min-width: 0; }
.breaking-body h3 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease);
}
.breaking-item:hover h3 { color: var(--brand); }
.breaking-body .meta { font-size: 12px; margin-top: 4px; }

/* ==========================================================================
   区块标题
   ========================================================================== */
.section { margin-top: 40px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 22px;
  background: var(--brand); border-radius: 2px;
}
.section-more {
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; gap: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.section-more:hover { color: var(--brand); }

/* ==========================================================================
   新闻卡片
   ========================================================================== */
.news-card { display: block; }
.news-thumb {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 12px;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-card h3 {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease);
}
.news-card:hover h3 { color: var(--brand); }
.news-card .meta { margin-top: 8px; font-size: 12px; }

/* 三列网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* 双栏区块 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.duo-col { min-width: 0; }

/* ==========================================================================
   排行榜
   ========================================================================== */
.rank-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list b {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--ink-4);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-top: 1px;
}
.rank-list li:nth-child(1) b { background: var(--brand); color: #fff; }
.rank-list li:nth-child(2) b { background: #f97316; color: #fff; }
.rank-list li:nth-child(3) b { background: #eab308; color: #fff; }
.rank-list a {
  flex: 1; min-width: 0;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-fast) var(--ease);
}
.rank-list a:hover { color: var(--brand); }
.rank-list em {
  flex-shrink: 0;
  font-size: 12px; color: var(--ink-4); font-style: normal;
  margin-top: 2px;
}

/* 排行第一名大图 */
.rank-top {
  display: block; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 12px;
}
.rank-top img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.rank-top:hover img { transform: scale(1.04); }
.rank-top .rank-no {
  position: absolute; top: 10px; left: 10px;
  width: 28px; height: 28px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.rank-top h4 {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 14px 12px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  line-height: 1.4;
}

/* ==========================================================================
   侧边栏组件
   ========================================================================== */
.widget {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 16px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before {
  content: ''; width: 3px; height: 16px;
  background: var(--brand); border-radius: 2px;
}
.widget-tabs {
  display: flex; gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.widget-tabs button {
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--dur-fast) var(--ease);
}
.widget-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.widget-pane { display: none; }
.widget-pane.active { display: block; }

/* 标签云 */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-cloud .tag { height: 30px; padding: 0 14px; font-size: 13px; }

/* ==========================================================================
   文章列表（栏目/搜索/标签页）
   ========================================================================== */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
}
/* 悬停位移只作用在内容上：改 padding 会触发重排，改整块 transform 会把
   底部分隔线一起推走、左边留出缺口。只位移子元素则既走合成层、分隔线原地不动。 */
.article-item > * { transition: transform var(--dur) var(--ease-out); }
.article-item:hover > * { transform: translateX(6px); }
.article-item:first-child { padding-top: 0; }
.article-item .thumb {
  width: 220px; height: 150px; flex-shrink: 0;
  border-radius: var(--radius-lg); overflow: hidden;
}
.article-item .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.article-item:hover .thumb img { transform: scale(1.04); }
.article-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-item-body h3 {
  font-size: 18px; font-weight: 700; line-height: 1.4;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 8px;
  transition: color var(--dur-fast) var(--ease);
}
.article-item:hover h3 { color: var(--brand); }
.article-item-body .desc {
  font-size: 14px; color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}
.article-item-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.article-item-foot .tags { display: flex; gap: 6px; }

/* 页面头 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 8px 0 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 28px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
}
.page-count { font-size: 14px; color: var(--ink-3); }
.page-count b { color: var(--brand); font-weight: 800; }

/* 子栏目导航 */
.subcats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.subcats a {
  padding: 6px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
}
.subcats a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.subcats a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==========================================================================
   文章详情页
   ========================================================================== */
.detail-layout { padding-top: 8px; }
.article-head { margin-bottom: 28px; }
.article-head .tag { margin-bottom: 14px; }
.article-head h1 {
  font-size: 32px; font-weight: 800; line-height: 1.3;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 16px;
}
.article-head .meta { font-size: 13px; }
.article-head .meta b { color: var(--ink); font-weight: 700; }

.article-lead {
  font-size: 17px; line-height: 1.8;
  color: var(--ink-2);
  font-family: var(--font-serif);
  padding: 16px 20px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
}

.article-lead-img {
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.article-lead-img img { width: 100%; }

/* 正文 */
.prose {
  font-size: 16px; line-height: 1.9;
  color: var(--ink-2);
  font-family: var(--font-serif);
}
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 1.8em 0 .8em; color: var(--ink); font-family: var(--font-serif); }
.prose h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 .6em; color: var(--ink); }
.prose img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.prose blockquote {
  margin: 1.5em 0; padding: 16px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2); font-style: italic;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }

/* 文章操作 */
.article-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
}
.digg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 28px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 15px; font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
}
.digg-btn:hover { background: var(--brand); color: #fff; transform: scale(1.03); }
.digg-btn em { font-style: normal; font-weight: 800; }

/* 评论区 */
.comments { margin-top: 40px; }
.comments-title {
  font-size: 20px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.comments-title span { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.comment-form { margin-bottom: 32px; }
.comment-form textarea {
  width: 100%; min-height: 100px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.6;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.comment-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.comment-form-foot .hint { font-size: 12px; color: var(--ink-4); }
.comment-login {
  padding: 20px; text-align: center;
  background: var(--bg-tint); border-radius: var(--radius-lg);
  font-size: 14px; color: var(--ink-3);
}
.comment-login a { color: var(--brand); font-weight: 600; }

.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
}
.comment-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.comment-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
}
.comment-head b { font-size: 14px; color: var(--ink); }
.comment-head span { font-size: 12px; color: var(--ink-4); }
.comment-body { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.comment-replies { margin-top: 14px; padding-left: 20px; border-left: 2px solid var(--line-light); display: flex; flex-direction: column; gap: 12px; }
.comment-replies .comment-item { background: var(--bg-tint); border: 0; padding: 14px; }

/* 上一篇/下一篇 */
.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.prevnext a, .prevnext .pn-empty {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast) var(--ease);
}
.prevnext a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.prevnext .pn-label { font-size: 12px; color: var(--ink-4); font-weight: 600; }
.prevnext .pn-title {
  font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.prevnext a:hover .pn-title { color: var(--brand); }

/* 相关推荐 */
.related { margin-top: 40px; }

/* ==========================================================================
   会员认证页面
   ========================================================================== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - var(--topbar-h) - 300px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .logo { justify-content: center; margin-bottom: 16px; }
.auth-head h1 {
  font-size: 24px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-head p { font-size: 14px; color: var(--ink-3); }
.auth-msg {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 18px;
}
.auth-msg.success { background: var(--success-soft); color: var(--success); }
.auth-msg.error { background: var(--error-soft); color: var(--error); }
.auth-foot {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: var(--ink-3);
}
.auth-foot a { color: var(--brand); font-weight: 600 }

/* 注意：这里原本有一块「滑动验证占位」样式
   （.slide-captcha { height:42px; display:flex } + ::before 假文案），
   是真实验证码组件接进来之前的占位。它会把 .slide-captcha 压成 42px 并让子元素横向排布，
   导致真组件被裁成一条、拼图块溢出到滑轨上。真组件样式在 page-auth.css，这里已删除。 */

/* ==========================================================================
   会员中心
   ========================================================================== */
.member-shell { padding: 24px 0 40px; }
.member-top {
  display: flex; align-items: center; gap: 20px;
  padding: 28px;
  background: linear-gradient(135deg, var(--brand-soft), var(--card));
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}
.member-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.member-top-body { flex: 1; min-width: 0; }
.member-top-body h2 {
  font-size: 22px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.member-uname { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.member-stats {
  display: flex; gap: 20px; margin-top: 8px;
  font-size: 12px; color: var(--ink-3);
}
.member-actions { display: flex; gap: 10px; flex-shrink: 0; }

.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-title {
  font-size: 16px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title .link { font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* 头像上传 */
.avatar-upload { display: flex; gap: 20px; align-items: flex-start; }
.avatar-box {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
  cursor: pointer;
}
.avatar-box:hover .avatar-hover { opacity: 1; }

/* 评论动态 */
.comment-feed li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.comment-feed li:last-child { border-bottom: 0; }
.cf-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 6px;
}
.cf-meta a { color: var(--brand); font-weight: 600; }
.cf-status {
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
}
.cf-status.st-ok { background: var(--success-soft); color: var(--success); }
.cf-status.st-no { background: var(--error-soft); color: var(--error); }
.cf-status.st-pd { background: var(--warning-soft); color: var(--warning); }
.cf-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* 投稿列表 */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: all var(--dur-fast) var(--ease);
}
.post-item:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
.post-item-main { flex: 1; min-width: 0; }
.post-item-main h3 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
  font-family: var(--font-serif);
}
.post-item-main h3 a:hover { color: var(--brand); }
.post-reject {
  display: block;
  font-size: 12px; color: var(--error);
  background: var(--error-soft);
  padding: 4px 10px; border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.post-status {
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.post-status.st-0 { background: var(--warning-soft); color: var(--warning); }
.post-status.st-1 { background: var(--success-soft); color: var(--success); }
.post-status.st-2 { background: var(--error-soft); color: var(--error); }
.post-item-ops { display: flex; gap: 12px; flex-shrink: 0; }
.post-item-ops a, .post-item-ops button {
  font-size: 13px; color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
  background: none; border: 0; cursor: pointer;
}
.post-item-ops a:hover { color: var(--brand); }
.post-item-ops button:hover { color: var(--error); }

/* 投稿表单 */
.post-form .field { margin-bottom: 20px; }
.post-form select.input { height: 42px; }
.post-form .editor-toolbar {
  display: flex; gap: 6px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.post-form .editor-toolbar button {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.post-form .editor-toolbar button:hover { background: var(--card); color: var(--brand); }
.post-form .editor {
  min-height: 360px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 15px; line-height: 1.8;
  font-family: var(--font-serif);
  outline: none;
}
.post-form .editor:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ==========================================================================
   标签云页
   ========================================================================== */
.cloud-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.cloud-hero h1 {
  font-size: 36px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 10px;
}
.cloud-hero p { font-size: 15px; color: var(--ink-3); }
.cloud-body {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}
.cloud-body .tag {
  height: 36px; padding: 0 18px;
  font-size: 14px; margin: 4px;
}

/* ==========================================================================
   404 页面
   ========================================================================== */
.error-page {
  text-align: center;
  padding: 80px 20px 60px;
}
.error-code {
  font-size: 120px; font-weight: 900;
  font-family: var(--font-serif);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -4px;
}
.error-code span { color: var(--brand); }
.error-page h1 {
  font-size: 28px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 10px;
}
.error-page p { font-size: 15px; color: var(--ink-3); margin-bottom: 32px; }
.error-page .search-box { margin: 0 auto 28px; max-width: 480px; }
.error-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; }
.error-cats { text-align: left; max-width: 800px; margin: 0 auto; }
.error-cats h3 {
  font-size: 16px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.error-cats-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.error-cat > a {
  display: block;
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}
.error-cat > a:hover { color: var(--brand); }
.error-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.error-sub a {
  font-size: 13px; color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
}
.error-sub a:hover { color: var(--brand); }

/* ==========================================================================
   站点地图
   ========================================================================== */
.sitemap { padding: 24px 0 40px; }
.sitemap-section { margin-bottom: 36px; }
.sitemap-section h2 {
  font-size: 20px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.sitemap-section h2::before {
  content: ''; width: 4px; height: 18px; background: var(--brand); border-radius: 2px;
}
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sitemap-item {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease);
}
.sitemap-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.sitemap-item a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  display: block;
}
.sitemap-item:hover a { color: var(--brand); }

/* ==========================================================================
   会员主页
   ========================================================================== */
.member-home-hero {
  padding: 40px 0 32px;
  background: linear-gradient(135deg, var(--brand-soft), var(--card));
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.member-home-hero .container {
  display: flex; align-items: center; gap: 24px;
}
.member-home-hero .member-avatar { width: 96px; height: 96px; }
.member-home-info h1 {
  font-size: 28px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 6px;
}
.member-home-info .bio { font-size: 14px; color: var(--ink-3); max-width: 500px; }
.member-home-stats {
  display: flex; gap: 32px; margin-top: 12px;
}
.member-home-stats div { text-align: center; }
.member-home-stats b {
  display: block; font-size: 22px; font-weight: 800;
  font-family: var(--font-serif); color: var(--ink);
}
.member-home-stats span { font-size: 12px; color: var(--ink-3); }

/* ==========================================================================
   横向滚动
   ========================================================================== */
.scroll-row { position: relative; }
.scroll-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-item { flex: 0 0 280px; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: all var(--dur-fast) var(--ease);
}
.scroll-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.scroll-prev { left: -12px; }
.scroll-next { right: -12px; }

/* 拼接大图 */
.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}
.mosaic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}
.mosaic-card:first-child { grid-row: span 2; }
.mosaic-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.mosaic-card:hover img { transform: scale(1.04); }
.mosaic-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.mosaic-card-body h3 {
  font-size: 16px; font-weight: 700; color: #fff;
  line-height: 1.4;
  font-family: var(--font-serif);
}
.mosaic-card:first-child .mosaic-card-body h3 { font-size: 22px; }

/* 选项卡 */
.tabs-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.tabs-nav button {
  padding: 10px 20px;
  font-size: 15px; font-weight: 700;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-serif);
  transition: all var(--dur-fast) var(--ease);
}
.tabs-nav button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs-nav button:hover:not(.active) { color: var(--ink-2); }
.tabs-panel { display: none; }
.tabs-panel.active { display: block; }

/* 热榜排行网格 */
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rank-col {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.rank-col-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.rank-col-head h3 {
  font-size: 16px; font-weight: 800;
  font-family: var(--font-serif);
  color: var(--ink);
}
.rank-col-head a { font-size: 12px; color: var(--ink-3); }
.rank-col-head a:hover { color: var(--brand); }

/* 友情链接 */
.links {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.links-head {
  font-size: 14px; font-weight: 700; color: var(--ink-3);
  margin-bottom: 12px;
}
.links-body { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.links-body a { font-size: 13px; color: var(--ink-3); transition: color var(--dur-fast) var(--ease); }
.links-body a:hover { color: var(--brand); }

/* 滚动渐入动画 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .layout .aside { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-card { aspect-ratio: 16/9; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .rank-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .member-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
  .error-cats-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .topbar { display: none; }
  .header-main { gap: 12px; }
  .header-search { display: none; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .hero-lead-body { padding: 18px; }
  .hero-lead-body h2 { font-size: 20px; }
  .hero-side { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .breaking-list { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item .thumb { width: 100%; height: 200px; }
  .prevnext { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-head h1 { font-size: 22px; }
  .article-head h1 { font-size: 24px; }
  .cloud-hero h1 { font-size: 28px; }
  .error-code { font-size: 80px; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .mosaic-card { aspect-ratio: 16/9; }
  .mosaic-card:first-child { grid-row: span 1; }
  .member-top { flex-direction: column; text-align: center; }
  .member-actions { justify-content: center; }
  .member-home-hero .container { flex-direction: column; text-align: center; }
  .member-home-stats { justify-content: center; }
  .scroll-item { flex: 0 0 240px; }
  .section-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  .auth-card { padding: 28px 20px; }
  .error-cats-list { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
