/**
 * AI工具箱 - 主样式表
 * 包含全局样式、首页、工具导航、定价、登录、用户中心
 * Coze暗色主题
 */

/* ===================== CSS变量 ===================== */
:root {
  --bg-primary: #0a0a0f;
  --bg-sidebar: #111118;
  --bg-card: #16162a;
  --bg-card-hover: #1e1e3a;
  --bg-input: #1a1a2e;
  --bg-modal: #12122a;
  --brand-primary: #6366f1;
  --brand-hover: #818cf8;
  --brand-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-default: #1e1e3a;
  --border-hover: #2e2e52;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-modal: 0 8px 40px rgba(0,0,0,0.5);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ===================== 全局重置 ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ===================== 滚动条 ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ===================== 布局 ===================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.main-content { padding-top: 60px; min-height: calc(100vh - 60px); }

/* ===================== 导航栏 ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 100%; gap: 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-brand i {
  background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 22px;
}
.navbar-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; transition: all var(--transition-fast); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-card); }
.nav-link.active { color: var(--brand-primary); }

.navbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-credits-badge {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: var(--bg-card); border-radius: 20px; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all var(--transition-fast);
}
.user-credits-badge i { color: var(--color-warning); }
.user-credits-badge:hover { background: var(--bg-card-hover); }

.user-menu-wrapper { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--text-primary); cursor: pointer;
  font-size: 14px; transition: all var(--transition-fast);
}
.user-menu-btn:hover { border-color: var(--border-hover); }
.user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-btn .fa-chevron-down { font-size: 10px; color: var(--text-muted); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 200px;
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-modal);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition-fast); z-index: 100;
}
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border-default); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: var(--text-secondary); font-size: 14px; transition: all var(--transition-fast);
}
.user-dropdown a:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.dropdown-divider { height: 1px; background: var(--border-default); margin: 4px 0; }

/* 移动端菜单 */
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--text-primary);
  font-size: 20px; cursor: pointer; padding: 8px;
}
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1100;
  opacity: 0; visibility: hidden; transition: all var(--transition-normal);
}
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
  background: var(--bg-sidebar); z-index: 1200; transition: right var(--transition-normal);
  display: flex; flex-direction: column;
}
.mobile-menu.show { right: 0; }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border-default);
}
.mobile-menu-header span { font-weight: 700; font-size: 18px; }
.mobile-menu-header button { background: none; border: none; color: var(--text-primary); font-size: 20px; cursor: pointer; }
.mobile-menu-body { padding: 8px; overflow-y: auto; flex: 1; }
.mobile-menu-body a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.mobile-menu-body a:hover { color: var(--text-primary); background: var(--bg-card); }
.mobile-menu-divider { height: 1px; background: var(--border-default); margin: 8px 16px; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none; line-height: 1.4; white-space: nowrap;
}
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--brand-gradient); color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.4); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-outline:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-card); }
.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--color-error); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== 卡片 ===================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: 12px; padding: 24px; transition: all var(--transition-normal);
}
.card:hover { border-color: var(--border-hover); }
.card-featured:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.15); }

