/* ============================================================
   网络用语图鉴 — 极简暖橙双主题
   设计参考：ccSwitch Design Token
   ============================================================ */

/* ---- 1. CSS 变量 & 全局重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 24 95% 53%;
  --accent-foreground: 24 95% 40%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 24 95% 53%;
  --radius: 0.5rem;
  --header-h: 52px;
  --container-max: 768px;

  --success: 160 84% 39%;
  --success-bg: 160 84% 95%;
  --warning: 38 92% 50%;
  --warning-bg: 48 100% 96%;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dark {
  --background: 240 5% 12%;
  --foreground: 0 0% 98%;
  --card: 240 5% 16%;
  --card-foreground: 0 0% 98%;
  --primary: 24 95% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 240 5% 18%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 5% 18%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 24 95% 53%;
  --accent-foreground: 24 95% 40%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5% 24%;
  --input: 240 5% 24%;
  --ring: 24 95% 53%;

  --success-bg: 160 84% 10%;
  --warning-bg: 38 92% 10%;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

a { color: hsl(var(--primary)); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; text-decoration: underline; }

/* ---- 2. 顶栏 ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid hsl(var(--border));
  height: var(--header-h);
}
.topbar-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 20px; height: 100%;
  display: flex; align-items: center; gap: 14px;
}
.topbar-logo {
  font-size: 17px; font-weight: 700; color: hsl(var(--foreground));
  letter-spacing: -0.3px; white-space: nowrap;
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  user-select: none;
}
.topbar-logo:hover { text-decoration: none; }
.topbar-logo-icon { width: 20px; height: 20px; color: hsl(var(--primary)); }

/* ---- 2.5 首页搜索栏 ---- */
.home-search-outer {
  position: relative;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-search-outer:focus-within {
  border-color: hsl(var(--ring));
}
.home-search-outer--open {
  border-color: hsl(var(--ring));
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.home-search {
  display: flex; align-items: center; gap: 8px;
  height: 42px; background: hsl(var(--secondary));
  border-radius: 12px; padding: 0 16px;
  transition: border-radius 0.2s;
}
.home-search-outer--open .home-search {
  border-radius: 12px 12px 0 0;
}
.home-search-icon { width: 16px; height: 16px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.home-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: hsl(var(--foreground)); min-width: 0;
}
.home-search input::placeholder { color: hsl(var(--muted-foreground)); }

/* ---- 搜索历史下拉面板 ---- */
.home-search-dropdown {
  display: none;
  background: hsl(var(--card));
  border-radius: 0 0 12px 12px;
  padding: 12px 16px;
}
.home-search-outer--open .home-search-dropdown {
  display: block;
}
.home-search-dropdown-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.home-search-dropdown-title { font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.5px; }
.home-search-dropdown-clear { font-size: 11px; color: hsl(var(--muted-foreground)); cursor: pointer; border: none; background: none; font-weight: 500; transition: color 0.2s; padding: 0; }
.home-search-dropdown-clear:hover { color: hsl(var(--destructive)); }
.home-search-dropdown-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; }
.home-search-dropdown-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 8px; font-size: 13px;
  background: hsl(var(--secondary)); color: hsl(var(--foreground)); cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
}
.home-search-dropdown-tag:hover {
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
}
.home-search-dropdown-tag-close {
  font-size: 10px; color: hsl(var(--muted-foreground)); padding: 1px; border-radius: 50%;
  line-height: 1; cursor: pointer; transition: color 0.2s;
}
.home-search-dropdown-tag-close:hover { color: hsl(var(--destructive)); }
.home-search-dropdown-empty { text-align: center; padding: 8px 0; font-size: 12px; color: hsl(var(--muted-foreground)); }

.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-btn {
  height: 32px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  display: flex; align-items: center; gap: 5px;
}
.topbar-btn:hover { background: hsl(var(--secondary)); }
.topbar-btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.topbar-btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.topbar-btn-icon { width: 14px; height: 14px; }

.theme-toggle-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all 0.2s; color: hsl(var(--foreground));
}
.theme-toggle-btn:hover { background: hsl(var(--secondary)); }

