/* ============================================================
   Her Lib 她的书库 — 完整设计系统样式表
   人文简约 · 轻波西米亚 · 暖米白与陶土橘
   适配：桌面 / 平板 / 手机 / 深色模式 / 极简阅读模式
   ============================================================ */

/* ============================================================
   1. CSS 自定义属性 (Design Tokens)
   ============================================================ */
:root {
  /* --- 浅色主题：核心色彩 --- */
  --color-bg: #FAF6F0;
  --color-bg-warm: #FDFAF5;
  --color-bg-card: #FDFAF5;
  --color-bg-pink: #FFF5F3;
  --color-bg-lavender: #F8F5FB;
  --color-bg-green: #F2F6F0;

  /* 强调色 */
  --color-accent: #C67B5C;
  --color-accent-hover: #B0664A;
  --color-accent-light: #F0E0D8;
  --color-accent-ghost: rgba(198, 123, 92, 0.08);

  /* 点缀色 */
  --color-lavender: #B8A5C9;
  --color-lavender-light: #E8E0F0;
  --color-desert: #B0BF9A;
  --color-desert-light: #E2EAD8;

  /* 文字 */
  --color-text: #3D322B;
  --color-text-secondary: #8C8076;
  --color-text-muted: #B5AAA0;
  --color-text-link: #7A9A7E;

  /* 边框与分割线 */
  --color-border: #E8E0D5;
  --color-border-light: #F0EBE3;

  /* 功能色 */
  --color-success: #7A9A7E;
  --color-warning: #D4A76A;
  --color-error: #C47A6A;
  --color-info: #8EA4C9;

  /* 避雷预警色 */
  --color-warning-psychology: #B8A5C9;
  --color-warning-psychology-bg: #F5F1F8;
  --color-warning-viewpoint: #B0BF9A;
  --color-warning-viewpoint-bg: #F2F6EF;
  --color-warning-difficult: #D4A78A;
  --color-warning-difficult-bg: #FBF4EE;

  /* 状态色块 */
  --color-reading: #8EB89A;
  --color-finished: #8EA4C9;
  --color-unread: #D5CFC8;

  /* 阴影 */
  --shadow-sm: 0 1px 4px rgba(60, 40, 30, 0.04);
  --shadow-md: 0 2px 12px rgba(60, 40, 30, 0.06);
  --shadow-lg: 0 4px 24px rgba(60, 40, 30, 0.08);
  --shadow-xl: 0 8px 40px rgba(60, 40, 30, 0.10);
  --shadow-card-hover: 0 6px 20px rgba(60, 40, 30, 0.10);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* 字体 */
  --font-body: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "PingFang SC", "Noto Serif SC", "STSong", "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-hero: 3rem;

  /* 字重 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* 导航栏高度 */
  --nav-height: 64px;
  --mobile-nav-height: 56px;
  --bottom-nav-height: 60px;

  /* 容器宽度 */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* --- 深色主题 --- */
[data-theme="dark"] {
  --color-bg: #1E1B18;
  --color-bg-warm: #2A2520;
  --color-bg-card: #2A2520;
  --color-bg-pink: #2D2424;
  --color-bg-lavender: #26242B;
  --color-bg-green: #232822;

  --color-accent: #D49578;
  --color-accent-hover: #E0AA90;
  --color-accent-light: #3D2A22;
  --color-accent-ghost: rgba(212, 149, 120, 0.10);

  --color-lavender: #C8B8D8;
  --color-lavender-light: #2D2835;
  --color-desert: #C0CDAC;
  --color-desert-light: #282D24;

  --color-text: #E8DDD4;
  --color-text-secondary: #B0A59A;
  --color-text-muted: #7A7068;
  --color-text-link: #9AB89C;

  --color-border: #3D352E;
  --color-border-light: #332D27;

  --color-warning-psychology-bg: #2D2835;
  --color-warning-viewpoint-bg: #282D24;
  --color-warning-difficult-bg: #352922;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.30);
  --shadow-xl: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.30);
}

/* --- 字号缩放 --- */
[data-font-size="small"] {
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.125rem;
  --text-hero: 2.5rem;
}

