/* ========== 风格2：现代科技 AI感 ========== */
/* 紫蓝渐变 · 卡片悬浮 · 流畅动效 · 圆角柔和 */

/* ========== CSS Variables - Light ========== */
:root {
  --bg-primary: #f8faff;
  --bg-secondary: #eef1ff;
  --bg-tertiary: #e0e5ff;
  --bg-card: #ffffff;
  --text-primary: #1a1f3a;
  --text-secondary: #5a6080;
  --text-muted: #8e94b0;
  --border-color: #e2e6f4;
  --border-light: #eef0fa;
  --accent: #6366f1;
  --accent-light: #ede9fe;
  --accent-dark: #4f46e5;
  --accent-hover: #818cf8;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --expert-bg: #fef3c7;
  --expert-text: #92400e;
  --admin-bg: #fce7f3;
  --admin-text: #9d174d;
  --shadow-sm: 0 1px 3px rgba(99,102,241,0.06);
  --shadow-md: 0 4px 20px rgba(99,102,241,0.08);
  --shadow-lg: 0 8px 40px rgba(99,102,241,0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
}

/* ========== Dark Theme ========== */
[data-theme="dark"] {
  --bg-primary: #0f0f23;
  --bg-secondary: #151530;
  --bg-tertiary: #1e1e3f;
  --bg-card: #1a1a35;
  --text-primary: #e8eaf6;
  --text-secondary: #a5a8c8;
  --text-muted: #6e7191;
  --border-color: #2a2a50;
  --border-light: #222248;
  --accent: #818cf8;
  --accent-light: #1e1b4b;
  --accent-dark: #a5b4fc;
  --accent-hover: #a5b4fc;
  --shadow-sm: 0 1px 3px rgba(99,102,241,0.12);
  --shadow-md: 0 4px 20px rgba(99,102,241,0.15);
  --shadow-lg: 0 8px 40px rgba(99,102,241,0.2);
  --expert-bg: #3b2f0c;
  --expert-text: #fbbf24;
  --admin-bg: #3b0f23;
  --admin-text: #f472b6;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ========== CONTAINER ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
}

/* ========== HEADER ========== */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] .header {
  background: rgba(15, 15, 35, 0.85);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-desktop {
  display: flex;
  gap: 2px;
}

.nav-item {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-item:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 18px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: rotate(15deg);
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.user-menu {
  position: relative;
}

.user-trigger {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-trigger:hover {
  background: var(--bg-tertiary);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 200;
  padding: 6px 0;
}

.user-menu.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.15s;
}

.dropdown a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  padding: 12px 28px 20px;
  border-top: 1px solid var(--border-color);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text-primary);
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

.mobile-nav a.sub-item {
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  color: var(--accent);
  background: none;
  border: none;
  font-size: 13px;
  padding: 2px 4px;
  text-decoration: underline;
}

.btn-link.danger {
  color: var(--danger);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
}

/* ========== BADGES ========== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.badge-admin {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.badge-expert {
  background: var(--expert-bg);
  color: var(--expert-text);
}

.pin-badge {
  background: var(--danger-light);
  color: var(--danger);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.status-tag {
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.status-published {
  background: var(--success-light);
  color: var(--success);
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.status-deleted {
  background: var(--danger-light);
  color: var(--danger);
}

/* ========== HERO ========== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-hero);
  opacity: 0.05;
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.15) rotate(5deg);
  }
}

.hero>.container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', '楷体', 'FZShuTi', serif;
  font-size: 64px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  -webkit-text-stroke: 0;
  margin-bottom: 18px;
  line-height: 1.3;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 48px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 15px;
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.category-card:hover::before {
  opacity: 1;
}

.category-card-title {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.category-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.category-card-subs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
  font-weight: 500;
}

.sub-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateX(4px);
}

.sub-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 10px;
}

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

/* ========== POST LIST ========== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateX(4px);
}

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

.post-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-item-title a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.post-item-title a:hover {
  color: var(--accent);
}

.post-item-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.post-item-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-item-stats {
    flex-direction: row;
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb span {
  margin: 0 6px;
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== CATEGORY HEADER ========== */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.category-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .category-name {
    font-size: 24px;
  }
}

/* ========== POST DETAIL ========== */
.post-detail {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 36px;
}

.post-detail-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.post-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.post-detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
}

.post-detail-content h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  font-weight: 600;
}

.post-detail-content p {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .post-detail-title {
    font-size: 24px;
  }
}

/* ========== REPLIES ========== */
.replies-section {
  margin-bottom: 44px;
}

.replies-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.reply-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.reply-header {
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-bottom: 10px;
  align-items: center;
}

.reply-author {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-time {
  color: var(--text-muted);
}

.reply-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}

.reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.reply-form h4 {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
}

.reply-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  resize: vertical;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 56px 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 128px);
  padding: 48px 16px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-demo {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  padding-bottom: 56px;
}

.contact-page h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 44px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-note {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-size: 14px;
  color: var(--accent-dark);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
}

