/* 中科粮农订餐 — 全局样式
   设计原则：浅色商务风、专业可信、分类用 SVG 图标。 */
:root {
  --c-bg: #f6f4ef;
  --c-surface: #ffffff;
  --c-surface-2: #f1ede4;
  --c-ink: #2a2620;
  --c-ink-soft: #6b6457;
  --c-line: #e4ded2;
  --c-brand: #2f6b3a;      /* 粮农绿 */
  --c-brand-2: #b8862f;    /* 麦穗金 */
  --c-brand-deep: #1f4a29;
  --c-danger: #b4452f;
  --c-shadow: 0 6px 22px rgba(42,38,32,.08);
  --radius: 12px;
  --maxw: 1180px;
  --font: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,-apple-system,"Segoe UI",sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ===== 顶部 ===== */
.topbar { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 38px; height: 38px; }
.brand .name { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--c-brand-deep); }
.brand .name small { display: block; font-size: 11px; font-weight: 500; color: var(--c-ink-soft); letter-spacing: 2px; }

.nav { display: flex; gap: 6px; margin-left: 14px; }
.nav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--c-ink-soft); font-weight: 600; }
.nav a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.nav a.active { color: var(--c-brand); background: #eaf2ea; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font-size: 14px; font-weight: 600; transition: .15s; }
.btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-primary { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.btn-primary:hover { background: var(--c-brand-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.cart-badge { background: var(--c-brand-2); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; min-width: 18px; text-align: center; }

/* ===== 模块切换条 ===== */
.module-ribbon { background: linear-gradient(90deg,var(--c-brand-deep),var(--c-brand)); color: #fff; }
.module-ribbon .wrap { display: flex; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.mod-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.12); color: #eaf2ea; font-weight: 700; font-size: 15px; }
.mod-tab.active { background: #fff; color: var(--c-brand-deep); }

/* ===== 通用区块 ===== */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; margin: 0; color: var(--c-ink); }
.section-head .more { color: var(--c-ink-soft); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow); }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg,#eef4ec, #f6f1e6); border-bottom: 1px solid var(--c-line); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 46px 20px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; color: var(--c-brand-deep); }
.hero p { color: var(--c-ink-soft); font-size: 16px; margin: 0 0 22px; max-width: 520px; }
.hero-stats { display: flex; gap: 26px; margin-top: 24px; }
.hero-stats div { font-size: 14px; color: var(--c-ink-soft); }
.hero-stats b { display: block; font-size: 24px; color: var(--c-brand); }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--c-shadow); }

/* ===== 产品网格 ===== */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.product { padding: 12px; display: flex; flex-direction: column; transition: .15s; }
.product:hover { transform: translateY(-3px); }
.product .thumb { aspect-ratio: 1/1; border-radius: 9px; overflow: hidden; background: var(--c-surface-2); }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .pname { font-weight: 700; font-size: 15px; margin: 10px 0 4px; }
.product .pmeta { font-size: 12px; color: var(--c-ink-soft); }
.product .prow { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { color: var(--c-danger); font-weight: 800; font-size: 18px; }
.price small { font-size: 12px; color: var(--c-ink-soft); font-weight: 500; }
.merchant-tag { font-size: 11px; color: var(--c-brand); background: #eaf2ea; padding: 2px 8px; border-radius: 6px; }

/* ===== 分类筛选 ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); font-size: 13px; color: var(--c-ink-soft); font-weight: 600; }
.chip.active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* ===== 信息列表 ===== */
.info-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.info-card .ic-img { aspect-ratio: 16/9; overflow: hidden; background: var(--c-surface-2); }
.info-card .ic-img img { width: 100%; height: 100%; object-fit: cover; }
.info-card .ic-body { padding: 14px; }
.info-card .ic-cat { font-size: 12px; color: var(--c-brand); font-weight: 700; }
.info-card .ic-title { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.info-card .ic-sum { font-size: 13px; color: var(--c-ink-soft); min-height: 38px; }
.info-card .ic-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--c-ink-soft); }
.phone-mask { letter-spacing: 1px; }
.phone-reveal { color: var(--c-brand); font-weight: 700; }

/* ===== 详情页 ===== */
.detail { display: grid; grid-template-columns: 1.1fr 1fr .85fr; gap: 22px; align-items: start; }
.merchant-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow); padding: 18px; }
.merchant-card h3 { font-size: 15px; margin: 0 0 14px; color: var(--c-brand-deep); display: flex; align-items: center; gap: 8px; }
.merchant-card .mc-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--c-line); font-size: 13px; }
.merchant-card .mc-row:last-child { border-bottom: none; }
.merchant-card .mc-label { color: var(--c-ink-soft); width: 52px; flex: none; }
.merchant-card .mc-name { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.merchant-card .mc-desc { color: var(--c-ink-soft); line-height: 1.55; padding-top: 4px; }
.merchant-card .mc-btn { display: block; width: 100%; margin-top: 14px; text-align: center; }
.gallery .main-img { border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); aspect-ratio: 1/1; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-wrap { position: relative; margin-top: 10px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; cursor: grab; padding-bottom: 4px; }
.thumbs.dragging { cursor: grabbing; scroll-behavior: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.thumbs img.active { border-color: var(--c-brand); }
.thumbs::-webkit-scrollbar { height: 6px; }
.thumbs::-webkit-scrollbar-thumb { background: var(--c-brand-light); border-radius: 3px; }
.thumbs::-webkit-scrollbar-track { background: transparent; }
.thumbs-hint { font-size: 12px; color: var(--c-ink-soft); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.thumbs-hint svg { width: 14px; height: 14px; }
.detail-info h1 { font-size: 24px; margin: 0 0 8px; }
.detail-info .d-price { font-size: 28px; color: var(--c-danger); font-weight: 800; }
.detail-info .d-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { font-size: 12px; background: var(--c-surface-2); color: var(--c-ink-soft); padding: 4px 10px; border-radius: 6px; }
.kv { display: flex; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--c-line); }
.kv span:first-child { color: var(--c-ink-soft); width: 76px; flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: none; background: var(--c-surface-2); font-size: 18px; }
.qty input { width: 46px; height: 34px; border: none; text-align: center; font-size: 15px; }

/* ===== 弹窗/模态 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(42,38,32,.45); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: var(--c-surface); border-radius: var(--radius); width: 100%; max-width: 420px; padding: 26px; box-shadow: var(--c-shadow); }
.modal h3 { margin: 0 0 16px; font-size: 20px; color: var(--c-brand-deep); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--c-ink-soft); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--c-line); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); }
.field textarea { resize: vertical; line-height: 1.6; }
.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--c-ink-soft); margin: 6px 0 16px; }
.agree input { margin-top: 3px; }
.agree a { color: var(--c-brand); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; color: var(--c-ink-soft); }
.modal-wrap { position: relative; }
.notice { background: #fbf2ec; border: 1px solid #f0d8c4; color: #8a4a2c; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }

/* ===== 购物车页 ===== */
.cart-row { display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--c-line); }
.cart-row img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-row .cr-name { font-weight: 700; }
.cart-row .cr-meta { font-size: 12px; color: var(--c-ink-soft); }
.pay-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px; position: sticky; bottom: 0; background: var(--c-surface); border-top: 1px solid var(--c-line); }
.total-big { font-size: 24px; font-weight: 800; color: var(--c-danger); }