.topbar-user {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 4px 10px 4px 4px; border-radius: 8px;
  transition: background 0.2s;
}
.topbar-user:hover { background: hsl(var(--secondary)); }
.topbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.topbar-username { font-size: 13px; color: hsl(var(--foreground)); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-chevron { width: 14px; height: 14px; color: hsl(var(--muted-foreground)); }

.user-dropdown { position: relative; }
.user-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 160px; padding: 6px; display: none; flex-direction: column;
  z-index: 200;
}
.user-dropdown-menu.show { display: flex; }
.user-dropdown-menu a, .user-dropdown-menu .dropdown-danger {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px;
  cursor: pointer; color: hsl(var(--foreground));
  transition: background 0.15s;
}
.user-dropdown-menu a:hover { background: hsl(var(--secondary)); text-decoration: none; }
.user-dropdown-menu a svg, .user-dropdown-menu .dropdown-danger svg { width: 16px; height: 16px; }
.dropdown-danger { color: hsl(var(--destructive)) !important; }
.dropdown-danger:hover { background: hsl(var(--destructive) / 0.1); }
.dropdown-divider {
  height: 1px; background: hsl(var(--border)); margin: 4px 0;
}

.topbar-notif-link { position: relative; }
.topbar-notif-badge {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 10px; background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground));
  margin-left: auto; line-height: 1.4;
}

/* ---- 3. 主内容区 ---- */
.main-container {
  max-width: var(--container-max); margin: 0 auto;
  padding: 20px 20px 48px;
}

/* ---- 4. 排序 Tab ---- */
.period-tabs {
  display: flex; gap: 6px; padding: 6px;
  background: hsl(var(--secondary));
  border-radius: 20px; margin-bottom: 18px;
  width: fit-content;
}
.period-tab {
  padding: 6px 20px; border-radius: 16px; font-size: 13px;
  font-weight: 500; cursor: pointer; color: hsl(var(--muted-foreground));
  transition: all 0.2s; user-select: none;
}
.period-tab:hover { color: hsl(var(--foreground)); }
.period-tab.active {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}

/* ---- 5. 卡片网格 ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.meme-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 10px; padding: 16px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.meme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.card-rank { position: absolute; top: 10px; right: 12px; }
.card-rank-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 10px; border-radius: 10px;
  color: hsl(var(--primary-foreground)); white-space: nowrap;
}
.card-rank-badge.gold { background: hsl(var(--primary)); }
.card-rank-badge.silver { background: #94a3b8; }
.card-rank-badge.bronze { background: #d4a574; }

.card-name {
  font-size: 18px; font-weight: 700; color: hsl(var(--foreground));
  margin-bottom: 6px; word-break: break-word;
}
.card-desc {
  font-size: 13px; color: hsl(var(--muted-foreground));
  line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.card-meta-left { display: flex; align-items: center; gap: 7px; }
.card-meta-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: hsl(var(--primary) / 0.15); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; flex-shrink: 0;
}
.card-meta-name { font-size: 12px; color: hsl(var(--muted-foreground)); }
.card-meta-time { font-size: 12px; color: hsl(var(--muted-foreground)); }
.card-meta-right { display: flex; align-items: center; gap: 10px; }
.card-meta-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: hsl(var(--muted-foreground)); cursor: pointer;
  transition: color 0.2s;
}
.card-meta-stat:hover, .card-meta-stat.active { color: hsl(var(--primary)); }
.card-meta-stat-icon { width: 14px; height: 14px; }
.icon-liked, .card-meta-stat.active .card-meta-stat-icon { color: hsl(var(--primary)); }
.card-meta-stat-count { }

.card-status-badge {
  font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 10px;
  flex-shrink: 0;
}
.card-status-badge.pending {
  background: hsl(var(--warning) / 0.1); color: hsl(var(--warning));
}
.card-status-badge.approved {
  background: hsl(var(--success) / 0.1); color: hsl(var(--success));
}
.card-status-badge.rejected {
  background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive));
}

.load-more-wrap {
  display: flex; justify-content: center; padding: 24px 0 8px;
}
.load-more-btn {
  padding: 8px 32px; border-radius: 20px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.load-more-btn:hover { background: hsl(var(--secondary)); }
.load-more-end { font-size: 13px; color: hsl(var(--muted-foreground)); }

/* ---- 6. 搜索历史 ---- */
.search-history {
  margin-bottom: 18px; padding: 14px 18px;
  background: hsl(var(--secondary)); border: 1px solid hsl(var(--border));
  border-radius: 10px;
}
.search-history-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.search-history-title { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.5px; }
.search-history-clear { font-size: 12px; color: hsl(var(--muted-foreground)); cursor: pointer; border: none; background: none; font-weight: 500; transition: color 0.2s; }
.search-history-clear:hover { color: hsl(var(--destructive)); }
.search-history-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.search-history-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 8px; font-size: 13px;
  background: hsl(var(--background)); color: hsl(var(--foreground)); cursor: pointer;
  border: 1px solid hsl(var(--border)); transition: all 0.2s;
}
.search-history-tag:hover {
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
}
.search-history-tag-close {
  font-size: 10px; color: hsl(var(--muted-foreground)); padding: 1px; border-radius: 50%;
  line-height: 1; cursor: pointer; transition: color 0.2s;
}
.search-history-tag-close:hover { color: hsl(var(--destructive)); }
.search-history-empty { text-align: center; padding: 12px 0; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* ---- 7. 搜索标题 ---- */
.search-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.search-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); cursor: pointer;
  flex-shrink: 0; padding: 0;
  transition: background 0.2s; color: hsl(var(--foreground));
}
.search-back-btn:hover { background: hsl(var(--secondary)); }
.search-back-btn .icon { width: 16px; height: 16px; }
.search-header-title { font-size: 16px; font-weight: 700; color: hsl(var(--foreground)); flex: 1; }
.search-header-count { font-size: 13px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }

