/* ============================================
 * 租号怪 - 全站样式
 * style.css
 * ============================================ */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a2e;
  background: #f5f6fa;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- CSS Variables ---- */
:root {
  --primary: #5B4FE9;
  --primary-dark: #4338CA;
  --primary-light: #EDE9FE;
  --accent: #FF6B35;
  --accent-dark: #E55A2B;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --dark: #1a1a2e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-svg { width: 36px; height: 36px; border-radius: var(--radius-md); }
.logo-text {
  font-size: 17px; font-weight: 800; color: var(--dark);
  letter-spacing: 0; white-space: nowrap; line-height: 1.2;
}
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500; color: var(--gray-600);
  transition: all 0.2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: white; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); background: var(--gray-100);
  transition: all 0.2s; position: relative;
}
.header-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-wrap { display: flex; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: white;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.header-user {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--gray-700); font-weight: 500;
}
.header-user svg { color: var(--primary); }
.header-btn-text {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  padding: 8px 12px; border-radius: var(--radius-md); transition: all 0.2s;
}
.header-btn-text:hover { color: var(--primary); }
.header-btn-primary {
  padding: 8px 20px; border-radius: var(--radius-md);
  background: var(--primary); color: white;
  font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.header-btn-primary:hover { background: var(--primary-dark); }

/* ---- Container ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero Section ---- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #5B4FE9 100%);
  color: white; padding: 64px 0 80px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -5%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,79,233,0.2) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: 42px; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; max-width: 640px;
}
.hero h1 .highlight { color: #FBBF24; }
.hero p {
  font-size: 17px; color: rgba(255,255,255,0.8);
  max-width: 560px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 16px; font-weight: 600; transition: all 0.25s;
}
.hero-btn-primary { background: var(--accent); color: white; }
.hero-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.4); }
.hero-btn-outline { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); }
.hero-btn-outline:hover { background: rgba(255,255,255,0.2); }
.hero-stats { display: flex; gap: 48px; margin-top: 48px; }
.hero-stat-num { font-size: 32px; font-weight: 800; color: #FBBF24; }
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ---- Section ---- */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-header p { font-size: 15px; color: var(--gray-500); }
.section-header .section-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; color: var(--primary); font-size: 14px; font-weight: 500;
}

/* ---- Category Bar ---- */
.category-bar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.category-item {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 24px;
  background: white; border: 1px solid var(--gray-200);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all 0.2s;
}
.category-item:hover { border-color: var(--primary); color: var(--primary); }
.category-item.active { background: var(--primary); color: white; border-color: var(--primary); }
.category-item svg { width: 16px; height: 16px; }

