/* ============================================================
   个人学术网站原型 · 样式系统
   学术克制 + 现代精致 · 明暗主题 · 响应式
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --font-serif: Georgia, "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --text: #1a2438;
  --text-soft: #56607a;
  --text-muted: #8b95a8;
  --border: #e6e9ef;
  --border-strong: #d2d8e3;
  --primary: #2c5282;
  --primary-hover: #1e3a5f;
  --primary-soft: #eaf1f9;
  --accent: #0d9488;
  --accent-soft: #e4f5f3;
  --danger: #c0392b;
  --warning: #b7791f;
  --shadow: 0 1px 3px rgba(20,30,50,0.04), 0 6px 20px rgba(20,30,50,0.05);
  --shadow-hover: 0 6px 16px rgba(20,30,50,0.08), 0 16px 40px rgba(20,30,50,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #161f33;
  --bg-card: #1a2438;
  --text: #e8edf5;
  --text-soft: #a6b1c6;
  --text-muted: #69748c;
  --border: #283449;
  --border-strong: #3a4660;
  --primary: #6ba6ec;
  --primary-hover: #8cbbf2;
  --primary-soft: #1c2d4d;
  --accent: #2dd4bf;
  --accent-soft: #13352f;
  --danger: #f06a5a;
  --warning: #d9a441;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.25);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.35), 0 16px 40px rgba(0,0,0,0.3);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- 布局容器 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); transition: background var(--t); }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 1.02rem; }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--text); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-soft); font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: all var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* 主题切换按钮 */
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center; transition: all var(--t);
}
.theme-btn:hover { color: var(--text); border-color: var(--border-strong); transform: rotate(15deg); }
.theme-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* 登录按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: all var(--t); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }
.btn-sm { padding: 6px 13px; font-size: 0.82rem; }

/* 移动端菜单 */
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: var(--text-soft); max-width: 560px; margin-bottom: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tag {
  font-size: 0.82rem; padding: 5px 13px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 500;
  border: 1px solid transparent; transition: all var(--t);
}
.tag:hover { border-color: var(--primary); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 头像/装饰 */
.hero-visual { display: grid; place-items: center; }
.avatar-ring {
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center; position: relative;
}
.avatar-ring::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed var(--border-strong); animation: spin 40s linear infinite;
}
.avatar-inner {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-serif); font-size: 3.4rem; font-weight: 600;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px 12px; }
.stat-num { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.94rem; }

