/* ============================================================
   雪儿音频网 - 全新暗色主题 v2.0
   参考：bianquzy.com 风格
   ============================================================ */

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

:root {
  /* 暗色底 */
  --bg-body:     #080b14;
  --bg-card:     #111827;
  --bg-card-hover:#1a2236;
  --bg-header:   rgba(8,11,20,0.85);
  --bg-sidebar:  #0f1320;
  --bg-input:    #1a2035;

  /* 文字 */
  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* 强调色 */
  --accent-purple: #a78bfa;
  --accent-cyan:   #22d3ee;
  --accent-pink:   #f472b6;
  --accent-orange: #f59e0b;
  --accent-green:  #34d399;

  /* 功能色 */
  --danger:  #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  /* 圆角 / 阴影 */
  --radius:   12px;
  --radius-sm:8px;
  --shadow:  0 4px 24px rgba(0,0,0,0.35);
  --shadow-sm:0 2px 8px rgba(0,0,0,0.25);
  /* 边框/分隔线颜色（暗色主题） */
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.18);

  /* 布局 */
  --max-width:1320px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-body); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ======== 滚动条美化 ======== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ======== Header ======== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  height: var(--header-h); gap: 20px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap; cursor: pointer;
}
.logo:hover { filter: brightness(1.15); }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 16px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s; position: relative; white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: var(--border-subtle); }
.nav-link.active {
  color: var(--accent-purple); background: rgba(167,139,250,0.1);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: -1px; left: 16px; right: 16px;
  height: 2px; background: var(--accent-purple); border-radius: 1px;
}

/* 搜索框 */
.search-box {
  display: flex; align-items: center;
  background: var(--bg-input); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; overflow: hidden; transition: all 0.25s;
  min-width: 200px;
}
.search-box:focus-within {
  border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--text-primary); padding: 9px 14px; font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
  border: none; background: transparent; color: var(--text-secondary);
  padding: 0 14px; cursor: pointer; font-size: 1rem; transition: color 0.2s;
}
.search-box button:hover { color: var(--accent-purple); }

