/* ═══════════════════════════════════════════════════════
   wutuobangai.top — AI Tools Store V3
   白色简洁专业风格 · 信任背书 · 售后保障 · 代理招募
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-dim: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-bg: #eff6ff;
  --accent-border: #bfdbfe;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --orange: #ea580c;
  --orange-bg: #fff7ed;
  --red: #dc2626;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: 'Inter', -apple-system, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary); min-height: 100vh; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-align: center; }

/* ── 导航栏 ── */
.navbar {
  position: sticky; top: 0; width: 100%; height: 64px; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.navbar .logo { font-size: 18px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.navbar .logo img { height: 28px; width: auto; }
.navbar .logo .badge { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-right { display: flex; gap: 12px; align-items: center; }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; transition: all 0.2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-secondary { background: var(--text-primary); color: #fff; }
.btn-secondary:hover { background: #2d2d4e; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Hero ── */
.hero-section { padding: 80px 0 60px; text-align: center; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; background: var(--accent-bg); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 20px; border: 1px solid var(--accent-border); }
.hero-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text-primary); }
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.hero-stat-label { font-size: 13px; color: var(--text-dim); }

/* ── 信任背书6宫格 ── */
.trust-section { padding: 60px 0; background: var(--bg-secondary); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.trust-item { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: all 0.2s; }
.trust-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trust-icon { font-size: 32px; margin-bottom: 12px; }
.trust-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.trust-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── 分类Tab ── */
.cat-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.cat-tab { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); transition: all 0.2s; }
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── 工具卡片 ── */
.tools-section { padding: 60px 0 80px; background: var(--bg); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all 0.25s; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.tool-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card-header { display: flex; align-items: center; gap: 14px; }
.tool-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background: var(--bg-secondary); padding: 6px; }
.tool-logo-placeholder { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; background: var(--bg-secondary); }
.tool-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.tool-card .tag-line { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.tool-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.tool-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border-light); }
.tool-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-available { background: var(--green-bg); color: var(--green); }
.tag-limited { background: var(--orange-bg); color: var(--orange); }
.view-link { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.view-link:hover { gap: 8px; }

/* ── 价格标签 ── */
.price-tag { font-size: 18px; font-weight: 800; color: var(--accent); }
.tool-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── 价格锚点对比 ── */
.price-anchor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 8px 12px; background: var(--accent-bg); border-radius: 8px; border: 1px solid var(--accent-border); }
.anchor-official { color: var(--text-dim); }
.anchor-official s { text-decoration: line-through; }
.anchor-ours { color: var(--accent); font-weight: 700; }
.anchor-ours strong { font-size: 15px; }
.anchor-save { background: var(--green); color: #fff; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 12px; }

/* ── 交付标签 ── */
.delivery-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-light); }
.delivery-account { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.delivery-giftcard { background: #fdf4ff; color: #a855f7; border-color: #e9d5ff; }
.delivery-api { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.delivery-topup { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }

/* ── 不稳定标记 ── */
.unstable-badge { font-size: 14px; vertical-align: middle; }

/* ── 详情页价格行 ── */
.detail-price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--accent); }
.detail-delivery-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* ── 不稳定警告横幅 ── */
.warning-banner { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; margin-bottom: 24px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); }
.warning-banner .warning-icon { font-size: 20px; flex-shrink: 0; }
.warning-banner strong { font-size: 14px; color: #92400e; display: block; margin-bottom: 4px; }
.warning-banner p { font-size: 13px; color: #a16207; line-height: 1.6; margin: 0; }

/* ── 售后保障区 ── */
.guarantee-section { padding: 60px 0; background: var(--bg-secondary); }
.guarantee-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.guarantee-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 15px; color: var(--text-primary); line-height: 1.6; }
.guarantee-check { font-size: 18px; flex-shrink: 0; }

/* ── 详情页售后保障条 ── */
.guarantee-bar { text-align: center; padding: 16px 20px; background: var(--green-bg); border: 1px solid #bbf7d0; border-radius: var(--radius); font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 16px; }

/* ── 代理招募区 ── */
.agent-outer-section { padding: 80px 0; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }
.agent-section { color: #fff; }
.agent-section .section-title { color: #fff; }
.agent-desc { color: #c7d2fe; font-size: 16px; text-align: center; margin-bottom: 24px; }
.agent-bullets { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.agent-bullets li { padding: 12px 16px; background: rgba(255,255,255,0.1); border-radius: 8px; font-size: 14px; color: #e0e7ff; display: flex; align-items: center; gap: 8px; }
.agent-bullets li::before { content: '✓'; color: #34d399; font-weight: 700; }

/* ── 代理价格表 ── */
.agent-table-wrap { overflow-x: auto; border-radius: var(--radius); margin-bottom: 16px; }
.agent-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.agent-table thead th { text-align: left; padding: 12px 16px; color: #a5b4fc; font-weight: 600; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.agent-table tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #e0e7ff; }
.agent-table tbody tr:hover td { background: rgba(255,255,255,0.05); }
.agent-price { color: #fbbf24; font-weight: 700; }
.agent-profit { color: #34d399; font-weight: 700; }
.agent-footer { text-align: center; font-size: 13px; color: #a5b4fc; margin-bottom: 8px; }

/* ── 表单 ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; font-size: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { min-height: 100px; resize: vertical; }

/* ── 统计卡片（admin） ── */
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: all 0.2s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-card .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ── 表格 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; color: var(--text-secondary); font-weight: 600; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
tr:hover td { background: var(--bg-secondary); }

/* ── 状态标签 ── */
.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-confirmed { background: var(--accent-bg); color: var(--accent); }
.status-delivered { background: var(--green-bg); color: var(--green); }
.status-cancelled { background: #fef2f2; color: var(--red); }

/* ── Toast ── */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 10px; font-size: 14px; z-index: 99999; animation: toastIn 0.3s ease-out; max-width: 90vw; font-weight: 500; box-shadow: var(--shadow-lg); }
.toast-success { background: #fff; color: var(--green); border: 1px solid #bbf7d0; }
.toast-error { background: #fff; color: var(--red); border: 1px solid #fecaca; }
.toast-info { background: #fff; color: var(--accent); border: 1px solid var(--accent-border); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── 语言切换 ── */
.lang-switch { display: flex; gap: 2px; background: var(--bg-secondary); border-radius: 6px; padding: 2px; border: 1px solid var(--border); }
.lang-switch button { padding: 4px 10px; border: none; border-radius: 4px; font-size: 12px; color: var(--text-dim); background: transparent; transition: all 0.2s; font-weight: 500; }
.lang-switch button.active { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* ── 信息卡片 ── */
.info-card { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Landing Page ── */
.landing-body { background: var(--bg); }
.landing-hero { padding: 48px 0 32px; text-align: center; }
.landing-hero h1 { font-size: clamp(24px, 5vw, 36px); font-weight: 800; margin-bottom: 12px; }
.landing-hero p { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding-bottom: 32px; }
.landing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.landing-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.landing-card .landing-anchor { margin: 8px 0; }
.landing-cta-fixed { position: fixed; bottom: 0; left: 0; right: 0; padding: 16px 24px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); z-index: 999; text-align: center; }

/* ═══ 响应式 ═══ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  .tool-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { padding: 20px; }
  .trust-icon { font-size: 28px; }
  .agent-bullets { grid-template-columns: 1fr; }
  .hero-section { padding: 60px 0 40px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 24px; }
  .stat-card .value { font-size: 24px; }
  .detail-price { font-size: 24px; }
  .price-anchor { font-size: 12px; gap: 6px; padding: 6px 10px; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 6px 14px; font-size: 13px; }
  .section-title { font-size: 24px; }
  .guarantee-item { font-size: 14px; padding: 12px 16px; }
  /* 代理表手机端横向滚动 */
  .agent-table-wrap { -webkit-overflow-scrolling: touch; }
  .agent-table { min-width: 400px; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 22px; }
  .tool-card { padding: 20px; }
  .price-tag { font-size: 16px; }
}
