@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   ALPHAGAME 顶级顶奢极简质感 (Apex Luxury Obsidian & Neo-Grotesk Typography)
   高定字体体系 · 动态矢量品牌徽标 · 纯黑曜石/温润象牙双主题系统
   ========================================================================== */

:root,
[data-theme="dark"] {
  --font-display: "Cinzel", "Inter", -apple-system, sans-serif;
  --font-serif: "Cinzel", -apple-system, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 默认深色曜石黑底系 */
  --bg-page: #09090b;
  --bg-topbar: rgba(9, 9, 11, 0.75);
  --bg-surface: rgba(18, 18, 21, 0.7);
  --bg-surface-hover: rgba(28, 28, 33, 0.85);
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --bg-subtle: rgba(255, 255, 255, 0.06);
  --bg-backdrop: rgba(0, 0, 0, 0.82);

  /* 液态玻璃核心 Token (Liquid Glass) */
  --glass-bg: rgba(22, 22, 26, 0.65);
  --glass-bg-hover: rgba(30, 30, 36, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-highlight: rgba(255, 255, 255, 0.22);
  --glass-specular: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.06) 100%);
  --glass-blur: 20px;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  --accent-primary: #ffffff;
  --accent-primary-hover: #e4e4e7;
  --accent-subtle: rgba(255, 255, 255, 0.12);
  --accent-border: rgba(255, 255, 255, 0.25);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.85);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="ivory"] {
  --bg-page: #f8f8f7;
  --bg-topbar: rgba(248, 248, 247, 0.82);
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-hover: rgba(244, 244, 242, 0.95);
  --bg-elevated: #ecece9;
  --bg-subtle: rgba(0, 0, 0, 0.04);
  --bg-backdrop: rgba(0, 0, 0, 0.6);

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-highlight: rgba(0, 0, 0, 0.18);
  --glass-specular: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0.4) 100%);
  --glass-blur: 16px;

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #8b8b93;
  --text-inverse: #ffffff;

  --accent-primary: #18181b;
  --accent-primary-hover: #27272a;
  --accent-subtle: rgba(0, 0, 0, 0.06);
  --accent-border: rgba(0, 0, 0, 0.16);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.14);
  --shadow-glass: 0 8px 30px 0 rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "liga" 1;
  letter-spacing: -0.012em;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  background-image: 
    radial-gradient(at 15% 15%, rgba(255, 255, 255, 0.03) 0px, transparent 40%),
    radial-gradient(at 85% 85%, rgba(255, 255, 255, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--text-primary);
}

/* 顶部粘性液态毛玻璃导航条 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-topbar);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.topbar-inner {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--text-primary);
  background-color: var(--accent-subtle);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.04em;
  margin-left: 4px;
  color: var(--zib-text-secondary);
  display: inline-block;
  vertical-align: middle;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-trigger:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.icon-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--glass-bg-hover);
}

.icon-btn:active {
  transform: scale(0.98);
}

/* 主页面框架 */
.page-shell {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 80px;
  flex: 1;
}

.page-shell.reader-mode {
  max-width: 1720px;
  padding: 16px 32px 32px;
}

/* 面包屑 */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.breadcrumb-trail a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* 首页 Bento Grid (液态玻璃质感) */
.hero-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
}

.hero-main-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-display-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-spotlight-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.spotlight-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-elevated);
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.spotlight-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
}

.spotlight-title:hover {
  text-decoration: underline;
}

.spotlight-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* 按钮系 */
.btn-primary {
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border: 1px solid var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.btn-secondary:active {
  transform: scale(0.98);
}

/* 多维筛选控制台 (液态玻璃质感) */
.filter-console {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.filter-console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.search-bar-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--glass-border-highlight);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--glass-border-highlight);
}

.dimension-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.dimension-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dimension-label {
  width: 76px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  letter-spacing: 0.02em;
}

