/* ============================================================
   Forum CSS — Apple-style design
   苹果官网风格：大留白、细字体、毛玻璃、圆角、渐变
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --bg-secondary: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: #2997ff;
  --danger: #ff3b30;
  --success: #34c759;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
          Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(160deg, #f6f9fd 0%, #eef4fb 35%, #f3f1fb 70%, #f7f9f5 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 清新动态背景（柔和渐变光斑） ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

/* 光斑 1：薄荷绿 */
.bg-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(94, 213, 180, 0.55) 0%, transparent 70%);
  top: -8%;
  left: -6%;
  animation: blob-drift-1 26s ease-in-out infinite;
}

/* 光斑 2：天空蓝 */
.bg-blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5) 0%, transparent 70%);
  top: 28%;
  right: -10%;
  animation: blob-drift-2 30s ease-in-out infinite;
}

/* 光斑 3：薰衣草紫 */
.bg-blob-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, transparent 70%);
  bottom: -12%;
  left: 22%;
  animation: blob-drift-3 24s ease-in-out infinite;
}

/* 光斑 4：樱花粉 */
.bg-blob-4 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(244, 164, 196, 0.4) 0%, transparent 70%);
  top: 12%;
  left: 32%;
  animation: blob-drift-4 28s ease-in-out infinite;
}

/* 光斑 5：暖阳黄 */
.bg-blob-5 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(252, 211, 120, 0.4) 0%, transparent 70%);
  bottom: 18%;
  right: 16%;
  animation: blob-drift-5 32s ease-in-out infinite;
}

/* 细微噪点，增加质感 */
.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(90px, 60px) scale(1.15); }
  66% { transform: translate(-40px, 120px) scale(0.9); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-110px, 50px) scale(1.2); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-70px, -90px) scale(1.1); }
  70% { transform: translate(80px, -40px) scale(0.95); }
}

@keyframes blob-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -80px) scale(1.15); }
}

@keyframes blob-drift-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-100px, 70px) scale(1.1); }
  70% { transform: translate(-30px, -60px) scale(0.9); }
}

/* 尊重系统「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}

/* 移动端降低光斑模糊开销 */
@media (max-width: 640px) {
  .bg-blob { filter: blur(50px); opacity: 0.4; }
  .bg-blob-1 { width: 320px; height: 320px; }
  .bg-blob-2 { width: 300px; height: 300px; }
  .bg-blob-3 { width: 280px; height: 280px; }
}

/* ---------- 布局 ---------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  min-height: calc(100vh - 120px);
  padding: 24px 0 60px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark { font-size: 22px; }

.main-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 2px;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }

.header-user { display: flex; align-items: center; }

.search-form { margin-left: auto; }

.search-input {
  width: 160px;
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: rgba(118, 118, 128, 0.12);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
  color: var(--text);
}

.search-input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
  width: 200px;
}

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

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: rgba(0, 113, 227, 0.08); }

.btn-danger {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(255, 59, 48, 0.18); }

.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-xs { padding: 3px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- 头像 ---------- */
.avatar { display: inline-block; flex-shrink: 0; }

.avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-radius: 0;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero .btn { margin: 0 6px; }

/* ---------- 板块卡片 ---------- */
.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.categories-section { margin-bottom: 40px; }

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

.category-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

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

.category-icon { font-size: 32px; }
.category-name { font-size: 17px; font-weight: 600; }
.category-desc { font-size: 13px; color: var(--text-secondary); }
.category-count { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- 帖子列表 ---------- */
.posts-section { margin-bottom: 24px; }

.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-count { color: var(--text-tertiary); font-size: 14px; }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

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

.post-card.pinned { border-color: rgba(255, 204, 0, 0.5); }

.pin-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #ffd60a, #ff9f0a);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 980px;
}

.post-card-left { padding-top: 2px; }

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

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}

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

.admin-badge {
  background: linear-gradient(135deg, #0071e3, #2997ff);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 980px;
  margin-left: 4px;
}

.post-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.15s;
}

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

.post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.stat { display: inline-flex; align-items: center; gap: 4px; }
.stat-icon { font-size: 12px; }