/* ---- 8. 加载 & 空状态 ---- */
.loading-wrap {
  display: flex; flex-direction: column; align-items: center; padding: 80px 20px;
  color: hsl(var(--muted-foreground)); font-size: 14px; gap: 14px;
}
.loading-spinner {
  width: 28px; height: 28px; border: 2.5px solid hsl(var(--border));
  border-top-color: hsl(var(--primary)); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-wrap {
  text-align: center; padding: 80px 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.3; }
.empty-title { font-size: 18px; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: hsl(var(--muted-foreground)); }

.center-empty { text-align: center; padding: 60px 20px; }
.center-empty-icon { width: 48px; height: 48px; margin-bottom: 12px; color: hsl(var(--muted-foreground)); opacity: 0.3; display: block; margin-left: auto; margin-right: auto; }
.center-empty-text { font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: 6px; }

/* ---- 9. 详情页 ---- */
.detail-page { max-width: var(--container-max); margin: 0 auto; padding: 20px 20px 48px; }

.detail-hero {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 32px 30px; margin-bottom: 20px;
}
.detail-hero-inner { }
.detail-hero-badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  padding: 4px 14px; border-radius: 10px; margin-bottom: 14px;
}
.detail-hero-name {
  font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 16px;
  color: hsl(var(--foreground));
}

.detail-hero-stats { display: flex; gap: 20px; margin-bottom: 20px; }
.detail-hero-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.detail-hero-stat-icon { width: 14px; height: 14px; }
.detail-hero-stat span { font-weight: 600; }

.detail-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-hero-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  color: hsl(var(--foreground)); transition: all 0.2s;
}
.detail-hero-action:hover { background: hsl(var(--secondary)); }
.detail-hero-action.liked {
  background: hsl(var(--destructive) / 0.1); border-color: hsl(var(--destructive) / 0.3);
  color: hsl(var(--destructive));
}
.detail-hero-action.faved {
  background: hsl(var(--warning) / 0.1); border-color: hsl(var(--warning) / 0.3);
  color: hsl(var(--warning));
}
.detail-hero-action-icon { width: 14px; height: 14px; }

/* 内容区 */
.detail-content { display: flex; flex-direction: column; gap: 0; }
.detail-section-divider { height: 1px; background: hsl(var(--border)); margin: 0; }

.detail-section {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 10px; padding: 20px 24px; margin-bottom: 14px;
}
.detail-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid hsl(var(--border));
}
.detail-section-author { display: flex; align-items: center; gap: 12px; }
.detail-section-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: hsl(var(--primary) / 0.15); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.detail-section-nickname { font-size: 14px; font-weight: 600; color: hsl(var(--foreground)); }
.detail-section-time { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; }

/* 字段卡片 */
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.detail-field-item {
  background: hsl(var(--secondary)); border-radius: 8px; padding: 14px 16px;
  border: 1px solid hsl(var(--border)); transition: border-color 0.2s;
}
.detail-field-item:hover { border-color: hsl(var(--primary) / 0.3); }
.detail-field-item-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.detail-field-item-label .icon { width: 14px; height: 14px; color: hsl(var(--primary)); }
.detail-field-item-value { font-size: 14px; color: hsl(var(--foreground)); line-height: 1.55; }

