/* ========== 世界华文文学数据总库 — 样式表 ========== */

:root {
  --primary: #4B3DC4;
  --primary-light: #ECE9FD;
  --primary-dark: #322887;
  --primary-mid: #8F86E8;
  --accent: #F59E0B;
  --accent-light: #FCF0D8;
  --bg: #F7F4FD;
  --surface: #FFFFFF;
  --surface-alt: #F1EFE8;
  --text: #12121C;
  --text-secondary: #3E3E50;
  --text-tertiary: #5F5F74;
  --border: #DCD7EA;
  --border-strong: #B4ADCF;
  --success: #128A63;
  --success-light: #DDF3EA;
  --danger: #DC3B3A;
  --danger-light: #FBE7E7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(75, 61, 196, 0.08);
  --shadow-md: 0 4px 12px rgba(75, 61, 196, 0.10);
  --shadow-lg: 0 8px 28px rgba(75, 61, 196, 0.14);
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ========== 测试域名提示（CloudBase 体验版） ========== */
.test-domain-tip {
  background: linear-gradient(90deg, #FFF8E1 0%, #FFFBEA 100%);
  border-bottom: 1px solid #F0C36D;
  color: #5C4A1E;
  font-size: 13px;
  line-height: 1.6;
}
.test-domain-tip__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.test-domain-tip strong {
  color: #8B6B1F;
  font-weight: 600;
}
.test-domain-tip code {
  background: #F5E6BC;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.test-domain-tip__text { flex: 1; }
.test-domain-tip em {
  font-style: normal;
  font-weight: 600;
  color: #8B6B1F;
}
.test-domain-tip__close {
  background: transparent;
  border: 1px solid #D4A857;
  color: #8B6B1F;
  font-size: 16px;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.test-domain-tip__close:hover { background: #F0DDA0; }
@media (max-width: 720px) {
  .test-domain-tip__inner { padding: 8px 14px; gap: 8px; font-size: 12px; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg) url('../img/bg-paper.svg') center top / cover no-repeat fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ========== 顶部导航 ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar .logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .logo .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
  max-height: 60px;
  overflow: hidden;
  align-items: center;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-highlight {
  background: var(--accent-light);
  color: var(--accent) !important;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-links a.active {
  background: var(--primary);
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  width: 240px;
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  flex: 1;
  font-family: var(--font-sans);
  color: var(--text);
}

.nav-search input::placeholder { color: var(--text-tertiary); }

.nav-search .search-icon {
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
}

/* ========== 首页 Hero ========== */
.hero {
  background: linear-gradient(135deg, rgba(20,16,60,0.35) 0%, rgba(20,16,60,0.05) 100%),
              url('../img/hero-bg.svg') center center / cover no-repeat;
  color: #fff;
  padding: 72px 28px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.10) 0%, transparent 55%);
}

.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 3px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}

.hero .subtitle {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 34px;
  line-height: 1.85;
  text-shadow: 0 1px 10px rgba(0,0,0,0.30);
}

.hero-search {
  display: flex;
  background: #fff;
  border-radius: 30px;
  padding: 7px 7px 7px 22px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.24);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  background: transparent;
}

.hero-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 11px 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}

.hero-search button:hover { background: var(--primary-dark); }

.hero-tags {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags span {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  padding: 5px 15px;
  border-radius: 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(2px);
}

.hero-tags span:hover { background: rgba(255,255,255,0.32); }

/* ========== 统计仪表盘 ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}

.stat-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item .num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.stat-item.stat-2020 .num {
  color: var(--danger);
}

.stats-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 16px 12px;
  line-height: 1.6;
}

.stats-note b { color: var(--primary); }

/* ========== 通用容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 28px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .bar {
  width: 5px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
}

/* ========== 页面返回按钮 ========== */
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  margin-bottom: 14px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all .2s;
}
.page-back-btn:hover {
  background: var(--primary);
  color: #fff;
}
.page-back-btn:active {
  transform: scale(0.97);
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-left: 14px;
}

/* ========== 区域卡片 ========== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.region-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.region-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-mid);
}

.region-card .region-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
}

.region-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.region-card .countries {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
}

.region-card .region-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ========== 作家卡片 ========== */
.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.author-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-mid);
  transform: translateY(-2px);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.author-alt {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.author-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-meta .tag {
  background: var(--surface-alt);
  padding: 2px 8px;
  border-radius: 4px;
}

.author-meta .country {
  color: var(--primary);
}

/* ========== 作品列表 ========== */
.works-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.works-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.works-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.works-table tr:hover { background: var(--primary-light); }

.works-table .work-title { font-weight: 600; color: var(--primary); cursor: pointer; }
.works-table .genre-badge {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
}

/* ========== 组织卡片 ========== */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.org-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.org-card:hover { box-shadow: var(--shadow-md); }

.org-card .org-type {
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.org-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

.org-card .org-alt { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }

.org-card .org-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.org-card .org-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 活动时间线 ========== */
.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
}

.timeline-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.timeline-meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; }

.timeline-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ========== 详情面板 ========== */
.detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.detail-panel {
  background: var(--surface);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.detail-header {
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-header .avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-header h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }

.detail-header .alt-name { font-size: 14px; color: var(--text-tertiary); margin-bottom: 8px; }

.detail-body { padding: 20px 28px 28px; }

.detail-body .field { margin-bottom: 16px; }

.detail-body .field-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-body .field-value { font-size: 14px; color: var(--text); line-height: 1.7; }

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tag-row .tag {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
}

.tag-row .tag.accent { background: var(--accent-light); color: var(--accent); }

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-alt);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-close:hover { background: var(--border); }

/* ========== 知识图谱 ========== */
.graph-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 500px;
  position: relative;
}