/* ===================== 表单 ===================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; transition: border-color var(--transition-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--brand-primary); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--color-error); margin-top: 6px; }

/* ===================== 徽标标签 ===================== */
.badge {
  display: inline-flex; align-items: center; padding: 2px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.badge-primary { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--color-success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.badge-error { background: rgba(239,68,68,0.15); color: var(--color-error); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--color-info); }
.badge-muted { background: rgba(148,163,184,0.15); color: var(--text-muted); }

/* ===================== 表格 ===================== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-default); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-sidebar); border-bottom: 1px solid var(--border-default);
}
.data-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-default);
  font-size: 14px; color: var(--text-secondary);
}
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }

/* ===================== 分页 ===================== */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin-top: 24px; }
.page-btn {
  padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer;
  font-size: 14px; transition: all var(--transition-fast);
}
.page-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.page-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* ===================== Toast通知 ===================== */
.toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-md); font-size: 14px;
  box-shadow: var(--shadow-card); animation: toastIn 0.3s ease;
  max-width: 360px; display: flex; align-items: center; gap: 10px;
}
.toast-success { background: #0d3320; border: 1px solid rgba(34,197,94,0.3); color: var(--color-success); }
.toast-error { background: #3b1111; border: 1px solid rgba(239,68,68,0.3); color: var(--color-error); }
.toast-warning { background: #3b2e06; border: 1px solid rgba(245,158,11,0.3); color: var(--color-warning); }
.toast-info { background: #0c1f3d; border: 1px solid rgba(59,130,246,0.3); color: var(--color-info); }

@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===================== Hero区 ===================== */
.hero {
  position: relative; padding: 100px 24px 80px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #16162a 50%, #1a0a2e 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%; animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  border-radius: 50%; animation: heroGlow 6s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow { from { transform: scale(1); } to { transform: scale(1.2); } }

.hero-inner {
  max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 60px;
  position: relative; z-index: 1;
}
.hero-content { flex: 1; }
.hero-title {
  font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; max-width: 500px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-decoration {
  flex: 0 0 400px; height: 350px; position: relative;
}
.hero-decoration .orb {
  position: absolute; border-radius: 50%; animation: orbFloat 6s ease-in-out infinite;
}
.hero-decoration .orb-1 { width: 200px; height: 200px; top: 20px; left: 40px; background: radial-gradient(circle, rgba(99,102,241,0.3), transparent); }
.hero-decoration .orb-2 { width: 150px; height: 150px; top: 80px; right: 20px; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent); animation-delay: -2s; }
.hero-decoration .orb-3 { width: 100px; height: 100px; bottom: 20px; left: 80px; background: radial-gradient(circle, rgba(59,130,246,0.2), transparent); animation-delay: -4s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ===================== 统计条 ===================== */
.stats-bar {
  display: flex; justify-content: center; gap: 60px; padding: 40px 24px;
  border-bottom: 1px solid var(--border-default);
}
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===================== 工具卡片 ===================== */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-secondary); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1400px; margin: 0 auto; }
.tool-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px;
  cursor: pointer; transition: all var(--transition-normal);
}
.tool-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.1); }
.tool-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.tool-icon-brand { background: var(--brand-gradient); color: #fff; }
.tool-icon-blue { background: rgba(59,130,246,0.15); color: var(--color-info); }
.tool-icon-green { background: rgba(34,197,94,0.15); color: var(--color-success); }
.tool-icon-orange { background: rgba(245,158,11,0.15); color: var(--color-warning); }
.tool-info { flex: 1; min-width: 0; }
.tool-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tool-desc { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tool-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(99,102,241,0.1); color: var(--brand-primary); }
.tool-tag-free { background: rgba(34,197,94,0.1); color: var(--color-success); }
.tool-tag-paid { background: rgba(245,158,11,0.1); color: var(--color-warning); }
.tool-arrow { color: var(--text-muted); font-size: 14px; margin-top: 4px; transition: all var(--transition-fast); }
.tool-card:hover .tool-arrow { color: var(--brand-primary); transform: translateX(4px); }

/* ===================== 定价卡片 ===================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 16px;
  padding: 32px 28px; text-align: center; transition: all var(--transition-normal);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pricing-card.recommended { border-color: var(--brand-primary); box-shadow: 0 0 40px rgba(99,102,241,0.15); }
.pricing-card.recommended::before {
  content: '推荐'; position: absolute; top: -1px; right: 24px;
  padding: 4px 16px; background: var(--brand-gradient); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.pricing-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; margin: 16px 0; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li i { color: var(--color-success); font-size: 12px; }

/* ===================== 登录页 ===================== */
.login-page { display: flex; min-height: 100vh; }
.login-left {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16162a, #1a0a2e); padding: 40px;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent);
}
.login-brand { position: relative; z-index: 1; text-align: center; }
.login-brand h1 { font-size: 36px; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.login-brand p { color: var(--text-secondary); font-size: 16px; }
.login-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--bg-primary);
}
.login-form-wrapper { width: 100%; max-width: 420px; }
.login-form-wrapper h2 { font-size: 28px; margin-bottom: 8px; }
.login-form-wrapper .subtitle { color: var(--text-secondary); margin-bottom: 32px; }
.login-tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--border-default); }
.login-tab {
  flex: 1; padding: 12px; text-align: center; font-size: 15px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--transition-fast); background: none; border-top: none; border-left: none; border-right: none;
}
.login-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.form-check input[type="checkbox"] { accent-color: var(--brand-primary); }

