/* ============================================================
   IdeaArena v2 — 精致视觉设计
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* 色彩系统 — 更深邃的层次 */
  --bg: #080b14;
  --bg-grad: radial-gradient(ellipse 80% 60% at 50% 0%, #151a2e 0%, #0d1120 40%, #080b14 80%);
  --surface: #0f1424;
  --card: #141a2e;
  --card-elevated: #19203a;
  --card-hover: #1e2742;
  --border: #232c46;
  --border-light: #2e3958;
  --border-glow: rgba(249, 115, 22, .2);

  /* 强调色 — 更饱和、更通透 */
  --primary: #f97316;
  --primary-light: #fb923c;
  --primary-dim: #c2410c;
  --primary-glow: rgba(249, 115, 22, .3);
  --primary-glow-strong: rgba(249, 115, 22, .5);
  --success: #2dd4a7;
  --success-dim: rgba(45, 212, 167, .12);
  --warning: #fcc038;
  --warning-dim: rgba(252, 192, 56, .12);
  --danger: #f4616e;
  --danger-dim: rgba(244, 97, 110, .12);
  --star: #ffd248;
  --star-glow: rgba(255, 210, 72, .35);

  /* 文本 */
  --text: #eef0f7;
  --text-muted: #98a0b8;
  --text-dim: #5d6584;

  /* 尺寸 — 更精致的圆角 */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.25);
  --shadow: 0 6px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.4);
  --shadow-glow: 0 0 32px var(--primary-glow);
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --transition-fast: .16s cubic-bezier(.4,0,.2,1);
  --transition-bounce: .35s cubic-bezier(.34,1.56,.64,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 微妙的背景装饰光斑 */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,167,.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* 选中文本 */
::selection { background: var(--primary-glow); color: var(--text); }

/* ============================================================
   Header
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 20, .8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  letter-spacing: -.02em;
}

.logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

#nav {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-link:hover { background: var(--card-hover); color: var(--text); }

.nav-link.active {
  background: var(--primary-dim);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.user-points {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--star);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-logout:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-dim); }

/* ============================================================
   Main Layout
   ============================================================ */
#main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  min-height: calc(100vh - 64px);
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Auth Page
   ============================================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 20px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.02) inset;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
  opacity: .12;
  pointer-events: none;
  animation: authGlow 8s ease-in-out infinite;
}

@keyframes authGlow {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: .12; }
  50% { transform: rotate(180deg) scale(1.1); opacity: .18; }
}

.auth-card > * { position: relative; z-index: 1; }

.auth-card h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.02em;
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab:hover:not(.active) { color: var(--text); }

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--card-elevated);
}

.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

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

.char-counter {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
}

.char-counter.warn { color: var(--warning); }
.char-counter.danger { color: var(--danger); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .5s ease;
}

.btn:hover::before { left: 100%; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 24px var(--primary-glow-strong);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
  background: var(--card-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--card-hover); border-color: var(--border-light); }

.btn-success { background: var(--success); color: #052e1d; }
.btn-success:hover { filter: brightness(1.1); box-shadow: 0 2px 12px var(--success-dim); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); box-shadow: 0 2px 12px var(--danger-dim); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon { padding: 8px; min-width: 36px; }

/* ============================================================
   Star Rating
   ============================================================ */
.star-rating { display: flex; gap: 4px; }

.star {
  font-size: 28px;
  color: var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  line-height: 1;
}

.star.active { color: var(--star); text-shadow: 0 0 12px var(--star-glow); }
.star:hover { transform: scale(1.25); }
.star.readonly { cursor: default; }
.star.readonly:hover { transform: none; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}

.rating-display {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 4px;
}

/* ============================================================
   Feed / Post Cards
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover { background: var(--card-hover); color: var(--text); border-color: var(--border-light); }

.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

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

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}

.post-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.post-card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 0 1px var(--border-glow);
}

.post-card:hover::before { opacity: 1; }
.post-card:hover::after { opacity: .15; }

.post-card:active {
  transform: translateY(-1px);
  transition: var(--transition-fast);
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.honesty-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.honesty-high { color: var(--success); border-color: rgba(52,211,153,.3); }
.honesty-mid { color: var(--warning); border-color: rgba(251,191,36,.3); }
.honesty-low { color: var(--danger); border-color: rgba(248,113,113,.3); }

.post-time { font-size: 12px; color: var(--text-dim); }

.post-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.post-preview {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

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

.post-stat .stat-icon { font-size: 15px; }
.post-stat .stat-value { font-weight: 700; color: var(--text); }

/* ============================================================
   Post Detail
   ============================================================ */
.post-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.post-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.post-detail h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.post-detail-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  white-space: pre-wrap;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.score-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.score-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: var(--transition);
  position: relative;
}

.score-box:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }

.score-box.locked {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(249,115,22,.03) 100%);
  border-color: var(--border-glow);
}

.score-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.score-item:last-child { margin-bottom: 0; }

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

.score-stars { display: flex; gap: 2px; }

.score-stars .star { font-size: 18px; cursor: default; }

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}

.rating-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.reveal-section {
  background: linear-gradient(135deg, rgba(249,115,22,.1) 0%, rgba(249,115,22,.02) 100%);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reveal-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  opacity: .1;
  pointer-events: none;
}

.reveal-section h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.reveal-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.reveal-warning {
  color: var(--warning);
  font-size: 13px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ============================================================
   Chat
   ============================================================ */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.chat-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  height: 72vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card-elevated);
  border-radius: var(--radius) var(--radius) 0 0;
}

.chat-header-info { display: flex; flex-direction: column; gap: 2px; }
.chat-header-info h4 { font-size: 15px; font-weight: 700; }
.chat-header-info span { font-size: 12px; color: var(--text-muted); }

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.chat-close:hover { color: var(--text); background: var(--card-hover); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  word-break: break-word;
  line-height: 1.6;
  animation: msgIn .2s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(249,115,22,.2);
}