[data-font-size="large"] {
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --text-hero: 3.25rem;
}

/* --- 极简阅读模式 --- */
[data-minimal="true"] .book-cover,
[data-minimal="true"] .hero-decoration,
[data-minimal="true"] .decorative-svg,
[data-minimal="true"] .card-cover-img,
[data-minimal="true"] .detail-cover,
[data-minimal="true"] .skeleton-cover,
[data-minimal="true"] img[src*="cover"],
[data-minimal="true"] .hero-bg-svg {
  display: none !important;
}

[data-minimal="true"] .book-card,
[data-minimal="true"] .detail-layout {
  grid-template-columns: 1fr !important;
}


/* ============================================================
   2. 全局重置与基础样式
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* 区块 */
.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-4xl) 0;
}

/* 链接 */
a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 列表 */
ul, ol {
  list-style: none;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: 1.35;
  color: var(--color-text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

/* 段落 */
p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* 选中文字 */
::selection {
  background-color: var(--color-accent-light);
  color: var(--color-text);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* 焦点可见 */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ============================================================
   3. 导航栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.nav.scrolled {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(30, 27, 24, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--color-text);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  background: var(--color-accent-ghost);
}

/* 导航右侧工具栏 */
.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--text-lg);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-tool-btn:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.nav-tool-btn:active {
  transform: scale(0.95);
}

.nav-tool-btn.active {
  background: var(--color-accent-ghost);
  color: var(--color-accent);
}

/* 字号缩放控件 */
.font-size-control {
  position: relative;
  display: flex;
  align-items: center;
}

.font-size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  transition: all var(--transition-fast);
}

.font-size-btn:hover {
  background: var(--color-border-light);
  color: var(--color-accent);
}

/* 登录/用户按钮 */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-login-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.nav-login-btn:active {
  transform: scale(0.97);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.nav-user-avatar:hover {
  border-color: var(--color-accent);
}

/* 导航下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 1001;
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: var(--color-border-light);
}

.nav-dropdown .divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xs) 0;
}

/* 移动端菜单按钮 */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--text-xl);
}

/* 移动端侧滑菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
  z-index: 2000;
  transition: right var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.mobile-menu a {
  display: block;
  padding: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--color-accent-ghost);
  color: var(--color-accent);
}


/* ============================================================
   4. Hero 区域
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg svg {
  position: absolute;
  opacity: 0.08;
}

.hero-bg .wave-top {
  top: 0;
  left: 0;
  width: 100%;
}

.hero-bg .wave-bottom {
  bottom: 0;
  right: 0;
}

.hero-bg .circle-1 {
  top: 10%;
  left: 5%;
  width: 120px;
}

.hero-bg .circle-2 {
  top: 60%;
  right: 8%;
  width: 80px;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.hero-search input {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  padding-right: 56px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.hero-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-ghost);
}

.hero-search input::placeholder {
  color: var(--color-text-muted);
}

.hero-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.hero-search button:hover {
  background: var(--color-accent-hover);
}

.hero-search button:active {
  transform: translateY(-50%) scale(0.95);
}

/* 分隔装饰线 */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  opacity: 0.6;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.section-divider svg {
  width: 40px;
  height: 12px;
  color: var(--color-accent);
  opacity: 0.5;
}


/* ============================================================
   5. 书籍卡片
   ============================================================ */
.book-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border);
}

.book-card.warning-card:hover {
  border-color: var(--color-warning);
  box-shadow: 0 6px 20px rgba(198, 123, 92, 0.12);
}

.book-card.warning-card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-warning);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 5;
}

/* 已浏览遮罩 */
.book-card.visited::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 195, 188, 0.15);
  z-index: 2;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* 卡片封面区 */
.book-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-border-light);
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.book-card:hover .book-card-cover img {
  transform: scale(1.03);
}

/* 卡片内容区 */
.book-card-body {
  padding: var(--space-md);
}

.book-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  /* 桌面端2行截断 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.book-card-author a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.book-card-author a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.book-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.book-card-guide {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  /* 桌面端2行截断，移动端1行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片角标 */
.book-card-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 3;
}