/* 纠错记录 */
.detail-corrections { margin-top: 14px; padding-top: 14px; border-top: 1px solid hsl(var(--border)); }
.detail-corrections-title {
  font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.detail-correction-block {
  background: hsl(var(--secondary)); border-radius: 8px; padding: 12px 16px;
  margin-bottom: 8px; border-left: 3px solid hsl(var(--primary));
}
.correction-diff-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px;
}
.correction-diff-row:last-child { margin-bottom: 0; }
.correction-label { font-weight: 600; color: hsl(var(--foreground)); min-width: 36px; flex-shrink: 0; }
.cr-old { color: hsl(var(--muted-foreground)); text-decoration: line-through; background: hsl(var(--destructive) / 0.08); padding: 2px 8px; border-radius: 4px; }
.cr-arrow-icon { width: 14px; height: 14px; color: hsl(var(--primary)); flex-shrink: 0; }
.cr-new { color: hsl(var(--success)); background: hsl(var(--success) / 0.08); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* 区域底部互动 */
.detail-section-actions {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; border-top: 1px solid hsl(var(--border)); margin-top: 14px;
}
.detail-section-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.detail-section-action:hover {
  background: hsl(var(--secondary)); color: hsl(var(--foreground));
}
.detail-section-action.liked {
  background: hsl(var(--destructive) / 0.08); border-color: hsl(var(--destructive) / 0.2);
  color: hsl(var(--destructive));
}
.detail-section-action.faved {
  background: hsl(var(--warning) / 0.08); border-color: hsl(var(--warning) / 0.2);
  color: hsl(var(--warning));
}
.action-icon-sm { width: 14px; height: 14px; }
.action-count { font-weight: 600; }

/* ---- 10. 表单页 ---- */
.form-page {
  max-width: 640px; margin: 0 auto; padding: 24px 20px 56px;
}

/* ---- 10.1 表单页头 ---- */
.form-header {
  text-align: center; padding: 32px 0 28px;
}
.form-header-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: hsl(var(--primary) / 0.12); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.form-header-icon .icon { width: 28px; height: 28px; color: hsl(var(--primary)); }
.form-header-title {
  font-size: 26px; font-weight: 800; color: hsl(var(--foreground));
  margin: 0 0 6px; letter-spacing: -0.3px;
}
.form-header-desc {
  font-size: 14px; color: hsl(var(--muted-foreground));
  margin: 0; line-height: 1.5;
}

/* ---- 10.2 表单卡片 ---- */
.form-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 28px 32px; box-shadow: 0 1px 3px hsl(var(--foreground) / 0.04);
}
.form-group { margin-bottom: 22px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: hsl(var(--foreground));
  margin-bottom: 8px; letter-spacing: 0.1px;
}
.form-required {
  color: hsl(var(--destructive)); font-weight: 400; font-size: 11px;
}
.form-optional {
  font-size: 10px; color: hsl(var(--muted-foreground)); font-weight: 500;
  background: hsl(var(--secondary)); padding: 2px 8px; border-radius: 100px;
  letter-spacing: 0.2px;
}

/* ---- 10.3 输入框 ---- */
.form-input {
  width: 100%; height: 46px; padding: 0 16px;
  border: 1.5px solid hsl(var(--border)); border-radius: 10px;
  font-size: 14px; color: hsl(var(--foreground)); background: hsl(var(--background));
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
  box-sizing: border-box;
}
.form-input::placeholder { color: hsl(var(--muted-foreground) / 0.6); }
.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.form-textarea {
  width: 100%; min-height: 100px; padding: 14px 16px;
  border: 1.5px solid hsl(var(--border)); border-radius: 10px;
  font-size: 14px; color: hsl(var(--foreground)); background: hsl(var(--background));
  outline: none; resize: vertical; font-family: inherit; line-height: 1.7;
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.form-textarea::placeholder { color: hsl(var(--muted-foreground) / 0.6); }
.form-textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

/* ---- 10.4 下拉选择 --- */
.form-select {
  width: 100%; height: 46px; padding: 0 38px 0 16px;
  border: 1.5px solid hsl(var(--border)); border-radius: 10px;
  font-size: 14px; color: hsl(var(--foreground)); background: hsl(var(--background));
  outline: none; cursor: pointer; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F97316' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; box-sizing: border-box;
}
.form-select:focus { border-color: hsl(var(--primary)); }

/* ---- 10.5 自定义下拉 ---- */
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  width: 100%; height: 46px; padding: 0 38px 0 16px;
  border: 1.5px solid hsl(var(--border)); border-radius: 10px;
  background: hsl(var(--background)); cursor: pointer; box-sizing: border-box;
  display: flex; align-items: center;
  user-select: none; -webkit-user-select: none;
  font-size: 14px; color: hsl(var(--foreground));
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-select-trigger:hover { border-color: hsl(var(--primary) / 0.6); }
.custom-select-trigger:focus,
.custom-select-trigger.open {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}
.custom-select-placeholder { color: hsl(var(--muted-foreground) / 0.6); }
.custom-select-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; color: hsl(var(--primary));
  transition: transform 0.2s; pointer-events: none;
}
.custom-select-trigger.open .custom-select-arrow { transform: translateY(-50%) rotate(180deg); }

