:root {
  --bg:#f6f7fb; --card:#fff; --ink:#1f2430; --muted:#6b7280;
  --brand:#d93636; --brand-dark:#b52a2a; --brand-soft:#fff1f0;
  --green:#0a8f4e; --line:#e5e7eb; --gold-bg:#fffbe6;
}
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:"Microsoft YaHei","PingFang SC",sans-serif; background:var(--bg); color:var(--ink); }
.wrap { max-width:860px; margin:0 auto; padding:0 14px; }

/* 顶部固定区：店铺信息 + 导航，滚动时始终固定在页面顶部 */
.topfix { position:sticky; top:0; z-index:100; }

/* 顶部 */
.hero { background:linear-gradient(135deg,#d93636,#b52a2a); color:#fff; padding:18px 0 14px; }
.hero .wrap { display:flex; align-items:center; gap:14px; }
.hero img.logo { width:56px; height:56px; border-radius:12px; object-fit:cover; background:#fff; cursor:zoom-in; }
.hero h1 { font-size:20px; letter-spacing:.5px; }
.hero p { font-size:13px; opacity:.9; margin-top:4px; }

/* 导航 */
nav.mainnav { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.06); }
nav.mainnav .wrap { display:flex; overflow-x:auto; gap:2px; }
nav.mainnav a { padding:11px 13px; font-size:14px; color:var(--ink); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent; cursor:pointer; }
nav.mainnav a:hover { color:var(--brand); border-color:var(--brand); }
nav.mainnav a.active { color:var(--brand); border-color:var(--brand); font-weight:bold; }

/* 区块 */
section { padding:22px 0 6px; }
section h2 { font-size:18px; margin-bottom:4px; display:flex; align-items:center; gap:8px; }
section h2::before { content:""; width:4px; height:18px; background:var(--brand); border-radius:2px; }
section .sub { color:var(--muted); font-size:13px; margin-bottom:14px; }
.card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 4px rgba(0,0,0,.06); margin-bottom:14px; }

/* 本店信息 */
.info-list { font-size:14px; line-height:2; }
.info-list b { color:var(--muted); font-weight:normal; margin-right:6px; }
.license-img { max-width:100%; max-height:420px; border-radius:8px; border:1px solid var(--line); display:block; }
.map-box { border-radius:8px; overflow:hidden; border:1px solid var(--line); min-height:120px; }
.map-box iframe { width:100%; height:320px; border:0; display:block; }
.map-btn { display:inline-block; margin-top:10px; background:#f0f5ff; color:#2b5fd9; padding:8px 14px; border-radius:8px; text-decoration:none; font-size:14px; }

/* 表单 */
.field { margin-bottom:12px; }
.field label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
select,input[type=text],input[type=number],input[type=tel],textarea {
  width:100%; padding:10px 12px; font-size:15px; border:1px solid var(--line);
  border-radius:8px; background:#fff; outline:none; font-family:inherit;
}
select:focus,input:focus,textarea:focus { border-color:var(--brand); }
/* 固定项输入框（如发货地）：不可编辑，灰底显示 */
input.fixed-input:disabled { background:#f3f4f6; color:#6b7280; cursor:not-allowed; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.grid3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.btn {
  display:inline-block; background:var(--brand); color:#fff; border:0; font-size:15px;
  padding:11px 22px; border-radius:8px; cursor:pointer; text-decoration:none; text-align:center;
}
.btn.ghost { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.btn.small { padding:6px 12px; font-size:13px; }
.err { display:none; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; padding:10px 12px; border-radius:8px; font-size:14px; margin-bottom:12px; }
.notice { background:#fffbeb; border:1px solid #fde68a; color:#92400e; padding:9px 12px; border-radius:8px; font-size:13px; margin-bottom:12px; }

/* 运费结果 */
.group-title { font-size:15px; font-weight:bold; margin:16px 0 6px; color:var(--brand-dark); }
table { width:100%; border-collapse:collapse; font-size:14px; }
th { text-align:left; color:var(--muted); font-weight:normal; font-size:12px; padding:7px 6px; border-bottom:1px solid var(--line); white-space:nowrap; }
td { padding:9px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
/* 快递公司名称行：序号 + logo + 名称 */
.co { display:flex; align-items:center; gap:7px; }
.co .seq { color:var(--muted); font-size:13px; min-width:18px; }
.co-logo { width:22px; height:22px; border-radius:50%; object-fit:contain; background:#fff; border:1px solid var(--line); flex:none; }
tr.best { background:var(--gold-bg); }
tr.best td:first-child { font-weight:bold; }
.badge { background:var(--brand); color:#fff; font-size:11px; padding:2px 7px; border-radius:999px; margin-right:4px; }
.price { font-weight:bold; font-size:15px; }
.total { color:var(--muted); font-size:12px; margin-top:2px; }
.na { color:#9ca3af; font-size:13px; }
.reason { color:#c0c4cc; font-size:12px; margin-top:2px; }
.note { color:#9ca3af; font-size:11px; margin-top:2px; }
.summary { background:var(--brand-soft); border:1px solid #ffd6d3; color:var(--brand); padding:12px 14px; border-radius:8px; font-size:15px; margin-bottom:12px; }

/* 包装类型 */
.pkg-card { margin-bottom:16px; }
.pkg-card h3 { font-size:15px; margin-bottom:6px; }
.pkg-card p { font-size:13px; color:var(--muted); line-height:1.7; }
.pkg-price { font-size:13px; color:var(--brand); font-weight:bold; margin-top:4px; }
.pkg-imgs { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-top:10px; }
.pkg-imgs figure img { width:100%; height:130px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:#f3f4f6; }
.pkg-imgs figcaption { font-size:12px; color:var(--muted); text-align:center; margin-top:4px; }

/* 商品 */
.prod-item { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px; }
.prod-item:last-child { border-bottom:0; }
.prod-item .p-price { color:var(--brand); font-weight:bold; white-space:nowrap; margin-left:12px; }
.prod-item .p-desc { color:var(--muted); font-size:12px; }

/* 跟踪 */
.track-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.track-links a { background:#f3f4f6; color:var(--ink); font-size:13px; padding:7px 12px; border-radius:999px; text-decoration:none; }
.track-links a:hover { background:var(--brand-soft); color:var(--brand); }

/* 图片双击放大 */
.lightbox {
  display:none; position:fixed; inset:0; z-index:999;
  background:rgba(0,0,0,.85); cursor:zoom-out;
  align-items:center; justify-content:center; padding:24px;
}
.lightbox.show { display:flex; }
.lightbox img { max-width:94vw; max-height:92vh; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.5); object-fit:contain; }
img.zoomable { cursor:zoom-in; }
.license-img, .pkg-imgs figure img, footer .qr img { cursor:zoom-in; }

/* 底部 */
footer { background:#20242e; color:#cfd3db; margin-top:30px; padding:26px 0; font-size:14px; }
footer .wrap { display:flex; gap:24px; flex-wrap:wrap; align-items:flex-start; }
footer h3 { color:#fff; font-size:15px; margin-bottom:8px; }
footer a { color:#fff; text-decoration:none; }
footer .qr img { width:120px; height:120px; border-radius:8px; background:#fff; object-fit:cover; }
footer .qr p { font-size:12px; margin-top:6px; text-align:center; }

@media (max-width:560px) {
  .grid2,.grid3 { grid-template-columns:1fr; }
  .hero h1 { font-size:17px; }
}