.chat-message.other {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-message-time {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

.chat-message.other .chat-message-time { color: var(--text-dim); }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--card-elevated);
}

.chat-input-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.chat-input-bar input:focus { border-color: var(--primary); }

.chat-eval-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--card-elevated);
}

.chat-eval-bar p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.chat-eval-buttons { display: flex; gap: 8px; justify-content: center; }

/* ============================================================
   Profile
   ============================================================ */
.profile-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  opacity: .15;
  pointer-events: none;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(45,212,167,.06) 0%, transparent 60%);
  pointer-events: none;
}

.profile-header > * { position: relative; z-index: 1; }

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 24px var(--primary-glow), 0 0 0 4px rgba(249,115,22,.1);
  position: relative;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), transparent, var(--primary));
  z-index: -1;
  opacity: .4;
}

.profile-info { flex: 1; }

.profile-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.02em; }
.profile-info .profile-bio { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.profile-info .profile-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.profile-edit-btn {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.profile-edit-btn:hover { color: var(--primary); border-color: var(--primary); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.stat-card .stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}

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

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s cubic-bezier(.4,0,.2,1);
}

.modal-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modal-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.7; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   Toast
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  max-width: 380px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-icon {
  font-weight: 800;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--primary); }
.toast.warning .toast-icon { color: var(--warning); }

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============================================================
   Empty State & Loading
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: .5; }
.empty-state p { font-size: 15px; font-weight: 500; }
.empty-state .empty-hint { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton loading */
.skeleton-card {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(249,115,22,.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  pointer-events: none;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--card-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Misc
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.back-link:hover { color: var(--primary); gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.tag-active { background: var(--success-dim); color: var(--success); }
.tag-revealed { background: var(--warning-dim); color: var(--warning); }
.tag-closed { background: rgba(139,148,158,.15); color: var(--text-muted); }
.tag-timeout { background: var(--danger-dim); color: var(--danger); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.info-banner {
  background: rgba(249,115,22,.06);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

.info-banner.warning {
  background: var(--warning-dim);
  border-color: rgba(251,191,36,.25);
}

.info-banner.danger {
  background: var(--danger-dim);
  border-color: rgba(248,113,113,.25);
}

.score-gap-highlight {
  background: var(--warning-dim);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warning);
  margin-top: 8px;
}

.gap-warning {
  color: var(--warning) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.load-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: center;
}

.load-more-btn:hover { background: var(--card-hover); color: var(--text); border-color: var(--border-light); }
.load-more-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Password Toggle
   ============================================================ */
.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 44px !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover { color: var(--text); background: var(--card-hover); }
.password-toggle.active { color: var(--primary); }

/* ============================================================
   Auth Logo & Info
   ============================================================ */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 16px var(--primary-glow));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.auth-card h1 {
  text-align: center;
  justify-content: center;
}

.auth-info {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.auth-info strong {
  color: var(--text);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ============================================================
   Button Loading State
   ============================================================ */
.btn.loading {
  pointer-events: none;
  opacity: .7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: 6px;
  background: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================
   Skeleton Grid
   ============================================================ */
.skeleton-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============================================================
   Improved Responsive
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  #nav { gap: 2px; }
  .nav-link { padding: 7px 12px; font-size: 13px; }
  .post-card-footer { gap: 14px; flex-wrap: wrap; }
  .profile-stats { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-num { font-size: 22px; }
}

@media (max-width: 640px) {
  .header-inner { gap: 8px; padding: 0 12px; height: 56px; }
  .logo-text { display: none; }
  .logo-icon { font-size: 20px; }
  #nav { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .user-name { display: none; }
  .user-points { padding: 4px 10px; font-size: 12px; }
  .btn-logout { padding: 4px 10px; font-size: 12px; }
  #main { padding: 16px 12px 60px; }
  .score-comparison { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 28px 24px; }
  .auth-card h1 { font-size: 22px; }
  .post-detail { padding: 20px 16px; }
  .post-detail h1 { font-size: 20px; }
  .post-detail-content { padding: 16px; font-size: 14px; }
  .profile-header { padding: 20px; flex-direction: column; text-align: center; gap: 16px; }
  .profile-avatar { width: 60px; height: 60px; font-size: 26px; }
  .profile-edit-btn { align-self: center; }
  .page-title { font-size: 20px; }
  .filter-chip { padding: 6px 12px; font-size: 12px; }
  .filter-bar { gap: 4px; }
  .post-card { padding: 16px; }
  .post-card h3 { font-size: 15px; }
  .post-card-footer { gap: 10px; flex-wrap: wrap; }
  .post-stat { font-size: 12px; }
  .chat-window { height: 85vh; max-width: 100%; }
  .modal-box { padding: 24px 20px; }
  .modal-box h3 { font-size: 16px; }
  .star { font-size: 24px; }
  .score-stars .star { font-size: 16px; }
  .rating-row { flex-wrap: wrap; gap: 8px; }
  .rating-label { min-width: auto; }
  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: none; }
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================================
   Accessibility: Focus Visible
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.nav-link:focus-visible,
.filter-chip:focus-visible,
.auth-tab:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* ============================================================
   Accessibility: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Anti-Anchoring: Blurred Community Rating
   ============================================================ */
.score-box.locked {
  position: relative;
  overflow: hidden;
}

.score-box.locked .score-item {
  filter: blur(6px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.score-box.locked::after {
  content: '🔒 评分后查看';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--card);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--primary-dim);
  white-space: nowrap;
  z-index: 1;
}

/* ============================================================
   Scroll-to-Top Button
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* ============================================================
   Reveal Card & Action Layouts (replaces inline styles)
   ============================================================ */
.reveal-card { cursor: default; margin-bottom: 12px; }

.reveal-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.reveal-card-footer {
  margin-top: 8px;
}

.reveal-card-days {
  font-size: 12px;
  color: var(--warning);
}

.post-detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.post-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.section-gap { margin-bottom: 32px; }

/* ============================================================
   Connection Status Indicator
   ============================================================ */
.conn-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.conn-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.conn-status.offline .dot {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}

/* ============================================================
   Form Validation Visual Feedback
   ============================================================ */
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .15);
}

.form-group input.valid,
.form-group textarea.valid {
  border-color: var(--success);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: shakeIn .3s ease;
}

@keyframes shakeIn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================================
   Enhanced Star Fill Animation
   ============================================================ */
.star {
  transition: transform .15s ease, color .15s ease, text-shadow .2s ease;
}

.star.active {
  animation: starPop .3s ease;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ============================================================
   Chat Typing Indicator
   ============================================================ */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingDot 1.4s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============================================================
   Badge Pulse for New Notifications
   ============================================================ */
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.4); }
  50% { box-shadow: 0 0 0 6px rgba(248,113,113,0); }
}

.nav-link {
  position: relative;
}

/* ============================================================
   Gradient Text Effect
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Smooth Scrolling for Filter Bar on Mobile
   ============================================================ */
.filter-bar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

/* ============================================================
   Tooltip
   ============================================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================================
   Post Status Indicator Strip
   ============================================================ */
.post-status-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.post-status-strip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.post-status-strip.active .dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.post-status-strip.revealed .dot { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.post-status-strip.closed .dot { background: var(--text-dim); }

/* ============================================================
   Rating Diff Indicator
   ============================================================ */
.rating-diff {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}

.rating-diff.positive { color: var(--success); background: var(--success-dim); }
.rating-diff.negative { color: var(--danger); background: var(--danger-dim); }
.rating-diff.neutral { color: var(--text-dim); background: var(--surface); }

/* ============================================================
   Empty State CTA Button
   ============================================================ */
.empty-state .empty-cta {
  margin-top: 16px;
  display: inline-block;
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  #header, #toast-container, #modal-container, .scroll-top-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .post-card { border: 1px solid #ccc; break-inside: avoid; }
}

/* ============================================================
   Mobile Bottom Navigation
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 11, 20, .95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.mobile-nav-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 8px var(--primary-glow);
}

@media (max-width: 640px) {
  .mobile-nav { display: block; }
  #main { padding-bottom: 80px; }
  .scroll-top-btn { bottom: 72px; }
  #toast-container { bottom: 72px; }
  #header .user-info { display: none; }
  #header #nav { display: none; }
}

/* ============================================================
   Button Loading Spinner
   ============================================================ */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.btn-secondary .btn-spinner,
.btn-logout .btn-spinner {
  border-color: rgba(255,255,255,.15);
  border-top-color: var(--text);
}

/* ============================================================
   Chat Empty State
   ============================================================ */
.chat-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 13px;
}

.chat-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: .4;
}

/* ============================================================
   Form Submit Lock (prevent double submit)
   ============================================================ */
.btn.submitting {
  pointer-events: none;
  opacity: .65;
}

/* ============================================================
   Connection Indicator in Header
   ============================================================ */
.header-conn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

.header-conn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.header-conn.offline .dot {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@media (min-width: 641px) {
  .header-conn { display: none; }
}

/* ============================================================
   v7: Points Change Animation
   ============================================================ */
.point-change {
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(0);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.point-change.positive { color: var(--success); text-shadow: 0 0 8px var(--success-dim); }
.point-change.negative { color: var(--danger); text-shadow: 0 0 8px var(--danger-dim); }

.point-change.animate {
  opacity: 1;
  transform: translateY(-22px);
}

/* ============================================================
   v7: Reveal Progress Bar
   ============================================================ */
.reveal-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.reveal-progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.reveal-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.reveal-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-bar-active {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.progress-bar-warning {
  background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.progress-bar-expired {
  background: linear-gradient(90deg, var(--danger), #ef4444);
}

.progress-bar-closed {
  background: var(--text-dim);
}

.reveal-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

/* ============================================================
   v7: Evaluation Cooldown Bar
   ============================================================ */
.eval-cooldown-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.eval-cooldown-icon {
  font-size: 16px;
  animation: cooldownPulse 1.5s ease-in-out infinite;
}

@keyframes cooldownPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.1); }
}

.eval-cooldown-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--warning);
  font-variant-numeric: tabular-nums;
}

.eval-cooldown-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.eval-ready {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  animation: readyFadeIn .4s ease;
}

@keyframes readyFadeIn {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   v7: Enhanced Card Visual Hierarchy
   ============================================================ */
.post-card {
  position: relative;
}

.post-card::before {
  width: 4px;
  border-radius: 0 4px 4px 0;
}

.post-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* 帖子卡片标题悬停效果 */
.post-card h3 {
  transition: color var(--transition);
}

.post-card:hover h3 {
  color: var(--primary-light);
}

/* ============================================================
   v7: Score Visualization Bars
   ============================================================ */
.score-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.score-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.score-bar-fill.success {
  background: linear-gradient(90deg, var(--primary-dim), var(--primary), var(--primary-light));
}

.score-bar-fill.return {
  background: linear-gradient(90deg, #b8860b, var(--star), #ffd700);
}

.score-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  animation: progressShimmer 3s infinite;
}

.score-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   v7: Enhanced Button Ripple Effect
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
  pointer-events: none;
}

.btn:active::after {
  width: 200%;
  height: 200%;
  transition: width 0s, height 0s;
}

/* ============================================================
   v7: Glassmorphism Enhancement
   ============================================================ */
.post-detail,
.profile-header,
.auth-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
}

/* ============================================================
   v7: Honesty Rate Circular Indicator
   ============================================================ */
.honesty-ring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.honesty-ring-bar {
  width: 32px;
  height: 32px;
  position: relative;
}

.honesty-ring-bar svg {
  transform: rotate(-90deg);
}

.honesty-ring-bar circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.honesty-ring-bg {
  stroke: var(--border);
}

.honesty-ring-fill {
  transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}

.honesty-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 800;
}