.custom-select-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 10px; max-height: 240px; overflow-y: auto; z-index: 500;
  box-shadow: 0 8px 24px hsl(var(--foreground) / 0.08);
  padding: 4px 0;
}
.custom-select-dropdown.show { display: block; }
.custom-select-option {
  padding: 10px 16px; font-size: 14px; color: hsl(var(--foreground));
  cursor: pointer; transition: background 0.12s;
}
.custom-select-option:hover { background: hsl(var(--primary) / 0.06); }
.custom-select-option.selected {
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-weight: 700;
}

/* ---- 10.6 提交区域 ---- */
.form-submit-area {
  margin-top: 24px; padding: 0 32px;
}

.form-notice {
  background: hsl(var(--warning) / 0.06); border: 1px solid hsl(var(--warning) / 0.12);
  border-radius: 10px; padding: 14px 18px; font-size: 13px;
  color: hsl(var(--warning) / 0.9); margin-bottom: 20px; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 10px;
}
.form-notice .icon {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  color: hsl(var(--warning) / 0.8);
}
.form-notice-link {
  color: hsl(var(--primary)); font-weight: 700; cursor: pointer; border-bottom: 1px solid hsl(var(--primary) / 0.3);
  text-decoration: none; transition: border-color 0.2s; white-space: nowrap;
}
.form-notice-link:hover { border-bottom-color: hsl(var(--primary)); }

.form-submit-btn {
  width: 100%; height: 50px; border-radius: 12px; border: none;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background: hsl(var(--accent-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent-foreground)) 100%);
  color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.25);
  letter-spacing: 0.3px;
}
.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px hsl(var(--primary) / 0.35);
}
.form-submit-btn:active { transform: translateY(0); }
.form-submit-btn:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}
.form-submit-btn .icon { width: 18px; height: 18px; }

/* ---- 10.7 纠错按钮变体 ---- */
.correction-btn {
  appearance: none; -webkit-appearance: none;
  background: hsl(var(--destructive));
  background: linear-gradient(135deg, hsl(var(--warning)) 0%, hsl(var(--destructive)) 100%);
  box-shadow: 0 2px 8px hsl(var(--warning) / 0.25);
}
.correction-btn:hover { box-shadow: 0 4px 16px hsl(var(--warning) / 0.35); }

/* ---- 10.8 纠错横幅 ---- */
.correction-banner {
  background: hsl(var(--warning) / 0.06); border: 1px solid hsl(var(--warning) / 0.15);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 24px;
  font-size: 14px; color: hsl(var(--warning)); display: flex; align-items: center; gap: 10px;
}
.correction-banner .icon { color: hsl(var(--warning)); }
.correction-banner strong { font-weight: 700; }

/* ---- 11. 个人中心 ---- */
.profile-page { max-width: var(--container-max); margin: 0 auto; padding: 20px 20px 48px; }

.profile-hero {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 12px; padding: 28px 28px; margin-bottom: 22px;
}
.profile-hero-content { display: flex; align-items: center; gap: 20px; }
.profile-hero-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: hsl(var(--primary) / 0.15); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; flex-shrink: 0;
  user-select: none;
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-nickname-input {
  background: transparent; border: none;
  border-bottom: 1px dashed hsl(var(--border));
  font-size: 20px; font-weight: 700; color: hsl(var(--foreground)); outline: none;
  width: 100%; max-width: 280px; padding: 4px 0; margin-bottom: 10px;
}
.profile-nickname-input::placeholder { color: hsl(var(--muted-foreground)); }
.profile-nickname-input:focus { border-bottom-color: hsl(var(--primary)); }
.profile-hero-meta { display: flex; gap: 20px; }
.profile-hero-stat {
  display: flex; align-items: center; gap: 5px; font-size: 13px;
  color: hsl(var(--muted-foreground)); font-weight: 500;
}
.profile-hero-stat-icon { width: 14px; height: 14px; }
.profile-hero-stat span { font-weight: 700; font-size: 17px; color: hsl(var(--foreground)); }

.profile-section { margin-bottom: 22px; }
.profile-section-title {
  font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground));
  text-transform: uppercase; letter-spacing: 0.5px; padding: 0 4px; margin-bottom: 8px;
}