.book-card-badges-right {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 3;
}

/* 星级评分 */
.book-card-rating {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--font-semibold);
  z-index: 3;
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .book-card-rating {
  background: rgba(30, 27, 24, 0.85);
}

/* 阅读进度标记 */
.book-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
}

.book-card-progress.reading {
  background: var(--color-reading);
}

.book-card-progress.finished {
  background: var(--color-finished);
}


/* ============================================================
   6. 标签与徽章系统
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tag-category {
  background: var(--color-accent-ghost);
  color: var(--color-accent);
}

.tag-level {
  background: var(--color-desert-light);
  color: var(--color-desert);
}

.tag-beginner {
  background: #E2EAD8;
  color: #6B8A6E;
}

.tag-advanced {
  background: #F0E0D8;
  color: #A07050;
}

.tag-region {
  background: var(--color-lavender-light);
  color: var(--color-lavender);
}

.tag-genre {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.tag-keyword {
  background: var(--color-bg-pink);
  color: var(--color-accent);
  cursor: pointer;
}

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

.tag-keyword.active {
  background: var(--color-accent);
  color: #fff;
}

.tag-wave {
  background: var(--color-lavender-light);
  color: #7A6990;
}

.tag-school {
  background: #F0EDF5;
  color: #6B5B7A;
}

.tag-new {
  background: #FBE8D8;
  color: #C67B5C;
  font-weight: var(--font-semibold);
}

/* 避雷标签 */
.tag-warning {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: var(--font-medium);
}

.tag-warning-psychology {
  background: var(--color-warning-psychology-bg);
  color: var(--color-warning-psychology);
}

.tag-warning-viewpoint {
  background: var(--color-warning-viewpoint-bg);
  color: var(--color-warning-viewpoint);
}

.tag-warning-difficult {
  background: var(--color-warning-difficult-bg);
  color: var(--color-warning-difficult);
}

/* 避雷预警角标 */
.warning-badge {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background: #FDF0E8;
  color: #C67B5C;
  border-radius: var(--radius-full);
  z-index: 3;
  border: 1px solid rgba(198, 123, 92, 0.2);
}

[data-theme="dark"] .warning-badge {
  background: #352922;
  border-color: rgba(212, 149, 120, 0.25);
}

/* 状态色块 */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-xs);
}

.status-dot.reading { background: var(--color-reading); }
.status-dot.finished { background: var(--color-finished); }
.status-dot.unread { background: var(--color-unread); }
.status-dot.pending { background: var(--color-warning); }
.status-dot.approved { background: var(--color-success); }
.status-dot.rejected { background: var(--color-error); }


/* ============================================================
   7. 按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 主要按钮 */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* 次要按钮 */
.btn-secondary {
  background: var(--color-border-light);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-border);
}

/* 描边按钮 */
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-ghost);
}

/* 幽灵按钮 */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

/* 纸质购买按钮（弱化） */
.btn-physical {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-physical:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

/* 小按钮 */
.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
}

/* 大按钮 */
.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
}

/* 图标按钮 */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
}

/* 置灰/禁用按钮 */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 阅读链接按钮组 */
.read-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.read-link-btn {
  position: relative;
}

.read-link-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  color: #fff;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.read-link-btn:hover .read-link-tooltip {
  opacity: 1;
  visibility: visible;
}

.btn-no-channel {
  background: var(--color-border-light);
  color: var(--color-text-muted);
  cursor: not-allowed;
}


/* ============================================================
   8. 表单系统
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ghost);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(196, 122, 106, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C8076' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-error-msg {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
  display: none;
}

.form-input.error ~ .form-error-msg {
  display: block;
}

/* 复选框与单选框 */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* 标签输入区 */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 44px;
  cursor: text;
  transition: border-color var(--transition-fast);
}

.tags-input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ghost);
}

.tags-input-wrapper .tag-input-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: var(--text-xs);
  background: var(--color-accent-ghost);
  color: var(--color-accent);
  border-radius: var(--radius-full);
}