/* ============================================================
   v7: Smooth Page Transitions
   ============================================================ */
#main {
  animation: pageSlideIn .35s cubic-bezier(.4,0,.2,1);
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   v7: Enhanced Focus Glow
   ============================================================ */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
}

/* ============================================================
   v7: Tag Enhancements
   ============================================================ */
.tag {
  transition: transform var(--transition-fast);
}

.tag:hover {
  transform: scale(1.05);
}

/* ============================================================
   v7: Chat Message Enhancements
   ============================================================ */
.chat-message.mine {
  box-shadow: 0 2px 12px rgba(249,115,22,.25);
}

.chat-message.other {
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ============================================================
   v7: Stat Card Hover Glow
   ============================================================ */
.stat-card:hover {
  box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.stat-card .stat-num {
  transition: transform var(--transition);
}

.stat-card:hover .stat-num {
  transform: scale(1.08);
}

/* ============================================================
   v7: Filter Chip Active Animation
   ============================================================ */
.filter-chip {
  position: relative;
  overflow: hidden;
}

.filter-chip.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  animation: chipUnderline .3s ease;
}

@keyframes chipUnderline {
  from { width: 0; }
  to { width: 60%; }
}

/* ============================================================
   v8: Score Bar in Feed Cards
   ============================================================ */
.feed-score-bars {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.feed-score-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-score-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.feed-score-bar-label .icon { font-size: 13px; }
.feed-score-bar-label .val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.feed-score-bar-track {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.feed-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.feed-score-bar-fill.success {
  background: linear-gradient(90deg, var(--primary-dim), var(--primary), var(--primary-light));
}

.feed-score-bar-fill.return {
  background: linear-gradient(90deg, #b8860b, var(--star), #ffd700);
}

.feed-score-bar-fill.empty {
  background: var(--border);
}

/* ============================================================
   v8: Daily Limit Badge
   ============================================================ */
.limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.limit-badge.warn {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-dim);
}

.limit-badge.full {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-dim);
}

.limit-badge .limit-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.limit-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   v8: Honesty Circular Progress (Profile)
   ============================================================ */
.honesty-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.honesty-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.honesty-circle .ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.honesty-circle .ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 8px currentColor);
}