/* ===== 页脚 ===== */
.footer { background: var(--c-brand-deep); color: #d8e6d8; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 40px 20px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer a, .footer p { color: #c4d6c4; font-size: 13px; margin: 4px 0; display: block; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 20px; text-align: center; font-size: 12px; color: #aec3ae; }
.footer .copy a { color: #d4e8d4; text-decoration: underline; }
.footer .copy a:hover { color: #fff; }
.footer .logo-f { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .logo-f .logo { width: 34px; height: 34px; }

/* ===== 文章/详情正文 ===== */
.article { max-width: 820px; margin: 0 auto; }
.article .lead-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.article h1 { font-size: 26px; margin: 0 0 10px; }
.article .meta { color: var(--c-ink-soft); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.article p { font-size: 16px; color: var(--c-ink); margin: 0 0 14px; }
.callout { background: var(--c-surface-2); border-left: 3px solid var(--c-brand); padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }

/* ===== 商品详情相册 ===== */
.detail-album { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.album-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-surface-2); }
.album-item img { width: 100%; height: auto; display: block; }
@media (max-width: 700px) {
  .detail-album { grid-template-columns: 1fr; }
}

/* ===== 关于我们 ===== */
.about-hero { text-align: center; padding: 30px 0 20px; }
.about-hero .about-logo { width: 64px; height: 64px; }
.about-hero h1 { font-size: 30px; margin: 14px 0 8px; }
.about-hero .about-sub { color: var(--c-brand); font-size: 16px; letter-spacing: 2px; margin: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
.about-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; }
.about-card h3 { font-size: 18px; margin: 0 0 12px; color: var(--c-brand-deep); }
.about-card p { font-size: 14px; color: var(--c-ink); line-height: 1.8; margin: 0 0 10px; }
.about-list { margin: 0; padding-left: 18px; }
.about-list li { font-size: 14px; color: var(--c-ink); line-height: 1.8; margin-bottom: 6px; }
.about-list b { color: var(--c-brand-deep); }
.about-tip { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; text-align: center; }
.about-tip p { margin: 0; font-size: 13px; color: var(--c-ink-soft); line-height: 1.7; }

/* ===== 后台管理 ===== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.admin-table th { background: var(--c-surface-2); color: var(--c-ink-soft); font-weight: 600; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table td.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }
.sub-h { font-size: 16px; margin: 24px 0 12px; color: var(--c-brand-deep); }
.id-thumb { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c-line); cursor: zoom-in; transition: transform .15s; }
.id-thumb:hover { transform: scale(1.03); border-color: var(--c-brand); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.show { display: flex; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.lightbox-wrap { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lightbox-wrap img { max-width: 86vw; max-height: 82vh; border-radius: 6px; display: block; }
.lightbox-close { position: absolute; top: -36px; right: 0; width: 32px; height: 32px; border: none; background: rgba(255,255,255,.9); border-radius: 50%; font-size: 22px; line-height: 32px; color: #333; cursor: pointer; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.badge-ok { background: var(--c-brand-light); color: var(--c-brand-deep); }
.badge-reject { background: #fde8e8; color: var(--c-danger); }
.badge-vip { background: #fff3d6; color: #8c5e00; font-weight: 600; }
.badge-verify { background: #e3f6ea; color: #137a3b; font-weight: 600; }
.badge-warn { background: #f0f0f0; color: #8a8a8a; }

/* ===== 个人中心 ===== */
.uc-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.uc-side { padding: 0; overflow: hidden; }
.uc-avatar { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--c-brand); color: #fff; }
.uc-avatar-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.uc-avatar-icon svg { width: 26px; height: 26px; stroke: #fff; }
.uc-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.uc-phone { font-size: 12px; opacity: .85; margin-bottom: 6px; }
.uc-coins { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.uc-coins b { font-size: 20px; color: var(--c-brand-deep); }
.uc-menu { display: flex; flex-direction: column; padding: 8px 0; }
.uc-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--c-ink); font-size: 14px; text-decoration: none; border-left: 3px solid transparent; transition: .15s; }
.uc-item svg { width: 18px; height: 18px; stroke: var(--c-ink-soft); }
.uc-item:hover { background: var(--c-surface-2); color: var(--c-brand-deep); }
.uc-item.active { background: var(--c-brand-light); color: var(--c-brand-deep); border-left-color: var(--c-brand); font-weight: 600; }
.uc-main { padding: 24px; min-height: 420px; }
.uc-title { margin: 0 0 18px; font-size: 18px; color: var(--c-ink); }
.uc-dashboard { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.uc-stat { background: var(--c-surface-2); border-radius: var(--radius); padding: 16px; text-align: center; }
.uc-stat b { display: block; font-size: 22px; color: var(--c-brand-deep); margin-bottom: 4px; }
.uc-stat span { font-size: 12px; color: var(--c-ink-soft); }
.uc-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.uc-section h3 { margin: 0 0 10px; font-size: 15px; color: var(--c-ink); }
.uc-section p { color: var(--c-ink-soft); font-size: 14px; line-height: 1.7; }
.uc-quick { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.uc-price-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 16px; }
.uc-price-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 10px; text-align: center; cursor: pointer; transition: .15s; }
.uc-price-card b { font-size: 24px; color: var(--c-brand-deep); }
.uc-price-card span { font-size: 12px; color: var(--c-ink-soft); margin-left: 4px; }
.uc-price-card div { font-size: 13px; color: var(--c-ink); margin-top: 6px; }
.uc-price-card:hover { border-color: var(--c-brand); background: var(--c-brand-light); transform: translateY(-2px); }
.uc-vip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 16px; }
.uc-vip-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; text-align: center; position: relative; }
.uc-vip-card h4 { margin: 0 0 10px; font-size: 16px; }
.uc-vip-price { font-size: 30px; font-weight: 700; color: var(--c-brand-deep); margin-bottom: 12px; }
.uc-vip-price span { font-size: 14px; font-weight: 400; color: var(--c-ink-soft); margin-left: 4px; }
.uc-vip-card ul { text-align: left; font-size: 13px; color: var(--c-ink-soft); line-height: 1.9; margin: 0 0 18px; padding-left: 18px; }
.uc-vip-card button { width: 100%; }
.uc-vip-card.month { border-top: 3px solid #c8e6c9; }
.uc-vip-card.quarter { border-top: 3px solid #81c784; }
.uc-vip-card.year { border-top: 3px solid var(--c-brand); }
.uc-post-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.uc-post-item { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; }
.uc-post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.uc-post-meta b { font-size: 15px; color: var(--c-ink); }
.uc-post-meta2 { font-size: 12px; color: var(--c-ink-soft); margin-bottom: 8px; }
.uc-post-item p { font-size: 13px; color: var(--c-ink-soft); margin: 0; line-height: 1.5; }
.post-cost { background: var(--c-surface-2); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--c-ink); margin: 10px 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-side { margin-bottom: 14px; }
  .uc-menu { flex-direction: row; overflow-x: auto; }
  .uc-item { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .uc-item.active { border-left-color: transparent; border-bottom-color: var(--c-brand); }
  .uc-dashboard { grid-template-columns: repeat(2,1fr); }
  .uc-price-grid { grid-template-columns: repeat(2,1fr); }
  .uc-vip-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }

/* ===== 充值入口 / 充值须知 ===== */
.charge-notice { background: var(--c-surface-2); border-radius: var(--radius); padding: 18px 22px; margin-top: 24px; }
.charge-notice h4 { margin: 0 0 10px; font-size: 15px; color: var(--c-brand-deep); }
.charge-notice ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--c-ink-soft); line-height: 1.9; }
.rules-block { margin-bottom: 24px; }
.rules-block h3 { font-size: 15px; color: var(--c-brand-deep); margin: 0 0 10px; }
.rules-block ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--c-ink-soft); line-height: 1.9; }
.rules-block p { font-size: 14px; color: var(--c-ink-soft); line-height: 1.8; margin: 0 0 8px; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rules-table th, .rules-table td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.rules-table th { background: var(--c-surface-2); color: var(--c-ink); font-weight: 600; }
.rules-table td { color: var(--c-ink-soft); }
.btn-danger:hover { opacity: .92; }

/* ===== 提示条 ===== */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--c-ink); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--c-ink-soft); padding: 50px 0; }

@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); }
  .hero .wrap, .detail { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .merchant-card { margin-top: 8px; }
}