.tags-input-wrapper .tag-input-tag .remove-tag {
  cursor: pointer;
  font-size: var(--text-xs);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.tags-input-wrapper .tag-input-tag .remove-tag:hover {
  opacity: 1;
}

.tags-input-wrapper input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: transparent;
  padding: var(--space-xs);
}


/* ============================================================
   9. 筛选栏
   ============================================================ */
.filter-bar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: 60px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-chip.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.filter-chip.hot {
  border-color: var(--color-accent-light);
  background: var(--color-accent-ghost);
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 0 var(--space-xs);
}

/* 浪潮筛选按钮组 */
.wave-filter-group {
  display: flex;
  gap: 2px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  padding: 3px;
}

.wave-filter-btn {
  padding: 4px 16px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wave-filter-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.wave-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: var(--space-xs);
}

.wave-info-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 搜索框 */
.search-bar {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-bar input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-left: 40px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ghost);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* 搜索历史下拉 */
.search-history {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--space-xs);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.search-bar:focus-within .search-history.has-items,
.search-history.active {
  display: block;
}

.search-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-history-item:hover {
  background: var(--color-border-light);
}

.search-history-item .remove-history {
  opacity: 0.4;
  cursor: pointer;
  font-size: var(--text-xs);
  border: none;
  background: none;
  color: var(--color-text-muted);
}

.search-history-item .remove-history:hover {
  opacity: 1;
  color: var(--color-error);
}

/* 筛选结果计数 */
.filter-result-count {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  padding: 0 var(--space-xs);
}


/* ============================================================
   10. 弹窗 / 模态框
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-xl);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
}

.modal-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}


/* ============================================================
   11. Tooltip
   ============================================================ */
.tooltip {
  position: absolute;
  z-index: 5000;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  color: #fff;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 280px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tooltip.visible {
  opacity: 1;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
}


/* ============================================================
   12. 悬浮书页向导
   ============================================================ */
.floating-guide {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
}

/* 移动端底部导航条存在时上移 */
@media (max-width: 768px) {
  .floating-guide {
    bottom: calc(var(--bottom-nav-height) + 16px);
  }
}

.guide-toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xl);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 2001;
}

.guide-toggle:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.guide-toggle:active {
  transform: scale(0.95);
}

.guide-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: all var(--transition-base);
  z-index: 2000;
}

.guide-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.guide-panel-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.guide-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.guide-panel-body .guide-section {
  margin-bottom: var(--space-md);
}

.guide-panel-body .guide-section h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}

.guide-panel-body .guide-section p,
.guide-panel-body .guide-section a {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.guide-panel-body .guide-section a {
  color: var(--color-text-link);
}

/* 移动端底部抽屉 */
@media (max-width: 768px) {
  .guide-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }

  .guide-panel.active {
    transform: translateY(0);
  }
}


/* ============================================================
   13. 回到顶部按钮
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.back-to-top:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: calc(var(--bottom-nav-height) + 72px);
  }
}


/* ============================================================
   14. 底部 Footer
   ============================================================ */
.footer {
  background: var(--color-bg-warm);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.footer-quote {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: var(--space-lg);
  opacity: 0.8;
  line-height: 1.6;
  transition: opacity var(--transition-slow);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ============================================================
   15. 卡片网格布局
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* 精选横滑 */
.featured-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-scroll .book-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .featured-scroll .book-card {
    flex: 0 0 220px;
  }
}

/* 榜单卡片网格 */
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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


/* ============================================================
   16. 书籍详情页布局
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.detail-cover {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  align-self: start;
}

@media (max-width: 900px) {
  .detail-cover {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
}

.detail-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detail-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: 1.3;
}

.detail-title-en {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  font-weight: var(--font-normal);
}

.detail-author {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.detail-author a {
  color: var(--color-text-link);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.detail-author a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.detail-meta-item {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.detail-meta-item strong {
  display: block;
  color: var(--color-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* 导读区 */
.detail-guide {
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent);
}

