/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1e6fbf;        /* 主蓝 */
  --primary-dark: #155a9e;
  --accent: #f57c00;         /* 强调橙 */
  --accent-dark: #e06b00;
  --text: #222;
  --text-sub: #666;
  --text-light: #999;
  --bg: #f7f9fb;
  --card: #ffffff;
  --border: #e8ecf1;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.icon { vertical-align: middle; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 8px; font-size: 14px;
  cursor: pointer; transition: all .2s; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: #eaf3fc; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: rgba(255,255,255,.9); color: var(--primary); border-color: rgba(30,111,191,.4); }
.btn-outline:hover { background: #fff; }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 7px; }

/* ============ 顶部城市栏 ============ */
.topbar { background: #0f2b4a; color: #cdd9e6; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.city-switch { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.city-switch strong { color: #fff; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-text { color: #8fa8c2; }
.topbar-link { color: #cdd9e6; }
.topbar-link:hover { color: #fff; }

/* ============ 主导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.logo-text { font-size: 22px; font-weight: 700; color: #0f2b4a; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; font-size: 15px; color: var(--text);
  border-radius: 8px; transition: all .2s; position: relative;
}
.nav-link:hover { color: var(--primary); background: #f0f6fc; }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 3px; background: var(--primary); border-radius: 3px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ============ 首屏 Banner ============ */
.banner {
  background: linear-gradient(180deg, #e8f4fb 0%, #f7fbff 60%, #f7f9fb 100%);
  padding: 40px 0;
}
.banner-inner { display: flex; align-items: center; gap: 48px; }
.banner-content { flex: 1; }
.banner-title {
  font-size: 52px; font-weight: 800; color: #0f2b4a; line-height: 1.15;
  background: linear-gradient(90deg, #0f2b4a 0%, #1e6fbf 60%, #f57c00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.banner-subtitle { font-size: 22px; font-weight: 600; color: #155a9e; margin-top: 8px; }
.banner-desc { font-size: 15px; color: var(--text-sub); margin-top: 14px; max-width: 460px; }
.banner-btns { display: flex; gap: 14px; margin-top: 28px; }
.banner-visual { flex: 1; max-width: 520px; }
.banner-visual img {
  width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: block;
}

/* ============ 分类导航区 ============ */
.category { padding: 24px 0 8px; }
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px;
}
.category-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 4px; border-radius: 10px; transition: all .2s; }
.category-item:hover { background: #f5f8fc; transform: translateY(-3px); }
.category-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.category-name { font-size: 14px; color: var(--text); }

/* ============ 通用区块 ============ */
.section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title { font-size: 30px; font-weight: 700; color: #0f2b4a; }
.section-sub { font-size: 15px; color: var(--text-light); margin-top: 8px; }

/* ============ 热门商户区 ============ */
.hot-merchants { background: #fff; }
.merchant-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 760px; margin: 0 auto;
}
.merchant-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all .25s;
}
.merchant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.merchant-img {
  height: 160px; position: relative; display: flex; align-items: center; justify-content: center;
}
.merchant-emoji { font-size: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.merchant-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 20px;
}
.merchant-body { padding: 16px; }
.merchant-name { font-size: 17px; font-weight: 700; color: #0f2b4a; }
.merchant-desc { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.merchant-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.score { color: var(--accent); font-weight: 700; font-size: 14px; }
.sold { color: var(--text-light); font-size: 12px; }
.merchant-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { color: #e53e3e; font-weight: 700; }
.price-symbol { font-size: 14px; }
.price-num { font-size: 22px; }
.price-unit { font-size: 13px; font-weight: 400; }

/* ============ 平台特色区 ============ */
.feature { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item {
  background: #fff; border-radius: var(--radius); padding: 28px 22px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feature-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.feature-item h3 { font-size: 18px; color: #0f2b4a; }
.feature-item p { font-size: 13px; color: var(--text-sub); margin-top: 8px; }

/* ============ 商家入驻区 ============ */
.join { background: linear-gradient(135deg, #0f2b4a 0%, #1e6fbf 100%); }
.join-inner { display: flex; align-items: center; gap: 60px; }
.join-text { flex: 1; }
.join-text .section-title { color: #fff; }
.join-desc { color: #cfe0f0; margin-top: 14px; font-size: 15px; }
.join-list { margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.join-list li { color: #fff; font-size: 14px; position: relative; padding-left: 22px; }
.join-list li::before { content: "✓"; position: absolute; left: 0; color: #ffb066; font-weight: 700; }
.join-visual {
  flex: 1; text-align: center; color: #fff;
  background: rgba(255,255,255,.08); border-radius: 16px; padding: 50px 30px;
}
.join-emoji { font-size: 80px; display: block; margin-bottom: 16px; }
.join-visual p { font-size: 18px; line-height: 1.8; color: #e0ecf7; }

/* ============ 页脚 ============ */
.footer { background: #0d2438; color: #a8bccd; padding-top: 48px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .footer-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #7f97ab; margin-top: 8px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: #a8bccd; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-disclaimer { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-disclaimer p { font-size: 12px; color: #6f879b; line-height: 1.8; }

.footer-bottom { padding: 24px 0 32px; text-align: center; }
.footer-bottom p { font-size: 13px; color: #7f97ab; margin-bottom: 6px; }
.footer-icp a { color: #7f97ab; }
.footer-icp a:hover { color: #fff; }
.footer-icp .divider { margin: 0 8px; color: #4a6075; }
.footer-note { font-size: 12px; color: #5d7386; margin-top: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .banner-inner { flex-direction: column; }
  .banner-visual { max-width: 100%; }
  .merchant-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .join-inner { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .merchant-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-title { font-size: 38px; }
}
