﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/* AI API Hub - 主样式 */

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-tertiary: #1a2332;
  --bg-card: rgba(26, 35, 50, 0.8);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.3);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-red: #ef4444;
  --border-color: rgba(48, 64, 88, 0.6);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

a { color: var(--accent-emerald); text-decoration: none; }
a:hover { color: var(--accent-amber); }

.app-container { display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 14, 20, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.header-inner {margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.25rem; cursor: pointer; }
.logo-icon { width: 36px; height: 36px; /* background: linear-gradient(135deg, #d8e1de 0%, #ffffff 100%);*/ border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.logo-text { background: linear-gradient(135deg, #ffffff 0%, #00f1a1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Tab Nav */
.tab-nav { display: flex; align-items: center; gap: 4px; background: var(--bg-secondary); padding: 4px; border-radius: var(--radius-md); }
.tab-btn { padding: 10px 20px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s ease; border: none; background: transparent; }
.tab-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.tab-btn.active { color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 2px 8px var(--accent-emerald-glow); }

.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

/* 用户信息卡片 */
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  /* background: rgba(26, 35, 50, 0.6);
  border: 1px solid rgba(48, 64, 88, 0.4); */
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.user-card:hover {
  background: rgba(26, 35, 50, 0.8);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.3);
  object-fit: cover;
  transition: border-color 0.2s ease;
}

.user-card:hover .user-avatar {
  border-color: var(--accent-emerald);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-balance {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-balance .balance-amount {
  color: var(--accent-amber);
  font-weight: 600;
}

/* 用户操作按钮组 */
.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-action-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-action-btn.dashboard {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-action-btn.dashboard:hover {
  background: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.user-action-btn.recharge {
  background: #fff0;
  color: #f59e0b;
 /* border: 1px solid rgba(245, 158, 11, 0.3); */
}

.user-action-btn.recharge:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.15) 100%);
  transform: translateY(-1px);
}

.user-action-btn.logout {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.user-action-btn.logout:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.btn { 
	padding: 10px 20px; 
	font-size: 0.9rem; 
	font-weight: 500; 
	border-radius: var(--radius-sm); 
	border: none; 
	cursor: pointer; 
	transition: all 0.15s ease; 
	display: inline-flex; 
	align-items: center; 
	gap: 8px;
	justify-content: center;
	border-radius: 50px;
}
.btn-ghost { background: #00000000; color: var(--text-secondary); /* border: 1px solid var(--border-color); */ }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-tertiary); }
.btn-primary { background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%); color: #fff; box-shadow: 0 4px 12px var(--accent-emerald-glow); background: linear-gradient(135deg, #f59e0b, #ef4444);border-radius: 50px;}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-emerald-glow); }
.btn-amber { background: linear-gradient(135deg, var(--accent-amber) 0%, #d97706 100%); color: #fff; box-shadow: 0 4px 12px var(--accent-amber-glow); }
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-amber-glow); }
.btn-blue { background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%); color: #fff; box-shadow: 0 4px 12px var(--accent-blue-glow); }
.btn-blue:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-blue-glow); }

Main */
.main { flex: 1; /* padding-top: 64px; */}

/* Tab Content - 无感切换 */
.tab-content { display: none; animation: fadeIn 0.25s ease; }
.tab-content.active {
	display: block;
	/* padding: 0px 24px;
    max-width: 1200px; */
    margin: 0 auto;
	height: calc(100vh - 63px);
	overflow-y: auto;
	}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero { min-height: calc(100vh - 127px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a0e14 0%, #111820 50%, #0f1419 100%); }

/* 通用页面背景效果 - 科幻风格 */
.tab-content {
  position: relative;
  min-height: calc(100vh - 127px);
  background: linear-gradient(135deg, #0a0e14 0%, #0d1117 50%, #0a0e14 100%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .tab-content {
    overflow: visible;
    min-height: auto;
  }
}

/* 网格背景 */
.tab-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* 光晕效果 */
.tab-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tab-content > * {
  position: relative;
  z-index: 1;
}

/* Hero 特殊背景 */
.hero {
  min-height: calc(100vh - 127px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e14 0%, #0d1117 50%, #0a0e14 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 40px 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 100px; font-size: 0.85rem; color: var(--accent-emerald); margin-bottom: 24px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; }
.hero-title2 { font-size: clamp(2.5rem, 4vw, 2rem); font-weight: 700; margin-bottom: 40px; line-height: 1.1; }
.hero-title-gradient { background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-emerald) 50%, var(--accent-amber) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--accent-emerald); margin-bottom: 4px; }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===== 查询区域 (首页/令牌页) ===== */
.query-section {
  padding: 48px 24px 60px;
  max-width: 700px;
  margin: 0 auto;
}
.query-section-inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 查询子标签页 */
.query-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
  gap: 0;
}
.query-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-family: var(--font-sans);
}
.query-tab-btn:hover { color: var(--text-secondary); }
.query-tab-btn.active {
  color: var(--text-primary);
}
.query-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 1px;
}
.query-tab-btn[data-qtab="token"].active::after { background: var(--accent-emerald); }
.query-tab-btn[data-qtab="volume"].active::after { background: var(--accent-amber); }
.query-tab-btn[data-qtab="count"].active::after { background: var(--accent-blue); }
.query-tab-icon { font-size: 1.1rem; }

/* 查询面板 */
.query-panel { display: none; padding: 28px 24px 32px; }
.query-panel.active { display: block; animation: fadeIn 0.2s ease; }

.query-panel-header { margin-bottom: 24px; }
.query-panel-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.query-panel-desc { font-size: 0.85rem; color: var(--text-muted); }

/* 查询表单 */
.query-form { margin-bottom: 20px; }
.query-form-row { display: flex; gap: 12px; }
.query-form-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}
.query-form-input::placeholder { color: var(--text-muted); font-family: var(--font-sans); }
.query-form-input:focus {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.04);
}
.query-btn { min-width: 90px; border-radius: 12px; font-weight: 600; }

/* 查询结果 - 通用结构 */
.query-result { display: none; }
.query-result.show { display: block; }
.query-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
}
.query-result-card + .query-result-card { margin-top: 16px; }

/* 令牌结果 - 基本信息 */
.result-key-name-row, .result-expire-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}
.result-key-name-row:last-child, .result-expire-row:last-child { margin-bottom: 0; }
.result-label { font-size: 0.9rem; color: var(--text-secondary); }
.result-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.result-value.expired { color: var(--accent-red); }

/* 统计网格 - 4 格 */
.stats-4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stat-card.emerald .stat-value { color: var(--accent-emerald); }
.stat-card.amber .stat-value { color: var(--accent-amber); }
.stat-card.blue .stat-value { color: var(--accent-blue); }