/* ========== ADMIN ========== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-title {
  padding: 0 24px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.admin-nav-item {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
  border-left: 3px solid transparent;
  font-weight: 500;
}

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

.admin-nav-item.active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
}

.admin-main {
  flex: 1;
  padding: 36px;
  overflow-x: auto;
}

.admin-main h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }

  .admin-sidebar-title {
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
    margin-right: 14px;
    font-size: 15px;
  }

  .admin-nav-item {
    border-left: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
  }

  .admin-nav-item.active {
    border-left: none;
  }

  .admin-main {
    padding: 24px 18px;
  }
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

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

.stat-value {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== ADMIN TABLE ========== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.admin-table th {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:hover td {
  background: var(--bg-secondary);
}

.admin-cat {
  margin-bottom: 36px;
}

.admin-cat h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-secondary);
}

/* ========== POST FORM ========== */
.post-form .form-group textarea {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

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

/* ================================================================
   V2 首页重设计：左对齐 hero + 数据条 + 瀑布板块 + 榜单热门
   ================================================================ */

/* ---------- HERO ---------- */
.hero {
  padding: 88px 0 72px;
  text-align: left;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-kicker-line {
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  display: inline-block;
}

.hero-title {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', '楷体', 'FZShuTi', serif;
  font-size: 64px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  -webkit-text-stroke: 0;
  margin-bottom: 18px;
  line-height: 1.3;
}

/* ---------- HERO 毛笔字水印 ---------- */
.hero-watermark {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', serif;
  font-size: 230px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-watermark {
    font-size: 120px;
    right: -10px;
  }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 0 32px;
  line-height: 1.8;
}

.hero-actions {
  justify-content: flex-start;
}

/* ---------- HERO STATS ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.stat-block:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-title-index {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
}

/* ---------- CATEGORY GRID: 瀑布式 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.category-card {
  grid-column: span 6;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.category-card-featured {
  grid-column: span 12;
  padding: 36px 40px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--card-grad) border-box;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.category-card:not(.category-card-featured) {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.category-card:not(.category-card-featured):hover {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--card-grad) border-box;
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.14);
  transform: translateY(-4px);
}

.category-card::before {
  display: none;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.category-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.10));
  border: 1px solid rgba(99,102,241,0.18);
  line-height: 0;
}

.category-card-icon svg {
  display: block;
}

.category-card-index {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--card-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.85;
}

.category-card-title {
  font-family: 'KaiTi', 'STKaiti', '楷体', 'STXingkai', '华文行楷', serif !important;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.category-card-desc {
  margin-bottom: 22px;
}

/* ---------- SUB PILLS ---------- */
.category-card-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-pill .sub-count {
  background: var(--gradient-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  padding: 0 6px;
}

.sub-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

/* ---------- HOT LIST 榜单 ---------- */
.hot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-item:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.hot-rank {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  min-width: 44px;
  text-align: center;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.75;
}

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

.hot-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hot-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.hot-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hot-author {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-stats {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 56px 0 44px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .category-card,
  .category-card-featured {
    grid-column: span 12;
  }

  .category-card-featured {
    padding: 26px 24px;
  }

  .hot-item {
    padding: 16px 18px;
    gap: 14px;
  }

  .hot-rank {
    font-size: 22px;
    min-width: 30px;
  }
}

/* ================================================================
   V2 愿景座右铭：以数字为基，筑星辰之境
   ================================================================ */

.header-vision {
  font-family: 'KaiTi', 'STKaiti', '楷体', 'STXingkai', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 3px rgba(99, 102, 241, 0.25));
  white-space: nowrap;
  padding: 4px 0;
  flex-shrink: 0;
}

.header-vision::before {
  content: '—';
  margin-right: 12px;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}

.header-vision::after {
  content: '—';
  margin-left: 12px;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}

.footer {
  padding: 0 0 26px;
  background: var(--bg-secondary);
}

.footer-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 24px 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer-motto::before {
  content: '愿景';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 150px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--accent);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
}

.motto-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.motto-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: #e11d48;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  margin-bottom: 20px;
  transform: rotate(-6deg);
  transition: transform 0.3s;
}

.footer-motto:hover .motto-seal {
  transform: rotate(0deg) scale(1.06);
}

.motto-script {
  font-family: 'STXingkai', 'KaiTi', 'STKaiti', '楷体', serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  background: linear-gradient(120deg, #6d28d9 0%, #4f46e5 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(99, 102, 241, 0.28));
}

.motto-caption {
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.motto-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  flex-shrink: 0;
}

.footer-copy {
  padding-top: 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-motto {
    gap: 16px;
    padding: 44px 16px 32px;
  }

  .motto-script {
    font-size: 24px;
    letter-spacing: 0.1em;
  }

  .motto-caption {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    font-size: 11px;
  }

  .motto-line {
    width: 40px;
  }

  .footer-motto::before {
    font-size: 96px;
  }
}

/* ===== 履职报告页 ===== */
.duty-page h2 { margin: 0 0 14px; font-size: 18px; }
.duty-workbench { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; margin-bottom: 28px; }
.duty-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.duty-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.duty-toolbar select, .duty-toolbar input[type="date"] { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary); font-size: 14px; }
.duty-videos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.duty-video-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-secondary); border-radius: var(--radius-sm); font-size: 13px; }
.duty-video-time { font-weight: 500; color: var(--accent-dark); font-family: Consolas, monospace; }
.duty-video-len { color: var(--text-muted); font-size: 12px; }
.duty-video-name { color: var(--text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-generate { text-align: center; }
.duty-gen-btn { padding: 12px 32px; font-size: 15px; }
.duty-hint { margin-top: 10px; color: var(--text-muted); font-size: 13px; min-height: 18px; }
.duty-reports h2 { margin: 24px 0 14px; font-size: 18px; }
.duty-report-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 16px; }
.duty-report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.duty-report-title { font-weight: 500; font-size: 15px; }
.duty-report-tag { font-size: 12px; color: var(--success); background: var(--success-light); padding: 2px 10px; border-radius: 999px; }
.duty-report-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.duty-report-row { display: flex; gap: 12px; font-size: 13px; }
.duty-report-row b { width: 72px; color: var(--text-muted); font-weight: 400; flex-shrink: 0; }
.duty-report-row span { color: var(--text-primary); }
.duty-report-actions { display: flex; gap: 8px; }
