/* ============================================
   三角洲行动配置站 - 主样式表
   Delta Force Config Hub - Main Stylesheet
   设计风格: 军事科幻 / Military Sci-Fi
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
  /* 主色调 - 军事暗绿与科技蓝 */
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-card: #151d28;
  --bg-card-hover: #1a2433;
  --bg-input: #0d1219;

  --accent-primary: #00e5a0;      /* 科技绿 */
  --accent-secondary: #00b8d4;     /* 科技蓝 */
  --accent-warning: #ff6b35;       /* 警告橙 */
  --accent-danger: #ff3860;        /* 危险红 */
  --accent-gold: #ffd700;          /* 金色(排名/置顶) */

  --text-primary: #e8eaed;
  --text-secondary: #8b949e;
  --text-muted: #545d68;

  --border-color: #1e2a3a;
  --border-glow: rgba(0, 229, 160, 0.3);

  --glow-green: 0 0 20px rgba(0, 229, 160, 0.3);
  --glow-blue: 0 0 20px rgba(0, 184, 212, 0.3);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 229, 160, 0.15);

  --font-main: 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-mono: 'Share Tech Mono', 'Fira Code', monospace;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---- 基础重置 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 扫描线效果 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 160, 0.01) 2px,
    rgba(0, 229, 160, 0.01) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-secondary);
  text-shadow: var(--glow-green);
}

img { max-width: 100%; height: auto; }

/* ---- 顶部导航 ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,14,20,0.98) 0%, rgba(10,14,20,0.92) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-logo .logo-icon::before {
  content: '◆';
  font-size: 28px;
  color: var(--accent-primary);
  text-shadow: var(--glow-green);
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  background: rgba(0, 229, 160, 0.08);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: var(--glow-green);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-user .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
}

/* ---- 用户下拉菜单 ---- */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-msg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-decoration: none;
}
.nav-msg-icon:hover {
  color: var(--accent-primary);
  background: rgba(0,229,160,0.08);
}
.nav-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.nav-avatar-btn:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-green);
}
.nav-avatar-btn img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: cover;
  border-radius: 50%;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1100;
}
.nav-dropdown.active { display: block; }
.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown button:hover {
  color: var(--accent-primary);
  background: rgba(0,229,160,0.06);
}
.nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}
.nav-dropdown .nav-dropdown-logout {
  color: var(--accent-danger);
}
.nav-dropdown .nav-dropdown-logout:hover {
  color: var(--accent-danger);
  background: rgba(255,56,96,0.06);
}

/* ---- 汉堡菜单 ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ---- 主内容区 ---- */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* ---- Hero 区域 ---- */
.hero {
  position: relative;
  padding: 80px 40px;
  margin-bottom: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,229,160,0.05) 0%, rgba(0,184,212,0.05) 50%, rgba(0,229,160,0.02) 100%);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,229,160,0.04) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2%, 2%); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

/* 统计栏 */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  text-shadow: var(--glow-green);
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- 通用卡片 ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
}
.card:hover {
  border-color: rgba(0, 229, 160, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}
.card:hover::before {
  opacity: 1;
}

.card-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-body {
  padding: 0 24px 20px;
}
.card-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- 配置卡片网格 ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ---- 卡片内缩略图 ---- */
.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}
.card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.card-thumb-placeholder span {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.3;
}