/* 用量进度条 */
.usage-progress {
  margin-top: 20px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.progress-fill.emerald { background: linear-gradient(90deg, var(--accent-emerald), #059669); }
.progress-fill.amber { background: linear-gradient(90deg, var(--accent-amber), #d97706); }
.progress-fill.blue { background: linear-gradient(90deg, var(--accent-blue), #2563eb); }

/* 倒计时 */
.result-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.result-timer-row .timer-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-blue);
}

/* 按量结果 - 余额与用量 */
.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
}
.balance-row:last-child { margin-bottom: 0; }
.balance-row .balance-label { font-size: 0.9rem; color: var(--text-secondary); }
.balance-row .balance-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

/* 消费明细 */
.consumption-list { margin-top: 16px; }
.consumption-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.consumption-item:last-child { border-bottom: none; }
.consumption-model { font-size: 0.9rem; font-weight: 500; }
.consumption-time { font-size: 0.8rem; color: var(--text-muted); }
.consumption-cost { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-amber); font-weight: 500; }

/* 计次结果 */
.count-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.count-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.count-card .count-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.count-card .count-label { font-size: 0.8rem; color: var(--text-muted); }

/* 调用历史 */
.call-history { margin-top: 16px; }
.history-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}
.history-item:last-child { border-bottom: none; }
.history-model { font-weight: 500; }
.history-time { color: var(--text-muted); }
.history-remain { font-family: var(--font-mono); color: var(--accent-blue); }

/* Section */
.section { padding: 30px 24px 0px 24px; max-width: 1800px; margin: 0 auto; }

/* 模型ID复制按钮 */
.model-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.model-id-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.model-id-copy {
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}
.model-id-copy:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

/* 前端Toast提示 */
.toast-front {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(26, 35, 50, 0.95);
  border: 1px solid var(--accent-emerald);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 0.9rem;
  color: var(--accent-emerald);
}
.toast-front.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 确认弹窗样式（前端） */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.confirm-modal-box {
  background: rgba(26, 35, 50, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.confirm-modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.confirm-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.confirm-modal-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}
.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.confirm-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}
.confirm-btn.confirm {
  background: var(--accent-emerald);
  color: #fff;
}
.confirm-btn.confirm:hover {
  background: #059669;
}
.confirm-btn.confirm.danger {
  background: var(--accent-red);
}
.confirm-btn.confirm.danger:hover {
  background: #dc2626;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 1.75rem; margin-bottom: 12px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; }

/* Model Grid */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.model-card { background: rgb(26 35 50 / 42%); border: 1px solid var(--border-color); border-radius: 12px; transition: all 0.2s ease; position: relative;max-height: 290px; }
.model-card:hover { transform: translateY(-2px); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.model-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.2); }
.model-logo { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #d8e1de 0%, #ffffff 100%); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.model-info { flex: 1; min-width: 0; }
.model-name { font-weight: 600; margin-bottom: 2px; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-provider { font-size: 0.8rem; color: var(--text-muted); }
.model-badge { padding: 4px 10px; font-size: 0.7rem; border-radius: 100px; background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.model-meta { display: none; }
.model-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }
.model-card-body { padding: 12px 0px; }

/* 模型标签行样式 */
.model-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
}
.model-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  /* border: 1px solid rgba(59, 130, 246, 0.4); */
  color: var(--accent-blue);
  transition: all 0.15s ease;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 0.7rem;
	font-weight: 600;
}
.model-tag:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}
.model-tag.model-tag-more {
  background: linear-gradient(135deg, rgba(139, 148, 158, 0.2) 0%, rgba(139, 148, 158, 0.1) 100%);
  border-color: rgba(139, 148, 158, 0.4);
  color: var(--text-secondary);
  cursor: pointer;
}
.model-tag.model-tag-more:hover {
  background: linear-gradient(135deg, rgba(139, 148, 158, 0.3) 0%, rgba(139, 148, 158, 0.15) 100%);
}

/* 标签悬停弹出 */
.model-tags-wrapper {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.model-tags-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: auto;
  right: -25px;
  z-index: 10000;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  gap: 6px;
  min-width: 80px;
}
.model-tags-wrapper:hover .model-tags-popup {
  display: flex;
}
.model-tag-more {
  position: relative;
}
.model-tag-more .model-tags-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: auto;
  right: -25px;
  z-index: 10000;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  gap: 6px;
  min-width: 80px;
}
.model-tag-more:hover .model-tags-popup {
  display: flex;
}
.model-tags-popup .model-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-blue);
  white-space: nowrap;
		padding: 3px 10px;
		border-radius: 100px;
		font-size: 0.7rem;
		font-weight: 600;
		justify-content: center; 
}

/* 模型卡片允许溢出 */
.model-card {
  overflow: visible;
}
.model-tags-row {
  overflow: visible;
}
.model-billing-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: auto;
}
.model-billing-badge.billing-token {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}
.model-billing-badge.billing-count {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.model-card-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; gap: 8px; }
.model-card-row .row-label { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.model-card-row .row-value { font-size: 0.85rem; font-weight: 500; flex: 1; text-align: right; }
.model-card-row .row-value.mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-blue); white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.model-card-row .row-value.price { color: var(--accent-amber); }
.model-card-row .copy-btn { padding: 4px 8px; border: none; border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: var(--text-muted); cursor: pointer; font-size: 0.85rem; transition: all 0.15s ease; flex-shrink: 0; }
.model-card-row .copy-btn:hover { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.model-price { display: none; }
.price-item { text-align: center; }
.price-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.price-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-amber); }
.model-card-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.model-badge.billing-token { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.model-badge.billing-count { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }

/* Query (旧版, 保留兼容) */
.query-box { max-width: 600px; margin: 0 auto; }
.query-input-group { display: flex; gap: 12px; margin-bottom: 24px; }
.query-input { flex: 1; padding: 14px 18px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; }
.query-input:focus { outline: none; border-color: var(--accent-emerald); }
.query-result { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.result-stat { text-align: center; }
.result-stat-value { font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.result-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Docs */
.docs-container {margin: 0 auto; }
.docs-card { background: rgb(26 35 50 / 21%); /* border: 1px solid var(--border-color); */ border-radius: var(--radius-lg); padding: 32px; }
.docs-card h3 { margin-bottom: 16px; }
.docs-card p { color: var(--text-secondary); margin-bottom: 20px; }
.code-block { background: var(--bg-tertiary); border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin-bottom: 20px; }
.code-block code { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.85rem; white-space: pre; }
.code-block .hl { color: var(--accent-emerald); }

/* Community */
.post-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.post-card { background: rgb(26 35 50 / 48%); border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: all 0.15s ease; }
.post-card:hover { border-color: var(--accent-emerald); transform: translateX(4px); }
.post-title { font-weight: 600; margin-bottom: 8px; }
.post-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }
.post-content { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }

/* Footer */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 100;
}

/* Toast 气泡提示 */
.toast-bubble {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(26, 35, 50, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 0.95rem;
  font-weight: 500;
}
.toast-bubble.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-bubble.success {
  border-color: var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(26, 35, 50, 0.95) 100%);
}
.toast-bubble.success .toast-icon { color: var(--accent-emerald); }
.toast-bubble.error {
  border-color: var(--accent-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(26, 35, 50, 0.95) 100%);
}
.toast-bubble.error .toast-icon { color: var(--accent-red); }
.toast-bubble.info {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(26, 35, 50, 0.95) 100%);
}
.toast-bubble.info .toast-icon { color: var(--accent-blue); }
.toast-bubble .toast-icon {
  font-size: 1.2rem;
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(10px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px; width: 600px; max-width: 90%;}
.modal h2 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-input { width: 100%; padding: 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem; }
.form-input:focus { outline: none; border-color: var(--accent-emerald); }
.form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.9rem; }

#post-title {
	width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}}


/* Modal 表单按钮 */
.modal .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal .btn.btn-secondary {
  white-space: nowrap;
  min-width: 100px;
}

/* ==========================================
   社区样式
   ========================================== */
.community-layout {
  display: flex;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
  padding: 10px;
}


.community-main {
  width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 预览区覆盖层 */
.community-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.community-preview-overlay:not(.collapsed) {
  pointer-events: auto;
  opacity: 1;
}

/* 外部玻璃遮罩层 */
.preview-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}

/* 玻璃面板 */
.preview-glass-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 600px;
  background: rgb(30 41 59 / 38%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-preview-overlay:not(.collapsed) .preview-glass-panel {
  transform: translateX(0);
}

.preview-glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.preview-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.preview-toggle:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
}

.preview-toggle:active {
  transform: rotate(90deg) scale(0.95);
}

.preview-inner {
  flex: 1;
  overflow: hidden;
}

.preview-placeholder, .preview-loading, .preview-error {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 40px;
}

.preview-loading .loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preview-content {
  height: 100%;
  overflow-y: auto;
  padding: 50px 28px 28px;
}

.preview-header {
  margin-bottom: 16px;
}

.preview-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
	background: linear-gradient(135deg, #ffffff 0%, #00f1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.preview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 20px;
}

.preview-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-author-info {
  flex: 1;
}

.preview-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.preview-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.preview-body {
  color:#bfc9c8b3;
  line-height: 1.9;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.95rem;
}

.preview-stats {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 20px;
}