/* ---------- 论文列表 ---------- */
.pub-list { display: flex; flex-direction: column; gap: 4px; }
.pub-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border); transition: all var(--t);
}
.pub-item:hover { background: var(--bg-soft); padding-left: 8px; padding-right: 8px; margin-left: -8px; margin-right: -8px; border-radius: 8px; }
.pub-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.pub-title {
  font-weight: 600; color: var(--text); font-size: 0.95rem;
  line-height: 1.5; word-break: break-word; overflow-wrap: break-word;
}
a.pub-title:hover {
  color: var(--primary); text-decoration: underline;
}
.pub-detail {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
  word-break: break-word; overflow-wrap: break-word;
}
.pub-abstract-inline {
  font-size: 0.8rem; color: var(--text-soft); line-height: 1.5;
  margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-type-tag {
  display: inline-block; font-size: 0.68rem; padding: 1px 7px; border-radius: 3px;
  font-weight: 600; vertical-align: middle; margin-left: 2px;
}
.pub-type-journal { background: var(--primary-soft); color: var(--primary); }
.pub-type-conf { background: var(--accent-soft); color: var(--accent); }
.pub-meta { font-size: 0.86rem; color: var(--text-muted); }
.pub-tags { display: inline-flex; gap: 6px; margin-top: 7px; }
.pub-tag { font-size: 0.72rem; padding: 2px 9px; border-radius: 4px; background: var(--bg-soft); color: var(--text-soft); }
.pub-links { display: flex; gap: 12px; align-items: center; flex-shrink: 0; padding-top: 2px; }
.pub-links .pub-link { font-size: 0.82rem; white-space: nowrap; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: baseline;
  padding: 16px 6px; border-bottom: 1px solid var(--border); transition: all var(--t);
}
.news-item:hover { padding-left: 14px; }
.news-date { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.news-title { color: var(--text); font-weight: 500; }
.news-item:hover .news-title { color: var(--primary); }

/* NEW 徽标 */
.news-badge {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 2px 9px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: #fff; background: var(--primary); border-radius: 20px; line-height: 1.6;
  animation: pulse 2s ease-in-out infinite;
}
/* 置顶徽标 — 不闪烁 */
.news-badge-pinned {
  background: #f59e0b; animation: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}

/* 首页最新动态板块 */
.news-latest-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.news-latest-link { font-size: 0.88rem; font-weight: 500; color: var(--primary); transition: opacity var(--t); }
.news-latest-link:hover { opacity: 0.75; }

/* ---------- 动态详情页 ---------- */
.news-article { max-width: 760px; margin: 0 auto; }
.news-article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-muted); transition: color var(--t); margin-bottom: 28px; }
.news-article-back:hover { color: var(--primary); }
.news-article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.news-article-date { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.news-article-tag { font-size: 0.76rem; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }
.news-article-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; line-height: 1.3; margin-bottom: 24px; }
.news-article-body { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.news-article-body p { margin-bottom: 18px; }
.news-article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 14px; }
.news-article-body ul { margin: 0 0 18px 1.2em; }
.news-article-body li { margin-bottom: 8px; line-height: 1.7; }
.news-article-body blockquote { border-left: 3px solid var(--primary); padding: 8px 0 8px 18px; margin: 22px 0; color: var(--text-muted); font-style: italic; }
.news-article-footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.news-article-nav { display: flex; gap: 12px; }
.news-article-nav a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--t); }
.news-article-nav a:hover { color: var(--primary); }
.news-article-share { display: flex; gap: 10px; align-items: center; }
.news-article-share span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- 资源下载卡 ---------- */
.resource-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--t);
}
.resource-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateX(3px); }
.resource-card.locked { opacity: 0.92; }
.res-icon {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.res-icon.pdf { background: #c0392b; }
.res-icon.ppt { background: #d35400; }
.res-icon.zip { background: var(--accent); }
.res-icon.lock { background: var(--text-muted); }
.res-icon svg { width: 22px; height: 22px; }
.res-body { flex: 1; min-width: 0; }
.res-name { font-weight: 500; margin-bottom: 3px; }
.res-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; }
.lock-badge {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 4px;
  background: var(--warning); color: #fff; font-weight: 500;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 600; color: var(--text-soft); font-size: 0.82rem; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- 徽章/角色 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.badge-admin { background: var(--primary-soft); color: var(--primary); }
.badge-student { background: var(--accent-soft); color: var(--accent); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  border-top: none;
  padding: 56px 0 40px;
  background: #1a2438;
  transition: all var(--t);
}
/* 顶部装饰渐变线 */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 {
  font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #6b7a94; margin-bottom: 14px;
}
.footer a { display: block; color: #9aacbf; font-size: 0.9rem; padding: 4px 0; transition: color var(--t); }
.footer a:hover { color: #e8edf5; }
.footer .text-soft, .footer p { color: #8896aa; }
.footer .brand { display: flex; color: #e8edf5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: #5d6b82;
}

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 48px 28px; }
.auth-card { width: 100%; max-width: 410px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--text-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 0.94rem; transition: all var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.auth-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn-block { width: 100%; justify-content: center; padding: 12px; }

/* ---------- 后台布局 ---------- */
.admin-side { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 24px 16px; transition: all var(--t); }
.admin-side h4 { font-family: var(--font-sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 18px 12px 8px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 0.9rem; font-weight: 500; transition: all var(--t); }
.admin-side a:hover { background: var(--bg-card); color: var(--text); }
.admin-side a.active { background: var(--primary); color: #fff; }
.admin-side a svg { width: 17px; height: 17px; }
.admin-main { padding: 32px 36px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-head h2 { font-size: 1.4rem; }

/* 后台统计小卡 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.kpi-label { font-size: 0.8rem; color: var(--text-muted); }
.kpi-val { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--text); margin-top: 4px; }
.kpi-val .unit { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 11px 18px; font-size: 0.9rem; font-weight: 500; color: var(--text-soft); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--t); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 44px;
  text-align: center; color: var(--text-soft); transition: all var(--t); cursor: pointer;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upload-zone svg { width: 40px; height: 40px; margin: 0 auto 12px; }

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 详情页：个人简介 ---------- */
.profile-hero { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; padding: 48px 0 8px; }
.profile-avatar {
  width: 180px; height: 180px; border-radius: 50%; border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-serif); font-size: 4rem; font-weight: 600;
}
.profile-name { font-size: 1.8rem; margin-bottom: 6px; }
.profile-title { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 14px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--primary);
}
.tl-date { font-size: 0.84rem; color: var(--accent); font-weight: 600; margin-bottom: 3px; }
.tl-title { font-weight: 500; color: var(--text); }
.tl-desc { font-size: 0.9rem; color: var(--text-soft); margin-top: 2px; }

/* ---------- 详情页正文 ---------- */
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--text-soft); font-size: 1rem; line-height: 1.8; }
.prose p strong { color: var(--text); }

/* 两栏：左文右信息卡 */
.split-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-card h4 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-muted); }
.info-row span:last-child { color: var(--text); font-weight: 500; text-align: right; }

/* ---------- 研究详情：方向大块 ---------- */
.direction { padding: 32px 0; border-bottom: 1px solid var(--border); }
.direction:last-child { border-bottom: none; }
.direction-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.direction-num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; flex-shrink: 0;
}
.direction h3 { font-size: 1.25rem; }
.direction p { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 12px; }
.direction .pub-tags { margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .avatar-ring { width: 220px; height: 220px; }
  .avatar-inner { width: 170px; height: 170px; font-size: 2.6rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .pub-item { flex-direction: column; gap: 8px; }
  .pub-links { margin-top: 2px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 22px 18px; }
  .container { padding: 0 20px; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
  .profile-tags { justify-content: center; }
  .split-2 { grid-template-columns: 1fr; }
}

/* ---------- 分页样式 ---------- */
.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  min-width: 40px;
}

.pagination-btn:hover:not(.pagination-active):not(.pagination-disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
}

.pagination-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.pagination-disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-ellipsis {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