.honesty-circle .ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.honesty-circle .ring-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.honesty-circle .ring-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   v8: Honesty Breakdown Bars
   ============================================================ */
.honesty-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.breakdown-item {
  margin-bottom: 16px;
}

.breakdown-item:last-child { margin-bottom: 0; }

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

.breakdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.breakdown-value {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.breakdown-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

.breakdown-bar-fill.high {
  background: linear-gradient(90deg, var(--success-dim), var(--success));
}

.breakdown-bar-fill.mid {
  background: linear-gradient(90deg, var(--warning-dim), var(--warning));
}

.breakdown-bar-fill.low {
  background: linear-gradient(90deg, var(--danger-dim), var(--danger));
}

.breakdown-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================================
   v8: Profile Tabs
   ============================================================ */
.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.profile-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.profile-tab:hover:not(.active) { color: var(--text); background: var(--card-hover); }

.profile-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.profile-tab-content { display: none; animation: fadeIn .3s ease; }
.profile-tab-content.active { display: block; }

/* ============================================================
   v8: Point History List
   ============================================================ */
.point-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  animation: fadeIn .3s ease;
}

.point-history-item:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
}

.point-history-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.point-history-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.point-history-icon.positive {
  background: var(--success-dim);
  color: var(--success);
}

.point-history-icon.negative {
  background: var(--danger-dim);
  color: var(--danger);
}

.point-history-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.point-history-reason {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.point-history-time {
  font-size: 11px;
  color: var(--text-dim);
}

.point-history-amount {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.point-history-amount.positive { color: var(--success); }
.point-history-amount.negative { color: var(--danger); }

/* ============================================================
   v8: Enhanced Reveal Status Icons
   ============================================================ */
.reveal-status-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.reveal-status-icon .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.reveal-status-active {
  background: var(--success-dim);
  color: var(--success);
}
.reveal-status-active .status-dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.reveal-status-timeout {
  background: var(--warning-dim);
  color: var(--warning);
}
.reveal-status-timeout .status-dot { background: var(--warning); }

.reveal-status-expired {
  background: var(--danger-dim);
  color: var(--danger);
}
.reveal-status-expired .status-dot { background: var(--danger); }

.reveal-status-closed {
  background: rgba(139,148,158,.15);
  color: var(--text-muted);
}
.reveal-status-closed .status-dot { background: var(--text-muted); }

/* ============================================================
   v8: Profile Stat Grid Enhancement
   ============================================================ */
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.profile-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.profile-stat-item:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.profile-stat-item:hover::before { opacity: 1; }

.profile-stat-item .stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.profile-stat-item .stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform var(--transition);
}

.profile-stat-item:hover .stat-num {
  transform: scale(1.08);
}

.profile-stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   v8: Compact Score Display
   ============================================================ */
.score-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.score-mini .score-num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.score-mini.success .score-num { color: var(--primary-light); }
.score-mini.return .score-num { color: var(--star); }

/* ============================================================
   v8: Reveal Info Banner
   ============================================================ */
.reveal-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(249,115,22,.06);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.reveal-info-banner.warning {
  background: var(--warning-dim);
  border-color: rgba(251,191,36,.25);
  color: var(--warning);
}

/* ============================================================
   v8: Enhanced Honesty Badge with Ring
   ============================================================ */
.honesty-badge-ring {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
}

.honesty-badge-ring .mini-ring {
  width: 16px;
  height: 16px;
  position: relative;
}

.honesty-badge-ring .mini-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.honesty-badge-ring .mini-ring circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ============================================================
   v8: Section Card Wrapper
   ============================================================ */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.section-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -.01em;
}

/* ============================================================
   v9: Refined Visual Polish
   ============================================================ */

/* 更精致的卡片层次 — 多层阴影营造深度 */
.post-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.02) inset;
  border-radius: var(--radius);
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px var(--border-glow),
    0 0 24px var(--primary-glow);
  transform: translateY(-4px);
}

/* 帖子标题渐变文字 */
.post-card h3 {
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition);
}