/* ---- Product Grid ---- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: all 0.3s; border: 1px solid var(--gray-200);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-discount {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: white;
  padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.product-info { padding: 16px; }
.product-merchant { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.product-title { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.product-meta { display: flex; gap: 12px; font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.product-tag {
  padding: 3px 8px; border-radius: 4px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 500;
}
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.product-price { display: flex; align-items: baseline; gap: 2px; color: var(--accent); }
.price-symbol { font-size: 13px; font-weight: 600; }
.price-num { font-size: 22px; font-weight: 800; }
.price-unit { font-size: 12px; color: var(--gray-400); }
.product-original { font-size: 13px; color: var(--gray-400); text-decoration: line-through; }
.product-stats { display: flex; gap: 12px; font-size: 12px; color: var(--gray-500); padding-top: 10px; border-top: 1px solid var(--gray-100); }
.product-stats svg { width: 14px; height: 14px; color: #FBBF24; }

/* ---- Info Cards ---- */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.info-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: all 0.3s; border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card-img { aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100); }
.info-card-img img { width: 100%; height: 100%; object-fit: cover; }
.info-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.info-card-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.info-cat-tag {
  padding: 3px 8px; border-radius: 4px;
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 500;
}
.info-game-tag {
  padding: 3px 8px; border-radius: 4px;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 12px; font-weight: 500;
}
.info-card-title {
  font-size: 16px; font-weight: 600; color: var(--dark);
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.info-card-desc {
  font-size: 14px; color: var(--gray-500); line-height: 1.5;
  margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.info-card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.info-card-meta span { display: flex; align-items: center; gap: 4px; min-width: 0; }
.info-card-meta .info-company { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.info-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.info-price { font-size: 15px; font-weight: 700; color: var(--accent); }
.info-date { font-size: 12px; color: var(--gray-400); }

/* ---- Features Section ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; background: var(--primary-light); color: var(--primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ---- Footer ---- */
.site-footer { background: #1a1a2e; color: var(--gray-400); padding: 48px 0 0; margin-top: auto; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo span { font-size: 16px; font-weight: 800; color: white; white-space: nowrap; line-height: 1.3; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: white; white-space: nowrap; line-height: 1.3; }
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a, .footer-col p {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-400); margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-col svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-icp a { color: var(--gray-400); }
.footer-icp a:hover { color: white; }

/* ---- Auth Pages ---- */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 100%); }
.auth-card { width: 100%; max-width: 440px; background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }
.auth-card .auth-title { font-size: 24px; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 8px; }
.auth-card .auth-subtitle { font-size: 14px; color: var(--gray-500); text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-700); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-md); font-size: 15px; color: var(--dark);
  transition: all 0.2s; background: white;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,79,233,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 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
.form-checkbox { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-checkbox-label { font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.form-checkbox-label a { color: var(--primary); font-weight: 500; text-decoration: underline; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  background: var(--primary); color: white;
  font-size: 16px; font-weight: 600; transition: all 0.2s;
}
.form-btn:hover { background: var(--primary-dark); }
.form-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 500; }

/* ---- Product Detail ---- */
.detail-page { padding: 32px 0 64px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; }
.detail-main { display: grid; grid-template-columns: 1fr 400px; gap: 32px; }
.detail-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); aspect-ratio: 4/3; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { background: white; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--gray-200); }
.detail-info h1 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.detail-merchant-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-merchant-name { font-size: 14px; color: var(--primary); font-weight: 600; }
.detail-merchant-rating { font-size: 13px; color: var(--gray-500); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-tag { padding: 4px 10px; border-radius: 6px; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 500; }
.detail-price-box { background: var(--gray-50); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.detail-price { display: flex; align-items: baseline; gap: 8px; }
.detail-price .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.detail-price .sym { font-size: 16px; color: var(--accent); font-weight: 600; }
.detail-price .unit { font-size: 14px; color: var(--gray-400); }
.detail-original { font-size: 14px; color: var(--gray-400); text-decoration: line-through; }
.detail-meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-meta-item { font-size: 14px; color: var(--gray-600); }
.detail-meta-item .label { color: var(--gray-400); }
.detail-actions { display: flex; gap: 12px; }
.detail-btn-cart { flex: 1; padding: 14px; border-radius: var(--radius-md); background: var(--accent); color: white; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.detail-btn-cart:hover { background: var(--accent-dark); }
.detail-btn-buy { flex: 1; padding: 14px; border-radius: var(--radius-md); background: var(--primary); color: white; font-size: 15px; font-weight: 600; transition: all 0.2s; }
.detail-btn-buy:hover { background: var(--primary-dark); }
.detail-content { background: white; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--gray-200); margin-top: 24px; }
.detail-content h2 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.detail-desc { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; }
.detail-list { list-style: none; }
.detail-list li { padding: 10px 0; font-size: 14px; color: var(--gray-600); border-bottom: 1px dashed var(--gray-100); display: flex; align-items: start; gap: 8px; }
.detail-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 8px; flex-shrink: 0; }

/* ---- Info Detail ---- */
.info-detail-page { padding: 32px 0 64px; }
.info-detail-main { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.info-detail-content { background: white; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--gray-200); }
.info-detail-content h1 { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 16px; line-height: 1.4; }
.info-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--gray-500); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.info-detail-meta span { display: flex; align-items: center; gap: 4px; }
.info-detail-meta svg { width: 16px; height: 16px; }
.info-detail-summary { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; padding: 16px; background: var(--gray-50); border-radius: var(--radius-md); }
.info-detail-section { margin-bottom: 24px; }
.info-detail-section h3 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.info-detail-list { list-style: none; }
.info-detail-list li { padding: 10px 0; font-size: 14px; color: var(--gray-600); border-bottom: 1px dashed var(--gray-100); }
.info-detail-contact {
  background: var(--primary-light); border-radius: var(--radius-md);
  padding: 20px; text-align: center; margin-top: 24px;
}
.info-detail-contact .phone-num { font-size: 24px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.info-detail-contact .login-tip { font-size: 13px; color: var(--gray-500); }
.info-detail-contact .login-link { display: inline-block; margin-top: 12px; padding: 8px 24px; background: var(--primary); color: white; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }
.info-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-sidebar-card { background: white; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--gray-200); }
.info-sidebar-card h3 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.info-sidebar-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.info-sidebar-row:last-child { border: none; }
.info-sidebar-row .label { color: var(--gray-400); }
.info-sidebar-row .value { color: var(--gray-700); font-weight: 500; }

/* ---- Join Page ---- */
.join-page { padding: 48px 0 64px; }
.join-hero { text-align: center; margin-bottom: 48px; }
.join-hero h1 { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.join-hero p { font-size: 16px; color: var(--gray-500); }
.join-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 48px; }
.join-step { text-align: center; }
.join-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.join-step h3 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.join-step p { font-size: 14px; color: var(--gray-500); }
.join-form { background: white; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-200); max-width: 640px; margin: 0 auto; }
.join-form h2 { font-size: 20px; font-weight: 600; color: var(--dark); margin-bottom: 24px; }