/* ===================== 用户中心布局 ===================== */
.user-layout { display: flex; min-height: calc(100vh - 60px); }
.user-sidebar {
  width: 260px; flex-shrink: 0; background: var(--bg-sidebar);
  border-right: 1px solid var(--border-default); padding: 24px 0;
  position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto;
}
.user-sidebar-header { padding: 0 20px 24px; border-bottom: 1px solid var(--border-default); margin-bottom: 8px; text-align: center; }
.user-avatar-lg { font-size: 48px; color: var(--brand-primary); margin-bottom: 12px; }
.user-avatar-lg img { width: 64px; height: 64px; border-radius: 50%; }
.user-info h3 { font-size: 16px; margin-bottom: 6px; }
.level-tag { font-size: 12px; padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.user-credits-display { margin-top: 16px; padding: 12px; background: var(--bg-card); border-radius: var(--radius-md); }
.user-credits-display i { color: var(--color-warning); margin-right: 4px; }
.credits-amount { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.credits-label { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.user-sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  color: var(--text-secondary); font-size: 14px; transition: all var(--transition-fast);
}
.user-sidebar-nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.user-sidebar-nav a.active { color: var(--brand-primary); background: rgba(99,102,241,0.08); border-right: 3px solid var(--brand-primary); }
.user-main { flex: 1; padding: 32px; min-width: 0; }

/* ===================== 用户仪表盘卡片 ===================== */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px;
  padding: 20px; transition: all var(--transition-normal);
}
.dash-card-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dash-card-value { font-size: 28px; font-weight: 800; }
.dash-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===================== 工具导航页筛选 ===================== */
.tools-page { display: flex; max-width: 1400px; margin: 0 auto; padding: 32px 24px; gap: 24px; }
.tools-filter { width: 220px; flex-shrink: 0; position: sticky; top: 80px; }
.tools-filter h3 { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-list { list-style: none; }
.filter-list li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 14px;
  transition: all var(--transition-fast);
}
.filter-list li a:hover, .filter-list li a.active { color: var(--text-primary); background: var(--bg-card); }
.filter-list li a.active { color: var(--brand-primary); }
.tools-main { flex: 1; min-width: 0; }
.tools-search {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.tools-search input {
  flex: 1; padding: 10px 16px 10px 40px; background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 14px; outline: none;
}
.tools-search input:focus { border-color: var(--brand-primary); }

/* ===================== FAQ手风琴 ===================== */
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 500;
  color: var(--text-primary); background: none; border: none; width: 100%; text-align: left;
}
.faq-question i { color: var(--text-muted); transition: transform var(--transition-fast); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 0 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.8; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--bg-sidebar); border-top: 1px solid var(--border-default); margin-top: 80px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 60px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-brand i { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border-default); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.icp { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===================== 充值选择 ===================== */
.recharge-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.recharge-card {
  background: var(--bg-card); border: 2px solid var(--border-default); border-radius: 12px;
  padding: 20px 16px; text-align: center; cursor: pointer; transition: all var(--transition-fast);
}
.recharge-card:hover { border-color: var(--border-hover); }
.recharge-card.selected { border-color: var(--brand-primary); background: rgba(99,102,241,0.08); }
.recharge-card .amount { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.recharge-card .credits { font-size: 14px; color: var(--brand-primary); }
.recharge-card .bonus { font-size: 12px; color: var(--color-success); margin-top: 4px; }
.recharge-card.recommended { border-color: var(--brand-primary); }

/* ===================== 支付方式 ===================== */
.pay-methods { display: flex; gap: 12px; margin-bottom: 24px; }
.pay-method {
  flex: 1; padding: 16px; background: var(--bg-card); border: 2px solid var(--border-default);
  border-radius: var(--radius-md); cursor: pointer; text-align: center; transition: all var(--transition-fast);
}
.pay-method:hover { border-color: var(--border-hover); }
.pay-method.selected { border-color: var(--brand-primary); }
.pay-method i { font-size: 24px; margin-bottom: 8px; display: block; }
.pay-method span { font-size: 14px; }
.pay-method .fa-alipay { color: #1677ff; }
.pay-method .fa-weixin { color: #07c160; }
.pay-method .fa-money-bill-transfer { color: var(--color-warning); }

/* ===================== 模态框 ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition-normal);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-modal); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 32px; max-width: 500px; width: 90%;
  box-shadow: var(--shadow-modal); transform: scale(0.95); transition: transform var(--transition-normal);
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }

/* ===================== 空状态 ===================== */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 15px; }

/* ===================== 加载 ===================== */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border-default);
  border-top-color: var(--brand-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== PWA更新提示 ===================== */
.pwa-update-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--bg-card); border: 1px solid var(--brand-primary);
  border-radius: var(--radius-md); padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 40px rgba(99,102,241,0.3); z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pwa-update-toast.show { transform: translateX(-50%) translateY(0); }
.pwa-update-toast p { font-size: 14px; color: var(--text-primary); margin: 0; }
.pwa-update-toast .btn { padding: 6px 20px; font-size: 13px; }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-decoration { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tools-filter { display: none; }
  .user-sidebar { width: 220px; }
  .navbar-links { display: none; }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 24px; }
  .section-title { font-size: 24px; }
  .tools-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .user-layout { flex-direction: column; }
  .user-sidebar { width: 100%; position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border-default); }
  .user-sidebar-header { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 20px; }
  .user-avatar-lg { font-size: 32px; margin-bottom: 0; }
  .user-credits-display { margin-top: 0; }
  .user-sidebar-nav { display: flex; overflow-x: auto; padding: 0 12px; }
  .user-sidebar-nav a { padding: 10px 14px; white-space: nowrap; font-size: 13px; }
  .user-main { padding: 20px; }
  .login-page { flex-direction: column; }
  .login-left { padding: 40px 24px; min-height: auto; }
  .login-right { padding: 24px; }
  .recharge-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .pay-methods { flex-direction: column; }
  .navbar-actions .btn { display: none; }
  .pwa-update-toast { left: 16px; right: 16px; transform: translateY(120px); }
  .pwa-update-toast.show { transform: translateY(0); }
}
@media (max-width: 480px) {
  .hero { padding: 60px 16px 50px; }
  .hero-title { font-size: 28px; }
  .section { padding: 48px 16px; }
  .recharge-cards { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
}