/* 登录/注册 */
.header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-user .btn-sm {
  padding: 6px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-medium); color: var(--text-secondary);
  background: transparent; cursor: pointer; transition: all 0.2s;
}
.header-user .btn-sm:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.header-user .btn-primary-sm {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff; border: none; padding: 6px 18px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.header-user .btn-primary-sm:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ======== Hero ======== */
.hero {
  position: relative; overflow: hidden;
  background: 
    url('/public/hero-bg.jpg') center/cover no-repeat,
    linear-gradient(135deg, rgba(15,5,32,0.7) 0%, rgba(8,11,20,0.85) 40%, rgba(5,10,24,0.95) 100%);
  padding: 90px 0 72px; text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-overlay, rgba(8,11,20,0.55));
  z-index: 0;
  transition: background 0.4s;
}
.hero .container { position: relative; z-index: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(167,139,250,0.08), transparent),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(34,211,238,0.06), transparent),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(244,114,182,0.05), transparent);
  pointer-events: none;
}
/* 星点效果 */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 40% 50%, rgba(167,139,250,0.6), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(34,211,238,0.5), transparent);
  pointer-events: none; opacity: 0.8;
}
.hero .container { position: relative; z-index: 1; }
.hero-text {
  display: inline-block;
}
.hero-text h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.35;
  background: linear-gradient(135deg, #fff 30%, var(--accent-purple) 70%, var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
  white-space: nowrap;
  transform: translateX(-3.5em);
}
.hero-text p {
  color: rgba(255,255,255,0.72); font-size: 1.1rem;
  text-align: right; margin: 0;
}
.hero .hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .hero-actions .btn-hero {
  padding: 12px 32px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s; border: none;
}
.hero .hero-actions .btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff; box-shadow: 0 4px 16px rgba(167,139,250,0.3);
}
.hero .hero-actions .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(167,139,250,0.4); }
.hero .hero-actions .btn-hero-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.hero .hero-actions .btn-hero-outline:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ======== 分类标签栏 ======== */
.category-tabs {
  display: flex; align-items: center; gap: 6px; padding: 20px 0 16px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 8px 20px; border-radius: 20px; font-size: 0.88rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cat-tab:hover { border-color: rgba(167,139,250,0.3); color: var(--text-primary); }
.cat-tab.active {
  background: linear-gradient(135deg, rgba(167,139,250,0.15), rgba(34,211,238,0.08));
  border-color: var(--accent-purple); color: var(--accent-purple); font-weight: 600;
}

/* 下拉菜单 */
.cat-dropdown-wrap { position: relative; display: inline-block; }
.cat-dropdown {
  visibility: hidden; opacity: 0; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); min-width: 180px; z-index: 100;
  box-shadow: var(--shadow); padding: 6px 0; overflow: hidden;
  transition: opacity 0.15s 0.3s, visibility 0s 0.3s;
}
.cat-dropdown-wrap:hover .cat-dropdown {
  visibility: visible; opacity: 1;
  transition: opacity 0.15s 0s, visibility 0s 0s;
}
.cat-dropdown-item {
  display: block; padding: 9px 18px; font-size: 0.85rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.cat-dropdown-item:hover { background: rgba(167,139,250,0.08); color: var(--accent-purple); }

/* ======== 区块标题 ======== */
.section-title {
  font-size: 1.2rem; font-weight: 700; margin: 28px 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: inline-block; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 2px;
}

/* ======== 卡片网格 ======== */
.main { display: flex; gap: 28px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }
.content { flex: 1; min-width: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ======== 帖子卡片 ======== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  border: 1px solid var(--border-subtle); position: relative;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(167,139,250,0.2);
}
.card-thumb {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1040 0%, #0f1a30 50%, #0a1020 100%);
}
/* 渐变封面占位 */
.card-thumb-default {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e1145 0%, #150a30 40%, #0d1525 100%);
  display: flex; align-items: center; justify-content: center;
}
.card-thumb-default .thumb-icon {
  font-size: 2.8rem; opacity: 0.35;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.card:hover .card-thumb img { transform: scale(1.05); }

/* 卡片上的分类标签 */
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 10px; border-radius: 6px; font-size: 0.72rem;
  font-weight: 600; color: var(--accent-cyan); letter-spacing: 0.02em;
}
/* 价格标签 */
.card-price {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, var(--accent-orange), #d97706);
  padding: 3px 10px; border-radius: 6px; font-size: 0.75rem;
  font-weight: 700; color: #fff;
}
.card-price.free { background: linear-gradient(135deg, var(--accent-green), #16a34a); }

.card-body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 0.95rem; font-weight: 600; line-height: 1.5; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px; cursor: pointer; transition: color 0.2s;
}
.card-title:hover { color: var(--accent-purple); }

.card-meta {
  display: flex; align-items: center; gap: 14px; margin-top: auto;
  padding-top: 10px; font-size: 0.78rem; color: var(--text-muted);
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta .meta-views::before { content: '👁'; font-size: 0.85em; }
.card-meta .meta-date::before  { content: '📅'; font-size: 0.85em; }


.btn-load-more {
  display: block; width: 100%; max-width: 320px; margin: 24px auto;
  padding: 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
}
.btn-load-more:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ======== Sidebar ======== */
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-subtle); padding: 22px;
}
.side-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.side-card h3::before { margin-right: 8px; }

/* 二维码 */
.qr-section { text-align: center; }
.qr-title { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 12px; }
.qr-box { background: #fff; padding: 10px; border-radius: 8px; display: inline-block; }
.qr-box img { max-width: 160px; display: block; border-radius: 6px; }

/* FAQ */
.faq-title { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 12px; font-weight: 600; }
.faq-list { font-size: 0.82rem; }
.faq-list a { display: block; color: #8b949e; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s; }
.faq-list a:hover { color: #58a6ff; }
.faq-list a span { float: right; color: #6e7681; font-size: 0.75rem; }

/* 首页底部三栏信息 */
.bottom-info {
  padding: 24px 0 48px;
}
.bottom-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bottom-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.bottom-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.bottom-card-img {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bottom-card-img img {
  width: 200px;
  height: 250px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 8px;
  display: block;
}
.bottom-card .faq-list {
  text-align: left;
  font-size: 0.88rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bottom-card .faq-list a {
  color: #8b949e;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
  font-size: 0.88rem;
}
.bottom-card .faq-list a:hover {
  color: #58a6ff;
}
.bottom-card .faq-list a span {
  float: right;
  color: #6e7681;
  font-size: 0.8rem;
}
.checkin-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px;
}
.checkin-day {
  aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 500; transition: all 0.2s;
}
.checkin-day.checked   { background: rgba(167,139,250,0.25); color: var(--accent-purple); border: 1px solid rgba(167,139,250,0.3); }
.checkin-day.today     { border: 2px solid var(--accent-purple); color: var(--accent-purple); font-weight: 700; }
.checkin-day.unchecked { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.checkin-day-label {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 4px;
}
.checkin-day-label span { text-align: center; font-size: 0.68rem; color: var(--text-muted); font-weight: 500; }

/* 站点统计 */
.stats-list li {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem; color: var(--text-secondary);
}
.stats-list li:last-child { border-bottom: none; }
.stats-list strong { color: var(--accent-cyan); font-weight: 700; }

/* ======== Footer ======== */
.footer {
  background: #060a12; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0; text-align: center; margin-top: auto;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-purple); }

/* ======== 详情页 ======== */
.detail-hero {
  background: linear-gradient(135deg, #0f0520, #080b14);
  padding: 48px 0 36px; border-bottom: 1px solid var(--border-subtle);
}
.detail-hero .container { display: flex; gap: 36px; align-items: flex-start; }
.detail-cover {
  width: 380px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1e1145, #0d1525);
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-placeholder { font-size: 4rem; opacity: 0.2; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.detail-info .detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.detail-info .detail-meta span { font-size: 0.88rem; color: var(--text-secondary); }
.detail-info .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-info .detail-tags .tag {
  padding: 4px 12px; border-radius: 6px; font-size: 0.78rem;
  background: rgba(167,139,250,0.1); color: var(--accent-purple); border: 1px solid rgba(167,139,250,0.15);
}

/* 详情内容区 */
.detail-body {
  max-width: var(--max-width); margin: 0 auto; padding: 36px 24px;
  display: flex; gap: 28px; align-items: flex-start;
}
.detail-content { flex: 1; min-width: 0; }
.detail-content .content-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-subtle); padding: 28px; margin-bottom: 24px;
}
.detail-content .content-card h2 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary);
  padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle);
}
.detail-content .content-card p, .detail-content .content-card li {
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; margin-bottom: 10px;
}

/* 侧边栏下载区 */
.detail-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.download-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-subtle); padding: 24px;
}
.download-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.download-card .dl-price {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), #d97706);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}
.download-card .dl-price.free {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dl-btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
  text-align: center; margin-top: 14px;
}
.dl-btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff; box-shadow: 0 4px 16px rgba(167,139,250,0.3);
}
.dl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(167,139,250,0.45); }
.dl-btn-success { background: linear-gradient(135deg, var(--accent-green), #16a34a); color: #fff; }
.dl-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.download-hint {
  margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); line-height: 1.7;
  padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
.download-hint .wechat-id { color: var(--accent-orange); font-weight: 600; }

/* ======== 分类页 ======== */
.page-header {
  background: linear-gradient(135deg, #0f0520, #080b14);
  padding: 48px 0 36px; text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.page-header p { color: var(--text-secondary); font-size: 0.95rem; }
.page-body { padding: 28px 0; }
.page-body h2 {
  font-size: 1.15rem; font-weight: 700; margin: 24px 0 12px;
  color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h2 .cat-emoji { font-size: 1.3rem; }
.subcat-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.subcat-list li a {
  padding: 6px 16px; border-radius: 8px; font-size: 0.85rem;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary); transition: all 0.2s;
}
.subcat-list li a:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.cat-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 16px 0; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary); transition: all 0.2s;
}
.tag:hover { border-color: var(--accent-purple); color: var(--accent-purple); background: rgba(167,139,250,0.08); }
.tag-sub { font-size: 0.75rem; opacity: 0.7; }

/* ======== 表单通用 ======== */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], textarea, select {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.1); background: var(--bg-input);
  color: var(--text-primary); outline: none; transition: all 0.2s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }

/* 按钮通用 */
.btn {
  padding: 10px 24px; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff; box-shadow: 0 4px 12px rgba(167,139,250,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(167,139,250,0.35); }
.btn-block { width: 100%; display: block; padding: 13px 24px; }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm-c {
  padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-edit { background: rgba(167,139,250,0.12); color: var(--accent-purple); }
.btn-del  { background: rgba(239,68,68,0.12); color: var(--danger); }



/* ======== 无结果 ======== */
.no-results {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.no-results .icon { font-size: 3rem; margin-bottom: 14px; }
.no-results p { font-size: 1rem; }


/* 会员标签 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 5px; font-size: 0.75rem; font-weight: 600; }
.badge-normal { background: rgba(34,211,238,0.12); color: var(--accent-cyan); }
.badge-premium { background: rgba(244,114,182,0.12); color: var(--accent-pink); }
.badge-admin { background: rgba(245,158,11,0.12); color: var(--accent-orange); }

/* 用户信息卡片 */
.points-mini { font-size: 0.88rem; color: var(--text-secondary); line-height: 2; }
.points-mini strong { color: var(--accent-cyan); font-weight: 700; }


  background: 
    url('/public/hero-bg.jpg') center/cover no-repeat,
    linear-gradient(135deg, rgba(240,244,248,0.3) 0%, rgba(240,244,248,0.5) 40%, rgba(240,244,248,0.7) 100%);
}
  background: rgba(240,244,248,0.45);
}


/* ======== 响应式 ======== */

/* --- 平板端 (≤900px) --- */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .main { flex-direction: column; padding: 0 0 48px; }
  .sidebar { width: 100%; }
  .detail-hero .container { flex-direction: column; }
  .detail-cover { width: 100%; max-width: 400px; }
  .detail-body { flex-direction: column; }
  .detail-sidebar { width: 100%; position: static; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero { padding: 60px 0 48px; }
  .hero-text h1 {
    font-size: 1.4rem;
    white-space: normal;
    transform: none;
  }
  .hero-text p { text-align: center; font-size: 0.92rem; }
  .hero .hero-actions .btn-hero {
    padding: 11px 24px; font-size: 0.88rem;
  }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
  /* 移动端四行布局：Row1 Logo | Row2 导航 | Row3 搜索 | Row4 登录/注册 */
  .logo { order: 0; font-size: 1.15rem; flex-basis: 100%; }
  .nav { order: 1; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .search-box { order: 2; flex-basis: 100%; }
  .header-user { order: 3; }
  .page-header { padding: 32px 16px 24px; }
  .page-header h1 { font-size: 1.4rem; }
}

/* --- 大手机端 (≤768px) --- */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .main { padding: 0 0 44px; }
  .hero { padding: 40px 0 28px; }
  .hero-text h1 { font-size: 1.2rem; }
  .hero-text p { font-size: 0.85rem; }
  .hero .hero-actions { gap: 8px; }
  .hero .hero-actions .btn-hero {
    padding: 10px 20px; font-size: 0.82rem; border-radius: 8px;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 8px; }
  .card-title { font-size: 0.88rem; }
  .card-meta { font-size: 0.72rem; gap: 6px; }
  .card-thumb { aspect-ratio: 4/3; }
  .section-title { font-size: 1rem; margin: 18px 0 12px; }
  .category-tabs { gap: 4px; padding: 12px 0 10px; }
  .cat-tab { padding: 6px 14px; font-size: 0.78rem; border-radius: 14px; }
  .bottom-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 12px;
  }
  .bottom-card { padding: 20px 16px 10px; }
  .bottom-card-title { font-size: 0.9rem; margin-bottom: 12px; }
  .bottom-card-img img { width: 140px; height: 180px; }
  .bottom-card .faq-list { font-size: 0.78rem; }
  .bottom-card .faq-list a { padding: 6px 0; font-size: 0.78rem; }
  .bottom-info { padding: 12px 0 28px; }
  .page-header { padding: 26px 12px 20px; }
  .page-header h1 { font-size: 1.2rem; }
  .page-header p, .page-body p, .page-body li { font-size: 0.85rem; }
  .page-body { padding: 16px 12px; }
  .auth-card { padding: 24px 18px; }
  .detail-hero { padding: 24px 0 20px; }
  .detail-info h1 { font-size: 1.2rem; }
  .detail-body { padding: 16px 0; }
  .detail-content .content-card { padding: 18px 14px; }
  .post-body-text img { max-height: 60vh; }
  .btn-load-more { max-width: 100%; padding: 10px; font-size: 0.85rem; }
  .main { padding: 0 0 40px; }
  .footer { padding: 24px 0; }
  .footer p, .footer-links a { font-size: 0.76rem; }
  .footer-links { gap: 14px; flex-wrap: wrap; }
  .nav-link { padding: 5px 10px; font-size: 0.8rem; }
  .logo { font-size: 1.05rem; }
  .search-box input { padding: 7px 10px; font-size: 0.8rem; }
  .header-user .btn-sm, .header-user .btn-primary-sm {
    padding: 5px 12px; font-size: 0.78rem;
  }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 10px 0; }
  .admin-menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
  .admin-menu a { padding: 7px 12px; border-left: none; border-radius: 8px; font-size: 0.8rem; }
  .admin-menu a.active { border-left: none; border: 1px solid var(--accent-purple); }
  .admin-main { padding: 14px; }
  .admin-topbar { padding: 0 14px; }
  .admin-main h2 { font-size: 1.1rem; }
  .admin-main .btn-add, .admin-main .btn-sm-c {
    padding: 8px 14px; font-size: 0.82rem; min-height: 36px;
  }
  table { display: block; overflow-x: auto; }
  th, td { padding: 7px 8px; font-size: 0.75rem; }
}

/* --- 手机端 (≤600px) --- */
@media (max-width: 600px) {
  .container { padding: 0 10px; }
  .hero { padding: 30px 0 22px; }
  .hero-text h1 { font-size: 1.05rem; }
  .hero-text p { font-size: 0.78rem; }
  .hero .hero-actions { gap: 6px; }
  .hero .hero-actions .btn-hero {
    padding: 9px 16px; font-size: 0.78rem;
  }
  .card-grid { gap: 10px; }
  .card-body { padding: 10px 10px 6px; }
  .card-title { font-size: 0.82rem; }
  .card-meta { font-size: 0.68rem; gap: 5px; }
  .card-thumb { aspect-ratio: 4/3; }
  .category-tabs { gap: 3px; padding: 10px 0 8px; }
  .cat-tab { padding: 5px 12px; font-size: 0.74rem; border-radius: 12px; }
  .section-title { font-size: 0.92rem; margin: 14px 0 10px; }
  .bottom-card { padding: 18px 14px 10px; }
  .bottom-card-title { font-size: 0.85rem; margin-bottom: 10px; }
  .bottom-card-img img { width: 120px; height: 150px; }
  .bottom-card .faq-list { font-size: 0.74rem; }
  .bottom-card .faq-list a { padding: 5px 0; font-size: 0.74rem; }
  .bottom-info { padding: 10px 0 24px; }
  .footer { padding: 20px 0; }
  .footer p, .footer-links a { font-size: 0.72rem; }
  .footer-links { gap: 12px; }
  .btn-load-more { padding: 9px; font-size: 0.8rem; }
  .main { padding: 0 0 36px; }
  .header-inner { padding: 8px 10px; gap: 6px; }
  .nav-link { padding: 4px 8px; font-size: 0.76rem; }
  .logo { font-size: 1rem; }
  .search-box input { padding: 6px 8px; font-size: 0.78rem; }
  .detail-hero { padding: 20px 0 16px; }
  .detail-info h1 { font-size: 1.05rem; }
  .detail-info .detail-meta, .detail-info .detail-tags { gap: 10px; }
  .detail-content .content-card { padding: 14px 12px; }
  .page-header { padding: 22px 10px 18px; }
  .page-header h1 { font-size: 1.1rem; }
  .auth-card { padding: 20px 14px; border-radius: 10px; }
  .auth-card h2 { font-size: 1.15rem; }
}

/* --- 中等小屏手机 (≤480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 8px; }
  .hero { padding: 24px 0 18px; }
  .hero-text h1 { font-size: 0.95rem; }
  .hero-text p { font-size: 0.74rem; }
  .hero .hero-actions .btn-hero {
    padding: 8px 14px; font-size: 0.75rem; border-radius: 7px;
  }
  .card-grid { gap: 8px; }
  .card-body { padding: 8px 8px 6px; }
  .card-title { font-size: 0.78rem; }
  .card-meta { font-size: 0.65rem; }
  .card-thumb { aspect-ratio: 4/3; }
  .card-price, .card-badge { font-size: 0.65rem; padding: 2px 7px; }
  .category-tabs { gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 6px; }
  .cat-tab { padding: 4px 10px; font-size: 0.7rem; border-radius: 10px; }
  .section-title { font-size: 0.88rem; margin: 12px 0 8px; }
  .bottom-card { padding: 16px 12px 8px; }
  .bottom-card-title { font-size: 0.8rem; margin-bottom: 8px; }
  .bottom-card-img img { width: 100px; height: 130px; }
  .bottom-card .faq-list { font-size: 0.7rem; }
  .bottom-card .faq-list a { padding: 4px 0; font-size: 0.7rem; }
  .bottom-card .faq-list a span { font-size: 0.68rem; }
  .bottom-info { padding: 8px 0 20px; }
  .footer { padding: 16px 0; }
  .footer p, .footer-links a { font-size: 0.68rem; }
  .main { padding: 0 0 32px; }
  .header-inner { padding: 6px 8px; }
  .nav-link { padding: 3px 7px; font-size: 0.72rem; }
  .logo { font-size: 0.95rem; }
  .search-box { border-radius: 8px; }
  .detail-hero { padding: 16px 0 12px; }
  .detail-info h1 { font-size: 0.95rem; }
  .detail-body { padding: 12px 0; }
  .detail-content .content-card { padding: 12px 10px; border-radius: 8px; }
  .post-body-text { font-size: 0.82rem; }
  .page-header h1 { font-size: 1rem; }
  .auth-card { padding: 16px 12px; }
  .auth-card h2 { font-size: 1.05rem; }
}

/* --- 小屏手机端 (≤400px) --- */
@media (max-width: 400px) {
  .container { padding: 0 6px; }
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-thumb { aspect-ratio: 16/9; }
  .hero-text h1 { font-size: 0.88rem; }
  .hero-text p { font-size: 0.7rem; }
  .hero { padding: 20px 0 14px; }
  .hero .hero-actions .btn-hero {
    padding: 7px 12px; font-size: 0.72rem;
  }
  .main { padding: 0 0 28px; }
  .header-inner { padding: 6px 6px; gap: 4px; }
  .nav-link { padding: 3px 6px; font-size: 0.7rem; }
  .logo { font-size: 0.9rem; }
  .bottom-card { padding: 14px 10px 8px; }
  .bottom-card-img img { width: 90px; height: 115px; }
  .bottom-card-title { font-size: 0.75rem; }
  .bottom-card .faq-list { font-size: 0.68rem; }
  .bottom-card .faq-list a { font-size: 0.68rem; }
  .bottom-card .faq-list a span { font-size: 0.62rem; }
  .detail-hero { padding: 14px 0 10px; }
  .detail-info h1 { font-size: 0.88rem; }
  .detail-content .content-card { padding: 10px 8px; border-radius: 6px; }
}

/* ======== 登录/注册/关于 页面通用 ======== */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-subtle); padding: 36px; width: 100%; max-width: 420px;
}
.auth-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card .auth-hint { color: var(--text-muted); font-size: 0.88rem; text-align: center; margin-bottom: 28px; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .btn { width: 100%; padding: 13px; }
.auth-card .auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-card .auth-switch a { color: var(--accent-purple); font-weight: 600; }
.auth-error { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 16px; border: 1px solid #fecaca; }

/* placeholder 文字 */
::placeholder { color: var(--text-muted); opacity: 1; }

/* 选择框选项 */
select option { background: var(--bg-card); color: var(--text-primary); }

/* 表格（后台） */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); font-size: 0.88rem; }
th { color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--text-primary); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* 后台布局 */
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-sidebar {
  width: 220px; flex-shrink: 0; background: #0a0e1a; border-right: 1px solid var(--border-subtle);
  padding: 24px 0;
}
.admin-sidebar h3 { padding: 0 20px 16px; font-size: 0.95rem; color: var(--text-secondary); }
.admin-menu a {
  display: block; padding: 11px 20px; color: var(--text-secondary); font-size: 0.9rem;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-menu a:hover, .admin-menu a.active {
  background: rgba(167,139,250,0.08); color: var(--accent-purple);
  border-left-color: var(--accent-purple);
}
.admin-main { flex: 1; padding: 28px; overflow-x: auto; }
.admin-main h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.admin-topbar {
  height: 56px; background: var(--bg-card); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
}