/* ---- About Page ---- */
.about-page { padding: 48px 0 64px; }
.about-hero { text-align: center; margin-bottom: 48px; }
.about-hero h1 { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.about-hero p { font-size: 16px; color: var(--gray-500); max-width: 640px; margin: 0 auto; }
.about-section { background: white; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-200); margin-bottom: 24px; }
.about-section h2 { font-size: 20px; font-weight: 600; color: var(--dark); margin-bottom: 16px; }
.about-section p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 12px; }
.about-info-table { width: 100%; border-collapse: collapse; }
.about-info-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.about-info-table td:first-child { color: var(--gray-400); width: 160px; }
.about-info-table td:last-child { color: var(--gray-700); font-weight: 500; }

/* ---- Cart Page ---- */
.cart-page { padding: 32px 0 64px; }
.cart-page h1 { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: white; border-radius: var(--radius-md); padding: 16px;
  border: 1px solid var(--gray-200);
}
.cart-item-img { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--gray-100); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 15px; font-weight: 500; color: var(--dark); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--accent); font-weight: 600; }
.cart-item-remove { color: var(--gray-400); padding: 8px; border-radius: var(--radius-sm); transition: all 0.2s; }
.cart-item-remove:hover { color: var(--danger); background: #fef2f2; }
.cart-empty { text-align: center; padding: 64px 24px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.cart-empty p { font-size: 16px; color: var(--gray-500); margin-bottom: 16px; }
.cart-empty a { display: inline-block; padding: 12px 32px; background: var(--primary); color: white; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; }

/* ---- Admin Page ---- */
.admin-page { padding: 32px 0 64px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 24px; font-weight: 700; color: var(--dark); }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: white; border-radius: var(--radius-md); padding: 4px; border: 1px solid var(--gray-200); width: fit-content; }
.admin-tab { padding: 8px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.admin-tab.active { background: var(--primary); color: white; }
.admin-table { width: 100%; background: white; border-radius: var(--radius-lg); overflow-x: auto; border: 1px solid var(--gray-200); }
.admin-table table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.admin-table td { padding: 12px 16px; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.admin-table tr:last-child td { border: none; }
.admin-status { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.admin-status-pending { background: #FEF3C7; color: #D97706; }
.admin-status-approved { background: #D1FAE5; color: #059669; }
.admin-status-rejected { background: #FEE2E2; color: #DC2626; }
.admin-action-btn { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-right: 6px; transition: all 0.2s; }
.admin-approve { background: var(--success); color: white; }
.admin-approve:hover { background: #059669; }
.admin-reject { background: var(--danger); color: white; }
.admin-reject:hover { background: #DC2626; }
.admin-login { max-width: 400px; margin: 80px auto; background: white; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }

/* ---- 后台：发布主体记录 ---- */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.subject-card { background: white; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--gray-200); }
.subject-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.subject-type { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.subject-type-pub { background: #D1FAE5; color: #059669; }
.subject-name { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.subject-rows { border-top: 1px solid var(--gray-100); padding-top: 8px; margin-bottom: 14px; }
.subject-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--gray-100); }
.subject-row:last-child { border-bottom: none; }
.subject-row .label { color: var(--gray-400); flex-shrink: 0; }
.subject-row .value { color: var(--gray-700); font-weight: 500; text-align: right; word-break: break-all; }
.subject-items { background: var(--gray-50); border-radius: var(--radius-md); padding: 12px 14px; }
.subject-items h4 { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; }
.subject-items ul { list-style: none; }
.subject-items li { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--gray-200); }
.subject-items li:last-child { border-bottom: none; }
.subject-items .si-name { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.subject-items .si-meta { font-size: 12px; color: var(--gray-400); }

/* ---- Publish Page ---- */
.publish-page { padding: 32px 0 64px; }
.publish-form { background: white; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-200); max-width: 760px; margin: 0 auto; }
.publish-form h1 { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.publish-form .subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Notice/Tips ---- */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--primary-light);
  border-radius: var(--radius-md); margin-bottom: 24px;
  font-size: 14px; color: var(--primary-dark);
}
.notice-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .header-inner { gap: 20px; }
  .logo-text { font-size: 15px; }
  .main-nav a { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .logo-text { font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-main { grid-template-columns: 1fr; }
  .info-detail-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .logo-text { font-size: 13px; }
  .header-user span { display: none; }
}
@media (max-width: 768px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .main-nav { display: none; }
  .logo-svg { width: 30px; height: 30px; }
  .logo-text { font-size: 12px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 24px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-meta-list { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ---- Loading ---- */
.loading { text-align: center; padding: 64px; color: var(--gray-400); }