.graph-svg {
  width: 100%;
  height: 500px;
}

.graph-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.graph-legend .item { display: flex; align-items: center; gap: 6px; }
.graph-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ========== 共建录入表单 ========== */
.contribute-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.form-tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.form-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-tabs button:hover { color: var(--primary); }

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--primary-dark); }

/* ========== 筛选条 ========== */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--primary); }

.filter-bar .filter-label { font-size: 13px; color: var(--text-tertiary); margin-right: 4px; }

.result-count { font-size: 13px; color: var(--text-tertiary); margin-left: auto; }

/* ========== 学术研究卡片 ========== */
.research-list { display: flex; flex-direction: column; gap: 12px; }

.research-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.research-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-mid); }

.research-type {
  font-size: 13px;
  color: var(--success);
  background: var(--success-light);
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
  height: fit-content;
}

.research-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.research-meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; }

.research-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== 报刊卡片 ========== */
.newspaper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.newspaper-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.newspaper-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-mid); }

.newspaper-card .np-status {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.newspaper-card .np-status.active { background: var(--success-light); color: var(--success); }
.newspaper-card .np-status.closed { background: var(--surface-alt); color: var(--text-tertiary); }

.newspaper-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; font-family: var(--font-serif); }
.newspaper-card .np-meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.newspaper-card .np-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== 页脚 ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 32px 28px 20px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h4 { font-size: 14px; color: #fff; margin-bottom: 12px; font-family: var(--font-serif); }

.footer p, .footer a { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); text-decoration: none; display: block; }

.footer a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state .icon { font-size: 36px; margin-bottom: 12px; }
.empty-state .text { font-size: 14px; }

/* ========== 电子图书馆 ========== */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ebook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.ebook-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-mid);
}

.ebook-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #534AB7 0%, #3C3489 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ebook-cover.epub {
  background: linear-gradient(135deg, #EF9F27 0%, #B06C0A 100%);
}

.ebook-cover-inner {
  text-align: center;
  padding: 16px;
  color: #fff;
}

