:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7280;
  --primary: #1fa2ff;
  --primary2: #12d8fa;
  --primary3: #a6ffcb;
  --accent: #ffb800;
  --success: #10b981;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.top-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #0061ff 50%, #1b67ff 100%);
  color: #fff;
  padding: 12px 16px 80px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}
.status-bar { display: flex; justify-content: flex-start; align-items: center; }
.home-icon { font-size: 20px; background: rgba(255,255,255,.18); padding: 8px; border-radius: 10px; }
.brand { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.logo-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 700; }
.brand-title { font-size: 13px; opacity: .95; }
.brand-subtitle { font-size: 18px; font-weight: 700; }

.page { padding: 0 12px; margin-top: -56px; }

.section-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.section-title.with-icon::before { content: "📦"; margin-right: 6px; }

.notice-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notice-list li { font-size: 13px; color: #334155; line-height: 1.4; background: #f7fafc; border-radius: 12px; padding: 10px 12px; }
.badge { display: inline-block; background: linear-gradient(135deg, var(--primary2), var(--primary3)); color: #053d57; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; font-size: 12px; }

.contact-float {
  position: absolute;
  right: 22px;
  margin-top: -22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #0ea5e9; color: #fff; font-weight: 700;
  box-shadow: 0 10px 20px rgba(14,165,233,.35);
}

.help-box { margin-top: 12px; background: #fff7e6; border: 1px dashed #ffd77a; color: #8a611a; border-radius: 12px; padding: 10px 12px; }
.help-title { font-weight: 700; margin-bottom: 4px; }
.help-text { font-size: 12px; line-height: 1.5; }

.category-section { margin-top: 16px; }
.category-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.category-btn { border: none; padding: 10px; border-radius: 12px; background: #eef2ff; color: #334155; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: inset 0 0 0 1px #e2e8f0; min-height: 48px; }
.category-btn .small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.category-btn.active { background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 50%, #a6ffcb 100%); color: #00324d; }

.product-section { margin-top: 18px; }
.product-header { display: flex; align-items: center; justify-content: space-between; }
.ghost-btn { background: transparent; border: 1px solid #d1d5db; color: #374151; padding: 8px 12px; border-radius: 999px; font-weight: 600; cursor: pointer; }

.product-list { display: grid; gap: 12px; margin-top: 10px; }
.product-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.product-icon { width: 52px; height: 52px; border-radius: 14px; background: #f4f7ff; display: grid; place-items: center; font-size: 24px; }
.product-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.product-sub { font-size: 12px; color: var(--muted); }
.price { color: #0f766e; font-weight: 800; font-size: 14px; }
.progress { margin-top: 8px; height: 6px; background: #ecf0f7; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #10b981); width: 40%; }

.footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 30px 0 40px; }

/* 小屏适配 */
@media (min-width: 460px) {
  .page { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* 平板优化 */
@media (min-width: 768px) {
  .page { max-width: 720px; }
  .product-card { grid-template-columns: 60px 1fr auto; }
}

/* PC 端布局：两栏（左侧分类，右侧商品），公告横跨全宽 */
@media (min-width: 1024px) {
  .top-gradient { padding-bottom: 120px; }
  .page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -80px;
  }
  .notice-card { grid-column: 1 / -1; }
  .category-section { position: sticky; top: 24px; align-self: start; }
  .category-list { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { grid-template-columns: 56px 1fr auto; }
  .ghost-btn { border-color: #cbd5e1; }
  .ghost-btn:hover { border-color: #94a3b8; }
}

/* 大屏：商品三列 */
@media (min-width: 1280px) {
  .page { grid-template-columns: 300px 1fr; max-width: 1200px; }
  .product-list { grid-template-columns: repeat(3, 1fr); }
}