.post-card:hover h3 {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 评分条增强 — 发光效果 */
.feed-score-bars {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(15,20,36,.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
}

.feed-score-bars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.feed-score-bar-fill.success {
  background: linear-gradient(90deg, var(--primary-dim), var(--primary), var(--primary-light));
  box-shadow: 0 0 8px var(--primary-glow);
}

.feed-score-bar-fill.return {
  background: linear-gradient(90deg, #b8860b, var(--star), #ffd700);
  box-shadow: 0 0 8px var(--star-glow);
}

/* 热度徽章 */
.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(252,192,56,.15), rgba(244,97,110,.15));
  border: 1px solid rgba(252,192,56,.3);
  color: var(--warning);
  letter-spacing: .02em;
}

.hot-badge .hot-icon {
  font-size: 11px;
  animation: hotPulse 1.5s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: .8; }
}

/* 质量徽章 */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: var(--success-dim);
  border: 1px solid rgba(45,212,167,.25);
  color: var(--success);
}

/* Profile 头部增强 — 动态渐变背景 */
.profile-header {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-elevated) 50%, var(--card) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
  position: relative;
}

.profile-header::before {
  background: radial-gradient(ellipse at top right, var(--primary-glow) 0%, transparent 50%);
  opacity: .12;
  animation: profileGlowShift 12s ease-in-out infinite;
}

@keyframes profileGlowShift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .12; }
  50% { transform: translate(-20px, 20px) scale(1.2); opacity: .18; }
}

/* Profile 头像增强 — 旋转光环 */
.profile-avatar {
  position: relative;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--primary-light), var(--success), var(--primary));
  z-index: -1;
  opacity: .6;
  animation: avatarRingSpin 8s linear infinite;
}

@keyframes avatarRingSpin {
  to { transform: rotate(360deg); }
}

/* 标签页切换增强 — 滑动指示器 */
.profile-tabs,
.reveal-role-tabs {
  position: relative;
  overflow: hidden;
}

.profile-tab,
.reveal-role-tab {
  position: relative;
  z-index: 1;
  transition: all var(--transition-bounce);
}

.profile-tab.active,
.reveal-role-tab.active {
  transform: scale(1.02);
}

/* 筛选条增强 */
.filter-chip {
  position: relative;
  backdrop-filter: blur(8px);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  box-shadow: 0 2px 12px var(--primary-glow), 0 0 0 1px rgba(255,255,255,.1) inset;
}

/* 按钮增强 — 更精致的按压效果 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
  box-shadow: 0 2px 12px var(--primary-glow), 0 0 0 1px rgba(255,255,255,.05) inset;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 4px 24px var(--primary-glow-strong), 0 0 0 1px rgba(255,255,255,.1) inset;
  transform: translateY(-2px);
}

/* 诚实率环形指示器增强 — 发光脉冲 */
.honesty-circle .ring-fill {
  animation: ringGlowPulse 3s ease-in-out infinite;
}

@keyframes ringGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px currentColor); }
  50% { filter: drop-shadow(0 0 16px currentColor); }
}

/* 积分历史项增强 — 左侧色条 */
.point-history-item {
  position: relative;
  overflow: hidden;
}

.point-history-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  transition: width var(--transition);
}

.point-history-item:has(.point-history-amount.positive)::before {
  background: var(--success);
}

.point-history-item:has(.point-history-amount.negative)::before {
  background: var(--danger);
}

.point-history-item:hover::before {
  width: 5px;
}

/* 揭帖卡片增强 */
.reveal-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: all var(--transition);
}

.reveal-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* 聊天气泡增强 — 更柔和的阴影 */
.chat-message.mine {
  box-shadow: 0 2px 12px rgba(249,115,22,.3), 0 0 0 1px rgba(255,255,255,.05) inset;
}

.chat-message.other {
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

/* 空状态增强 — 更大更柔和的图标 */
.empty-state .empty-icon {
  font-size: 64px;
  opacity: .4;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 认证页面增强 — 更精致的光效 */
.auth-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.03) inset;
}

/* 移动端导航增强 — 更明显的激活态 */
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-link.active::before {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 12px var(--primary-glow);
}

.mobile-nav-link:active {
  transform: scale(.92);
}

/* 滚动到顶部按钮增强 */
.scroll-top-btn {
  backdrop-filter: blur(12px);
  background: rgba(25,32,58,.8);
}

.scroll-top-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* 评分星星增强 — 更明显的激活态 */
.star.active {
  text-shadow: 0 0 12px var(--star-glow), 0 0 4px var(--star-glow);
}