.tag-matrix {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(240, 68, 148, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  color: #ffffff;
  border-color: rgba(240, 68, 148, 0.6);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(240, 68, 148, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-pill.active .pill-count {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}
  font-size: 10px;
  color: var(--text-muted);
}

/* 段落头与工具栏 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented-control {
  display: inline-flex;
  background-color: var(--bg-elevated);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.seg-btn {
  padding: 4px 10px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.seg-btn.active {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   全新全面结构：课程卡片（原彩真实封面 + 完整尺寸比例 + 多维规格信息条 + 液态玻璃）
   ========================================================================== */

.resource-feed.list-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 1600px) {
  .resource-feed.list-mode {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .resource-feed.list-mode {
    grid-template-columns: 1fr;
  }
}

.resource-feed.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.resource-feed.grid-mode .zib-post-card {
  flex-direction: column;
  gap: 12px;
}

.resource-feed.grid-mode .zib-post-card .item-thumbnail {
  width: 100%;
  height: 190px;
}

.res-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 18px;
  display: flex;
  gap: 22px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.res-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.resource-feed.grid-mode .res-card {
  flex-direction: column;
  gap: 16px;
}

.res-card:hover {
  border-color: var(--glass-border-highlight);
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 封面真实比例框架：原彩展示、绝不变形、角标标识 */
.res-thumb-container {
  width: 220px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.resource-feed.grid-mode .res-thumb-container {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.res-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
  filter: none !important; /* 强制保持 100% 原彩色泽 */
}

.res-card:hover .res-thumb-container img {
  transform: scale(1.04);
}

.thumb-format-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: rgba(9, 9, 11, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.thumb-chapters-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: rgba(9, 9, 11, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 卡片全面内容区 */
.res-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.res-header-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.tag-badge.mentor {
  background-color: var(--accent-subtle);
  font-weight: 700;
  border-color: var(--glass-border-highlight);
}

.tag-badge.track {
  background-color: var(--bg-page);
}

.res-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 规格信息槽：章节数量、课件形式、更新时间、热度 */
.res-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  font-size: 11px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  color: var(--text-muted);
  font-size: 10px;
}

.spec-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* 详情页 (液态玻璃质感) */
.detail-article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 44px 52px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.detail-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

@media (max-width: 768px) {
  .detail-article-card {
    padding: 24px 20px;
  }
}

.detail-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-cover-box {
  text-align: center;
  margin: 24px 0 32px;
}

.detail-cover-box img {
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  filter: none !important;
}

.detail-catalog {
  background-color: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 24px 28px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-primary);
}

.detail-download-section-title {
  border-left: 4px solid var(--text-primary);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-page);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.detail-download-box {
  border: 1px solid var(--border-strong);
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 14px;
}

.download-entry {
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 14px;
}

.download-link {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.download-pwd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-nav-siblings {
  max-width: 960px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sibling-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.sibling-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.sibling-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sibling-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 书籍网格 (原彩全本封面) */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.book-item-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 14px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.book-item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.book-item-card:hover {
  border-color: var(--glass-border-highlight);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.book-cover-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-elevated);
  margin-bottom: 12px;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  transition: transform var(--transition-smooth);
}

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

.book-format-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background-color: rgba(9, 9, 11, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.book-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.book-read-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.book-item-card:hover .book-read-cta {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
}

/* 阅读器容器 */
.reader-shell {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 140px);
  min-height: 640px;
  border: 1px solid var(--border-subtle);
}

.reader-top-bar {
  padding: 12px 20px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reader-book-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reader-book-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.reader-book-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.reader-pdf-stage {
  flex: 1;
  width: 100%;
  background-color: #111111;
}

.reader-pdf-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* TXT 原生衬线阅读器 */
.reader-txt-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}

@media (max-width: 860px) {
  .reader-txt-stage {
    grid-template-columns: 1fr;
  }
  .txt-chapter-sidebar {
    display: none;
  }
}

.txt-chapter-sidebar {
  border-right: 1px solid var(--border-subtle);
  background-color: var(--bg-page);
  overflow-y: auto;
  padding: 16px 12px;
}

.txt-sidebar-heading {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.txt-chap-btn {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition-fast);
}

.txt-chap-btn:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.txt-chap-btn.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-weight: 600;
}

.txt-reading-canvas {
  overflow-y: auto;
  padding: 48px 64px 80px;
  background-color: var(--bg-surface);
}

@media (max-width: 768px) {
  .txt-reading-canvas {
    padding: 28px 20px 60px;
  }
}

.txt-article-inner {
  max-width: 680px;
  margin: 0 auto;
}

.txt-chapter-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.txt-paragraphs {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.95;
  color: var(--text-primary);
}

.txt-paragraphs p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.txt-chapter-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
}

/* 恋爱话术 */
.speech-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .speech-layout {
    grid-template-columns: 1fr;
  }
}

.speech-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  max-height: 760px;
  overflow-y: auto;
  position: sticky;
  top: 84px;
}

.speech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.speech-pill {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.speech-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.speech-pill.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  font-weight: 600;
}

.dialogue-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialogue-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 18px 22px;
}

.dialogue-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-bubble-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
}

.chat-role-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid var(--border-subtle);
}