.ebook-cover-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.ebook-cover-author {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.ebook-cover-format {
  font-size: 11px;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.ebook-info {
  padding: 10px 12px;
}

.ebook-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ebook-author {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.ebook-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.ebook-views {
  color: var(--text-tertiary);
}

.ebook-genre {
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text-secondary);
}

.ebook-price {
  color: var(--danger);
  font-weight: 600;
}

.ebook-free {
  color: var(--success);
  font-weight: 600;
}

/* ========== 电子文献资源 ========== */
.elib-tab.active {
  border-bottom-color: var(--primary) !important;
  color: var(--primary);
}
.eresource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eresource-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.eresource-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.eresource-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.eresource-info {
  flex: 1;
  min-width: 0;
}
.eresource-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.eresource-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.eresource-platform {
  font-size: 13px;
  background: var(--bg-tertiary);
  padding: 1px 8px;
  border-radius: 3px;
  color: var(--text-secondary);
}
.eresource-type {
  font-size: 13px;
  color: var(--text-tertiary);
}
.eresource-access {
  font-size: 13px;
  color: var(--text-tertiary);
}
.eresource-access.free {
  color: var(--success);
  font-weight: 500;
}
.eresource-author {
  font-size: 13px;
  color: var(--text-tertiary);
}
.eresource-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eresource-arrow {
  font-size: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  align-self: center;
  transition: color 0.2s;
}
.eresource-card:hover .eresource-arrow {
  color: var(--primary);
}

/* ========== 上传中心 ========== */
.upload-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.upload-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.01);
}

.upload-dropzone.hasFile {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-light);
  padding: 20px;
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 13px;
  color: var(--text-tertiary);
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.upload-file-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.upload-remove-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-remove-btn:hover {
  background: var(--danger);
  color: #fff;
}