.profile-menu { background: hsl(var(--card)); border-radius: 10px; overflow: hidden; border: 1px solid hsl(var(--border)); }
.profile-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid hsl(var(--border));
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: hsl(var(--secondary)); }
.profile-menu-item-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: hsl(var(--foreground));
}
.profile-menu-item-icon { width: 18px; height: 18px; color: hsl(var(--muted-foreground)); }
.profile-menu-item-right { display: flex; align-items: center; gap: 8px; }
.profile-menu-arrow { width: 16px; height: 16px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.profile-menu-item-danger .profile-menu-item-left { color: hsl(var(--destructive)); }
.profile-menu-item-danger .profile-menu-item-icon { color: hsl(var(--destructive)); }
.profile-menu-item-danger:hover { background: hsl(var(--destructive) / 0.06); }

.profile-menu-badge {
  font-size: 11px; font-weight: 600; padding: 2px 10px;
  border-radius: 10px; background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground));
}

.profile-logout-btn {
  margin-top: 14px; width: 100%; padding: 12px;
  border-radius: 10px; border: 1px solid hsl(var(--destructive) / 0.2);
  background: hsl(var(--destructive) / 0.04); font-size: 14px; font-weight: 500;
  color: hsl(var(--destructive)); cursor: pointer; text-align: center;
  transition: all 0.2s;
}
.profile-logout-btn:hover {
  background: hsl(var(--destructive) / 0.08);
  border-color: hsl(var(--destructive) / 0.3);
}

/* ---- 12. 通知列表 ---- */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: 8px;
  cursor: pointer; transition: border-color 0.2s;
}
.notif-item:hover { border-color: hsl(var(--primary) / 0.3); }
.notif-item.unread { border-left: 3px solid hsl(var(--primary)); }
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: hsl(var(--primary)); margin-top: 5px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 3px; }
.notif-content { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.notif-time { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 5px; }

/* ---- 13. Toast ---- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: hsl(var(--card)); color: hsl(var(--foreground));
  padding: 10px 22px; border-radius: 10px; font-size: 13px; font-weight: 500;
  z-index: 110; opacity: 0; transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; box-shadow: 0 4px 24px hsl(var(--foreground) / 0.08);
  border: 1px solid hsl(var(--border)); white-space: nowrap;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }

/* ---- 14. 弹窗 ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-mask {
  position: absolute; inset: 0;
  background: hsl(var(--foreground) / 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: hsl(var(--background)); border-radius: 14px;
  padding: 28px 26px; width: 90%; max-width: 400px;
  box-shadow: 0 16px 48px hsl(var(--foreground) / 0.12);
  border: 1px solid hsl(var(--border));
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-panel-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 22px; color: hsl(var(--foreground)); }

.modal-input {
  width: 100%; height: 44px; padding: 0 14px; margin-bottom: 12px;
  border: 1px solid hsl(var(--border)); border-radius: 8px;
  font-size: 14px; color: hsl(var(--foreground)); background: hsl(var(--secondary));
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.modal-code-row { display: flex; gap: 8px; }
.modal-code-btn {
  flex-shrink: 0; height: 44px; padding: 0 16px;
  border: 1px solid hsl(var(--primary)); background: hsl(var(--primary) / 0.06);
  color: hsl(var(--primary)); border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
}
.modal-code-btn:hover { background: hsl(var(--primary) / 0.12); }
.modal-code-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-agree {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.5;
  margin: 8px 0 16px; cursor: pointer;
}
.modal-agree input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: hsl(var(--primary)); flex-shrink: 0; cursor: pointer; }
.modal-agree a { color: hsl(var(--primary)); font-weight: 500; text-decoration: none; }

.modal-submit-btn {
  width: 100%; height: 46px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  transition: all 0.2s;
}
.modal-submit-btn:hover { opacity: 0.9; }
.modal-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-close {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px; line-height: 30px; text-align: center;
  font-size: 22px; cursor: pointer; border-radius: 50%;
  color: hsl(var(--muted-foreground)); transition: all 0.2s;
  user-select: none;
}
.modal-close:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }

.login-tabs {
  display: flex; gap: 0; border-bottom: 2px solid hsl(var(--border));
  margin-bottom: 20px; margin-top: 4px;
}
.login-tab {
  flex: 1; text-align: center; padding: 10px 0;
  font-size: 15px; font-weight: 600; cursor: pointer;
  color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.login-tab.active { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); }
.login-tab:hover { color: hsl(var(--foreground)); }

.login-panel { }

.login-panel-title {
  font-size: 16px; font-weight: 700; text-align: center;
  margin-bottom: 16px; color: hsl(var(--foreground));
}

.modal-pwd-row {
  display: flex; gap: 0; margin-bottom: 12px; position: relative;
}
.modal-pwd-row .modal-input { margin-bottom: 0; border-radius: 8px 0 0 8px; }
.modal-pwd-toggle {
  flex-shrink: 0; width: 44px; height: 44px;
  border: 1px solid hsl(var(--border)); border-left: none;
  border-radius: 0 8px 8px 0; background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground)); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-pwd-toggle:hover { background: hsl(var(--primary) / 0.08); }

.login-footer {
  display: flex; justify-content: space-between; margin-top: 16px;
}
.login-footer:only-child { justify-content: center; }
.login-footer a {
  font-size: 13px; color: hsl(var(--primary)); font-weight: 500;
  text-decoration: none; transition: opacity 0.2s;
}
.login-footer a:hover { opacity: 0.7; }

.reset-hint {
  font-size: 13px; color: hsl(var(--muted-foreground));
  text-align: center; margin: -8px 0 14px; line-height: 1.5;
}

/* ---- 15. 分享面板 ---- */
.share-overlay {
  position: fixed; inset: 0;
  background: hsl(var(--foreground) / 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 400;
}
.share-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 401;
  background: hsl(var(--background)); border-radius: 16px 16px 0 0;
  padding: 20px 22px 32px; max-width: 500px; margin: 0 auto;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid hsl(var(--border));
}
.share-panel.show { transform: translateY(0); }
.share-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.share-panel-title { font-size: 16px; font-weight: 700; color: hsl(var(--foreground)); }
.share-panel-close {
  width: 26px; height: 26px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  font-size: 14px; color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.share-panel-close:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.share-poster-area { padding: 0 8px 8px; max-height: 220px; overflow-y: auto; }
.share-poster-img { width: 100%; border-radius: 8px; }
.share-platforms { display: flex; padding: 0 6px; gap: 6px; }
.platform-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; cursor: pointer; border-radius: 8px; transition: background 0.2s; }
.platform-btn:hover { background: hsl(var(--secondary)); }
.platform-btn-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.platform-btn-icon.wx { background: hsl(var(--success) / 0.1); color: hsl(var(--success)); }
.platform-btn-icon.save { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.platform-btn-label { font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 500; }
.share-loading { display: flex; flex-direction: column; align-items: center; padding: 28px; font-size: 13px; color: hsl(var(--muted-foreground)); gap: 10px; }

/* ---- 16. 分享面板标题 ---- */
.share-panel-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.share-poster-preview {
  text-align: center; padding: 14px 0; margin-bottom: 14px;
}
.poster-image {
  max-width: 100%; max-height: 180px; border-radius: 8px;
  box-shadow: 0 2px 16px hsl(var(--foreground) / 0.08);
}
.share-generating {
  font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground));
  padding: 28px 0;
}
.share-platform-grid { display: flex; gap: 8px; }
.wx-bg { background: hsl(var(--success) / 0.1); }
.save-bg { background: hsl(var(--secondary)); }