/* 分割线渐变 */
.section-title {
  background: linear-gradient(90deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 页面标题增强 */
.page-title {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 揭帖角色标签增强 */
.reveal-role-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.reveal-role-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reveal-role-tab:hover:not(.active) {
  color: var(--text);
  background: var(--card-hover);
}

.reveal-role-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
  background: var(--card-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tab-badge.alert {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  animation: badgePulse 2s ease-in-out infinite;
}

.reveal-role-tab.active .tab-badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

.reveal-role-tab.active .tab-badge.alert {
  background: var(--danger);
  border-color: var(--danger);
}

/* v9: 防止文字溢出的全局处理 */
.post-preview,
.breakdown-hint,
.profile-bio {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* v9: 更好的选中态视觉反馈 */
.filter-chip:active,
.nav-link:active,
.btn:active {
  transform: scale(.96);
}

/* ============================================================
   v10: Staggered Card Animation
   ============================================================ */
.post-card {
  animation: cardSlideIn .4s cubic-bezier(.4,0,.2,1) both;
}

.post-card:nth-child(1) { animation-delay: 0ms; }
.post-card:nth-child(2) { animation-delay: 60ms; }
.post-card:nth-child(3) { animation-delay: 120ms; }
.post-card:nth-child(4) { animation-delay: 180ms; }
.post-card:nth-child(5) { animation-delay: 240ms; }
.post-card:nth-child(6) { animation-delay: 300ms; }
.post-card:nth-child(7) { animation-delay: 360ms; }
.post-card:nth-child(8) { animation-delay: 420ms; }
.post-card:nth-child(n+9) { animation-delay: 480ms; }

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   v10: Enhanced Skeleton Loading
   ============================================================ */
.skeleton-card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.skeleton-card .skeleton-avatar {
  height: 20px;
  width: 120px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.skeleton-card .skeleton-bar-wide {
  height: 18px;
  width: 85%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-card .skeleton-bar-narrow {
  height: 14px;
  width: 60%;
  border-radius: 6px;
  margin-bottom: 14px;
}

.skeleton-card .skeleton-bar-score {
  height: 6px;
  width: 100%;
  border-radius: 3px;
  margin-bottom: 6px;
}

.skeleton-card .skeleton-footer {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.skeleton-card .skeleton-tag {
  height: 16px;
  width: 60px;
  border-radius: 8px;
}

/* ============================================================
   v10: Glassmorphism Depth Enhancement
   ============================================================ */
.post-detail {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.02) inset;
  position: relative;
}

.post-detail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  pointer-events: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ============================================================
   v10: Gradient Mesh Background Enhancement
   ============================================================ */
body::before {
  background: radial-gradient(circle, rgba(249,115,22,.06) 0%, transparent 70%);
  animation: meshFloat 20s ease-in-out infinite;
}

body::after {
  background: radial-gradient(circle, rgba(45,212,167,.04) 0%, transparent 70%);
  animation: meshFloat 25s ease-in-out infinite reverse;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(.95); }
}

/* ============================================================
   v10: Micro-Interaction Refinements
   ============================================================ */

/* 按钮悬停时的光效增强 */
.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

/* 卡片点击波纹效果 */
.post-card {
  -webkit-tap-highlight-color: transparent;
}

.post-card:active {
  transform: translateY(-1px) scale(.995);
  transition: transform .08s ease;
}

/* 输入框聚焦时的渐变边框 */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 24px rgba(249,115,22,.15);
}

/* 评分星星交互增强 */
.star {
  transition: transform .12s cubic-bezier(.34,1.56,.64,1), color .15s ease, text-shadow .2s ease;
}

.star:hover {
  transform: scale(1.3) rotate(-5deg);
}

/* ============================================================
   v10: Reveal Count Badge
   ============================================================ */
.reveal-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.2);
  color: var(--primary-light);
}

.reveal-count-badge.maxed {
  background: var(--danger-dim);
  border-color: rgba(248,113,113,.2);
  color: var(--danger);
}

/* ============================================================
   v10: Evaluation Requirement Hint
   ============================================================ */
.eval-req-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--warning-dim);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--warning);
  margin-top: 8px;
}

.eval-req-hint.met {
  background: var(--success-dim);
  border-color: rgba(45,212,167,.2);
  color: var(--success);
}

/* ============================================================
   v10: Enhanced Modal Backdrop
   ============================================================ */
.modal-overlay,
.chat-modal {
  background: rgba(4,6,12,.7);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.modal-box {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}

/* ============================================================
   v10: Toast Enhancement
   ============================================================ */
.toast {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(25,32,58,.9);
}

/* ============================================================
   v10: Scroll Reveal Animation
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   v10: Section Title Underline Animation
   ============================================================ */
.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}

/* ============================================================
   v10: Empty State CTA Enhancement
   ============================================================ */
.empty-state .empty-cta {
  margin-top: 20px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 12px var(--primary-glow);
  transition: var(--transition);
}

.empty-state .empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-glow-strong);
}

/* ============================================================
   v10: Honesty Circle Glow Enhancement
   ============================================================ */
.honesty-circle .ring-bg {
  stroke: var(--border);
  opacity: .5;
}

.honesty-circle .ring-fill {
  filter: drop-shadow(0 0 12px currentColor);
}

/* ============================================================
   v10: Mobile Refinements
   ============================================================ */
@media (max-width: 640px) {
  .post-card { padding: 16px; }
  .post-card h3 { font-size: 15px; }
  .post-detail { padding: 18px 14px; border-radius: var(--radius-sm); }
  .post-detail h1 { font-size: 19px; }
  .post-detail-content { padding: 16px; font-size: 14px; }
  .score-comparison { gap: 10px; }
  .score-box { padding: 14px; }
  .reveal-section { padding: 20px 16px; }
  .reveal-section h3 { font-size: 16px; }
  .profile-header { padding: 20px; flex-direction: column; text-align: center; gap: 14px; }
  .profile-avatar { width: 56px; height: 56px; font-size: 24px; }
  .profile-edit-btn { align-self: center; }
  .page-title { font-size: 19px; }
  .filter-chip { padding: 6px 12px; font-size: 12px; }
  .filter-bar { gap: 4px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h1 { font-size: 21px; }
  .star { font-size: 24px; }
  .score-stars .star { font-size: 16px; }
  .chat-window { height: 88vh; max-width: 100%; border-radius: var(--radius-sm); }
  .modal-box { padding: 22px 18px; }
  .modal-box h3 { font-size: 16px; }
  .feed-score-bars { flex-direction: column; gap: 8px; }
  .honesty-circle { width: 100px; height: 100px; }
  .honesty-circle .ring-value { font-size: 22px; }
  .profile-tabs { flex-direction: column; }
  .reveal-role-tabs { flex-direction: column; }
  .limit-bars { flex-direction: column; }
  .profile-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-footer { gap: 10px; flex-wrap: wrap; }
  .post-stat { font-size: 12px; }
  #toast-container { bottom: 72px; right: 12px; left: 12px; }
  .toast { max-width: none; }
  .scroll-top-btn { bottom: 72px; left: 16px; }
  .section-title { font-size: 15px; }
  .rating-form { padding: 16px; }
  .info-banner { padding: 12px 14px; font-size: 12px; }
  .breakdown-item { margin-bottom: 14px; }
  .point-history-item { padding: 10px 12px; }
}

/* ============================================================
   v10: Dark Scrollbar Enhancement
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dim);
}

/* ============================================================
   v10: Selection Enhancement
   ============================================================ */
::selection {
  background: var(--primary-glow);
  color: #fff;
  text-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================================
   v10: Auth Card Subtle Border Glow
   ============================================================ */
.auth-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(249,115,22,.06), 0 0 0 1px rgba(255,255,255,.03) inset;
}

/* ============================================================
   v10: Feed Score Bar Container Enhancement
   ============================================================ */
.feed-score-bars {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
}

.feed-score-bars::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.1), transparent);
}

