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

:root {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --tag-bg: #1e293b;
  --hover: #2d3a50;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== 顶栏 ===== */
.header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.header .subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 统计条 ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 主容器 ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== 分类区块 ===== */
.category {
  margin-bottom: 48px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.category-title .icon { font-size: 26px; }

.category-title .count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: auto;
}

/* ===== 产品卡片网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

/* ===== 产品卡片 ===== */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(56,189,248,0.08);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.product-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
}

/* ===== 域名列表区 ===== */
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-link {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

.domain-link:hover {
  background: rgba(56,189,248,0.12);
  color: var(--accent);
  border-color: rgba(56,189,248,0.3);
}

/* ===== 快捷导航 ===== */
.quick-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-nav a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.quick-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56,189,248,0.08);
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 404 页面 ===== */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.page-404 .code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-404 h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.page-404 .btn-home {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.page-404 .btn-home:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56,189,248,0.3);
}

.page-404 .links-box {
  margin-top: 40px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-404 .links-box h3 {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-404 .links-box a {
  display: inline-block;
  margin: 4px 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.page-404 .links-box a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar { gap: 20px; }
  .stat-num { font-size: 24px; }
}