/* ---- 17. 应用内管理 ---- */
.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 18px;
  background: hsl(var(--secondary)); border-radius: 12px;
  padding: 4px;
}
.admin-tab {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: hsl(var(--muted-foreground)); transition: all 0.2s; user-select: none;
}
.admin-tab.active {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}

.admin-item-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 8px; padding: 16px 18px; margin-bottom: 10px;
}
.admin-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-item-name { font-size: 15px; font-weight: 700; color: hsl(var(--foreground)); }
.admin-item-badge {
  font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 8px;
}
.admin-item-badge.meme { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.admin-item-badge.correction { background: hsl(var(--success) / 0.1); color: hsl(var(--success)); }

.admin-item-row { display: flex; gap: 8px; margin-bottom: 4px; }
.admin-item-label { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); flex-shrink: 0; width: 34px; }
.admin-item-value { font-size: 13px; color: hsl(var(--foreground)); line-height: 1.5; }

.admin-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.admin-item-actions button {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid; transition: all 0.2s;
}
.admin-item-approve {
  background: hsl(var(--success) / 0.08); color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.2);
}
.admin-item-approve:hover { background: hsl(var(--success) / 0.15); }
.admin-item-reject {
  background: hsl(var(--destructive) / 0.08); color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.2);
}
.admin-item-reject:hover { background: hsl(var(--destructive) / 0.15); }

.inline-year { font-size: 12px; color: hsl(var(--muted-foreground)); background: hsl(var(--secondary)); padding: 2px 10px; border-radius: 8px; font-weight: 500; }

.review-badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 2px 10px; border-radius: 8px; margin-bottom: 8px;
}
.review-badge.approved { background: hsl(var(--success) / 0.1); color: hsl(var(--success)); }
.review-badge.rejected { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); }

.admin-item-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid hsl(var(--border));
  font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 8px;
}

/* ---- 18. 无权限提示 ---- */
.no-access-wrap { text-align: center; padding: 80px 20px; }
.no-access-icon { font-size: 48px; margin-bottom: 14px; }
.no-access-title { font-size: 18px; font-weight: 700; color: hsl(var(--foreground)); }