/* ============================================================
   v10: Navigation Link Underline Animation
   ============================================================ */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width .25s cubic-bezier(.4,0,.2,1);
}

.nav-link.active::after {
  width: 50%;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================================
   v11: Animated Number Counter
   ============================================================ */
.stat-num[data-animate] {
  animation: numCountUp .6s cubic-bezier(.4,0,.2,1) both;
}

@keyframes numCountUp {
  from { opacity: 0; transform: translateY(8px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   v11: Gradient Border Animation for Cards
   ============================================================ */
.post-card::before {
  background: linear-gradient(180deg, var(--primary), var(--primary-light), var(--success));
  background-size: 100% 200%;
  animation: borderGradientShift 4s ease-in-out infinite;
}

@keyframes borderGradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* ============================================================
   v11: Enhanced Page Transition
   ============================================================ */
#main {
  animation: pageFadeSlide .4s cubic-bezier(.4,0,.2,1);
}

@keyframes pageFadeSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   v11: Active User Indicator
   ============================================================ */
.active-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: activePulse 2s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
}

@keyframes activePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

.inactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ============================================================
   v11: Honesty Decay Warning
   ============================================================ */
.honesty-decay-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--warning-dim), rgba(252,192,56,.04));
  border: 1px solid rgba(252,192,56,.2);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--warning);
  margin-top: 12px;
}

.honesty-decay-warning .decay-icon {
  font-size: 16px;
  animation: decayPulse 2s ease-in-out infinite;
}

@keyframes decayPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ============================================================
   v11: Conversation Quality Badge
   ============================================================ */
.quality-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--success-dim), rgba(45,212,167,.04));
  border: 1px solid rgba(45,212,167,.2);
  color: var(--success);
}

/* ============================================================
   v11: Enhanced Glassmorphism — Frosted Glass Cards
   ============================================================ */
.post-card,
.post-detail,
.profile-header,
.auth-card,
.section-card,
.reveal-card {
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* ============================================================
   v11: Floating Action Ripple
   ============================================================ */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  width: 300%;
  height: 300%;
}

/* ============================================================
   v11: Enhanced Star Rating Glow
   ============================================================ */
.star-rating .star.active {
  animation: starGlowPulse 2s ease-in-out infinite;
}

@keyframes starGlowPulse {
  0%, 100% { text-shadow: 0 0 8px var(--star-glow); }
  50% { text-shadow: 0 0 16px var(--star-glow), 0 0 4px var(--star-glow); }
}

/* ============================================================
   v11: Chat Message Reveal Animation
   ============================================================ */