/* 适合人群 */
.detail-suitable {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* 避雷提示区 */
.detail-warning {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-pink);
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 123, 92, 0.15);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.detail-warning .warning-icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.detail-warning .warning-content {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.detail-warning.safe {
  background: var(--color-bg-green);
  border-color: rgba(122, 154, 126, 0.15);
}

/* 理论脉络 */
.detail-context {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-lavender);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.detail-context .context-label {
  font-weight: var(--font-semibold);
  color: var(--color-lavender);
  margin-bottom: var(--space-xs);
}

/* 金句板块 */
.detail-quote {
  padding: var(--space-xl);
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
}

.detail-quote blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.detail-quote blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: -8px;
  left: var(--space-lg);
  line-height: 1;
}

/* 版本备注 */
.detail-version-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
}

/* 操作按钮区 */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
}


/* ============================================================
   17. 评论区
   ============================================================ */
.comments-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.comment-form {
  margin-bottom: var(--space-xl);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comment-item {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.comment-author {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.comment-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.comment-like-btn:hover,
.comment-like-btn.liked {
  color: var(--color-accent);
}


/* ============================================================
   18. 骨架屏
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-border-light) 25%,
    var(--color-bg) 50%,
    var(--color-border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
}

.skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: var(--space-xs);
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: var(--space-xs);
}

.skeleton-text.short {
  width: 40%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================
   19. 首页栏目导航卡片
   ============================================================ */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}

.category-card .cat-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.category-card .cat-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ============================================================
   20. 阅读阶梯导航卡片
   ============================================================ */
.reading-ladder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .reading-ladder {
    grid-template-columns: 1fr;
  }
}

.ladder-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.ladder-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.ladder-card.beginner:hover {
  border-color: var(--color-desert);
}

.ladder-card.advanced:hover {
  border-color: var(--color-accent);
}

.ladder-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.ladder-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.ladder-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}


/* ============================================================
   21. 年度阅读计划
   ============================================================ */
.reading-plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .reading-plan {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .reading-plan {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan-month-card {
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.plan-month-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.plan-month {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.plan-books {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================================
   22. 个人中心页
   ============================================================ */
.profile-tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.profile-tab:hover {
  color: var(--color-accent);
}

.profile-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
}

/* 批量操作模式 */
.batch-mode .book-card {
  position: relative;
}

.batch-mode .book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(198, 123, 92, 0.06);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  z-index: 4;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.batch-mode .book-card.selected::before {
  border-color: var(--color-accent);
  background: rgba(198, 123, 92, 0.1);
}

.batch-checkbox {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 5;
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
  display: none;
}

.batch-mode .batch-checkbox {
  display: block;
}

.batch-toolbar {
  display: none;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
  z-index: 50;
}

.batch-mode ~ .batch-toolbar,
.batch-toolbar.active {
  display: flex;
}


/* ============================================================
   23. 管理后台
   ============================================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th,
.admin-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-bg);
}

.admin-table tr:hover td {
  background: var(--color-border-light);
}


/* ============================================================
   24. 投稿页
   ============================================================ */
.submission-status-list {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.submission-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.submission-status-item:last-child {
  border-bottom: none;
}

.submission-status-item .status-pending { color: var(--color-warning); }
.submission-status-item .status-approved { color: var(--color-success); }
.submission-status-item .status-rejected { color: var(--color-error); }

.rejection-reason {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(196, 122, 106, 0.08);
  border-radius: var(--radius-sm);
}


/* ============================================================
   25. 移动端底部导航条
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border-light);
  z-index: 1500;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-bottom-nav a .nav-icon {
  font-size: var(--text-xl);
}

.mobile-bottom-nav a.active {
  color: var(--color-accent);
}


/* ============================================================
   26. 404 / 空状态页面
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.empty-state-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}


/* ============================================================
   27. 结果分组标题
   ============================================================ */
.result-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.result-group-header .group-icon {
  font-size: var(--text-xl);
}

.result-group-header .group-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.result-group-header .group-count {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--font-medium);
}


/* ============================================================
   28. 离线提示条
   ============================================================ */
.offline-banner {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-warning-difficult-bg);
  color: var(--color-warning);
  font-size: var(--text-sm);
  text-align: center;
  z-index: 999;
  border-bottom: 1px solid rgba(212, 167, 138, 0.2);
}

.offline-banner.visible {
  display: block;
}


/* ============================================================
   29. 流派人门卡片（思潮漫步内页）
   ============================================================ */
.school-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .school-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.school-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}

.school-card:hover {
  border-color: var(--color-lavender);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.school-card .school-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.school-card .school-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ============================================================
   30. 浪潮时间轴
   ============================================================ */
.wave-timeline {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .wave-timeline {
    flex-direction: column;
  }
}

.wave-timeline-card {
  flex: 1;
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}

.wave-timeline-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.wave-timeline-card .wave-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  opacity: 0.3;
}

.wave-timeline-card .wave-title {
  font-weight: var(--font-semibold);
  margin: var(--space-sm) 0;
  color: var(--color-text);
}

.wave-timeline-card .wave-desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* ============================================================
   31. 新手引导气泡
   ============================================================ */
.guide-bubble {
  position: fixed;
  z-index: 5000;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  max-width: 300px;
  animation: bubbleIn 0.3s ease;
}

.guide-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.guide-bubble.arrow-bottom::after {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: var(--color-accent);
}

.guide-bubble .bubble-step {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
}

.guide-bubble .bubble-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
}

.guide-bubble .bubble-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.guide-bubble .bubble-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-bubble .bubble-dots {
  display: flex;
  gap: 4px;
}

.guide-bubble .bubble-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-fast);
}