.role-f {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.role-m {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

/* 分页 */
.pagination-bar {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.page-btn.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* 模态框 (Cmd+K) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.modal-backdrop.open {
  display: flex;
}

.cmd-modal {
  width: 100%;
  max-width: 640px;
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cmd-input-header {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.cmd-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.cmd-item:hover {
  background-color: var(--zib-card-bg-hover, rgba(255, 255, 255, 0.06));
  transform: translateX(2px);
}

.cmd-item-main {
  flex: 1;
  min-width: 0;
}

.cmd-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--zib-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.cmd-item-snippet {
  font-size: 11.5px;
  color: var(--zib-text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.cmd-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cmd-highlight {
  background: rgba(240, 68, 148, 0.22);
  color: #ff6dae;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}

.tag-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--zib-text-muted);
  font-weight: 500;
}

.tag-badge.has-dl {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

/* 空状态与底部 */
.empty-state {
  padding: 60px 24px;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 180ms ease;
  border: 1px solid var(--border-subtle);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   导师导航下拉与课程详情双栏（对标课程商城结构）
   ========================================================================== */

/* 1. 导航下拉菜单 */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 500;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.nav-dropdown-item .nav-count {
  font-size: 11px;
}

/* 2. 课程详情双栏布局 */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.detail-main {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  padding: 36px 44px;
  position: relative;
  overflow: hidden;
}

.detail-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

/* 3. 课程大图 Hero */
.detail-cover-hero {
  margin: -12px -20px 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  aspect-ratio: 16 / 9;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4. 详情段落与目录 */
.detail-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.detail-section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chapter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.detail-intro p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-intro p:last-child {
  margin-bottom: 0;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.chapter-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.chapter-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}

.chapter-title {
  flex: 1;
  word-break: break-all;
}

.chapter-item-hidden {
  display: none !important;
}

.toggle-chapter {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-chapter:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-style: solid;
}

/* 5. 右侧 Sticky 付费卡 */
.detail-side {
  position: sticky;
  top: 88px;
}

.pay-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.pay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-specular);
  pointer-events: none;
}

.pay-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pay-currency {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.pay-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.pay-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.member-badge.gold {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(202, 138, 4, 0.08));
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.member-badge.diamond {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pay-buy-btn {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pay-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.pay-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

.pay-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pay-stats strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* 6. 响应式：窄屏单栏堆叠 */
@media (max-width: 960px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-side {
    position: static;
  }
  .detail-main {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   搭讪大师TV (Zibll 子比主题) 1:1 像素级复刻规范
   ========================================================================== */

:root,
[data-theme="dark"] {
  --brand-pink: #f04494;
  --brand-pink-hover: #fa57a2;
  --brand-accent: #f04494;

  /* 高级黑灰核心色彩体系 (Obsidian & Carbon Grays) */
  --zib-bg-body: #09090b;
  --zib-card-bg: #121215;
  --zib-card-bg-hover: #17171c;
  --zib-border-color: rgba(255, 255, 255, 0.08);
  --zib-border-hover: rgba(255, 255, 255, 0.18);
  --zib-text-main: #f4f4f5;
  --zib-text-secondary: #a1a1aa;
  --zib-text-muted: #8e8e93;
  --zib-text-subtle: #636366;

  /* 顶栏液态毛玻璃 (高级黑灰) */
  --topbar-bg: rgba(9, 9, 11, 0.82);
  --topbar-border: rgba(255, 255, 255, 0.08);

  /* 阴影与微光 */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --specular-line: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

[data-theme="ivory"] {
  --brand-pink: #f04494;
  --brand-pink-hover: #d82b7b;
  --brand-accent: #f04494;
  --zib-bg-body: #f5f6f8;
  --zib-card-bg: #ffffff;
  --zib-card-bg-hover: #ffffff;
  --zib-border-color: rgba(0, 0, 0, 0.07);
  --zib-border-hover: rgba(0, 0, 0, 0.15);
  --zib-text-main: #18181b;
  --zib-text-secondary: #52525b;
  --zib-text-muted: #8590a6;
  --zib-text-subtle: #a1a1aa;
  --topbar-bg: rgba(255, 255, 255, 0.88);
  --topbar-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --specular-line: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

body {
  background-color: var(--zib-bg-body);
  color: var(--zib-text-main);
}

/* 1. Header 顶栏 1:1 液态毛玻璃 */
.topbar {
  background-color: var(--topbar-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  height: 64px;
}

.topbar-inner {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.site-logo-img,
.site-logo-svg {
  height: 38px;
  width: auto;
  display: block;
  overflow: visible;
  color: var(--text-primary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo:hover .site-logo-svg,
.brand-logo:hover .site-logo-img {
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--zib-text-main) !important;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-pink) !important;
}

/* 顶栏导师团队下拉菜单 (高奢黑灰微光质感) */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-arrow-icon {
  width: 9px;
  height: 9px;
  opacity: 0.55;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  vertical-align: middle;
}

.nav-dropdown-wrap:hover .nav-arrow-icon {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--brand-pink);
}

.nav-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin-top: 10px;
  background: var(--zib-card-bg, #121215);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 1000;
}

.sub-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--zib-text-main);
}

.sub-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.sub-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.sub-item-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--zib-text-main);
  transition: color 0.15s ease;
}

.sub-item:hover .sub-item-title,
.sub-item.active .sub-item-title {
  color: var(--brand-pink);
}

.sub-item-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(240, 68, 148, 0.15);
  color: var(--brand-pink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sub-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--zib-text-muted);
  font-weight: 600;
}

.sub-item-desc {
  font-size: 11px;
  color: var(--zib-text-muted);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.sub-menu-divider {
  height: 1px;
  background: var(--zib-border-color, rgba(255, 255, 255, 0.08));
  margin: 6px 8px;
}

/* ==========================================================================
   Zibll 8.1 原生原子类与顶栏四大核心组件 (1:1 原版复刻)
   ========================================================================== */

/* Zibll 通用按钮与胶囊体系 */
.but {
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  border: 1px solid transparent;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  font-weight: 500;
  box-sizing: border-box;
}

.but.radius {
  border-radius: 100px;
  padding: 5px 14px;
}

.but.radius4 {
  border-radius: 4px;
}

.but:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Zibll 原版渐变色板 */
.jb-red {
  --this-bg: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
  --this-color: #fff;
  background: var(--this-bg) !important;
  color: var(--this-color) !important;
  border: none !important;
}

.jb-vip2 {
  --this-bg: linear-gradient(317deg, #4d4c4c 30%, #7b7b7b 70%, #5f5c5c 100%);
  --this-color: #ddd;
  background: var(--this-bg) !important;
  color: var(--this-color) !important;
  border: none !important;
}

.jb-blue {
  --this-bg: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
  --this-color: #fff;
  background: var(--this-bg) !important;
  color: var(--this-color) !important;
  border: none !important;
}

.jb-vip1 {
  --this-bg: linear-gradient(135deg, #e6aa4f 10%, #f5b97b 100%);
  --this-color: #866127;
  background: var(--this-bg) !important;
  color: var(--this-color) !important;
  border: none !important;
}

/* 开通会员斜向金属质感 payvip-icon */
.payvip-icon {
  background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%) !important;
  text-shadow: none;
  font-weight: 500;
  position: relative;
  color: #ece0e0 !important;
  border: none !important;
  --this-color: #ece0e0;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  gap: 5px;
}

.payvip-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* 顶栏右侧 29px 圆钮体系 (钛金黑灰微光) */
.toggle-radius {
  background: var(--zib-card-bg);
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 100%;
  position: relative;
  border: 1px solid var(--zib-border-color);
  color: var(--zib-text-muted);
  cursor: pointer;
  transition: all .2s ease;
  box-sizing: border-box;
  text-decoration: none;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toggle-radius:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--zib-card-bg-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.toggle-radius svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 专业情感咨询导航项及右上角角标 */
.nav-counseling-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-counseling-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-counseling-link .but.jb-vip2 {
  font-size: 12px;
  padding: 3px 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-counseling-link badge {
  position: absolute;
  top: -7px;
  right: -10px;
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 6px;
  border-radius: 50px;
  background: #fe3459;
  color: #fff;
  text-align: center;
  font-style: normal;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(254, 52, 89, 0.4);
  white-space: nowrap;
  pointer-events: none;
  transform: scale(0.85);
  transform-origin: top left;
}

.nav-counseling-link badge i {
  font-style: normal;
}

/* 顶栏右侧按钮组容器 */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 纯 CSS 悬浮展开体系 hover-show */
.hover-show {
  position: relative;
  display: inline-block;
}

.hover-show .hover-show-con {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .24s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  margin-top: 8px;
  pointer-events: none;
}

.hover-show:hover .hover-show-con {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 会员悬浮卡片 sub-vip-card (原版 1:1 双卡片) */
.sub-vip-card {
  font-size: 12px;
  background: var(--zib-card-bg);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid var(--zib-border-color);
  padding: 12px;
  display: flex;
  gap: 12px;
  white-space: normal;
  width: max-content;
}

.sub-vip-card .vip-card {
  width: 220px;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.sub-vip-card .vip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vip-card.vip-theme1 {
  background: linear-gradient(25deg, #e6aa4f 10%, #f1d7ad 70%, #f5b97b 100%);
  color: #866127;
}

.vip-card.vip-theme2 {
  background: linear-gradient(317deg, #2c294a, #686886 30%, #35343e);
  color: #e4e2fb;
}

.vip-card .vip-baicon {
  position: absolute;
  right: -15px;
  bottom: -15px;
  opacity: 0.16;
  pointer-events: none;
}

.vip-card .vip-baicon img {
  width: 100px;
  height: 100px;
}

.vip-card .vip-name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.vip-card .vip-name img {
  width: 18px;
  height: 18px;
}

.vip-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.95;
}

.vip-card ul li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vip-card ul li::before {
  content: "•";
  font-weight: bold;
}

.vip-card .payvip-button {
  display: block;
  width: 100%;
  padding: 7px 0;
  text-align: center;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.vip-card.vip-theme1 .payvip-button {
  background: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
  color: #fff;
  border: none;
}

.vip-card.vip-theme2 .payvip-button {
  background: linear-gradient(270deg, #ada48a, #eae5b7 45%, #f5efd6);
  color: #72511d;
  border: none;
}

/* 2. 首页 1:1 巨幅 Banner 与多列响应式卡片 (宽屏沉浸展开) */
.home-hero-banner {
  max-width: 1720px;
  width: 100%;
  margin: 18px auto 28px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--zib-border-color);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-hero-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  border-color: var(--zib-border-hover);
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.zib-posts-grid {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (min-width: 1600px) {
  .zib-posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .zib-posts-grid {
    grid-template-columns: 1fr;
  }
}

.zib-post-card {
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
  position: relative;
}

.zib-post-card:hover {
  transform: translateY(-2px);
  background: var(--zib-card-bg-hover);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--zib-border-hover);
}

.item-thumbnail {
  width: 200px;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.zib-post-card:hover .item-thumbnail img {
  transform: scale(1.05);
}

.badge-sticky {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.2;
}

.play-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.018em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--zib-text-main);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.zib-post-card:hover .item-title {
  color: var(--brand-pink);
}

.item-excerpt {
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--zib-text-muted);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.badge-pay-tag {
  background: linear-gradient(135deg, rgba(240, 68, 148, 0.2), rgba(139, 92, 246, 0.2));
  color: #ff80bf;
  border: 1px solid rgba(240, 68, 148, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.badge-mentor-tag {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
}

.meta-views-count {
  margin-left: auto;
  color: var(--zib-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

.btn-more-posts {
  display: inline-block;
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  padding: 10px 24px;
  border-radius: 999px;
  color: var(--zib-text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.btn-more-posts:hover {
  color: var(--brand-pink);
  border-color: var(--brand-pink);
}

/* 3. 详情页 1:1 (对标 770.html) */
.zib-breadcrumb-bar {
  max-width: 1200px;
  margin: 16px auto 12px;
  font-size: 12px;
  color: var(--zib-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.zib-breadcrumb-bar a {
  color: var(--zib-text-muted);
  text-decoration: none;
}

.zib-breadcrumb-bar a:hover {
  color: var(--brand-pink);
}

.zib-breadcrumb-bar .sep {
  color: #c4c9d3;
}

.zib-breadcrumb-bar .cur {
  color: var(--zib-text-main);
}

.zib-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.zib-main-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--zib-text-main);
  line-height: 1.4;
  margin: 0 0 16px;
  text-align: left;
}

.zib-author-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--zib-border-color);
  margin-bottom: 24px;
}

.author-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-circle-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.author-display-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zib-text-main);
}

.badge-lv6 {
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.btn-zib-follow {
  background: transparent;
  color: var(--brand-pink);
  border: 1px solid var(--brand-pink);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zib-follow:hover {
  background: var(--brand-pink);
  color: #fff;
}

.author-meta-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--zib-text-muted);
}

/* 横向付费卡片 posts-pay 1:1 (高奢黑灰) */
.zib-pay-box {
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.pay-flexbox {
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .pay-flexbox {
    flex-direction: column;
    align-items: stretch;
  }
}

.pay-thumb-col {
  width: 280px;
  flex-shrink: 0;
}

.pay-graphic-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}

.pay-graphic-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-pay-corner {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

.pay-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pay-top-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-main-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--zib-text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-sold-pill {
  background: #eaf2fe;
  color: #2f65f6;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pay-muted-subtitle {
  font-size: 12px;
  color: var(--zib-text-muted);
}

.pay-price-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0;
}

.price-val-red {
  color: #ff3838;
  font-weight: 800;
  display: flex;
  align-items: baseline;
}

.price-val-red .symbol {
  font-size: 18px;
  margin-right: 2px;
}

.price-val-red .num {
  font-size: 34px;
  line-height: 1;
}

.price-discount-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-flash-pill {
  background: #fff1f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
}

.orig-strike-price {
  font-size: 12px;
  color: var(--zib-text-muted);
  text-decoration: line-through;
}

.pay-vip-row {
  display: flex;
  gap: 10px;
  margin: 2px 0;
}

.vip-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.vip-capsule.gold {
  background: #fbf3da;
  color: #b57a07;
  border: 1px solid #f2dfa7;
}

.vip-capsule.diamond {
  background: #edf3ff;
  color: #2b66f5;
  border: 1px solid #d0e0ff;
}

.btn-zib-buy {
  background: linear-gradient(135deg, #ff5722, #f44336);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.25);
}

.btn-zib-buy:hover {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  box-shadow: 0 6px 16px rgba(244, 67, 54, 0.35);
}

.pay-login-footnote {
  font-size: 11px;
  color: var(--zib-text-muted);
  text-align: center;
}

/* 绿色通告条 1:1 */
.green-bar-downloads {
  background: #eefbf3;
  border: 1px solid #c7eed6;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.green-bar-title {
  color: #1a7541;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.green-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.green-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #d4f0df;
  border-radius: 4px;
}

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

.dl-name {
  font-weight: 700;
  color: #1a7541;
}

.dl-link {
  color: #2b7d4d;
  font-family: var(--font-mono);
  word-break: break-all;
}

.dl-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwd-tag {
  font-size: 12px;
  color: #333;
}

.pwd-tag strong {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: #1a7541;
}

.btn-copy-pwd {
  background: #e8f7ee;
  border: 1px solid #bcead0;
  color: #1a7541;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-copy-pwd:hover {
  background: #1a7541;
  color: #fff;
}

.btn-open-dl {
  background: #1a7541;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-open-dl:hover {
  background: #12572f;
}

/* 双栏排版与文章目录 1:1 */
.zib-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .zib-article-layout {
    grid-template-columns: 1fr;
  }
  .zib-article-aside {
    display: none;
  }
}

.zib-article-body {
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.zib-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--zib-text-main);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zib-border-color);
  position: relative;
}

.zib-sec-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: -9px;
  border-bottom: 3px solid var(--brand-pink);
}

.zib-article-p {
  font-size: 15px;
  line-height: 2.0;
  color: #333d47;
  margin-bottom: 14px;
}

[data-theme="dark"] .zib-article-p {
  color: #c0c6d0;
}

.zib-chapters-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-chapter-btn {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  background: var(--zib-bg-body);
  border: 1px dashed var(--zib-border-color);
  border-radius: 4px;
  color: var(--zib-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-chapter-btn:hover {
  color: var(--brand-pink);
  border-color: var(--brand-pink);
}

.zib-siblings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--zib-border-color);
}

.sibling-box {
  background: var(--zib-bg-body);
  border: 1px solid var(--zib-border-color);
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sibling-box:hover {
  border-color: var(--brand-pink);
  transform: translateY(-1px);
}

.next-box {
  text-align: right;
}

.sib-hint {
  font-size: 11px;
  color: var(--zib-text-muted);
  display: block;
  margin-bottom: 4px;
}

.sib-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--zib-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧 Sticky 文章目录 1:1 */
.zib-article-aside {
  position: sticky;
  top: 84px;
}

.aside-toc-card {
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.aside-toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--zib-text-main);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zib-border-color);
  margin-bottom: 14px;
}

.vertical-pink-bar {
  width: 3px;
  height: 14px;
  background: var(--brand-pink);
  border-radius: 2px;
}

.aside-toc-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.aside-toc-tree::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--zib-border-color);
}

.aside-toc-tree li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 13px;
}

.aside-toc-tree li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4c9d3;
  border: 2px solid var(--zib-card-bg);
}

.aside-toc-tree li.active::before {
  background: var(--brand-pink);
}

.aside-toc-tree li a {
  color: var(--zib-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.aside-toc-tree li.active a,
.aside-toc-tree li a:hover {
  color: var(--brand-pink);
  font-weight: 600;
}

/* 4. 浮动小工具栏与会员模态 */
.floating-toolbar {
  position: fixed;
  right: 18px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
}

.float-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  color: var(--zib-text-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.float-btn:hover {
  background: var(--brand-pink);
  color: #fff;
  border-color: var(--brand-pink);
}

.vip-modal {
  background: var(--zib-card-bg);
  border: 1px solid var(--zib-border-color);
  border-radius: 14px;
  padding: 32px;
  max-width: 620px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.vip-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vip-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vip-plan-card {
  border: 1px solid var(--zib-border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.gold-plan {
  background: #fbf7ee;
  border-color: #f1dfb0;
}

.diamond-plan {
  background: #f0f5ff;
  border-color: #c9dbff;
}

.vip-badge-tag {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gold-plan .vip-badge-tag { color: #b57a07; }
.diamond-plan .vip-badge-tag { color: #2b66f5; }

.vip-price {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.vip-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--zib-text-muted);
  text-align: left;
  line-height: 1.8;
}

.btn-vip-action {
  width: 100%;
  padding: 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.gold-plan .btn-vip-action {
  background: #b57a07;
  color: #fff;
}

.diamond-plan .btn-vip-action {
  background: #2b66f5;
  color: #fff;
}

/* Footer 1:1 */
.site-footer {
  background: var(--zib-card-bg);
  border-top: 1px solid var(--zib-border-color);
  padding: 32px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  font-size: 13px;
  color: var(--zib-text-muted);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--zib-text-muted);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 12px;
  color: #a4aab7;
}

/* ==========================================================================
   高颗粒度组件级 1:1 对标细化 (Zibll 深度复刻)
   ========================================================================== */

/* 1. posts-pay 原版结构样式映射 (高颗粒度 1:1) */
.pay-box {
  background: var(--zib-card-bg) !important;
  border: 1px solid var(--zib-border-color);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
}

.pay-flexbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 24px !important;
}

@media (max-width: 768px) {
  .pay-flexbox {
    flex-direction: column !important;
  }
}

.pay-thumb {
  width: 280px !important;
  max-width: 280px !important;
  flex: 0 0 280px !important;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.pay-thumb .graphic {
  width: 100%;
  height: 100%;
  min-height: 175px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.pay-thumb .graphic img,
.pay-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.pay-thumb .pay-tag {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  bottom: auto !important;
  right: auto !important;
  background: #ff4d4f !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
}

.flex-auto-h {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  gap: 8px;
}

.pay-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--zib-text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-badge.hot.jb-blue {
  background: #eaf2fe;
  color: #2f65f6;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.muted-2-color {
  color: var(--zib-text-muted);
}

.em09 { font-size: 12px; }
.em3x { font-size: 38px; line-height: 1; }
.px12 { font-size: 12px; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.ml10 { margin-left: 10px; }
.mr20 { margin-right: 20px; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.inline-block { display: inline-block; }

.c-red {
  color: #ff3838;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pay-mark {
  font-size: 20px;
  font-weight: 700;
}

.badge-flash {
  background: #fff1f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  display: inline-block;
}

.original-price {
  font-size: 12px;
  color: var(--zib-text-muted);
  text-decoration: line-through;
}

.vip-price-buts {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}

.but.vip-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.but.vip-price[vip-level="1"] {
  background: #fbf3da;
  color: #b57a07;
  border: 1px solid #f2dfa7;
}

.but.vip-price[vip-level="2"] {
  background: #edf3ff;
  color: #2b66f5;
  border: 1px solid #d0e0ff;
}

.cashier-link.but.jb-red {
  background: linear-gradient(135deg, #ff5722, #f44336);
  color: #fff;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.25);
  transition: all 0.2s ease;
}

.cashier-link.but.jb-red:hover {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  box-shadow: 0 6px 18px rgba(244, 67, 54, 0.35);
  transform: translateY(-1px);
}

.c-yellow {
  color: #e6a23c;
  text-decoration: none;
  font-size: 12px;
}

/* 2. 待开通/待配置网盘直链卡片 */
.empty-dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfaf3;
  border: 1px dashed #e8d7b3;
  border-radius: 6px;
  padding: 14px 18px;
  gap: 16px;
}

.empty-dl-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-dl-badge {
  background: #f39c12;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.empty-dl-desc {
  font-size: 13px;
  color: #7f683a;
}

.btn-add-dl {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-add-dl:hover {
  background: #219150;
  transform: translateY(-1px);
}

/* 3. 版权声明与 THE END */
.zib-copyright-box {
  margin: 36px 0 20px;
  text-align: center;
}

.the-end-line {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}

.the-end-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--zib-border-color);
  z-index: 1;
}

.the-end-line span {
  position: relative;
  z-index: 2;
  background: var(--zib-card-bg);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--zib-text-muted);
}

.copyright-notice-text {
  font-size: 12px;
  color: var(--zib-text-muted);
}

/* 4. 分类标签胶囊 */
.zib-article-tags {
  margin-bottom: 24px;
}

.tag-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--zib-bg-body);
  border: 1px solid var(--zib-border-color);
  color: #2f65f6;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.tag-cat-pill:hover {
  background: #2f65f6;
  color: #fff;
}

/* 5. 点赞与分享条 */
.zib-post-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 20px;
}

.btn-like-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ffd1d8;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(240, 68, 148, 0.08);
}

.btn-like-pill:hover {
  border-color: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 68, 148, 0.15);
}

.heart-shape { font-size: 15px; }
.like-text { font-size: 13px; font-weight: 600; color: #333; }
.like-num { font-size: 13px; font-weight: 700; color: var(--brand-pink); font-family: var(--font-mono); }

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-act-tool {
  background: transparent;
  border: none;
  color: var(--zib-text-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-act-tool:hover {
  color: var(--brand-pink);
}

/* ==========================================================================
   ALPHAGAME 全局顶栏搜索框与靠右导航扩展 (Zibll 规范与现代液态毛玻璃)
   ========================================================================== */

/* 1. 顶栏常驻实体搜索框 */
.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: 250px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

[data-theme="light"] .topbar-search-box {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.topbar-search-box:hover,
.topbar-search-box:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 68, 148, 0.45);
  box-shadow: 0 0 14px rgba(240, 68, 148, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(-0.5px);
}

[data-theme="light"] .topbar-search-box:hover,
[data-theme="light"] .topbar-search-box:focus-within {
  background: #ffffff;
  border-color: rgba(240, 68, 148, 0.5);
  box-shadow: 0 2px 12px rgba(240, 68, 148, 0.12);
}

.topbar-search-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-muted, #8590a6);
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

.topbar-search-box:hover .topbar-search-icon {
  fill: var(--brand-pink, #f04494);
}

.topbar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}

.topbar-search-input::placeholder {
  color: var(--text-muted, #8590a6);
  opacity: 0.85;
}

.topbar-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  line-height: 1.3;
  color: var(--text-muted, #8590a6);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

[data-theme="light"] .topbar-search-kbd {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #666;
}

/* 专业咨询靠右外包容器 */
.topbar-counseling-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

/* 响应式适配：大屏幕常驻框展示，小屏幕切换为圆钮 */
@media (max-width: 1080px) {
  .topbar-search-box {
    width: 190px;
  }
}

@media (max-width: 900px) {
  .topbar-search-box {
    display: none !important;
  }
  .mobile-search-btn {
    display: inline-flex !important;
  }
}

@media (min-width: 901px) {
  .mobile-search-btn {
    display: none !important;
  }
}

/* ==========================================================================
   ALPHAGAME VIP 会员价格中心 (#/price) 高定黑金与粉紫美学样式
   ========================================================================== */

.price-page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* 1. Hero 头部 */
.price-hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.price-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.1);
  border: 1px solid rgba(255, 183, 77, 0.25);
  box-shadow: 0 2px 10px rgba(255, 183, 77, 0.08);
  margin-bottom: 20px;
}

.price-hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb74d;
  box-shadow: 0 0 8px #ffb74d;
}

.price-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #f04494 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 30px;
}

.price-stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
}

.stat-pill .stat-icon {
  font-size: 14px;
}

/* 2. 双卡片方案布局 */
.price-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 64px;
  align-items: stretch;
}

.price-card {
  position: relative;
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* 黄金会员风格 */
.price-card.plan-gold {
  border-color: rgba(229, 170, 79, 0.3);
  background: radial-gradient(circle at top right, rgba(229, 170, 79, 0.08), transparent 60%), var(--zib-card-bg, #18181b);
}

.price-card.plan-gold:hover {
  border-color: rgba(229, 170, 79, 0.6);
  box-shadow: 0 20px 48px rgba(229, 170, 79, 0.15);
}

.price-card.plan-gold .plan-tag {
  color: #e5aa4f;
  background: rgba(229, 170, 79, 0.12);
  border: 1px solid rgba(229, 170, 79, 0.25);
}

/* 钻石永久会员风格 (核心推荐卡片) */
.price-card.plan-diamond {
  border-color: rgba(240, 68, 148, 0.45);
  background: radial-gradient(circle at top right, rgba(240, 68, 148, 0.12), transparent 50%), 
              radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.12), transparent 50%),
              var(--zib-card-bg, #18181b);
  box-shadow: 0 16px 44px rgba(240, 68, 148, 0.15), 0 0 0 1px rgba(240, 68, 148, 0.25);
}

.price-card.plan-diamond:hover {
  border-color: rgba(240, 68, 148, 0.8);
  box-shadow: 0 24px 60px rgba(240, 68, 148, 0.28), 0 0 0 1px rgba(240, 68, 148, 0.5);
}

.price-card.plan-diamond .plan-tag {
  color: #ff6db6;
  background: rgba(240, 68, 148, 0.14);
  border: 1px solid rgba(240, 68, 148, 0.3);
}

/* 热门推荐角标丝带 */
.plan-popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f04494 0%, #a855f7 100%);
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(240, 68, 148, 0.4);
}

.price-card-header {
  margin-bottom: 22px;
}

.plan-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  min-height: 40px;
}

/* 价格模块 */
.price-box {
  padding: 16px 0 20px;
  border-top: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  margin-bottom: 24px;
}

.price-origin {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-main .currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-main .amount {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-card.plan-gold .price-main .amount {
  color: #f1d7ad;
}

.price-card.plan-diamond .price-main .amount {
  background: linear-gradient(135deg, #ffffff 0%, #ff8cc6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-main .period {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-sub-calc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.price-sub-calc.highlight {
  color: #ff7ebb;
  font-weight: 600;
}

/* 权益清单 */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feature-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item.checked svg.check-svg {
  color: #10b981;
}

.feature-item.checked.golden svg.check-svg {
  color: #e5aa4f;
}

.feature-item.unchecked {
  opacity: 0.45;
  color: var(--text-muted);
}

.feature-item.unchecked svg.cross-svg {
  color: var(--text-muted);
}

/* 按钮 */
.price-btn-wrap {
  margin-top: auto;
}

.btn-price {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-gold-action {
  background: linear-gradient(135deg, #e5aa4f 0%, #f1d7ad 50%, #d4953c 100%);
  color: #432a03;
}

.btn-gold-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 170, 79, 0.35);
}

.btn-diamond-action {
  background: linear-gradient(135deg, #f04494 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.btn-diamond-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 68, 148, 0.45);
}

/* 3. 对比表格模块 */
.price-comparison-section {
  margin-bottom: 64px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.comparison-table-wrap {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13.5px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.06));
}

.comparison-table thead th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.comparison-table th.col-feature,
.comparison-table td.td-feature {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 24px;
}

.comparison-table th.col-diamond,
.comparison-table td.td-diamond {
  background: rgba(240, 68, 148, 0.035);
}

.comparison-table td.highlight-cell {
  color: #ff6db6;
  font-weight: 700;
}

.comparison-table td.td-guest {
  color: var(--text-muted);
}

.comparison-table td.td-gold {
  color: #e5aa4f;
  font-weight: 600;
}

/* 4. 四大保障 */
.price-guarantee-section {
  margin-bottom: 64px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.guarantee-card:hover {
  transform: translateY(-2px);
}

.guarantee-card .g-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.guarantee-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.guarantee-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 5. 常见问题 FAQ */
.price-faq-section {
  max-width: 860px;
  margin: 0 auto 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 20px 24px;
}

.faq-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 6. 收银台支付弹窗 */
.payment-modal-box {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  padding: 30px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.payment-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.payment-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-order-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-price-value {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  color: #ff6db6;
}

.payment-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-method-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.1));
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.pay-method-item.active {
  border-color: var(--brand-pink, #f04494);
  background: rgba(240, 68, 148, 0.08);
  color: var(--text-primary);
}

.payment-qr-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.qr-border-box {
  display: inline-block;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-svg-mock {
  display: block;
  margin-bottom: 8px;
}

.qr-tip-text {
  font-size: 11px;
  color: #555555;
  font-weight: 600;
}

.pay-timer-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.payment-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-pay-complete {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-pay-complete:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-pay-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.payment-secure-badge {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* 7. 专业情感咨询页面样式 */
.counseling-page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.counseling-hero {
  text-align: center;
  margin-bottom: 48px;
}

.counseling-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.counseling-card {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.counseling-card.featured-card {
  border-color: rgba(240, 68, 148, 0.5);
  box-shadow: 0 12px 36px rgba(240, 68, 148, 0.15);
}

.c-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.c-badge.highlight {
  background: rgba(240, 68, 148, 0.15);
  color: #ff6db6;
}

.counseling-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.counseling-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.c-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.counseling-contact-box {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid var(--zib-border-color, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}

.contact-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.contact-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.contact-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-copy-wechat {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-copy-wechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.btn-check-vip-sub {
  color: var(--brand-pink, #f04494);
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 600;
}

.btn-check-vip-sub:hover {
  text-decoration: underline;
}

/* 移动端流式适配 */
@media (max-width: 768px) {
  .price-cards-grid {
    grid-template-columns: 1fr;
  }
  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
  }
  .counseling-services-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ==========================================================================
   用户系统与权限闭环高定样式 (User Auth & VIP Drawer)
   ========================================================================== */

.user-nav-area {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.btn-user-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-user-login-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-pink, #f04494);
  color: var(--brand-pink, #f04494);
  transform: translateY(-1px);
}

.nav-user-icon {
  width: 14px;
  height: 14px;
}

/* 已登录胶囊 */
.user-logged-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.user-logged-capsule:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.user-capsule-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f04494 0%, #7928ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(240, 68, 148, 0.4);
}

.user-capsule-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge-vip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.user-badge-vip.gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.user-badge-vip.diamond {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.user-badge-vip.none {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* 登录/注册模态框 */
.auth-modal {
  background: var(--zib-card-bg, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 28px 24px 24px;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.auth-tabs {
  display: flex;
  gap: 12px;
}

.auth-tab-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted, #71717a);
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  color: var(--text-primary, #ffffff);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-pink, #f04494);
  border-radius: 99px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #a1a1aa);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--brand-pink, #f04494);
  background: rgba(255, 255, 255, 0.08);
}

.auth-error-msg {
  color: #ef4444;
  font-size: 12.5px;
  background: rgba(239, 68, 68, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.btn-auth-submit {
  background: linear-gradient(135deg, #f04494 0%, #7928ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-auth-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-quick-bar {
  text-align: center;
  margin-top: 6px;
}

.btn-quick-demo {
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-secondary, #a1a1aa);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-demo:hover {
  border-color: var(--brand-pink, #f04494);
  color: var(--brand-pink, #f04494);
}

/* 用户抽屉卡片 */
.user-drawer-card {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 320px;
  max-width: 90vw;
  background: var(--zib-card-bg, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 20px;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.user-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-profile-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f04494 0%, #7928ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(240, 68, 148, 0.4);
}

.drawer-meta-names {
  display: flex;
  flex-direction: column;
}

.drawer-nickname {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-username {
  font-size: 12px;
  color: var(--text-muted);
}

.drawer-vip-status-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-vip-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-vip-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-vip-expire {
  font-size: 11.5px;
  color: var(--text-muted);
}

.drawer-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.drawer-stat-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.drawer-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-pink, #f04494);
  font-family: var(--font-mono, monospace);
}

.drawer-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-drawer-upgrade {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.btn-drawer-upgrade:hover {
  opacity: 0.92;
}

.btn-drawer-logout {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-drawer-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}


/* ============================================================
   OAuth 第三方登录按钮与分割线
   ============================================================ */
.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: var(--text-muted, #71717a);
  font-size: 11.5px;
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.oauth-divider span {
  padding: 0 10px;
}
.oauth-btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.btn-oauth-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #fff);
  transition: all 0.2s ease;
}
.btn-oauth-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btn-oauth-item.oauth-github:hover {
  border-color: rgba(240, 68, 148, 0.4);
}
.btn-oauth-item.oauth-google:hover {
  border-color: rgba(66, 133, 244, 0.4);
}

/* ============================================================
   Zibll 风格 4 栏矩阵页脚与合规保障体系
   ============================================================ */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 22, 0.7);
  backdrop-filter: blur(12px);
  padding: 50px 24px 24px;
}
.footer-matrix-wrap {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, #f04494 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #a1a1aa);
  max-width: 320px;
  margin-bottom: 16px;
}
.footer-cert-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cert-pill {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary, #d4d4d8);
}
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-menu a {
  font-size: 12.5px;
  color: var(--text-muted, #9ca3af);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: var(--brand-pink, #f04494);
}
.footer-bottom-bar {
  max-width: 1720px;
  width: 100%;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted, #71717a);
}
.footer-sub-links a {
  color: var(--text-muted, #71717a);
  text-decoration: none;
  margin: 0 4px;
}
.footer-sub-links a:hover {
  color: var(--brand-pink, #f04494);
}
@media (max-width: 768px) {
  .footer-matrix-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   合规落地页 (Privacy, Terms, Disclaimer)
   ============================================================ */
.legal-page-wrap {
  max-width: 860px;
  margin: 30px auto 60px;
  padding: 0 20px;
}
.legal-page-hero {
  margin-bottom: 24px;
}
.btn-legal-back {
  font-size: 12.5px;
  color: var(--brand-pink, #f04494);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.legal-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  margin-bottom: 8px;
}
.legal-page-sub {
  font-size: 13px;
  color: var(--text-muted, #a1a1aa);
}
.legal-page-card {
  background: var(--bg-card, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 32px;
}
.legal-section {
  margin-bottom: 24px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-secondary, #d4d4d8);
  margin: 0;
}
.legal-footer-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: var(--text-muted, #a1a1aa);
}
.legal-footer-contact code {
  color: var(--brand-pink, #f04494);
  background: rgba(240, 68, 148, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   管理员总控制台 (Admin Dashboard & Log Stream)
   ============================================================ */
.admin-wrap {
  max-width: 1280px;
  margin: 24px auto 60px;
  padding: 0 24px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-title-group h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}
.admin-title-group p {
  font-size: 13px;
  color: var(--text-muted, #a1a1aa);
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 10px;
}
.btn-admin-refresh {
  background: rgba(240, 68, 148, 0.15);
  border: 1px solid rgba(240, 68, 148, 0.4);
  color: var(--brand-pink, #f04494);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-admin-refresh:hover {
  background: rgba(240, 68, 148, 0.25);
}
.btn-admin-exit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #d4d4d8);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--bg-card, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.admin-stat-card.highlight {
  border-color: rgba(240, 68, 148, 0.3);
  background: linear-gradient(135deg, rgba(240, 68, 148, 0.08) 0%, rgba(121, 40, 202, 0.05) 100%);
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-muted, #a1a1aa);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  font-family: var(--font-mono, monospace);
  margin-bottom: 6px;
}
.stat-val.green {
  color: #10b981;
}
.stat-val .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #71717a);
}
.stat-sub {
  font-size: 11.5px;
  color: var(--text-muted, #71717a);
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 992px) {
  .admin-panel-grid {
    grid-template-columns: 1fr;
  }
}
.admin-panel-col {
  background: var(--bg-card, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #fff);
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.panel-badge {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted, #a1a1aa);
}
.admin-log-box {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
}
.log-line {
  line-height: 1.5;
  display: flex;
  gap: 8px;
  word-break: break-all;
}
.log-time {
  color: #71717a;
  flex-shrink: 0;
}
.log-tag {
  font-weight: 700;
  flex-shrink: 0;
  padding: 0 4px;
  border-radius: 2px;
}
.level-info .log-tag {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}
.level-warn .log-tag {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}
.level-error .log-tag {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.level-pay .log-tag {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.log-msg {
  color: #e4e4e7;
}

.admin-order-table-wrap {
  flex: 1;
  overflow-x: auto;
  max-height: 380px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.admin-table th {
  padding: 8px 10px;
  color: var(--text-muted, #a1a1aa);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #d4d4d8);
}
.admin-table code {
  font-size: 11px;
  color: var(--brand-pink, #f04494);
}
.badge-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}
.badge-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.btn-table-fulfill {
  background: rgba(240, 68, 148, 0.2);
  border: 1px solid rgba(240, 68, 148, 0.5);
  color: var(--brand-pink, #f04494);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.admin-auth-guard {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.guard-card {
  background: var(--bg-card, #18181b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  max-width: 440px;
}
.guard-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.guard-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 8px;
}
.guard-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #a1a1aa);
  margin-bottom: 20px;
}
.guard-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-guard-login {
  background: var(--brand-pink, #f04494);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-guard-home {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #d4d4d8);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}