/* ---- 分类标签 ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.tag-sensitivity { background: rgba(0,229,160,0.15); color: var(--accent-primary); }
.tag-graphics { background: rgba(0,184,212,0.15); color: var(--accent-secondary); }
.tag-audio { background: rgba(255,107,53,0.15); color: var(--accent-warning); }
.tag-control { background: rgba(255,56,96,0.15); color: var(--accent-danger); }
.tag-keybind { background: rgba(255,215,0,0.15); color: var(--accent-gold); }
.tag-other { background: rgba(139,148,158,0.15); color: var(--text-secondary); }
.tag-weapon { background: rgba(0,229,160,0.15); color: var(--accent-primary); }
.tag-pinned { background: rgba(255,215,0,0.15); color: var(--accent-gold); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
}
.btn-primary:hover {
  box-shadow: var(--glow-green);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}
.btn-secondary:hover {
  background: rgba(0,229,160,0.1);
}
.btn-danger {
  background: var(--accent-danger);
  color: white;
}
.btn-danger:hover {
  box-shadow: 0 0 20px rgba(255,56,96,0.3);
}
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* ---- 输入框 ---- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.1);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-select {
  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 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ---- 模态框 ---- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ---- 分页 ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.page-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ---- Toast 提示 ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-card);
}
.toast.error { border-left-color: var(--accent-danger); }
.toast.warning { border-left-color: var(--accent-warning); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* ---- 用户头像 ---- */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}
.user-avatar-sm { width: 28px; height: 28px; }
.user-avatar-lg { width: 80px; height: 80px; }
.user-avatar-xl { width: 120px; height: 120px; border-width: 3px; border-color: var(--accent-primary); }

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-info .username {
  font-weight: 600;
  font-size: 0.9rem;
}
.user-info .user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- 评论区 ---- */
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.comment:last-child { border-bottom: none; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-left: 48px;
}
.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  margin-left: 48px;
}
.comment-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-fast);
}
.comment-actions button:hover { color: var(--accent-primary); }

/* ---- 改枪码显示区 ---- */
.code-block {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--accent-primary);
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}
.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: var(--font-main);
}

/* ---- 文件上传区 ---- */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(0,229,160,0.03);
}
.upload-zone .upload-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.upload-zone .upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.upload-preview .preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.upload-preview .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview .preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(255,56,96,0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- 搜索栏 ---- */
.search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}
.search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}
.search-bar input:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-green);
}
.search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---- 标签筛选栏 ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* ---- 登录/注册页 ---- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.auth-card h2 {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

/* ---- 侧边栏 ---- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.sidebar .widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
}

/* ---- 个人主页 ---- */
.profile-header {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 120px;
  background: linear-gradient(135deg, rgba(0,229,160,0.1), rgba(0,184,212,0.1));
}
.profile-header-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.profile-stats-bar {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.profile-stats-bar .p-stat {
  text-align: center;
}
.profile-stats-bar .p-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}
.profile-stats-bar .p-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- 后台管理 ---- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
}
.admin-nav {
  list-style: none;
}
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
  color: var(--accent-primary);
  background: rgba(0,229,160,0.05);
  border-left-color: var(--accent-primary);
}
.admin-content {
  padding: 32px;
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.data-table tr:hover td {
  background: rgba(0,229,160,0.02);
}

/* 统计卡片 */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-card .stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card .stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}
.stat-card .stat-card-change {
  font-size: 0.8rem;
  margin-top: 4px;
}
.stat-card .stat-card-change.positive { color: var(--accent-primary); }
.stat-card .stat-card-change.negative { color: var(--accent-danger); }

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ---- 加载动画 ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- 页脚 ---- */
.footer {
  text-align: center;
  padding: 32px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer a { color: var(--accent-primary); }

/* ---- 响应式设计 ---- */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .navbar {
    padding: 0 16px;
  }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 12px;
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
  }

  /* 移动端下拉菜单 */
  .nav-dropdown {
    position: static;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-bottom: none;
    display: none;
  }
  .nav-dropdown.active { display: block; }

  .hero {
    padding: 40px 20px;
  }
  .hero h1 { font-size: 2rem; letter-spacing: 2px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-num { font-size: 1.5rem; }

  .main-container { padding: 16px; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-stats-bar {
    justify-content: center;
  }

  .auth-card { padding: 24px; }

  .modal { width: 95%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .card-grid { gap: 16px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 5px 12px; font-size: 0.8rem; }
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- 选中样式 ---- */
::selection {
  background: rgba(0,229,160,0.3);
  color: var(--text-primary);
}