/* ---- 19. 搜索页内搜索框 ---- */
.page-search-bar {
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  height: 40px; background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page-search-bar:focus-within {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.page-search-bar-icon { width: 14px; height: 14px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.page-search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: hsl(var(--foreground));
}
.page-search-bar input::placeholder { color: hsl(var(--muted-foreground)); }
.page-search-bar-clear {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: hsl(var(--border)); color: hsl(var(--muted-foreground));
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; line-height: 1; border: none; transition: all 0.2s;
}
.page-search-bar-clear:hover { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }

/* ---- 20. 页面头部 ---- */
.page-header {
  padding: 18px 0 16px; border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.page-header-title { font-size: 18px; font-weight: 800; color: hsl(var(--foreground)); display: flex; align-items: center; gap: 8px; }
.page-header-title .icon { width: 20px; height: 20px; color: hsl(var(--primary)); }

/* ---- 21. 内联管理 ---- */
/* ---- 22. 个人中心补充 ---- */
.profile-info-name { font-size: 20px; font-weight: 800; color: hsl(var(--foreground)); }
.profile-info-username { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.profile-stats {
  font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.profile-stats-icon { width: 14px; height: 14px; }

/* ---- 22.5 无障碍隐藏 ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---- 23. SVG 图标 ---- */
.icon {
  width: 18px; height: 18px; display: inline-block; vertical-align: -0.2em;
  flex-shrink: 0;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }
.icon-liked { fill: hsl(var(--destructive)) !important; color: hsl(var(--destructive)) !important; }
.icon-faved { fill: hsl(var(--primary)) !important; color: hsl(var(--primary)) !important; }

/* ---- 24. 卡片图标交互 ---- */
.card-meta-stat .icon {
  width: 15px; height: 15px; color: hsl(var(--muted-foreground)); transition: all 0.2s;
}
.card-meta-stat.active .icon { color: hsl(var(--destructive)); }
.card-meta-stat .icon-liked { fill: hsl(var(--destructive)); color: hsl(var(--destructive)); }
.card-meta-stat .icon-faved { fill: hsl(var(--primary)); color: hsl(var(--primary)); }
.card-meta-avatar { cursor: pointer; }

/* ---- 25. 通知列表图标 ---- */
.notif-item-title { display: flex; align-items: center; gap: 8px; }
.notif-item-title .icon { color: hsl(var(--primary)); }

/* ---- 26. 空状态图标中心 ---- */
.center-empty-icon.icon { width: 40px; height: 40px; color: hsl(var(--muted-foreground)); margin: 0 auto 12px; display: block; }

/* ---- 27. 下拉箭头 ---- */
.picker-arrow {
  width: 16px; height: 16px; color: hsl(var(--muted-foreground)); flex-shrink: 0;
}

/* ---- 28. 响应式 ---- */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .topbar-logo span { display: none; }
  .topbar-username { display: none; }
  .main-container { padding: 14px 10px 40px; }
  .form-page { padding: 14px 10px 40px; }
  .form-header { padding: 20px 0 20px; }
  .form-header-icon { width: 44px; height: 44px; border-radius: 12px; }
  .form-header-title { font-size: 22px; }
  .form-card { padding: 20px 22px; }
  .form-submit-area { padding: 0 22px; margin-top: 20px; }
  .profile-page { padding: 14px 10px 40px; }
  .detail-hero { padding: 24px 18px; }
  .detail-hero-name { font-size: 22px; }
  .detail-section { padding: 18px 14px; }
  .detail-fields { grid-template-columns: 1fr; }
  .profile-hero-content { flex-direction: column; text-align: center; }
  .profile-hero-meta { justify-content: center; }
}

@media (max-width: 480px) {
  .topbar-inner { padding: 0 8px; gap: 6px; }
  .topbar-btn { padding: 0 8px; font-size: 12px; height: 28px; }
  .topbar-logo { font-size: 15px; }
  .detail-hero-name { font-size: 20px; }
  .modal-panel { padding: 22px 16px; }
  .form-header-title { font-size: 20px; }
  .form-card { padding: 16px 14px; }
  .form-submit-area { padding: 0 14px; margin-top: 16px; }
  .form-submit-btn { height: 46px; font-size: 15px; }
  .form-input { height: 42px; }
  .form-textarea { min-height: 80px; }
  .form-notice { padding: 12px 14px; font-size: 12px; }
  .profile-hero { padding: 24px 18px; }
  .profile-hero-avatar { width: 56px; height: 56px; font-size: 20px; }
  .profile-nickname-input { font-size: 16px; max-width: 180px; }
}