.upload-convert-option {
  margin-top: 16px;
  padding: 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.convert-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.convert-progress {
  margin-top: 16px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}

.convert-progress-bar {
  height: 6px;
  background: rgba(83,74,183,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.convert-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.convert-progress-text {
  font-size: 13px;
  color: var(--primary-dark);
}

/* ========== 在线阅读器 ========== */
.reader-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.reader-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.reader-back-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.reader-back-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.reader-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reader-format-btn {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.reader-format-btn:hover {
  background: var(--accent);
  color: #fff;
}

.reader-buy-btn {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reader-buy-btn:hover {
  opacity: 0.9;
}

.reader-canvas {
  flex: 1;
  overflow: auto;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.pdf-viewer-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

.pdf-viewer-container canvas {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  background: #fff;
}

.epub-viewer-container {
  width: 100%;
  height: 100%;
  max-width: 800px;
}

.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.reader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reader-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--danger);
  font-size: 14px;
}

.reader-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
}

.reader-nav button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.reader-nav button:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.reader-nav span {
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: center;
}

/* ========== 图书详情弹窗按钮 ========== */
.btn-download {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.15s;
}

.btn-download:hover { opacity: 0.9; }

.btn-buy {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-buy:hover { opacity: 0.9; }

.btn-free {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 11px 23px;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.btn-delete {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-left: auto;
}

.btn-delete:hover {
  background: var(--danger);
  color: #fff;
}

/* ========== 作家风采 ========== */
.upload-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.upload-tabs button {
  padding: 10px 24px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.upload-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.upload-tabs button:hover {
  color: var(--primary);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.media-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-mid);
}

.media-thumb {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.media-thumb.media-type-audio {
  background: linear-gradient(135deg, #534AB7, #7B6FD9);
}

.media-thumb.media-type-video {
  background: linear-gradient(135deg, #EF9F27, #F5B85C);
}

.media-thumb.media-type-image {
  background: linear-gradient(135deg, #1D9E75, #3DC294);
}

.media-thumb.media-type-photo {
  background: linear-gradient(135deg, #D4537E, #E6769D);
}

.media-thumb.media-type-other {
  background: linear-gradient(135deg, #8E8E9E, #A8A8B8);
}

.media-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.media-type-label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.media-info {
  padding: 10px 12px;
}

.media-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-author {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.media-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.media-viewer-panel {
  max-width: 720px;
}

.media-player-area {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.media-player-area audio {
  border-radius: 8px;
}

.media-player-area video {
  border-radius: 8px;
  background: #000;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .navbar { padding: 0 16px; gap: 16px; }
  .nav-links { display: none; }
  .nav-search { width: 160px; }
  .hero { padding: 40px 20px 32px; }
  .hero h1 { font-size: 24px; }
  .container { padding: 20px 16px; }
  .region-grid, .org-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, 1fr); }
  .ebook-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .newspaper-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { padding: 8px 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .reader-toolbar { padding: 0 12px; }
  .reader-title { font-size: 14px; }
  .reader-canvas { padding: 10px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-mid); }

/* ========== 承认广场（新增） ========== */
.recognition-strip {
  background: linear-gradient(135deg, #FDF8EE 0%, #F6F1FF 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 28px 24px;
}
.recognition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 14px;
}
.recognition-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.recognition-title h2 { font-family: var(--font-serif); font-size: 22px; color: var(--text); }
.recognition-sub { font-size: 13.5px; color: var(--text-tertiary); }
.recognition-more {
  background: transparent;
  border: 1px solid var(--primary-mid);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.recognition-more:hover { background: var(--primary); color: #fff; }
.recognition-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 16px;
}
.recognition-stats-page { max-width: none; margin: 0 0 18px; }
.rs-item {
  flex: 1;
  min-width: 150px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.rs-num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--primary); }
.rs-label { font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.recognition-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.recognition-item {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.recognition-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-mid); }
.recognition-type {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  height: fit-content;
  margin-top: 2px;
}
.rt-researched { background: var(--primary-mid); }
.rt-published { background: var(--accent); }
.rt-event { background: var(--success); }
.recognition-body { min-width: 0; }
.recognition-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.recognition-src { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; }
.recognition-note {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 8px 12px;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-sm);
}

/* 服务入口卡片 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.service-cta {
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--surface);
}
.service-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-icon { font-size: 26px; margin-bottom: 8px; }
.cta-title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--text); }
.cta-desc { font-size: 13.5px; color: var(--text-secondary); margin: 6px 0 12px; line-height: 1.6; }
.cta-btn { font-size: 14px; font-weight: 600; }
.cta-writer .cta-btn { color: var(--primary); }
.cta-archive .cta-btn { color: var(--accent); }
.cta-subscribe .cta-btn { color: var(--success); }
.cta-collection .cta-btn { color: var(--danger); }
.cta-writer { border-top: 3px solid var(--primary); }
.cta-archive { border-top: 3px solid var(--accent); }
.cta-subscribe { border-top: 3px solid var(--success); }
.cta-collection { border-top: 3px solid var(--danger); }

/* 承认广场页面 */
.square-timeline { display: flex; flex-direction: column; gap: 10px; }
.square-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-mid);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.square-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.square-item-date { font-size: 13px; color: var(--text-tertiary); }
.square-item-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.square-item-src { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

/* ========== 作家服务中心（新增） ========== */
.service-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.service-tabs button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans);
}
.service-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.service-panel { max-width: 900px; }
.service-intro h3 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 8px; }
.service-intro p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.service-sla {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.material-checklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.mc-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.material-checklist ul { padding-left: 20px; font-size: 14px; color: var(--text-secondary); line-height: 2; }
.join-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form-field { margin-bottom: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-field { flex: 1; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); }
.btn-primary-lg {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.btn-primary-lg:hover { background: var(--primary-dark); }
.btn-ghost-lg {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-ghost-lg:hover { border-color: var(--primary-mid); color: var(--primary); }
.form-note { font-size: 13px; color: var(--text-tertiary); margin-top: 12px; }

/* 认证徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.badge-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.badge-bronze { border-top: 4px solid #B8860B; }
.badge-silver { border-top: 4px solid #A8A8B5; }
.badge-gold { border-top: 4px solid #D4AF37; }
.badge-medal { font-size: 34px; }
.badge-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.badge-criteria { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.badge-right { font-size: 13px; color: var(--primary); background: var(--primary-light); border-radius: var(--radius-sm); padding: 8px 10px; }

/* 引用简报预览 */
.citation-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.cp-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.cp-item { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.cp-no { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 4px; }

/* ========== 学术档案生成器（新增） ========== */
.archive-select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.archive-chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.archive-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.archive-chip:hover { border-color: var(--primary-mid); color: var(--primary); }
.archive-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.archive-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.archive-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  max-width: 860px;
  box-shadow: var(--shadow-md);
}
.archive-doc-header { border-bottom: 2px solid var(--primary); padding-bottom: 16px; margin-bottom: 24px; }
.archive-doc-kind { font-size: 13px; color: var(--text-tertiary); letter-spacing: 2px; margin-bottom: 6px; }
.archive-doc-header h2 { font-family: var(--font-serif); font-size: 28px; }
.archive-doc-alt { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.archive-doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13.5px; color: var(--text-secondary); }
.archive-section { margin-bottom: 22px; }
.archive-section h3 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 8px; color: var(--primary-dark); }
.archive-section p { font-size: 13.5px; line-height: 1.8; color: var(--text); }
.archive-section ul { padding-left: 20px; font-size: 13.5px; line-height: 2; }
.archive-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.archive-table th, .archive-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.archive-table th { background: var(--bg); font-weight: 600; }
.archive-note { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }
.archive-empty { font-size: 14px; color: var(--text-tertiary); }
.archive-research-list { padding-left: 0; list-style: none; }
.archive-research-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.ar-title { font-weight: 600; }
.ar-meta { color: var(--text-secondary); font-size: 13.5px; margin-left: 6px; }

/* ========== 独家特藏（新增） ========== */
.collection-intro { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 20px; }
.collection-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.collection-block h3 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 10px; }
.collection-block p, .collection-block ul { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }
.collection-block ul { padding-left: 20px; }
.collection-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.cs-icon { font-size: 30px; }
.cs-title { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.cs-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.cs-link { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cs-soon { font-size: 13px; color: var(--accent); background: var(--accent-light); border-radius: 4px; padding: 3px 10px; width: fit-content; font-weight: 600; }

/* ========== 机构订阅（新增） ========== */
.subscribe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan-recommend { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -11px; left: 18px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 2px 10px; }
.plan-name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; }
.plan-price { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--primary); margin: 8px 0 2px; }
.plan-unit { font-size: 14px; color: var(--text-tertiary); font-weight: 400; margin-left: 2px; }
.plan-for { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.plan-list { padding-left: 18px; font-size: 13.5px; color: var(--text-secondary); line-height: 2; flex: 1; }

/* ========== 公告栏 / 公告页 / 资质认证（新增） ========== */
.nav-notice {
  background: var(--danger-light) !important;
  color: var(--danger) !important;
}
.nav-notice.active {
  background: var(--danger) !important;
  color: #fff !important;
}

/* 首页首屏公告横幅 */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 28px 0;
  padding: 16px 22px;
  background: linear-gradient(120deg, #7c1822 0%, #9e1f2c 60%, #b3462f 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.notice-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.notice-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffe9b8;
}
.notice-body { flex: 1; min-width: 0; }
.notice-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: #f5e3c6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.notice-meta .dot-sep { color: rgba(255,255,255,.55); }
.notice-perm {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 11.5px;
  color: #ffe9b8;
  letter-spacing: 1px;
}
.notice-cta {
  flex-shrink: 0;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 公告详情页 */
.notice-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 18px;
  overflow: hidden;
}
.np-header {
  background: linear-gradient(135deg, #7c1822 0%, #9e1f2c 100%);
  color: #fff;
  padding: 34px 44px 30px;
  position: relative;
}
.np-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.75);
  color: #ffe9b8;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 6px;
  padding: 3px 16px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.np-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
}
.np-meta {
  margin-top: 16px;
  font-size: 13px;
  color: #f5e3c6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.np-perm {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  padding: 1px 10px;
  color: #ffe9b8;
  letter-spacing: 1px;
}
.np-body { padding: 42px 52px 40px; }
.np-lead { font-size: 15.5px; text-indent: 2em; margin-bottom: 26px; color: var(--text-secondary); }
.np-lead strong { color: var(--danger); }
.np-h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
  margin: 30px 0 12px;
  padding-left: 13px;
  border-left: 4px solid var(--accent);
  letter-spacing: 1px;
}
.np-p { font-size: 15px; margin: 9px 0; text-align: justify; line-height: 1.95; }
.np-ul { padding-left: 2em; margin: 8px 0; }
.np-ul li { font-size: 14.5px; margin: 7px 0; text-align: justify; line-height: 1.9; color: var(--text-secondary); }
.np-sub { font-size: 15px; font-weight: 700; color: #5a4a2a; margin: 16px 0 6px; }
.np-sign { text-align: right; margin-top: 38px; font-size: 15.5px; color: var(--text); }
.np-org { font-weight: 700; margin-bottom: 5px; }
.np-appendix {
  margin-top: 34px;
  background: var(--accent-light);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.np-appendix h3 { font-family: var(--font-serif); font-size: 16px; color: var(--danger); margin-bottom: 8px; letter-spacing: 1px; }
.np-appendix p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }
.np-appendix-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.np-btn {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: opacity .2s;
}
.np-btn:hover { opacity: .88; }
.np-btn-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* 资质认证与授权 */
.auth-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
.auth-badge {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--danger);
  transform: rotate(-8deg);
}
.auth-body { flex: 1; min-width: 0; }
.auth-body h3 { font-family: var(--font-serif); font-size: 18px; color: var(--text); margin-bottom: 12px; }
.auth-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-secondary); }
.auth-perm {
  align-self: flex-start;
  background: var(--danger-light);
  color: var(--danger);
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 12px;
  letter-spacing: 1px;
}
.auth-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin: 14px 0; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 768px) {
  .notice-banner { margin: 12px 14px 0; padding: 14px 16px; gap: 12px; }
  .notice-title { font-size: 14.5px; white-space: normal; }
  .notice-cta { display: none; }
  .np-header { padding: 26px 20px 24px; }
  .np-title { font-size: 20px; }
  .np-body { padding: 26px 18px 24px; }
  .np-h2 { font-size: 16.5px; }
  .auth-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
}

/* ========== 自改后台（admin） ========== */
.admin-login {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
  margin: 24px auto;
}
.admin-login h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.admin-err {
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
}
.admin-pending-banner {
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  color: #92400E;
  font-size: 13px;
  line-height: 1.7;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-approved { background: #DCFCE7; color: #166534; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-free { background: #E0E7FF; color: #3730A3; }
.status-system-managed { background: #FFEDD5; color: #9A3412; border: 1px solid #FB923C; }
.admin-card-ev.status-pending,
.admin-card-ev.status-approved,
.admin-card-ev.status-rejected,
.admin-card-ev.status-free,
.admin-card-ev.status-system-managed { font-size: 11px; padding: 3px 10px; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0 14px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}
.admin-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: auto;
}
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
}
.admin-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--text-secondary);
  transition: all .2s;
}
.admin-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}
.admin-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-card-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}
.admin-card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  flex: 1;
  min-width: 120px;
}
.admin-card-ev {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ev-isbn-cn { background: #DCFCE7; color: #166534; }
.ev-overseas-only { background: #FEF3C7; color: #92400E; }
.ev-unverified { background: #FEE2E2; color: #991B1B; }
.admin-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-card-meta b { color: var(--text); }
.admin-edit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.admin-edit .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .admin-edit .form-row { grid-template-columns: 1fr; }
}
.admin-report-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-report-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.admin-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-report-head h3 { font-size: 16px; color: var(--primary-dark); }
.admin-report-body {
  padding: 18px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.admin-report-body code {
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ========== 打印样式（学术档案导出） ========== */
@media print {
  body { background: #fff; }
  .navbar, .footer, .toast, .recognition-strip, .service-grid, .stats-bar, .stats-note,
  .hero, .filter-bar, .page-back-btn, .archive-select, .archive-toolbar, .no-print,
  .service-cta, .section-title, .section-desc, .notice-banner { display: none !important; }
  .container { max-width: none; padding: 0; }
  .archive-paper { border: none; box-shadow: none; padding: 0; max-width: none; }
  .archive-doc-header h2 { font-size: 24px; }
}