.category-tag {
  margin-left: auto;
  background: #f2f2f4;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.page-btn {
  padding: 7px 18px;
  border-radius: 980px;
  background: var(--bg-secondary);
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.page-btn:hover { background: var(--accent); color: #fff; }
.page-info { color: var(--text-tertiary); font-size: 14px; }

/* ---------- 帖子详情 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }

.post-detail-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.post-detail-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.meta-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta-author { font-weight: 600; font-size: 15px; }
.meta-time { font-size: 13px; color: var(--text-tertiary); }

.meta-actions { display: flex; gap: 8px; }

.like-btn.active { background: rgba(52, 199, 89, 0.15); color: var(--success); }
.fav-btn.active { background: rgba(255, 159, 10, 0.15); color: #f59f00; }

.post-detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

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

/* ---------- 代码 ---------- */
.code-block {
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  margin: 14px 0;
  line-height: 1.5;
}

.inline-code {
  background: #e9e9ec;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

.post-detail-content a { color: var(--accent); }
.post-detail-content strong { font-weight: 600; }

/* ---------- 回复 ---------- */
.replies-section { margin-bottom: 24px; }

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.reply-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}

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

.reply-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.reply-author { font-weight: 600; color: var(--text-secondary); }
.reply-floor { margin-left: auto; font-size: 12px; }

.reply-content { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }

.reply-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.reply-like {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 13px;
  font-family: var(--font);
  transition: color 0.2s;
}

.reply-like:hover { color: var(--success); }

.quote-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-family: var(--font);
}

.reply-del { color: var(--danger); text-decoration: none; font-size: 13px; }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

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

.input, .textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}

.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

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

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

.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.preview-area {
  background: #f9f9fa;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 分类选择 ---------- */
.category-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.category-option {
  cursor: pointer;
}

.category-option input { display: none; }

.category-option-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.category-option input:checked + .category-option-box {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
}

.co-icon { font-size: 26px; }
.co-name { font-size: 14px; font-weight: 500; }

/* ---------- 登录/注册 ---------- */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-icon { font-size: 48px; margin-bottom: 12px; }
.auth-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }

.auth-form { text-align: left; }
.auth-form .form-group { margin-bottom: 18px; }

.auth-switch { margin-top: 22px; font-size: 14px; color: var(--text-tertiary); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ---------- 提示 ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}

.alert-error { background: rgba(255, 59, 48, 0.1); color: var(--danger); }
.alert-success { background: rgba(52, 199, 89, 0.12); color: var(--success); }

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

.empty-state.small { padding: 30px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 16px; font-size: 16px; }

/* ---------- 个人主页 ---------- */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.profile-name { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.profile-bio { color: var(--text-secondary); margin-bottom: 12px; }

.profile-stats { display: flex; gap: 24px; font-size: 14px; color: var(--text-tertiary); }
.profile-stat strong { font-size: 18px; color: var(--text); display: block; }

.profile-edit, .profile-posts { margin-bottom: 32px; }

/* ---------- 管理后台 ---------- */
.page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active { background: var(--accent); color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num { font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.admin-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow-x: auto;
}

.panel-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

.table-title { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-title a { color: var(--text); text-decoration: none; }
.table-title a:hover { color: var(--accent); }

.table-actions { display: flex; gap: 6px; }

.quick-actions { display: flex; gap: 10px; }

.category-add-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.input-sm { width: auto; padding: 8px 12px; font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-meta { margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .hero { padding: 48px 0 32px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }

  .header-inner { height: 52px; }
  .logo-text { display: none; }
  .main-nav { gap: 14px; }
  .nav-link { font-size: 13px; }
  .btn { padding: 7px 14px; font-size: 14px; }
  .btn-lg { padding: 10px 20px; }

  .post-detail-card { padding: 22px; }
  .post-detail-title { font-size: 24px; }

  .profile-hero { flex-direction: column; text-align: center; gap: 14px; }
  .profile-stats { justify-content: center; flex-wrap: wrap; }

  .post-card { padding: 14px 16px; gap: 12px; }
  .category-tag { display: none; }
  .post-title { font-size: 15px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .reply-card { padding: 16px; gap: 10px; }
  .meta-actions { flex-wrap: wrap; }

  .form-card { padding: 20px; }
  .auth-card { padding: 32px 24px; }

  .stat-card { padding: 18px; }
  .stat-num { font-size: 28px; }
}

@media (max-width: 480px) {
  .main-nav .nav-link { font-size: 12px; }
  .user-chip span { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
}