.guide-bubble .bubble-dot.active {
  background: var(--color-accent);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============================================================
   32. 键律动画（淡入淡出等）
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   33. 打印样式
   ============================================================ */
@media print {
  .nav,
  .footer,
  .floating-guide,
  .back-to-top,
  .mobile-bottom-nav,
  .offline-banner,
  .comments-section,
  .detail-actions,
  .read-links,
  .guide-bubble,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .detail-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}


/* ============================================================
   34. 响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 48px;
    --space-4xl: 64px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hide-tablet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --text-hero: 2rem;
    --text-3xl: 1.625rem;
    --text-2xl: 1.375rem;
    --text-xl: 1.125rem;
    --space-3xl: 40px;
    --space-4xl: 56px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  /* 导航栏移动端适配 */
  .nav-links {
    display: none;
  }

  .nav-tools .hide-mobile {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
  }

  .hero-title {
    font-size: var(--text-hero);
  }

  /* 筛选栏移动端 */
  .filter-bar {
    border-radius: var(--radius-md);
    padding: var(--space-md);
  }

  .filter-row {
    gap: var(--space-xs);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  /* 卡片移动端 */
  .book-card-guide {
    -webkit-line-clamp: 1;
  }

  /* 面包屑 */
  .breadcrumb {
    font-size: var(--text-xs);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .card-grid {
    gap: var(--space-sm);
  }
}


/* ============================================================
   35. 面包屑 & 其他小工具
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* 分享面板 */
.share-panel {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.copy-success-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-xl);
  background: var(--color-text);
  color: #fff;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  z-index: 6000;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.copy-success-toast.show {
  opacity: 1;
}

/* 隐藏辅助类 */
.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;
}

.hidden {
  display: none !important;
}

/* 页面主要内容区 */
.page-content {
  padding-top: calc(var(--nav-height) + var(--space-lg));
  min-height: 60vh;
}

/* 分割标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header h2 {
  font-size: var(--text-2xl);
  margin: 0;
}

.section-header .section-link {
  font-size: var(--text-sm);
  color: var(--color-text-link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-header .section-link:hover {
  color: var(--color-accent);
}

/* 思潮漫步内页标签切换 */
.view-toggle-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.view-toggle-card {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.view-toggle-card:hover,
.view-toggle-card.active {
  border-color: var(--color-accent);
  background: var(--color-accent-ghost);
}

.view-toggle-card .toggle-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.view-toggle-card .toggle-title {
  font-weight: var(--font-semibold);
  color: var(--color-text);
}

.view-toggle-card .toggle-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* 登录页、注册页 */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: var(--space-xl);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-alt {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-alt a {
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

/* 品牌宣言/关于 */
.about-prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 2;
  color: var(--color-text-secondary);
}

.about-prose h2 {
  color: var(--color-text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.about-prose p {
  margin-bottom: var(--space-lg);
}