.stat-btn, .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgb(52 48 48 / 16%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.stat-btn {
  cursor: pointer;
}

.stat-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-btn.liked {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.stat-icon {
  font-size: 1.1rem;
}

.stat-value {
  font-weight: 700;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.preview-comments {
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.comments-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.comments-count {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-input-wrap textarea {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  resize: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.comment-input-wrap textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.comments-list {
  /*max-height: 300px;*/
  overflow-y: auto;
  margin-top: 16px;
}

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.community-header h2 {
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.filter-tabs, .sort-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.filter-tab, .sort-tab {
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover, .sort-tab:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.filter-tab.active, .sort-tab.active {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-emerald) 100%);
  border-color: transparent;
  color: white;
}

.community-posts {
    display: flex;
    gap: 16px;
    padding-right: 8px;
    align-items: flex-start;
  }
  
  .community-posts-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .post-card {
    background: rgb(26 35 50 / 32%);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
	border-bottom: 2px solid #4c949a5e;
  }


.post-card:hover {
  border-color:  #4beabfc4;
  background:  rgb(46 58 107 / 32%);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card.active {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.post-card.active::before {
  opacity: 1;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.post-author {
  flex: 1;
  min-width: 0;
}

.post-author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.post-category {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.post-category.general {
  background: rgb(176 226 105 / 20%);
  color: #efe145;
}

.post-category.discussion {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.post-category.share {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.post-category.question {
  background: #ef444420;
  color: #ef4444;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
	background: linear-gradient(135deg, #ffffff 0%, #00f1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-content-preview {
  color: rgb(190 190 190);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
  }

.post-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.post-stat.liked {
  color: #ef4444;
}

.community-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 0px 0px 0px;
    flex-wrap: wrap;
  }
  
  .page-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
  }
  
  .page-btn:hover:not(:disabled) {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
  }
  
  .page-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
  }
  
  .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  
  .page-info {
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  
  .page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
  }
  
  .page-total {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
  }

.page-info {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 评论样式 */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 0.85rem;
}

.reply-to {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.comment-content {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 8px;
  word-break: break-word;
}

/* 评论内容富文本样式 */
.comment-content p {
  margin: 0 0 8px 0;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-content h1,
.comment-content h2,
.comment-content h3 {
  margin: 8px 0;
  color: var(--text-primary);
  font-size: 1em;
}

.comment-content ul,
.comment-content ol {
  margin: 4px 0;
  padding-left: 16px;
}

.comment-content li {
  margin: 2px 0;
}

.comment-content blockquote {
  margin: 8px 0;
  padding: 6px 10px;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-secondary);
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
}

.comment-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 4px 0;
}

.comment-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  padding: 1px 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 3px;
  font-size: 0.85em;
}

.comment-content pre {
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  background: #1e1e1e;
  overflow-x: auto;
}

.comment-content pre code {
  padding: 0;
  background: transparent;
}

.comment-content a {
  color: var(--accent-primary);
  text-decoration: none;
}

.comment-content a:hover {
  text-decoration: underline;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-action {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.comment-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.comment-action.liked {
  color: #ef4444;
}

.comment-replies {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.reply-form {
  margin-top: 8px;
}

/* 帖子图片样式 */
.post-images {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.post-images-single {
  grid-template-columns: 1fr;
}

.post-images-single .post-image {
  max-height: 300px;
  object-fit: cover;
}

.post-images-double {
  grid-template-columns: 1fr 1fr;
}

.post-images-quad {
  grid-template-columns: 1fr 1fr;
}

.post-images-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.post-image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* 预览区图片 */
.preview-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.preview-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 图片查看器 */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-viewer-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-viewer-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* 内容中的图片样式 */
.content-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
}

.content-image:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* 帖子图片样式 */
.post-images {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.post-images-single {
  grid-template-columns: 1fr;
}

.post-images-single .post-image {
  max-height: 300px;
  object-fit: cover;
}

.post-images-double {
  grid-template-columns: 1fr 1fr;
}

.post-images-quad {
  grid-template-columns: 1fr 1fr;
}

.post-images-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.post-image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* 图片查看器 */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-viewer-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-viewer-close:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* 评论删除按钮 */
.comment-action.delete {
  color: var(--accent-red);
}

.comment-action.delete:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* 通知按钮样式 */
.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 2px 5px;
  background: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 通知列表样式 */
.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: flex-start;
}

.notification-item:hover {
  background: var(--bg-tertiary);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.read {
  opacity: 0.6;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 限制显示 2 行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-username {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  font-weight: 600;
}

.notification-action {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin: 0px 20px 0px 0px;
}

.notification-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* 展开/收起回复 */
.replies-toggle {
  padding: 8px 12px;
  margin: 8px 0;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent-blue);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.replies-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.replies-hidden {
  margin-top: 8px;
}

/* 评论点赞样式 */
.comment-action .like-icon {
  font-size: 1rem;
}

.comment-action .like-count {
  font-weight: 600;
}

/* 通知分节 */
.notification-section {
  margin-bottom: 16px;
}

.section-title {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

/* 未读标记 */
.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.notification-item {
  position: relative;
}

/* 评论高亮 */
.comment-item.highlight {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--accent-blue);
  animation: highlight-fade 3s ease;
}

@keyframes highlight-fade {
  from { background: rgba(59, 130, 246, 0.2); }
  to { background: transparent; }
}

/* 分页按钮 */
.modal-footer .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 确认框 */
.confirm-bubble {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm-content {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 360px;
  max-width: 90vw;
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-message {
  color: var(--text-primary);
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.confirm-actions .btn {
  min-width: 120px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.confirm-actions .btn-ghost {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.confirm-actions .btn-ghost:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.confirm-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.confirm-actions .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
/* 帖子删除按钮 */
.post-delete-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 45px;
  height: 45px;
  border: none;
  background: rgb(0 0 0);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.post-card:hover .post-delete-btn {
  opacity: 1;
}

.post-delete-btn:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

.post-header {
  position: relative;
}

/* 按钮尺寸 */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* 图片遮罩 */
.post-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 8px;
}

/* 图片画廊 */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.gallery-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease;
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
}

.gallery-counter {
  margin-top: 16px;
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-zoom-reset {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 8px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-zoom-reset:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 手机端画廊按钮放大 */
@media (max-width: 768px) {
  .community-layout {
    left: auto;
    right: auto;
    position: static; /* 或 relative / inherit，根据布局需要 */
  }
	
  .gallery-nav {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .gallery-prev {
    left: 10px;
  }
  
  .gallery-next {
    right: 10px;
  }
  
  .gallery-close {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* 代码块样式 */
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 12px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.code-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-copy-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  background: var(--accent-emerald);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: #0d9668;
  transform: translateY(-1px);
}

.code-content {
  padding: 12px 16px;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 行内代码 */
.inline-code {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

/* 弹窗头部 */
.modal-header {
  position: relative;
  padding: 20px 20px 16px;
}

.modal-header .modal-title {
  margin: 0;
  padding-right: 40px;
}

/* 通知弹窗关闭按钮 */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  transform: rotate(90deg);
}

/* 通知操作按钮 */
.notification-actions {
  padding: 16px 20px !important;
  gap: 16px !important;
}

.notification-actions .btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-actions .btn-ghost {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.notification-actions .btn-ghost:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.notification-actions .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 帖子元信息区域 */
.preview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.edit-post-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* 帖子操作区域 */
.preview-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background: var(--bg-secondary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.post-categorys {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-categorys:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.post-categorys:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background: var(--bg-secondary);
}

.post-categorys::placeholder {
  color: var(--text-muted);
}

select.post-categorys {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea.post-categorys {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}




/* 弹窗底部按钮 */
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 16px 16px;
}

.modal-footer .btn {
  min-width: 100px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
}

.modal-footer .btn-ghost {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.modal-footer .btn-ghost:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #0d9668 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #0d9668 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* 弹窗美化 */
.modal {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  animation: modal-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: auto;
  width: 100%;
  overflow-y: auto;
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header .modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 28px;
  background: var(--bg-primary);
}

/* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive *//* Responsive */
@media (max-width: 768px) {
  .preview-glass-panel {
    width: 100%;
    border-left: none;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  }
  
  .preview-backdrop {
    background: rgba(10, 14, 20, 0.85);
  }
  
  .preview-content {
    padding: 75px 20px 20px;
  }
  
  .preview-title {
    font-size: 1.2rem;
  }
  
  .community-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-tabs, .sort-tabs {
    justify-content: center;
  }
}/* Responsive *//* Responsive *//* Responsive */
@media (max-width: 1024px) {
  .community-layout {
    flex-direction: column;
    height: auto;
  }
  .community-preview {
    width: 100%;
    max-height: 500px;
  }
}
@media (max-width: 768px) {
  .community-posts { flex-direction: column; }
    .community-posts-column { width: 100%; }
    .tab-nav { position: fixed; bottom: 0; left: 0; right: 0; border-radius: 0; border-top: 1px solid var(--border-color); justify-content: center; padding: 8px; background: var(--bg-primary); }
  .tab-btn { padding: 8px 12px; font-size: 0.8rem; }
  .header-actions { display: none; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .model-grid { grid-template-columns: 1fr; }
  .stats-4-grid { grid-template-columns: 1fr 1fr; }
  .count-grid { grid-template-columns: 1fr 1fr; }
  .main { padding-bottom: 0px; }
  .query-section { padding: 24px 12px 40px; }
  .query-section-inner { border-radius: 14px; }
  .query-tabs { padding: 0 12px; }
  .query-tab-btn { padding: 12px 12px 10px; font-size: 0.85rem; }
  .query-panel { padding: 20px 12px 24px; }
  .query-form-row { flex-direction: column; }
  .query-btn { width: 100%; justify-content: center; }
}

/* ===== 移动端导航条样式 ===== */
/* 移动端头部按钮组 */
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

/* 通知按钮（移动端） */
.notification-btn-mobile {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn-mobile:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.notification-btn-mobile .notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 2.5px 5px;
  background: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* 汉堡菜单按钮 */
.hamburger-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
}

.hamburger-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.hamburger-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--accent-emerald);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--accent-emerald);
}

/* 移动端下拉菜单 */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
  max-height: 500px;
  padding: 16px 20px;
}

/* 移动端导航按钮 */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-nav-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.mobile-nav-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

.mobile-nav-btn.active {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-emerald-glow);
}

/* 移动端菜单操作按钮 */
.mobile-menu-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.mobile-menu-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  justify-content: center;
}

/* 移动端用户信息 */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(26, 35, 50, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.mobile-user-info:hover {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(26, 35, 50, 0.7) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-user-details {
  flex: 1;
  min-width: 0;
}

.mobile-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-balance {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mobile-user-balance .balance-amount {
  color: var(--accent-amber);
  font-weight: 600;
}

.mobile-user-arrow {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-user-info:hover .mobile-user-arrow {
  color: var(--accent-emerald);
  transform: translateX(3px);
}

/* 移动端用户操作按钮 - 并排显示 */
.mobile-user-actions {
  display: flex;
  gap: 10px;
    justify-content: center;
    align-content: space-around;
    align-items: center;
    width: 45%;
}

.mobile-user-actions .btn {
  flex: 1;
  padding: 11px 12px;
  font-size: 0.85rem;
  justify-content: center;
  border-radius: 10px;
}

/* 移动端响应式 */
@media (max-width: 900px) {
  .tab-nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .mobile-header-actions {
    display: flex;
  }
  
  .header-inner {
    position: relative;
  }
}

@media (max-width: 768px) {
  .mobile-menu.active {
    max-height: 620px;
  }
  
  .hamburger-btn,
  .notification-btn-mobile {
    width: 36px;
    height: 36px;
  font-size: 1.1rem;
  }
  
  .mobile-nav-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}
/* 帖子序号 */
.post-index {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4859544a, #b4b7b61c);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  z-index: 1;
}

/* 置顶角标 */
.post-pinned-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px 0 12px 0;
  z-index: 1;
}

/* 评论用户头像 */
.post-commenters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.commenter-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.commenter-avatar:first-child {
  margin-left: 0;
}

.commenter-avatar:hover {
  transform: scale(1.2);
  z-index: 1;
}

.commenter-more {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0px 0px 0px;
}

/* 评论分页 */
.comments-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

/* 社区搜索框 */
.community-search {
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0 4px;
  transition: all 0.2s;
  overflow: hidden;
}

.search-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: rgba(0,0,0,0.4);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  margin-left: 12px;
  flex-shrink: 0;
}

.search-box input {
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 4px;
}

.search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

.search-clear svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.search-clear:hover svg {
  color: var(--accent-red);
}

/* ===== Auth Split Screen Layout ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-primary);
}

.auth-split-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* 左侧品牌区域 */
.auth-brand-side {
  flex: 1;
  background: linear-gradient(135deg, #0d1321 0%, #0a0f1a 50%, #0d1321 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 50px;
}

.auth-brand-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.auth-brand-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 28px auto;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

.auth-brand-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e6edf3 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(26, 35, 50, 0.5);
  border: 1px solid rgba(48, 64, 88, 0.4);
  border-radius: 12px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 360px;
}

.auth-feature-item:hover {
  background: rgba(26, 35, 50, 0.7);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(4px);
}

.auth-feature-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.auth-feature-text {
  flex: 1;
  text-align: left;
}

.auth-feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.auth-feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 装饰圆圈 */
.auth-brand-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-brand-decoration .decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.auth-brand-decoration .decoration-circle.c1 {
  width: 400px;
  height: 400px;
  background: var(--accent-emerald);
  top: -100px;
  left: -100px;
}

.auth-brand-decoration .decoration-circle.c2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: -50px;
  right: -50px;
}

.auth-brand-decoration .decoration-circle.c3 {
  width: 200px;
  height: 200px;
  background: var(--accent-amber);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 右侧表单区域 */
.auth-form-side {
  width: 50%;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-form-side::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.auth-form-container {
  width: 100%;
  max-width: 360px;
  text-align: center;
  position: relative;
}

.auth-form-header {
  margin-bottom: 36px;
  text-align: center;
}

.auth-form-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form-body {
  margin-bottom: 32px;
  text-align: left;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: var(--accent-emerald);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.auth-submit-btn:hover .auth-btn-arrow {
  transform: translateX(4px);
}

.auth-form-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.auth-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 1.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  transform: rotate(90deg);
  border-color: rgba(239, 68, 68, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .auth-brand-side {
    padding: 40px 30px;
  }
  
  .auth-brand-title {
    font-size: 1.8rem;
  }
  
  .auth-brand-subtitle {
    margin-bottom: 32px;
  }
  
  .auth-feature-item {
    padding: 12px 16px;
  }
}

@media (max-width: 900px) {
  .modal {
    min-width: 0px !important;
	height: 100% !important;
	border-radius: 0px !important;
	padding: 0px !important;
	overflow-y: auto; /* 启用纵向滚动 */
  }
  
	.post-editor {
		max-height: 230px !important;
	}
	
  .auth-split-container {
    flex-direction: column;
  }
  
  .auth-brand-side {
    min-height: auto;
    padding: 50px 30px;
  }
  
  .auth-brand-logo {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .auth-brand-title {
    font-size: 1.6rem;
  }
  
  .auth-brand-subtitle {
    margin-bottom: 24px;
  }
  
  .auth-features {
    display: none;
  }
  
  .auth-form-side {
    width: 100%;
    min-height: 60vh;
  }
  
  .auth-form-side::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-brand-side {
    padding: 40px 20px;
  }
  
  .auth-form-side {
    padding: 30px 20px;
  }
  
  .auth-form-header h2 {
    font-size: 1.3rem;
  }
}

/* ==========================================
   虚拟资源商店样式
   ========================================== */

.shop-section {
  padding: 30px 24px 0px;
}

@media (max-width: 768px) {
  .shop-section {
    padding: 20px 12px 40px;
  }
}

.shop-container {
  margin: 0 auto;
  height: calc(100vh - 160px);
}

@media (max-width: 768px) {
  .shop-container {
    height: auto;
  }
}

/* 商店头部 */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.shop-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.shop-subtitle {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.shop-header-actions {
  display: flex;
  gap: 12px;
}

/* 商店按钮 */
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-sans);
}

.shop-btn-primary {
  background: linear-gradient(135deg, #ffb800 0%, #d97c29 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.shop-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.shop-btn-outline {
  background: linear-gradient(177deg, rgb(253 223 18 / 98%) 0%, rgb(227 140 26) 100%);
  color: var(--text-primary);
}

.shop-btn-outline:hover {
  background: linear-gradient(45deg, rgb(253 223 18 / 98%) 0%, rgb(227 140 26) 100%);
  color: var(--text-primary);
}

.shop-btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.shop-btn-ghost:hover {
  color: var(--text-primary);
}

.shop-btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.shop-btn-disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 分类标签 */
.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.shop-category-btn {
  padding: 10px 20px;
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-category-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--text-primary);
}

.shop-category-btn.active {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
}

/* 商品网格 */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  padding: 4px 8px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.shop-products-grid::-webkit-scrollbar {
  width: 6px;
}

.shop-products-grid::-webkit-scrollbar-track {
  background: transparent;
}

.shop-products-grid::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

@media (max-width: 1200px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-products-grid {
    grid-template-columns: 1fr;
  }
}

/* 商品卡片 */
.shop-product-card {
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.shop-product-cover {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1a2332 0%, #111820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-cover-placeholder {
  font-size: 4rem;
  opacity: 0.5;
}

.shop-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.shop-product-info {
  padding: 10px;
}

.shop-product-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  height: 1.5em;
}

.shop-product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shop-product-price {
  font-weight: 700;
  color: #FFF;
  padding: 2px 8px 2px 8px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.shop-product-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-product-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin: 10px 0px 0px 0px;
}

.shop-product-stock {
  padding: 2px 8px;
  border-radius: 4px;
}

.shop-product-stock.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.shop-product-stock.sold-out {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.shop-product-sold {
  color: var(--text-muted);
}

/* 加载状态 */
.shop-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  gap: 16px;
}

.shop-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-emerald);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 空状态 */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.shop-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 加载更多 */
.shop-load-more {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
}

/* 商品详情模态框 */
.shop-product-modal {
  max-width: 600px !important;
  width: 95%;
  position: relative;
}

/* 商品模态框关闭按钮 */
.shop-modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #312f2f 0%, #312e2e 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgb(202 188 188 / 40%);
}

.shop-modal-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
}

.shop-modal-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* 充值模态框 */
.recharge-modal-box {
  max-width: 500px !important;
  width: 95%;
  position: relative;
}

/* 通用模态框关闭按钮 */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #252222 0%, #292727 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 12px rgb(61 51 51 / 50%);
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.15);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.7);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

.shop-modal-product {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-modal-cover {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1a2332 0%, #111820 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-modal-cover-placeholder {
  font-size: 5rem;
  opacity: 0.5;
}

.shop-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.shop-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shop-modal-tag {
  padding: 4px 12px;
  background: rgba(26, 35, 50, 0.8);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.shop-modal-tag.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.shop-modal-tag.sold-out {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.shop-modal-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0;
}

.shop-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0;
}

.shop-modal-price {
  font-weight: 700;
  color: #FFF;
  padding: 2px 8px 2px 8px;
  border-radius: 5px;
  background: rgb(254 184 0);
}

.shop-modal-original-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-modal-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-modal-notice {
  background: rgb(217 52 50 / 14%);
  /*border: 1px solid rgba(16, 185, 129, 0.2);*/
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.shop-modal-notice-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-emerald);
}

.shop-modal-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.shop-modal-actions {
  margin-top: 24px;
}

.shop-btn-buy {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
}

/* 支付方式选择 */
.shop-payment-select {
  padding: 20px 0;
}

.shop-payment-info {
  background: rgba(26, 35, 50, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.shop-payment-product {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.shop-payment-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.shop-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shop-payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-payment-btn:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.shop-payment-icon {
  font-size: 1.8rem;
}

/* 订单模态框 */
.shop-orders-modal {
  max-width: 900px !important;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
}

.shop-orders-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  padding: 4px;
}

.shop-order-card {
  background: linear-gradient(357deg, rgb(253 223 18 / 98%) 0%, rgb(227 140 26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.shop-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(357deg, rgb(253 223 18 / 98%) 0%, rgb(227 140 26) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px 16px 0px 0px; 
}

.shop-order-no {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: #fdf3b4;
  letter-spacing: 0.5px;
}

.shop-order-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.shop-order-status.pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.shop-order-status.paid {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.shop-order-status.delivered {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.shop-order-status.completed {
  background: linear-gradient(135deg, rgb(253 223 18 / 98%) 0%, rgb(227 140 26) 100%);
  color: #ffffff;
  border: 1px solid rgb(235 175 17);
}

.shop-order-status.cancelled {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.shop-order-body {
  padding: 20px;
}

.shop-order-product {
  display: flex;
  gap: 20px;
  align-items: center;
}

.shop-order-product img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-order-product-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.shop-order-product-info {
  flex: 1;
}

.shop-order-product-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.shop-order-product-price {
  color: #10b981;
  font-weight: 700;
  font-size: 1.2rem;
}

.shop-order-delivery {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.shop-order-delivery.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.shop-order-delivery-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #ef4444;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}

.shop-order-delivery-close:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

.shop-order-delivery-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #f1f5f9;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-order-delivery-title::before {
  content: '📦';
}

.shop-order-delivery-content {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 8px;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #e2e8f0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.shop-order-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  margin: 0px 0px 20px 0px;
}

.shop-order-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #130700;
}

/* 响应式 */
@media (max-width: 768px) {
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .shop-title {
    font-size: 1.5rem;
  }
  
  .shop-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .shop-payment-methods {
    grid-template-columns: 1fr;
  }
}

/* 商店订单抽屉样式 */
.shop-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
}

.shop-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shop-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 90%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 24, 32, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
  border-left: 1px solid rgba(48, 64, 88, 0.6);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.shop-drawer-overlay.active .shop-drawer {
  transform: translateX(0);
}

.shop-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(48, 64, 88, 0.4);
  flex-shrink: 0;
}

.shop-drawer-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.shop-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.shop-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.shop-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* 移动端适配 */
@media (max-width: 576px) {
  .shop-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* 订单分页样式 */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(48, 64, 88, 0.4);
  flex-wrap: wrap;
}

.shop-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(48, 64, 88, 0.6);
  background: rgba(26, 35, 50, 0.8);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.shop-page-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.shop-page-btn.active {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: white;
}

.shop-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 订单卡片可点击样式 */
.shop-order-card.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-order-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 查看发货内容按钮 */
.shop-view-delivery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-view-delivery-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.shop-view-delivery-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 订单提示 */
.shop-order-hint {
  font-size: 14px;
  color: #ba2c2c;
  padding: 8px 12px;
  background: rgb(254 184 0 / 76%);
  border-radius: 6px;
  margin-top: 12px;
  font-weight: bold;
}

.shop-order-hint.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-order-hint.clickable:hover {
  background: rgb(254 184 0 / 90%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 模型筛选布局 */
.models-layout {
    display: flex;
    gap: 24px;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.models-filter-sidebar {
  width: 320px;
  flex-shrink: 0;
  /* background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98)); */
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
  height: calc(100% - 85px);
}

.models-filter-sidebar::-webkit-scrollbar {
  width: 6px;
}

.models-filter-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.models-filter-sidebar::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section:last-of-type {
  margin-bottom: 0;
}

.filter-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(48, 54, 61, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e6edf3;
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  /* border-color: #38bdf8; */
}

.filter-btn-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.filter-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #6e7681;
  background: transparent;
  border: 1px dashed rgba(48, 54, 61, 0.5);
  transition: all 0.2s ease;
}

.filter-expand-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #8b949e;
}

.btn-reset-filter {
  width: 100%;
  padding: 10px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 10px;
  color: #8b949e;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e6edf3;
}

.models-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.models-search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
  align-items: center;
}

.models-search-bar {
  position: relative;
  flex: 1;
}

.models-search-bar input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: linear-gradient(145deg, rgb(22 27 34 / 25%), rgb(13 17 23 / 48%));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  color: #e6edf3;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.models-search-bar input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.models-search-bar input::placeholder {
  color: #6e7681;
}

.models-search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6e7681;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.8), rgba(13, 17, 23, 0.9));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  color: #8b949e;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-filter-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e6edf3;
}

.mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
}

.models-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #8b949e;
  flex-shrink: 0;
  white-space: nowrap;
}

.models-stats .stat-item strong {
  color: #38bdf8;
}

.models-main .model-grid {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
  padding-right: 8px;
}

.models-main .model-grid::-webkit-scrollbar {
  width: 6px;
}

.models-main .model-grid::-webkit-scrollbar-track {
  background: transparent;
}

.models-main .model-grid::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6e7681;
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* 分页样式 */
.models-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0px;
  padding: 16px 0;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 8px;
  color: #8b949e;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #e6edf3;
  border-color: rgba(255, 255, 255, 0.15);
}

.page-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: #38bdf8;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 移动端筛选模态框 */
.mobile-filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}

.mobile-filter-modal {
  /* width: 320px; */
  max-width: 100vw;
  height: 100vh;
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.98), rgba(13, 17, 23, 1));
  border-left: 1px solid rgba(48, 54, 61, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.mobile-filter-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e6edf3;
}

.mobile-filter-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-filter-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.mobile-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-filter-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.btn-apply-filter {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

@media (min-width: 769px) {
  .mobile-filter-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .models-layout {
    flex-direction: column;
    height: auto;
  }
  
  .models-filter-sidebar {
    display: none;
  }
  
  .mobile-filter-toggle {
    display: inline-flex;
  }
  
  .models-stats {
    display: none;
  }
  
  .models-main {
    height: auto;
  }
  
  .models-main .model-grid {
    height: auto;
    overflow: visible;
  }
}

/* API密钥页面布局 */
.keys-layout {
  display: flex;
  gap: 24px;
  height: calc(100vh - 110px);
  overflow: hidden;
  padding: 20px;
}

.keys-left {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.keys-left::-webkit-scrollbar {
  width: 6px;
  border-radius: 3px;
}

.keys-left::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.keys-left::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

.keys-create-section {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 24px;
}

.keys-info-section {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 20px;
}

.keys-stats-section {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.keys-stats-section .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.keys-stats-section .stat-item:last-child {
  border-bottom: none;
}

.keys-stats-section .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.keys-stats-section .stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.keys-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.keys-list-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
  margin-bottom: 16px;
}

.keys-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.keys-list::-webkit-scrollbar {
  width: 6px;
}

.keys-list::-webkit-scrollbar-track {
  background: transparent;
}

.keys-list::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

/* API密钥页面移动端适配 */
@media (max-width: 768px) {
  .keys-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .keys-left {
    width: 100%;
  }
  
  .keys-right {
    min-height: 400px;
  }
  
  .keys-list {
    max-height: 500px;
  }
}

/* API密钥卡片样式 */
.key-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.key-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.key-card:hover .key-card-glow {
  opacity: 1;
}

/* 左侧卡片悬停效果 */
.keys-create-section,
.keys-info-section,
.keys-stats-section {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.keys-create-section:hover,
.keys-info-section:hover,
.keys-stats-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

/* 统计项悬停效果 */
.keys-stats-section .stat-item {
  transition: all 0.2s ease;
}

.keys-stats-section .stat-item:hover {
  background: rgba(56, 189, 248, 0.05);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

/* 按钮悬停增强 */
.keys-create-section .btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.keys-create-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 密钥卡片内按钮动画 */
.key-card button {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.key-card button:hover {
  transform: translateY(-2px) scale(1.02);
}

/* 启用/禁用按钮 */
.key-card button[onclick*="toggleKeyMain"]:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 删除按钮 */
.key-card button[onclick*="deleteKeyMain"]:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 复制按钮 */
.key-card .copy-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.key-card .copy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* 社区页面布局 */
.community-layout {
  display: flex;
  gap: 24px;
  height: calc(100vh - 100px);
  overflow: hidden;
  padding: 30px 0px 0px 0px;
}

.community-left {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.community-left::-webkit-scrollbar {
  width: 6px;
  border-radius: 3px;
}

.community-left::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.community-left::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

.community-create-section,
.community-filter-section,
.community-sort-section,
.community-info-section {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-create-section:hover,
.community-filter-section:hover,
.community-sort-section:hover,
.community-info-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons .filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(48, 54, 61, 0.5);
  background: rgba(22, 27, 34, 0.8);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-buttons .filter-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
}

.filter-buttons .filter-btn.active {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    /* border-color: rgba(56, 189, 248, 0.5); */
    color: #ffffff;
}

.community-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.community-search-row {
  padding: 0 0 16px 0;
}

.community-search-row .search-box {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
}

.community-search-row .search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.community-search-row .search-box .search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.community-list-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
  margin-bottom: 16px;
}

.community-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.community-list::-webkit-scrollbar {
  width: 6px;
}

.community-list::-webkit-scrollbar-track {
  background: transparent;
}

.community-list::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

/* 社区帖子瀑布流布局 - 左右交替 */
.community-posts-waterfall {
  display: flex;
  gap: 16px;
}

.waterfall-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .community-posts-waterfall {
    flex-direction: column;
  }
}

/* 帖子卡片悬停效果 */
.post-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 商店页面布局 */
.shop-layout {
    display: flex;
    gap: 24px;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.shop-left {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
}

.shop-left::-webkit-scrollbar {
  width: 6px;
  border-radius: 3px;
}

.shop-left::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.shop-left::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

.shop-create-section,
.shop-filter-section,
.shop-info-section {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-create-section:hover,
.shop-filter-section:hover,
.shop-info-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

.shop-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-category-list .filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(48, 54, 61, 0.5);
  background: rgba(22, 27, 34, 0.8);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-category-list .filter-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
}

.shop-category-list .filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  /* border-color: rgba(56, 189, 248, 0.5); */
  color: #ffffff;
}

.shop-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.shop-search-row {
  padding: 0 0 16px 0;
}

.shop-search-row .search-box {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
}

.shop-search-row .search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.shop-search-row .search-box .search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.shop-list-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.3);
  margin-bottom: 16px;
}

.shop-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.5) transparent;
  min-height: 0;
}

.shop-list::-webkit-scrollbar {
  width: 6px;
}

.shop-list::-webkit-scrollbar-track {
  background: transparent;
}

.shop-list::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.5);
  border-radius: 3px;
}

/* 商店网格布局 */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* 商品卡片悬停效果 */
.shop-product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 商店页面移动端适配 */
@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .shop-left {
    width: 100%;
  }
  
  .shop-right {
    min-height: 400px;
    height: auto;
  }
  
  .shop-products-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
    flex: none;
  }
}

/* 商店分页样式 */
.shop-pagination {
  padding: 16px 0;
}

.shop-pagination .pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-pagination .page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(48, 54, 61, 0.5);
  background: rgba(22, 27, 34, 0.8);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-pagination .page-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-primary);
}

.shop-pagination .page-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.3));
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.shop-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 社区页面移动端适配 */
@media (max-width: 768px) {
  .community-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .community-left {
    width: 100%;
  }
  
  .community-right {
    min-height: 400px;
  }
  
  .community-list {
    /* max-height: 500px; */
  }
}

/* ==========================================
   头部导航美化样式
   ========================================== */
/* ==========================================
   澶撮儴瀵艰埅缇庡寲鏍峰紡
   ========================================== */

/* Header 鏁翠綋鏍峰紡澧炲己 */
.header {
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.98) 0%, rgba(10, 14, 20, 0.95) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  height: 70px;
}

/* Logo 缇庡寲 */
.logo {
  gap: 14px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 42px;
  height: 42px;
  /* background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);*/
  border-radius: 12px;
  font-size: 1.4rem;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: logoShine 3s infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Tab Nav 缇庡寲 */
.tab-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px;
  border-radius: 14px;
  gap: 3px;
}

/* Tab Button 甯﹀浘鏍?*/
.tab-btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-btn:hover::before {
  opacity: 1;
}

.tab-btn:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

/* Tab 鍥炬爣鏍峰紡 */
.tab-btn-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Header Actions 美化 */
.header-actions {
  gap: 12px;
}

.header-actions .btn {
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.header-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.header-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border: none;
  color: #fff;
}

.header-actions .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* 鐢ㄦ埛鍗＄墖缇庡寲 */
.user-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
  transition: all 0.3s ease;
}

.user-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.user-card:hover .user-avatar {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.user-info {
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-balance {
  font-size: 0.75rem;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 鐢ㄦ埛鎿嶄綔鎸夐挳 */
.user-actions {
  gap: 6px;
}

.user-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.user-action-btn:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
}

.user-action-btn.notification {
  position: relative;
}

.user-action-btn.logout {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.user-action-btn.logout:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}


.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 2.5px 5px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}


@media (max-width: 1024px) {
  .header-inner {
    height: 64px;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .tab-nav {
    display: none;
  }
}

/* 绉诲姩绔ご閮ㄦ寜閽?*/
.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.notification-btn-mobile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.notification-btn-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hamburger-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
  background: var(--text-primary);
}

/* 绉诲姩绔彍鍗?*/
.mobile-menu {
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.98) 0%, rgba(10, 14, 20, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav {
  padding: 12px;
  gap: 4px;
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.mobile-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.mobile-nav-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mobile-nav-btn-icon {
  font-size: 1.2rem;
}

.mobile-menu-actions {
  padding: 16px;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-actions .btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .header-actions {
    display: none;
  }
  
  .mobile-header-actions {
    display: flex;
  }
}


.chat-section {
  padding: 0;
  /* min-height: calc(100vh - 64px); */
}

.chat-layout {
  display: flex;
  height: calc(100vh - 120px);
  background: #00000000;
  margin: 30px 20px 20px 20px;
}


.chat-sidebar {
  width: 320px;
  background: var(--bg-secondary);
  
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 30px 0px 0px 30px;
}

.chat-tabs {
  display: flex;
  padding: 16px;
  gap: 8px;
}

.chat-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: 50px;
}

.chat-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-radius: 50px;
}

.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 3px 5px 0px 5px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  margin-left: 4px;
}

.chat-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #bdc2a2;
  background: linear-gradient(89deg, #284f4c, #10161f);
  border-radius: 0px 15px 0px 15px;
}

.chat-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.chat-item:hover {
  background: var(--bg-tertiary);
}

.chat-item.active {
  background: var(--accent-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.chat-item.active .chat-item-name,
.chat-item.active .chat-item-meta {
  color: #fff;
}

.chat-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 12px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.chat-item.active .chat-item-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chat-item-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-item-avatar img,
.chat-item-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
}

.chat-item-badge {
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-preview {
  color: var(--text-muted);
}

.chat-empty-list {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* 主聊天区域 */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  min-width: 0;
  border-radius: 0px 30px 30px 0px;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.chat-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.chat-empty-icon svg {
  width: 40px;
  height: 40px;
}

.chat-empty-text {
  font-size: 1rem;
}

/* 鑱婂ぉ澶撮儴 */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px;
  background: var(--bg-secondary);
  border-radius: 0px 30px 0px 0px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-header-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 14px;
  color: #fff;
}

.chat-header-avatar {
  width: 48px;
  height: 48px;
}

.chat-header-avatar img,
.chat-header-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.chat-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.chat-header-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* 娑堟伅鍖哄煙 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-empty-messages {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 70%;
  animation: msgSlideIn 0.3s ease;
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-msg-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-msg-avatar img,
.chat-msg-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-msg-content {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-msg.mine .chat-msg-header {
  flex-direction: row-reverse;
}

.chat-msg-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-msg-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-msg-reply {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--accent-primary);
}

.chat-msg-text {
  background: #1118209e;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.mine .chat-msg-text {
  background: #9580ee14;
  color: #fff;
}

.chat-msg-delete,
.chat-msg-reply-btn {
  position: absolute;
  /* right: -40px; */
  top: 60px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-msg {
  position: relative;
}

.chat-msg:hover .chat-msg-delete,
.chat-msg:hover .chat-msg-reply-btn {
  opacity: 1;
}

.chat-msg-delete:hover {
  background: var(--accent-red);
  color: #fff;
}


.chat-input-area {
  padding: 16px 16px 16px 0px; /* 上 右 下 左 */
  background: var(--bg-secondary);
  border-radius: 0px 0px 30px 0px;
}

.chat-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-reply-close {
  margin-left: auto;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
}

.chat-reply-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.chat-input-box {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  min-height: 90px;
  max-height: 120px;
  padding: 12px 16px;
  border: 1px solid rgb(48 64 88 / 0%);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 濂藉弸鎼滅储 */
.friend-search-item,
.friend-request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  margin-bottom: 8px;
}

.friend-search-avatar,
.friend-request-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.friend-search-avatar img,
.friend-search-avatar span,
.friend-request-avatar img,
.friend-request-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--accent-primary);
  font-weight: 600;
}

.friend-search-info,
.friend-request-info {
  flex: 1;
  min-width: 0;
}

.friend-search-name,
.friend-request-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.friend-search-id,
.friend-request-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.friend-request-actions {
  display: flex;
  gap: 8px;
}

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
  .chat-layout {
    height: calc(100vh - 127px);
	margin: 0px !important;
  }
  
  .chat-sidebar {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .chat-sidebar.mobile-show {
    transform: translateX(0);
  }
  
  .chat-main {
    width: 100%;
  }
  
  .chat-msg {
    max-width: 85%;
  }
  
  .chat-input-area {
    padding: 12px 16px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  /* 返回按钮 - 只在手机端显示 */
  .chat-back-btn {
    display: flex;
    position: absolute;
    top: 23px;
    left: 12px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    z-index: 5;
  }
  
  /* 聊天头部添加左侧padding */
  .chat-header {
    padding-left: 60px;
  }
}

/* ============ 帖子编辑器样式 ============ */

.post-editor-container {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
}

.post-editor-toolbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.post-editor {
  min-height: 240px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-primary);
}

/* WangEditor 工具栏样式覆盖 */
.post-editor-toolbar .w-e-bar {
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
}

.post-editor-toolbar .w-e-bar-divider {
  display: none !important;
}

.post-editor-toolbar .w-e-bar-item {
  padding: 6px 8px !important;
}

.post-editor-toolbar .w-e-bar-item button {
  color: var(--text-primary) !important;
}

.post-editor-toolbar .w-e-bar-item:hover {
  background: var(--bg-tertiary) !important;
}

.post-editor-toolbar .w-e-bar-item.active {
  background: var(--accent-primary) !important;
}

/* WangEditor 编辑区域样式覆盖 */
.post-editor .w-e-text-container {
  background: transparent !important;
  min-height: 200px !important;
  border: none !important;
}

.post-editor .w-e-text-container [data-slate-editor] {
  padding: 16px !important;
  min-height: 200px !important;
  color: var(--text-primary) !important;
}

.post-editor .w-e-text-container [data-slate-editor] p {
  margin: 0 0 12px 0 !important;
  line-height: 1.6 !important;
}

.post-editor .w-e-text-container [data-slate-editor] img {
  max-width: 100% !important;
  border-radius: 8px !important;
  margin: 8px 0 !important;
}

.post-editor .w-e-text-container [data-slate-editor]::before {
  color: var(--text-muted) !important;
}

/* ============ 评论编辑器样式 ============ */

.comment-editor-container {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  flex: 1;
}

.comment-editor-toolbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.comment-editor {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-primary);
}

/* WangEditor 工具栏样式覆盖 */
.comment-editor-toolbar .w-e-bar {
  background: transparent !important;
  border: none !important;
  padding: 6px !important;
}

.comment-editor-toolbar .w-e-bar-divider {
  display: none !important;
}

.comment-editor-toolbar .w-e-bar-item {
  padding: 4px 6px !important;
}

.comment-editor-toolbar .w-e-bar-item button {
  color: var(--text-primary) !important;
}

.comment-editor-toolbar .w-e-bar-item:hover {
  background: var(--bg-tertiary) !important;
}

.comment-editor-toolbar .w-e-bar-item.active {
  background: var(--accent-primary) !important;
}

/* WangEditor 编辑区域样式覆盖 */
.comment-editor .w-e-text-container {
  background: transparent !important;
  min-height: 80px !important;
  border: none !important;
}

.comment-editor .w-e-text-container [data-slate-editor] {
  padding: 12px !important;
  min-height: 80px !important;
  color: var(--text-primary) !important;
}

.comment-editor .w-e-text-container [data-slate-editor] p {
  margin: 0 0 8px 0 !important;
  line-height: 1.6 !important;
}

.comment-editor .w-e-text-container [data-slate-editor] img {
  max-width: 100% !important;
  border-radius: 8px !important;
  margin: 4px 0 !important;
}

.comment-editor .w-e-text-container [data-slate-editor]::before {
  color: var(--text-muted) !important;
}

/* 评论输入框布局调整 */
.comment-input-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
/* 桌面端隐藏返回按钮 */
@media (min-width: 769px) {
  .chat-back-btn {
    display: none;
  }
}

/* ============ 代码高亮样式 ============ */

/* 代码块容器 */
.code-block {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid var(--border-color);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #2d2d2d;
  border-bottom: 1px solid var(--border-color);
}

.code-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.code-copy-btn {
  padding: 4px 12px;
  font-size: 12px;
  color: #10b981;
  background: transparent;
  border: 1px solid #10b981;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: #10b981;
  color: #fff;
}

.code-content {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #d4d4d4;
}

/* 行内代码 */
.inline-code {
  padding: 2px 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
}

/* Highlight.js 覆盖样式 */
.preview-body pre {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: #1e1e1e;
  overflow-x: auto;
}

.preview-body pre code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.preview-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* 帖子内容富文本样式 */
.preview-body {
  line-height: 1.8;
  color: var(--text-primary);
}

.preview-body p {
  margin: 0 0 16px 0;
}

.preview-body h1,
.preview-body h2,
.preview-body h3,
.preview-body h4,
.preview-body h5,
.preview-body h6 {
  margin: 24px 0 12px 0;
  color: var(--text-primary);
}

.preview-body h1 { font-size: 1.8em; }
.preview-body h2 { font-size: 1.5em; }
.preview-body h3 { font-size: 1.3em; }

.preview-body ul,
.preview-body ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.preview-body li {
  margin: 8px 0;
}

.preview-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.preview-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-body img:hover {
  transform: scale(1.02);
}

.preview-body a {
  color: var(--accent-primary);
  text-decoration: none;
}

.preview-body a:hover {
  text-decoration: underline;
}

.preview-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.preview-body th,
.preview-body td {
  padding: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.preview-body th {
  background: var(--bg-secondary);
  font-weight: 600;
}

.preview-body hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

/* WangEditor 特定样式 */
.preview-body strong,
.preview-body b {
  font-weight: 600;
}

.preview-body em,
.preview-body i {
  font-style: italic;
}

.preview-body u {
  text-decoration: underline;
}

.preview-body s,
.preview-body del {
  text-decoration: line-through;
}

.preview-body mark {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 4px;
  border-radius: 4px;
}

.preview-body sup {
  vertical-align: super;
  font-size: 0.75em;
}

.preview-body sub {
  vertical-align: sub;
  font-size: 0.75em;
}

/* 代码块样式 */
.preview-body pre {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: #1e1e1e;
  overflow-x: auto;
}

.preview-body pre code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  background: transparent;
  padding: 0;
}

.preview-body code:not(pre code) {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
}

/* 对齐方式 */
.preview-body p[style*="text-align: center"],
.preview-body div[style*="text-align: center"] {
  text-align: center;
}

.preview-body p[style*="text-align: right"],
.preview-body div[style*="text-align: right"] {
  text-align: right;
}

/* 字体大小 */
.preview-body span[style*="font-size"] {
  line-height: 1.6;
}

/* 行高 */
.preview-body p[style*="line-height"] {
  margin-bottom: 0.5em;
}

/* 文字颜色 */
.preview-body span[style*="color"] {
  text-shadow: none;
}

/* 背景色 */
.preview-body span[style*="background"] {
  padding: 2px 4px;
  border-radius: 4px;
}

/* 缩进 */
.preview-body p[style*="text-indent"] {
  text-indent: 2em;
}

/* ============ 帖子列表富文本预览样式 ============ */

.post-content-preview.rich-preview {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  line-height: 1.6;
}

.post-content-preview.rich-preview p {
  margin: 0 0 8px 0;
  display: inline;
}

.post-content-preview.rich-preview p::after {
  content: ' ';
}

.post-content-preview.rich-preview h1,
.post-content-preview.rich-preview h2,
.post-content-preview.rich-preview h3,
.post-content-preview.rich-preview h4 {
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: 600;
  display: inline;
}

.post-content-preview.rich-preview h1::after,
.post-content-preview.rich-preview h2::after,
.post-content-preview.rich-preview h3::after,
.post-content-preview.rich-preview h4::after {
  content: ' ';
}

.post-content-preview.rich-preview ul,
.post-content-preview.rich-preview ol {
  margin: 0;
  padding-left: 20px;
  display: inline;
}

.post-content-preview.rich-preview li {
  margin: 0;
  display: inline;
}

.post-content-preview.rich-preview li::after {
  content: ' ';
}

.post-content-preview.rich-preview code {
  padding: 2px 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
}

.post-content-preview.rich-preview pre {
  display: none; /* 列表预览隐藏代码块 */
}

.post-content-preview.rich-preview blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: inline;
  color: var(--text-secondary);
}

.post-content-preview.rich-preview img {
  display: none; /* 列表预览隐藏图片，由 post-images 显示 */
}

/* ==========================================
   左侧导航栏样式
   ========================================== */

/* 侧边栏 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
  box-shadow: 0px 0 10px rgb(14 14 14 / 66%);
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgb(48 64 88 / 22%);
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s;
}

.sidebar-header .logo:hover {
  background: var(--bg-tertiary);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--accent-emerald);
  /* box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3); */
}

.sidebar-btn-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgb(48 64 88 / 19%);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user {
  /* padding: 12px;
  background: var(--bg-tertiary); */
  border-radius: 12px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* 移动端顶部栏 */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 100%;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: var(--bg-tertiary);
}

.sidebar-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-logo .logo-icon {
  font-size: 1.5rem;
}

/* 主内容区偏移 */
.main {
  margin-left: 240px;
  /* min-height: 100vh; */
}

/* 响应式布局 */
@media (max-width: 1024px) {
	.comment-input-wrap {
		flex-direction: column !important;
	}
	
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-header {
    display: block;
  }
  
  .main {
    margin-left: 0;
    padding-top: 56px;
  }
}

/* 侧边栏遮罩 */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

@media (max-width: 1024px) {
  .sidebar-overlay.show {
    display: block;
	backdrop-filter: blur(10px);
  }
}

/* 侧边栏用户信息样式 */
.sidebar-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px 5px 12px;
    border-radius: 10px;
    transition: background 0.2s;
    background: #2f384761;
    border-radius: 10px;
    margin: 0px 0px 10px 0px;
}

.sidebar-user-header:hover {
  background: var(--bg-tertiary);
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 60px;
  object-fit: cover;
  background: #a54d4c;
}

.sidebar-user-info {
  flex: 1;
}

.sidebar-user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.sidebar-user-balance {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  margin-top: 2px;
}

.sidebar-user-actions {
  display: flex;
  gap: 8px;
  margin-top: 0px;
}

.sidebar-user-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: none;
  background: #2f384761;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.sidebar-user-btn .btn-icon {
  font-size: 1.2rem;
}

.sidebar-user-btn .btn-text {
  font-size: 0.75rem;
}

.sidebar-user-btn:hover {
  background: #344768;
  color: white;
}

.sidebar-user-btn.logout:hover {
  background: var(--accent-red);
}

.sidebar-notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 侧边栏通知按钮 */
.sidebar-notification-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-notification-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-notification-icon {
  font-size: 1.2rem;
}

.sidebar-notification-badge {
  position: absolute;
  right: 0px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 侧边栏登录/注册按钮横排布局 */
.sidebar-auth-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.sidebar-auth-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0px;
  background: #1a2332b3;
  border: 1px solid rgb(48 83 88 / 0%);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-auth-btn:hover {
  background: var(--bg-card);
  border: 1px solid rgb(66 73 123 / 57%);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.sidebar-auth-btn.primary {
  border-color: transparent;
  color: var(--text-secondary);
}

.sidebar-auth-btn.primary:hover {
  background: var(--bg-card);
  border: 1px solid rgb(66 73 123 / 57%);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.auth-btn-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.auth-btn-text {
  font-size: 0.85rem;
  font-weight: 500;
}