.chat-message {
  animation: chatMsgReveal .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes chatMsgReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   v11: Profile Avatar Active Ring
   ============================================================ */
.profile-avatar.active-ring::before {
  background: conic-gradient(from 0deg, var(--success), var(--primary), var(--success));
  animation-duration: 4s;
}

.profile-avatar.inactive-ring::before {
  background: var(--border);
  opacity: .3;
  animation: none;
}

/* ============================================================
   v11: Score Comparison Enhanced Layout
   ============================================================ */
.score-comparison {
  gap: 16px;
}

.score-box {
  position: relative;
  overflow: hidden;
}

.score-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.score-box:hover::after {
  opacity: 1;
}

/* ============================================================
   v11: Filter Chip Active Glow Enhancement
   ============================================================ */
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  box-shadow: 0 2px 16px var(--primary-glow), 0 0 0 1px rgba(255,255,255,.1) inset;
  animation: chipActivate .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes chipActivate {
  0% { transform: scale(.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ============================================================
   v11: Enhanced Loading Spinner
   ============================================================ */
.spinner {
  position: relative;
}

.spinner::before,
.spinner::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.spinner::before {
  border-top-color: var(--primary-light);
  animation: spin 1s linear infinite reverse;
}

.spinner::after {
  border-bottom-color: var(--success);
  animation: spin 1.5s linear infinite;
  inset: -6px;
  opacity: .4;
}

/* ============================================================
   v11: Honesty Breakdown Enhancement
   ============================================================ */
.breakdown-item {
  position: relative;
  padding-left: 14px;
}

.breakdown-item::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--border);
}

.breakdown-item:nth-child(1)::before { background: linear-gradient(180deg, var(--primary), var(--primary-light)); }
.breakdown-item:nth-child(2)::before { background: linear-gradient(180deg, var(--star), #ffd700); }
.breakdown-item:nth-child(3)::before { background: linear-gradient(180deg, var(--success), #2dd4a7); }

/* ============================================================
   v11: Tooltip Enhancement
   ============================================================ */
[data-tooltip]::after {
  background: linear-gradient(135deg, var(--card-elevated), var(--card));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* ============================================================
   v11: Scrollbar Glow
   ============================================================ */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--border), var(--border-light));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dim), var(--primary));
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================================
   v11: Mobile Navigation Enhancement
   ============================================================ */
.mobile-nav {
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}

.mobile-nav-link {
  transition: all var(--transition-bounce);
}

.mobile-nav-link:active {
  transform: scale(.88);
}

.mobile-nav-link.active svg {
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* ============================================================
   v11: Reveal Card Status Strip Enhancement
   ============================================================ */
.reveal-card {
  position: relative;
  overflow: hidden;
}

.reveal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 3px 3px 0;
  transition: width var(--transition);
}

.reveal-card[data-status='active']::before {
  background: linear-gradient(180deg, var(--success), #2dd4a7);
}

.reveal-card[data-status='timeout']::before {
  background: linear-gradient(180deg, var(--warning), #f59e0b);
}

.reveal-card[data-status='expired']::before {
  background: linear-gradient(180deg, var(--danger), #ef4444);
}

.reveal-card[data-status='evaluated']::before {
  background: var(--text-dim);
}

.reveal-card:hover::before {
  width: 5px;
}

/* ============================================================
   v11: Evaluation Impact Display
   ============================================================ */
.eval-impact-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.eval-impact-info .impact-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.eval-impact-info .impact-value.positive { color: var(--success); }
.eval-impact-info .impact-value.negative { color: var(--danger); }

/* ============================================================
   v11: Conversation Depth Indicator
   ============================================================ */
.conversation-depth {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

.conversation-depth .depth-bar {
  display: inline-flex;
  gap: 2px;
}

.conversation-depth .depth-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.conversation-depth .depth-dot.filled {
  background: var(--primary);
  box-shadow: 0 0 4px var(--primary-glow);
}

/* ============================================================
   v11: Auth Page Floating Particles
   ============================================================ */
.auth-page::before {
  content: '';
  position: fixed;
  top: 20%;
  left: 10%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .3;
  animation: particleFloat1 8s ease-in-out infinite;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: fixed;
  bottom: 15%;
  right: 12%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  opacity: .2;
  animation: particleFloat2 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleFloat1 {
  0%, 100% { transform: translate(0, 0); opacity: .3; }
  50% { transform: translate(40px, -30px); opacity: .1; }
}

@keyframes particleFloat2 {
  0%, 100% { transform: translate(0, 0); opacity: .2; }
  50% { transform: translate(-30px, 40px); opacity: .05; }
}

/* ============================================================
   v11: Herding Indicator (Honesty Analysis)
   ============================================================ */
.herding-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.herding-indicator.high {
  background: var(--warning-dim);
  border-color: rgba(252,192,56,.2);
  color: var(--warning);
}

.herding-indicator.normal {
  background: var(--success-dim);
  border-color: rgba(45,212,167,.2);
  color: var(--success);
}

/* ============================================================
   v11: Smooth Hover Lift for All Interactive Cards
   ============================================================ */
.profile-stat-item,
.stat-card,
.point-history-item,
.section-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* ============================================================
   v11: Mobile Swipe-Back Hint
   ============================================================ */
.back-link::before {
  content: '←';
  transition: transform var(--transition);
  display: inline-block;
}

.back-link:hover::before {
  transform: translateX(-4px);
}

/* ============================================================
   v11: Input Focus Ring Enhancement
   ============================================================ */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 32px rgba(249,115,22,.12);
  background: var(--card-elevated);
}

/* ============================================================
   v11: Chat Input Enhancement
   ============================================================ */
.chat-input-bar input {
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.chat-input-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.chat-input-bar input::placeholder {
  color: var(--text-dim);
}

/* ============================================================
   v11: Responsive Fine-Tuning
   ============================================================ */
@media (max-width: 640px) {
  .score-comparison { gap: 10px; }
  .score-box { padding: 12px; }
  .eval-impact-info { font-size: 10px; padding: 4px 10px; }
  .herding-indicator { font-size: 11px; padding: 6px 10px; }
  .honesty-decay-warning { font-size: 11px; padding: 8px 12px; }
  .breakdown-item { padding-left: 10px; }
  .conversation-depth { font-size: 10px; }
  .conversation-depth .depth-dot { height: 6px; }
}

/* ============================================================
   v11: Print Enhancement
   ============================================================ */
@media print {
  .post-card { background: #fff !important; color: #000 !important; border: 1px solid #ccc !important; }
  .post-card h3 { -webkit-text-fill-color: #000 !important; }
  .score-box { border: 1px solid #ccc !important; }
}

.nav-link:hover:not(.active)::after {
  width: 30%;
  background: var(--text-muted);
}

/* ============================================================
   v12: 密码强度指示器
   ============================================================ */
.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.strength-bars {
  display: flex;
  gap: 3px;
  flex: 1;
}

.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}

.strength-label {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.form-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================================
   v12: 管理员后台样式
   ============================================================ */
.admin-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

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

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 统计卡片网格 */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

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

.admin-stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 图表网格 */
.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.admin-chart-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.admin-chart-svg {
  width: 100%;
  height: auto;
}

.admin-chart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.admin-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-donut-wrap .admin-chart-svg {
  width: 140px;
  flex-shrink: 0;
}

.admin-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.admin-legend-value {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
}

/* 数据表格 */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.admin-search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.admin-search:focus {
  border-color: var(--primary);
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg);
}

.admin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(124,92,255,.05);
}

.admin-username-cell {
  font-weight: 600;
  color: var(--primary-light);
}

.admin-time-cell {
  color: var(--text-dim);
  font-size: 12px;
}

.admin-title-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-honesty-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.admin-honesty-tag.high { background: rgba(34,197,94,.15); color: var(--success); }
.admin-honesty-tag.mid { background: rgba(234,179,8,.15); color: var(--warning); }
.admin-honesty-tag.low { background: rgba(239,68,68,.15); color: var(--danger); }

.admin-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.admin-status-tag.status-active { background: rgba(34,197,94,.15); color: var(--success); }
.admin-status-tag.status-revealed { background: rgba(124,92,255,.15); color: var(--primary-light); }
.admin-status-tag.status-closed { background: rgba(100,116,139,.15); color: var(--text-muted); }

/* 活动列表 */
.admin-activity-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.admin-activity-wrap h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.admin-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  transition: transform .15s;
}

.admin-activity-item:hover {
  transform: translateX(4px);
}

.admin-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.admin-activity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-activity-desc {
  font-size: 13px;
  color: var(--text);
}

.admin-activity-time {
  font-size: 11px;
  color: var(--text-dim);
}

/* 管理员响应式 */
@media (max-width: 768px) {
  .admin-chart-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-donut-wrap { flex-direction: column; }
  .admin-donut-wrap .admin-chart-svg { width: 120px; }
}
