/* ==========================================================================
   MeiHe 默认模板（PC） · 蓝白科技风
   ========================================================================== */
:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #6b7a90;
    --line: #e6ebf3;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eef4ff;
    --accent: #06b6d4;
    --success: #16a34a;
    --success-soft: #ecfdf3;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warn: #b45309;
    --warn-soft: #fffbeb;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-hover: 0 18px 45px rgba(37, 99, 235, .14);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background:
        radial-gradient(900px 420px at 12% -140px, #e6efff 0%, rgba(230, 239, 255, 0) 70%),
        radial-gradient(700px 360px at 92% -120px, #e2fbff 0%, rgba(226, 251, 255, 0) 70%),
        var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ------------------------------- 顶栏 ------------------------------- */
.topbar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #cbd5e1;
    font-size: 12.5px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-left .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a { color: #e2e8f0; }
.topbar-right a:hover { color: #fff; text-decoration: underline; }
.topbar-right .sep { color: #475569; }

/* ------------------------------- 头部 ------------------------------- */
.site-head { padding: 22px 0 0; }
.head-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 19px; letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); }

.search { flex: 1; display: flex; max-width: 520px; height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.search input { flex: 1; border: 0; padding: 0 16px; font-size: 14px; outline: none; background: transparent; }
.search button { border: 0; padding: 0 26px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 14px; cursor: pointer; }

.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.ghost-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-size: 13px; cursor: pointer; transition: .18s;
}
.ghost-btn:hover { border-color: #c7d7f5; color: var(--primary); background: var(--primary-soft); }
.ghost-btn.full { width: 100%; margin-top: 10px; }

.primary-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 22px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important; font-size: 13.5px; font-weight: 600;
    border: 0; cursor: pointer; box-shadow: 0 10px 22px rgba(37, 99, 235, .26);
    transition: .18s;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37, 99, 235, .32); }
.primary-btn.small { height: 38px; padding: 0 18px; font-size: 13px; }

.cat-nav { margin-top: 20px; border-top: 1px solid rgba(226, 232, 240, .8); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .66); backdrop-filter: blur(8px); }
.cat-nav-inner { display: flex; gap: 6px; overflow-x: auto; }
.cat-nav a {
    position: relative; padding: 13px 16px; font-size: 14px; color: var(--ink-2);
    white-space: nowrap; transition: .18s;
}
.cat-nav a:hover { color: var(--primary); }
.cat-nav a.active { color: var(--primary); font-weight: 600; }
.cat-nav a.active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ------------------------------- 主体 ------------------------------- */
.main { padding: 26px 0 50px; }

.notice {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
    border-radius: 12px; padding: 12px 18px; margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.notice-tag { flex: none; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 20px; }
.notice-text { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flash { border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid transparent; }
.flash-error { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
.flash-success { background: var(--success-soft); border-color: #bbf7d0; color: var(--success); }

.hero {
    position: relative; display: flex; justify-content: space-between; gap: 28px;
    background: linear-gradient(115deg, #0f172a 0%, #172554 55%, #0e7490 100%);
    border-radius: 22px; padding: 40px 44px; color: #fff; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.hero::after {
    content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
    background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 62%);
    border-radius: 50%;
}
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { font-size: 11.5px; letter-spacing: 3px; color: #7dd3fc; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 38px; line-height: 1.24; letter-spacing: .5px; }
.hero h1 span { background: linear-gradient(90deg, #7dd3fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: #c7d2e5; margin-top: 14px; font-size: 14.5px; max-width: 520px; }
.hero-tags { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-tags span { font-size: 12.5px; color: #dbeafe; border: 1px solid rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .1); padding: 5px 12px; border-radius: 20px; }

.hero-card {
    position: relative; z-index: 1; flex: none; width: 268px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(6px);
}
.hero-card-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.hero-card-row:last-of-type { border-bottom: 0; }
.hero-card-row span { color: #b9c6dd; font-size: 13px; }
.hero-card-row strong { font-size: 20px; font-weight: 700; }
.hero-card-link { display: block; margin-top: 14px; text-align: center; background: #fff; color: #0f172a !important; border-radius: 10px; padding: 9px 0; font-size: 13px; font-weight: 600; }

.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; margin-top: 26px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--accent)); }

.sidebar .panel { padding: 18px; }
.cate-list li + li { margin-top: 4px; }
.cate-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; transition: .16s;
}
.cate-list a span { color: #a9b6c9; font-size: 12px; }
.cate-list a:hover { background: #f7faff; color: var(--primary); }
.cate-list a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.cate-list a.active span { color: var(--primary); }

.tips p { color: var(--muted); font-size: 12.5px; line-height: 1.9; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.sorts { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 10px; }
.sorts a { padding: 6px 14px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.sorts a.active { background: var(--primary); color: #fff; }

/* ----------------------------- 商品卡片 ----------------------------- */
.goods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.goods-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: .22s;
}
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cfdffb; }

.goods-cover {
    position: relative; height: 132px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, #eef4ff, #e6fbff);
}
.goods-cover.cover-card { background: linear-gradient(135deg, #eef4ff, #dfe9ff); }
.goods-cover.cover-email { background: linear-gradient(135deg, #edfdf5, #dff7ea); }
.goods-cover.cover-direct { background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.goods-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-char {
    font-size: 30px; font-weight: 800; letter-spacing: 2px;
    color: rgba(37, 99, 235, .28);
}
.type-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 11px; padding: 3px 9px; border-radius: 20px;
    background: rgba(255, 255, 255, .9); color: var(--primary); font-weight: 600;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
}

.goods-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.goods-body h3 { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-meta { display: flex; gap: 14px; color: #94a3b8; font-size: 12px; margin: 12px 0 10px; }
.goods-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.buy-btn {
    font-size: 12.5px; padding: 7px 14px; border-radius: 9px;
    background: var(--primary-soft); color: var(--primary); font-weight: 600;
    transition: .18s;
}
.goods-card:hover .buy-btn { background: var(--primary); color: #fff; }

.price { display: flex; align-items: baseline; gap: 2px; color: var(--danger); font-weight: 700; }
.price em { font-style: normal; font-size: 13px; }
.price strong { font-size: 22px; letter-spacing: -.5px; }
.price span { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.price.big strong { font-size: 30px; }
.price.big em { font-size: 16px; }

/* ------------------------------- 分页 ------------------------------- */
.pager { display: flex; align-items: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 36px; height: 36px; padding: 0 12px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.pager a:hover { border-color: #c7d7f5; color: var(--primary); }
.pager .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 8px; }

.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.empty p { margin-bottom: 16px; }

/* --------------------------- 面包屑 / 详情 --------------------------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumb a:hover { color: var(--primary); }
.crumb em { font-style: normal; color: var(--ink-2); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }

.goods-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
.goods-cover.big { height: 260px; border-radius: 14px; }
.goods-cover.big .cover-char { font-size: 54px; }
.goods-head-info h1 { font-size: 24px; line-height: 1.35; }
.goods-head-info .sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.price-block { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; background: linear-gradient(90deg, #fff5f5, #fff); border: 1px solid #fee2e2; border-radius: 12px; padding: 12px 16px; }
.price-label { font-size: 12px; color: var(--muted); }
.vip-tag { font-size: 11.5px; color: #b45309; background: #fff7e6; border: 1px solid #fde68a; padding: 3px 9px; border-radius: 20px; }
.vip-tag.muted { color: var(--muted); background: #f8fafc; border-color: var(--line); }

.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.meta-list li { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.meta-list span { color: var(--muted); }
.meta-list b { font-weight: 600; }

.promise { display: flex; gap: 16px; margin-top: 16px; color: var(--success); font-size: 12.5px; }

.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tier-table th, .tier-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tier-table th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tier-price { color: var(--danger); font-weight: 700; }

.delivery-tip { color: var(--ink-2); font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; }
.rich-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }
.rich-text img { border-radius: 10px; margin: 10px 0; }

/* ------------------------------- 表单 ------------------------------- */
.order-aside { position: sticky; top: 18px; }
.order-form { padding: 22px; }
.form-row { margin-bottom: 14px; }
.form-row > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.form-row > label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row input[type=number],
.form-row input[type=password],
.form-row textarea,
.form-row select {
    width: 100%; border: 1px solid var(--line); background: #fbfcfe;
    border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--ink);
    outline: none; transition: .16s; font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 74px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: #93b4f8; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.field-tip { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty-row > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fbfcfe; }
.stepper button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 17px; color: var(--ink-2); cursor: pointer; }
.stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.stepper input { width: 62px; height: 36px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14px; background: #fff; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; border-top: 1px dashed var(--line); margin-top: 6px; }
.total-row > span { font-size: 13px; color: var(--ink-2); }

.submit-btn {
    width: 100%; height: 46px; margin-top: 12px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 14px 26px rgba(37, 99, 235, .28); transition: .18s;
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }
.form-note { text-align: center; color: #94a3b8; font-size: 11.5px; margin-top: 10px; }

/* ------------------------------- 收银台 ------------------------------- */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }

.pay-status { background: linear-gradient(115deg, #0f172a, #172554); color: #fff; border: 0; }
.pay-status.success { background: linear-gradient(115deg, #064e3b, #065f46); }
.pay-status.muted { background: linear-gradient(115deg, #334155, #475569); }
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.status-badge { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .16); color: #e2e8f0; }
.status-head h1 { font-size: 26px; margin: 10px 0 6px; }
.status-sub { color: #c7d2e5; font-size: 12.5px; }
.status-amount { text-align: right; }
.status-amount > span { font-size: 12px; color: #c7d2e5; }
.pay-status .price { color: #fff; justify-content: flex-end; }
.pay-status .price strong { font-size: 34px; }
.expire-tip { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .2); color: #cbd5e1; font-size: 12.5px; }
.expire-tip b { color: #fbbf24; font-variant-numeric: tabular-nums; }

.copy-btn { border: 1px solid rgba(148, 163, 184, .4); background: transparent; color: inherit; font-size: 11px; padding: 2px 8px; border-radius: 6px; cursor: pointer; margin-left: 6px; }

.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
}
.pay-method.disabled { opacity: .72; }
.pay-method strong { display: block; font-size: 14px; }
.pay-method em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pm-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; }
.pm-icon.alipay { background: #1677ff; }
.pm-icon.wechat { background: #07c160; }
.pm-icon.qqpay { background: #12b7f5; }
.pm-icon.epay { background: #6d28d9; }
.pay-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; line-height: 1.8; }

.dev-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 18px; padding: 16px 18px; border: 1px dashed #93b4f8; border-radius: 12px; background: var(--primary-soft); }
.dev-box strong { font-size: 13.5px; color: var(--primary-dark); }
.dev-box p { font-size: 12px; color: var(--muted); margin-top: 4px; }

.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); flex: none; }
.info-list b { font-weight: 600; text-align: right; word-break: break-all; }

.deliveries { display: grid; gap: 12px; }
.delivery-item { position: relative; background: #f8fafc; border: 1px dashed var(--line); border-radius: 12px; padding: 16px 90px 16px 16px; }
.delivery-item pre { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; color: var(--ink); white-space: pre-wrap; word-break: break-all; line-height: 1.8; }
.delivery-item .copy-btn { position: absolute; right: 14px; top: 14px; color: var(--primary); border-color: #c7d7f5; }

/* ------------------------------- 查询页 ------------------------------- */
.query-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 22px; align-items: start; }
.query-form h1 { font-size: 22px; margin-bottom: 8px; }
.query-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; line-height: 1.8; }
.captcha-row { position: relative; }
.captcha-row img { position: absolute; right: 6px; bottom: 6px; height: 34px; border-radius: 7px; cursor: pointer; border: 1px solid var(--line); }
.captcha-row input { padding-right: 128px; }

.query-result .result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.result-head h2 { font-size: 19px; margin: 8px 0 4px; }
.result-head p { color: var(--muted); font-size: 12.5px; }
.status-badge.pending { background: var(--warn-soft); color: var(--warn); }
.status-badge.success { background: var(--success-soft); color: var(--success); }

.hint-box { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; }
.hint-box a { font-weight: 600; text-decoration: underline; }
.hint-box.warn { background: var(--warn-soft); color: var(--warn); }
.query-help p { color: var(--muted); font-size: 13px; line-height: 2; }

/* ------------------------------- 页脚 ------------------------------- */
.site-foot { background: #0f172a; color: #94a3b8; padding: 36px 0 22px; margin-top: 20px; }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand strong { color: #fff; font-size: 16px; }
.foot-brand p { font-size: 12.5px; margin-top: 6px; }
.foot-links { display: flex; gap: 22px; font-size: 13px; }
.foot-links a:hover { color: #fff; }
.foot-service { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.copyright { margin-top: 26px; padding-top: 16px; border-top: 1px solid #1e293b; font-size: 12px; color: #64748b; }

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 1080px) {
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout, .pay-layout, .query-layout { grid-template-columns: minmax(0, 1fr); }
    .order-aside { position: static; }
    .goods-head { grid-template-columns: 240px minmax(0, 1fr); }
    .hero-card { display: none; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 28px); }
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { order: 2; }
    /* 移动端分类已由顶部 .cat-nav 承担，侧栏分类面板隐藏，避免商品列表被挤到第二屏 */
    .sidebar > .panel:not(.tips) { display: none; }
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero { padding: 26px 22px; }
    .hero h1 { font-size: 26px; }
    .head-inner { flex-wrap: wrap; gap: 14px; }
    .search { order: 3; flex: 1 0 100%; width: 100%; max-width: none; }
    .goods-head { grid-template-columns: minmax(0, 1fr); }
    .goods-cover.big { height: 200px; }
}

/* ---------- 支付方式（第 2 期） ---------- */
.pay-form { margin: 0; display: flex; align-items: stretch; gap: 8px; }
.pay-form .pay-method {
    flex: 1; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pay-form .pay-method:hover { border-color: #9cbcf5; box-shadow: 0 10px 22px rgba(37, 99, 235, .1); transform: translateY(-1px); }
.pay-form .pay-method:active { transform: translateY(0); }
.pay-scan {
    flex: none; width: 84px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--muted); font-size: 12px; cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}
.pay-scan:hover { border-color: #9cbcf5; color: var(--primary); }

.qr-box { display: flex; align-items: center; gap: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.qr-canvas { width: 196px; height: 196px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; }
.qr-canvas img, .qr-canvas canvas { display: block; }
.qr-info strong { font-size: 15px; }
.qr-info p { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.qr-info .qr-amount { color: var(--danger); font-size: 22px; font-weight: 700; margin-top: 6px; }
.qr-info .qr-status { color: var(--primary); font-size: 13px; }
.qr-info .ghost-btn { margin-top: 14px; }

@media (max-width: 720px) {
    .pay-methods { grid-template-columns: 1fr; }
    .qr-box { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   会员中心（第 3 期）
   ========================================================================== */
.uc-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; margin: 26px 0 40px; }
.uc-side { align-self: start; position: sticky; top: 18px; }
.uc-profile { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.uc-avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 19px; font-weight: 700; }
.uc-profile strong { display: block; font-size: 14.5px; }
.uc-vip { display: inline-block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }
.uc-vip-1, .uc-vip-2 { color: #b45309; }
.uc-vip-3, .uc-vip-4 { color: #7c3aed; }

.uc-nav { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.uc-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; }
.uc-nav a i { font-style: normal; width: 18px; text-align: center; color: #94a3b8; }
.uc-nav a:hover { background: #f7f9fd; color: var(--primary); }
.uc-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.uc-nav a.active i { color: var(--primary); }
.uc-logout { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); padding: 10px; border: 1px dashed var(--line); border-radius: 12px; }
.uc-logout:hover { color: var(--danger); border-color: #fecaca; }

.uc-body { min-width: 0; }
.uc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.uc-head h1 { font-size: 21px; letter-spacing: -.3px; }
.uc-head-link { font-size: 12.5px; color: var(--primary); }

.uc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.uc-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .18s; }
.uc-stat:hover { transform: translateY(-2px); border-color: #cfe0ff; }
.uc-stat span { display: block; font-size: 12px; color: var(--muted); }
.uc-stat strong { display: block; font-size: 22px; margin-top: 6px; letter-spacing: -.4px; }

.uc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.uc-grid-ticket { align-items: start; }
.uc-muted { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.7; }
.uc-tips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.uc-tips span { background: var(--warn-soft); border: 1px solid #fde68a; color: var(--warn); font-size: 12.5px; padding: 6px 12px; border-radius: 20px; }
.uc-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.uc-empty a { color: var(--primary); }

.uc-sign-card form { margin-top: 12px; }
.uc-sign-days { font-size: 13.5px; color: var(--ink-2); }
.uc-sign-days strong { font-size: 22px; color: var(--primary); margin: 0 4px; }
.uc-sign-days span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.uc-vip-line { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.uc-vip-line span { color: var(--muted); font-size: 12px; }
.uc-progress { height: 8px; border-radius: 20px; background: #eef2f9; overflow: hidden; margin-top: 12px; }
.uc-progress i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.uc-order-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.uc-order-mini-row:last-child { border-bottom: 0; padding-bottom: 0; }
.uc-order-mini-row strong { font-size: 13.5px; font-weight: 600; display: block; }
.uc-order-mini-row em { font-style: normal; font-size: 12px; color: var(--muted); }
.uc-order-mini-right { text-align: right; flex: none; }
.uc-order-mini-right span { display: block; font-size: 13px; font-weight: 600; }

.uc-badge { display: inline-block; font-style: normal; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; background: #f1f5f9; color: var(--muted); white-space: nowrap; flex: none; }
.uc-badge-0, .uc-badge-t0 { background: var(--warn-soft); color: var(--warn); }
.uc-badge-1, .uc-badge-2, .uc-badge-t1, .uc-badge-t2 { background: var(--primary-soft); color: var(--primary); }
.uc-badge-3, .uc-badge-t3 { background: var(--success-soft); color: var(--success); }
.uc-badge-4, .uc-badge-5 { background: var(--danger-soft); color: var(--danger); }
.uc-badge-6 { background: #f1f5f9; color: #94a3b8; }

.uc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.uc-filter a { font-size: 13px; padding: 7px 15px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.uc-filter a em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.uc-filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.uc-filter a.active em { color: rgba(255,255,255,.8); }
.uc-filter-sm a { padding: 5px 11px; font-size: 12px; }

.uc-order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.uc-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; background: #f8fafd; border-bottom: 1px solid var(--line); }
.uc-order-no { font-size: 13px; font-weight: 600; margin-right: 12px; }
.uc-order-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.uc-order-main { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.uc-order-goods strong { display: block; font-size: 14.5px; }
.uc-order-goods span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.uc-order-discount { color: var(--success) !important; }
.uc-order-amount { text-align: right; flex: none; }
.uc-order-amount span { font-size: 12px; color: var(--muted); display: block; }
.uc-order-amount strong { font-size: 20px; color: var(--danger); }
.uc-order-amount em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

.uc-cards { margin: 0 18px 14px; border: 1px dashed #cfe0ff; background: #f7faff; border-radius: 12px; padding: 12px 14px; }
.uc-cards-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--primary); margin-bottom: 8px; }
.uc-cards-head em { font-style: normal; color: var(--muted); }
.uc-card-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed #dbe6fb; }
.uc-card-row:first-of-type { border-top: 0; }
.uc-card-row code { flex: 1; font-size: 13px; color: var(--ink); word-break: break-all; background: transparent; }
.uc-copy { height: 30px; padding: 0 12px; font-size: 12px; }
.uc-deliver-tip { margin: 0 18px 14px; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); }
.uc-deliver-tip pre { margin: 6px 0 8px; font-family: inherit; white-space: pre-wrap; color: var(--muted); }
.uc-refund-line { margin: 0 18px 12px; font-size: 12.5px; color: var(--muted); }
.uc-refund-line strong { color: var(--warn); }
.uc-refund-line em { font-style: normal; }
.uc-order-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; }
.uc-order-actions .ghost-btn { height: 34px; padding: 0 14px; font-size: 12.5px; }
.uc-pager { margin-top: 8px; }

.uc-balance-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; background: linear-gradient(120deg, #0f172a, #1e3a8a 60%, #0e7490); color: #e2e8f0; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); }
.uc-balance-main span { font-size: 12.5px; opacity: .75; }
.uc-balance-main strong { display: block; font-size: 34px; letter-spacing: -1px; margin: 4px 0 6px; }
.uc-balance-main em { font-style: normal; font-size: 12px; opacity: .65; }
.uc-balance-side { display: flex; gap: 24px; }
.uc-balance-side span { display: block; font-size: 12px; opacity: .7; }
.uc-balance-side strong { font-size: 17px; }
.uc-balance-actions { display: flex; gap: 10px; }
.uc-balance-actions .ghost-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.uc-balance-actions .ghost-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.uc-balance-actions .primary-btn { background: #fff; color: #1e3a8a !important; box-shadow: none; }

.uc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uc-table th, .uc-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.uc-table thead th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 600; }
.uc-table tbody tr:hover { background: #fafcff; }
.uc-table th[scope], .uc-table tr th:first-child { width: 110px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.uc-table .is-in { color: var(--success); font-weight: 600; }
.uc-table .is-out { color: var(--danger); font-weight: 600; }
.uc-td-note { color: var(--muted); font-size: 12.5px; word-break: break-all; }

.uc-pay-summary { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.uc-pay-summary span { display: block; font-size: 12px; color: var(--muted); }
.uc-pay-summary strong { font-size: 19px; }
.uc-qr { text-align: center; padding: 16px 0; }
.uc-qr .qr-canvas { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.uc-qr p { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.uc-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.uc-channel-form { margin: 0; }
.uc-channel { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .18s; }
.uc-channel:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(37,99,235,.1); transform: translateY(-1px); }
.uc-channel-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.uc-channel-name { flex: 1; text-align: left; font-size: 13.5px; font-weight: 600; }
.uc-channel em { font-style: normal; font-size: 12px; color: var(--primary); }
.uc-result-ok, .uc-result-fail { padding: 10px 0; }
.uc-result-ok strong, .uc-result-fail strong { font-size: 16px; }
.uc-result-ok p, .uc-result-fail p { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }

.uc-amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.uc-amount { position: relative; cursor: pointer; }
.uc-amount input { position: absolute; opacity: 0; pointer-events: none; }
.uc-amount span { display: block; text-align: center; padding: 14px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .16s; }
.uc-amount input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.uc-sign-box .uc-sign-num { text-align: center; padding: 8px 0 16px; }
.uc-sign-num strong { font-size: 46px; line-height: 1; letter-spacing: -2px; color: var(--primary); }
.uc-sign-num span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.uc-rules { font-size: 13px; }
.uc-rules li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.uc-rules li:last-child { border-bottom: 0; }
.uc-rules span { color: var(--muted); }
.uc-rules strong { font-weight: 600; color: var(--ink-2); }
.uc-fee-preview { font-size: 12.5px; color: var(--primary); background: var(--primary-soft); padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; }
.uc-warn { background: var(--warn-soft); border: 1px solid #fde68a; color: var(--warn); font-size: 12.5px; line-height: 1.7; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }

.uc-ticket-list { display: flex; flex-direction: column; }
.uc-ticket-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.uc-ticket-row:last-child { border-bottom: 0; }
.uc-ticket-row strong { display: block; font-size: 13.5px; }
.uc-ticket-row span { font-size: 12px; color: var(--muted); }
.uc-ticket-right { text-align: right; flex: none; }
.uc-ticket-right em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.uc-ticket-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.uc-ticket-order { background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; }
.uc-ticket-order a { color: var(--primary); margin-left: 8px; }
.uc-chat { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.uc-chat-item { display: flex; gap: 10px; }
.uc-chat-item.is-admin { flex-direction: row-reverse; }
.uc-chat-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.uc-chat-item.is-admin .uc-chat-avatar { background: #0f172a; color: #fff; }
.uc-chat-body { max-width: 78%; }
.uc-chat-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.uc-chat-item.is-admin .uc-chat-head { flex-direction: row-reverse; }
.uc-chat-head strong { color: var(--ink-2); }
.uc-chat-head em { font-style: normal; }
.uc-chat-text { background: #f5f8fd; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font-size: 13px; line-height: 1.75; word-break: break-word; }
.uc-chat-item.is-admin .uc-chat-text { background: var(--primary-soft); border-color: #d8e5ff; }
.uc-chat-form { border-top: 1px dashed var(--line); padding-top: 16px; }

/* 登录 / 注册 */
.uc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.08); margin: 32px 0 48px; }
.uc-auth-side { background: linear-gradient(150deg, #0f172a, #1e3a8a 55%, #0e7490); color: #e2e8f0; padding: 46px 40px; }
.uc-auth-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 20px; font-weight: 800; }
.uc-auth-side h1 { font-size: 26px; margin: 20px 0 10px; letter-spacing: -.5px; }
.uc-auth-side p { font-size: 13.5px; opacity: .78; line-height: 1.8; }
.uc-auth-side ul { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.uc-auth-side li { font-size: 13px; opacity: .85; padding-left: 18px; position: relative; }
.uc-auth-side li::before { content: "✓"; position: absolute; left: 0; color: #67e8f9; }
.uc-auth-main { padding: 38px 40px 42px; }
.uc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.uc-tabs a { padding: 10px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.uc-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.uc-form .primary-btn.uc-submit { width: 100%; margin-top: 6px; }
.uc-form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.uc-form-note a { color: var(--primary); }
.uc-form-note .sep { margin: 0 6px; color: #cbd5e1; }
.uc-captcha { display: flex; gap: 10px; }
.uc-captcha input { flex: 1; }
.uc-captcha img { height: 42px; width: 120px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; }
.uc-code { display: flex; gap: 10px; }
.uc-code input { flex: 1; }
.uc-code-btn { height: 42px; padding: 0 16px; flex: none; font-size: 12.5px; }
.uc-code-tip { font-size: 12px; margin-top: 6px; color: var(--muted); }
.uc-code-tip.is-ok { color: var(--success); }
.uc-code-tip.is-error { color: var(--danger); }

@media (max-width: 960px) {
    .uc-wrap { grid-template-columns: 1fr; margin: 18px 0 32px; }
    .uc-side { position: static; }
    .uc-profile { margin-bottom: 10px; }
    .uc-nav { flex-direction: row; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; }
    .uc-nav::-webkit-scrollbar { display: none; }
    .uc-nav a { flex: none; padding: 8px 12px; font-size: 12.5px; }
    .uc-nav a i { display: none; }
    .uc-logout { margin-top: 10px; }
    .uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uc-grid-2 { grid-template-columns: 1fr; }
    .uc-balance-card { grid-template-columns: 1fr; gap: 14px; }
    .uc-balance-side { gap: 30px; }
    .uc-auth { grid-template-columns: 1fr; margin: 16px 0 32px; }
    .uc-auth-side { padding: 28px 26px; }
    .uc-auth-side ul { display: none; }
    .uc-auth-main { padding: 26px 22px 32px; }
    .uc-table { display: block; overflow-x: auto; white-space: nowrap; }
    .uc-order-main { flex-direction: column; }
    .uc-order-amount { text-align: left; }
    .uc-chat-body { max-width: 84%; }
}

/* 余额支付条 */
.balance-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f8fbff; border: 1px dashed #cfe0ff; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.balance-pay-info { flex: 1; min-width: 180px; }
.balance-pay-info strong { display: block; font-size: 13.5px; }
.balance-pay-info span { font-size: 12px; color: var(--muted); }
.balance-pay input[type=password] { height: 38px; width: 150px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font-size: 13px; background: #fff; }
.balance-pay input[type=password]:focus { outline: none; border-color: #93b4f8; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.points-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.points-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.points-row .field-tip b { color: var(--success); }

/* ==========================================================================
   移动端适配（第 6 期：一套模板双端自适应，断点 720 / 480）
   ========================================================================== */
@media (max-width: 720px) {
    .container { width: calc(100% - 24px); }

    /* 顶栏：精简为一行小字 */
    .topbar-inner { height: auto; padding: 7px 0; gap: 6px; flex-wrap: wrap; justify-content: center; }
    .topbar-left { font-size: 11.5px; }
    .topbar-right { gap: 8px; font-size: 11.5px; }

    /* 站点头部 */
    .site-head { padding-top: 14px; }
    .head-inner { gap: 10px; }
    .brand { gap: 9px; }
    .brand-mark, .brand img { width: 38px; height: 38px; border-radius: 11px; font-size: 17px; }
    .brand-text strong { font-size: 16.5px; }
    .brand-text em { display: none; }
    .head-actions .ghost-btn { display: none; }
    .head-actions .primary-btn.small { padding: 7px 12px; font-size: 12.5px; }
    .search { height: 40px; order: 3; flex: 1 0 100%; width: 100%; max-width: none; margin-bottom: 2px; }
    .search input { font-size: 13.5px; padding: 0 12px; }
    .search button { padding: 0 16px; font-size: 13px; }

    /* 分类导航：横向滚动不折行 */
    .cat-nav { margin-top: 12px; }
    .cat-nav-inner { gap: 2px; padding: 0 2px; }
    .cat-nav a { font-size: 13px; padding: 10px 10px; white-space: nowrap; }

    .main { padding: 14px 0 32px; }

    /* 首页 Hero */
    .hero { padding: 22px 18px; border-radius: 16px; }
    .eyebrow { font-size: 10.5px; letter-spacing: 2px; margin-bottom: 10px; }
    .hero h1 { font-size: 23px; }
    .hero-desc { font-size: 13px; margin-top: 10px; }
    .hero-tags { gap: 6px; margin-top: 16px; }
    .hero-tags span { font-size: 11.5px; padding: 4px 9px; }

    .layout { gap: 16px; }

    /* 商品卡：两列紧凑 */
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .goods-card { border-radius: 12px; }
    .goods-cover { height: 104px; }
    .goods-cover .type-badge { font-size: 10px; padding: 2px 6px; }
    .goods-cover.big { height: 180px; }
    .goods-body { padding: 10px 11px 12px; }
    .goods-body h3 {
        font-size: 13px; line-height: 1.35; white-space: normal;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        height: 2.7em;
    }
    .goods-sub { display: none; }
    .goods-meta { font-size: 11px; gap: 8px; margin: 8px 0; }
    .goods-bottom .price strong { font-size: 17px; }
    .goods-bottom .price em { font-size: 11.5px; }
    .buy-btn { font-size: 11.5px; padding: 5px 9px; border-radius: 8px; }

    /* 详情 / 收银台 / 查单 */
    .detail-layout, .pay-layout, .query-layout { gap: 16px; }
    .goods-head { gap: 16px; }
    .goods-head-info h1 { font-size: 19px; }
    .order-form { padding: 16px; }
    .panel { border-radius: 12px; }
    .pay-status { padding: 18px; }
    .pay-status .price strong { font-size: 26px; }
    .qr-box { padding: 18px 14px; }
    .qr-canvas { width: 168px; height: 168px; }

    /* 分页 */
    .pager { justify-content: center; gap: 5px; margin-top: 20px; }
    .pager em { width: 100%; text-align: center; margin: 6px 0 0; }
    .pager a, .pager span { min-width: 32px; height: 32px; padding: 0 10px; font-size: 12.5px; }

    /* 页脚 */
    .site-foot { padding: 26px 0 18px; }
    .foot-inner { flex-direction: column; gap: 14px; }
    .foot-links { flex-wrap: wrap; gap: 10px 18px; font-size: 12.5px; }
    .copyright { margin-top: 18px; padding-top: 12px; line-height: 1.7; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 21px; }
    .goods-cover { height: 96px; }
    .goods-body h3 { font-size: 12.5px; }
    .goods-bottom .price strong { font-size: 16px; }
    .buy-btn { display: none; }
    .goods-card .goods-bottom { justify-content: flex-start; }
}

/* ==========================================================================
   首页装修：公告条 / 轮播 / 通栏（第 7 期）
   ========================================================================== */
.mh-notice {
    display: flex; align-items: center; gap: 10px; margin: 14px 0 0;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 9px 14px; font-size: 13px; color: #1e40af; line-height: 1.5;
}
.mh-notice-tag {
    flex: none; background: #2563eb; color: #fff; font-size: 11px;
    padding: 2px 8px; border-radius: 5px; letter-spacing: .5px;
}

.mh-banner {
    position: relative; margin-top: 16px; border-radius: 18px; overflow: hidden;
    height: 260px; background: #0f172a; box-shadow: 0 16px 40px rgba(30, 58, 138, .16);
}
.mh-banner-track { position: relative; width: 100%; height: 100%; }
.mh-banner-slide {
    position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s; background-size: cover; background-position: center;
}
.mh-banner-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.mh-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-banner-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 15, 35, .72) 0%, rgba(8, 15, 35, .28) 55%, rgba(8, 15, 35, 0) 100%);
    pointer-events: none;
}
.mh-banner-txt {
    position: absolute; left: 76px; bottom: 34px; z-index: 2; max-width: 58%;
    display: flex; flex-direction: column; gap: 8px; color: #fff;
}
.mh-banner-txt strong { font-size: 27px; line-height: 1.3; letter-spacing: -.3px; }
.mh-banner-txt span { font-size: 14px; color: rgba(255, 255, 255, .82); line-height: 1.6; }
.mh-banner-txt em {
    align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600;
    background: #fff; color: #1e3a8a; padding: 7px 18px; border-radius: 999px;
}
.mh-banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; line-height: 1;
    backdrop-filter: blur(4px); transition: background .15s;
}
.mh-banner-nav:hover { background: rgba(255, 255, 255, .34); }
.mh-banner-nav.prev { left: 14px; }
.mh-banner-nav.next { right: 14px; }
.mh-banner-dots {
    position: absolute; right: 22px; bottom: 18px; z-index: 3; display: flex; gap: 6px;
}
.mh-banner-dots i {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45);
    cursor: pointer; transition: all .2s;
}
.mh-banner-dots i.on { width: 22px; border-radius: 4px; background: #fff; }

.mh-mid-banner {
    position: relative; display: flex; align-items: center; gap: 16px;
    min-height: 88px; padding: 16px 24px; margin-bottom: 18px;
    border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none;
}
.mh-mid-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mh-mid-banner .mh-banner-txt { position: relative; left: auto; bottom: auto; max-width: none; flex: 1; gap: 3px; }
.mh-mid-banner .mh-banner-txt strong { font-size: 17px; }
.mh-mid-banner .mh-banner-txt span { font-size: 12.5px; }
.mh-mid-btn {
    position: relative; flex: none; font-style: normal; font-size: 12.5px; font-weight: 600;
    background: #fff; color: #1d4ed8; padding: 6px 14px; border-radius: 999px;
}

@media (max-width: 720px) {
    .mh-notice { font-size: 12px; padding: 8px 12px; margin-top: 12px; }
    .mh-banner { height: 168px; border-radius: 14px; margin-top: 12px; }
    .mh-banner-txt { left: 16px; bottom: 18px; max-width: 76%; gap: 4px; }
    .mh-banner-txt strong { font-size: 18px; }
    .mh-banner-txt span { font-size: 12px; }
    .mh-banner-txt em { font-size: 11.5px; padding: 5px 13px; margin-top: 3px; }
    .mh-banner-nav { display: none; }
    .mh-banner-dots { right: 12px; bottom: 10px; }
    .mh-banner-dots i { width: 6px; height: 6px; }
    .mh-banner-dots i.on { width: 16px; }
    .mh-mid-banner { min-height: 74px; padding: 12px 16px; margin-bottom: 12px; gap: 10px; }
    .mh-mid-banner .mh-banner-txt strong { font-size: 14px; }
    .mh-mid-banner .mh-banner-txt span { font-size: 11.5px; }
    .mh-mid-btn { display: none; }
}

/* 有轮播时 Hero 转为浅色卡片，与深色轮播形成层次（第 7 期） */
.mh-banner { margin-bottom: 18px; }
.hero-light {
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-light::after { display: none; }
.hero-light .eyebrow { color: #2563eb; }
.hero-light h1 span { background: linear-gradient(90deg, #2563eb, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-light .hero-desc { color: #475569; }
.hero-light .hero-tags span { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.hero-light .hero-card { background: #f8fafc; border-color: #e2e8f0; backdrop-filter: none; }
.hero-light .hero-card-row { border-bottom-color: #e2e8f0; }
.hero-light .hero-card-row span { color: #64748b; }
.hero-light .hero-card-row strong { color: #0f172a; }
.hero-light .hero-card-link { background: #2563eb; color: #fff !important; }
.hero-light .hero-card-link:hover { background: #1d4ed8; }

@media (max-width: 720px) {
    .mh-banner { margin-bottom: 12px; }
    .hero-light { padding: 20px 18px; }
}
