/* ==========================================================================
   前台样式 —— 视觉参考上游发卡站
   结构：顶栏 / 公告面板 / 分类chip / 搜索栏 / 分类分组商品列表
   配色：蓝(#0d6efd) + 购买按钮橙红渐变 + 浅灰蓝底
   ========================================================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-soft: #eaf2ff;
    --primary-line: #cfe2ff;

    --buy: #ff5b3a;
    --buy-dark: #f0451f;
    --buy-grad: linear-gradient(135deg, #ff7a59 0%, #ff4d2e 100%);

    --text: #2b3445;
    --text-strong: #1a2233;
    --muted: #7a8699;
    --line: #e3e8f1;
    --line-soft: #eef2f8;
    --bg: #f4f7fc;
    --card: #ffffff;

    --green: #16a34a;
    --green-soft: #e7f7ee;
    --orange: #f59e0b;
    --red: #e5484d;
    --red-soft: #ffe9e6;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(23, 43, 77, .05);
    --shadow: 0 2px 10px rgba(23, 43, 77, .07);
    --shadow-lg: 0 8px 26px rgba(23, 43, 77, .12);
}

* { box-sizing: border-box; }

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

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
                 "PingFang SC", "Hiragino Sans GB", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;              /* 防止移动端横向溢出 */
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
}

img, svg { max-width: 100%; height: auto; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mono { font-family: Consolas, Monaco, "Courier New", monospace; }
.req { color: var(--red); }

/* ============================ 顶栏 ============================ */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: .3px;
    min-width: 0;
}

.brand-dot {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, #4d9bff 0%, #0d6efd 60%, #0a4fd0 100%);
    flex: 0 0 auto;
    position: relative;
    box-shadow: 0 3px 8px rgba(13, 110, 253, .35);
}

.brand-dot::after {
    content: '';
    position: absolute;
    left: 6px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .9);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.topnav a {
    color: #5b6b83;
    font-size: 14px;
    padding: 7px 13px;
    border-radius: 20px;
    transition: all .16s;
    white-space: nowrap;
}

.topnav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* ============================ 公告面板 ============================ */
.notice-panel {
    background: linear-gradient(135deg, #eaf2ff 0%, #f4f8ff 55%, #eef6ff 100%);
    border: 1px solid var(--primary-line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 13px;
    color: #2d4a70;
    line-height: 1.85;
}

.notice-head {
    display: inline-block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: .5px;
}

.notice-body p { margin: 0 0 3px; }

.notice-tip {
    margin-top: 8px !important;
    color: #4a5b73;
}

.notice-tip .warn {
    display: inline-block;
    background: var(--buy-grad);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: 1px;
}

/* ============================ 分类 chips ============================ */
.cat-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-bar::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: #4b5a72;
    font-size: 13.5px;
    transition: all .16s;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.on {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .3);
}

.chip-n {
    font-size: 11px;
    opacity: .65;
}

.chip.on .chip-n { opacity: .85; }

/* ============================ 搜索栏 ============================ */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1 1 260px;
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 0 14px;
    height: 44px;
    transition: all .18s;
    min-width: 0;
}

.search-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.search-ico {
    font-size: 15px;
    opacity: .5;
    margin-right: 8px;
    flex: 0 0 auto;
}

.search-input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    height: 100%;
    min-width: 0;
    font-family: inherit;
}

.search-input input::placeholder { color: #a8b3c4; }

.search-clear {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #eef2f8;
    color: #7a8699;
    font-size: 16px;
}

.search-clear:hover { background: #e2e8f2; color: #4b5a72; }

.search-btn {
    flex: 0 0 auto;
    padding: 0 24px;
    height: 44px;
    border-radius: 24px;
}

.sort-select {
    flex: 0 0 auto;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 0 14px;
    background: #fff;
    color: #4b5a72;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    outline: 0;
}

.sort-select:focus { border-color: var(--primary); }

/* 筛选结果提示 */
.result-hint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.result-hint .tag {
    background: var(--primary-soft);
    color: var(--primary);
    border: 0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12.5px;
}

.result-reset { margin-left: auto; font-size: 13px; }

/* 列表标题（公告面板下方） */
.list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 4px 0 10px;
}

.list-title .lt-ico { color: var(--primary); font-size: 14px; }

.list-title .lt-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1px 9px;
}

/* 旧版公告条（保留兼容） */
.notice {
    background: #fff8e8;
    border: 1px solid #fbe3a8;
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    margin: 16px 0;
    font-size: 13.5px;
    color: #8a5a08;
}

/* ============================ 分类分组 ============================ */
.cat-section { margin-bottom: 22px; }

.cat-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: linear-gradient(90deg, #e8f1ff 0%, #f3f8ff 70%, #ffffff 100%);
    border: 1px solid var(--primary-line);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
}

.csh-name {
    font-weight: 700;
    color: #1f4e8c;
    font-size: 15px;
}

.csh-count {
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1px 9px;
}

.goods-list {
    background: #fff;
    border: 1px solid var(--primary-line);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

/* ============================ 商品行 ============================ */
.goods-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    transition: background .15s;
    min-width: 0;
}

.goods-row:last-child { border-bottom: 0; }
.goods-row:nth-child(odd) { background: #fbfcfe; }
.goods-row:hover { background: #f4f8ff; }
.goods-row.soldout { opacity: .62; }

.goods-row .gr-ico {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #eaf2ff 0%, #dce9ff 100%);
    border: 1px solid #d6e4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.goods-row .gr-main {
    flex: 1 1 auto;
    min-width: 0;
}

.goods-row .gr-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.goods-row .gr-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.badge-stock {
    display: inline-block;
    font-size: 12px;
    color: #1f4e8c;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    border-radius: 6px;
    padding: 1px 8px;
    white-space: nowrap;
}

.badge-stock.out {
    color: #9aa5b5;
    background: #f1f4f9;
    border-color: #e6ebf3;
}

.badge-deli {
    display: inline-block;
    font-size: 12px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid #cdeedb;
    border-radius: 6px;
    padding: 1px 8px;
    white-space: nowrap;
}

.goods-row .gr-price {
    flex: 0 0 auto;
    color: var(--buy-dark);
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.gr-price .price-cur { font-size: 13px; }
.gr-price .price-num { font-size: 20px; letter-spacing: -.3px; }

.goods-row .gr-act {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 推荐角标 */
.ribbon-hot {
    position: absolute;
    left: -30px;
    top: 11px;
    width: 96px;
    text-align: center;
    transform: rotate(-42deg);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 0;
    box-shadow: 0 2px 6px rgba(22, 163, 74, .35);
    pointer-events: none;
    z-index: 2;
}

/* ============================ 按钮 ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: all .16s;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4d9bff, #0d6efd);
    color: #fff;
    box-shadow: 0 3px 10px rgba(13, 110, 253, .28);
}

.btn-primary:hover { filter: brightness(1.06); color: #fff; }

/* 立即购买 —— 橙红渐变，视觉重点 */
.btn-buy {
    background: var(--buy-grad);
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    box-shadow: 0 3px 10px rgba(255, 77, 46, .3);
}

.btn-buy:hover { filter: brightness(1.07); color: #fff; }

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: #4b5a72;
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
    background: #fff;
    border-color: #f6c9c4;
    color: var(--red);
}

.btn-danger:hover { background: var(--red-soft); }

.btn-disabled {
    background: #f1f4f9;
    color: #a8b3c4;
    cursor: not-allowed;
    border-color: #e6ebf3;
}

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 24px; }
.btn-sm { padding: 4px 12px; font-size: 12.5px; border-radius: 14px; }

/* ============================ 面板 / 卡片 ============================ */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.panel-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #f7faff, #ffffff);
    border-bottom: 1px solid var(--line-soft);
    font-weight: 600;
    color: var(--text-strong);
    flex-wrap: wrap;
}

/* ============================ 表单 ============================ */
.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #42506b;
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field input[type="email"],
.field input[type="date"],
.field input[type="search"],
.field select,
.field textarea,
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: 0;
    transition: all .16s;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.login-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }

.hint {
    font-size: 12.5px;
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row > .field { flex: 1 1 200px; }

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* 支付方式选择 */
.pay-types {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pay-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13.5px;
    background: #fff;
    transition: all .16s;
}

.pay-type:hover { border-color: var(--primary); }

.pay-type input { accent-color: var(--primary); margin: 0; }

.pay-type:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 600;
}

/* 数量选择 */
.qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: #4b5a72;
    cursor: pointer;
    line-height: 1;
    transition: all .16s;
}

.qty-btn:hover { border-color: var(--primary); color: var(--primary); }

.qty-row input[type="number"] {
    width: 88px !important;
    text-align: center;
    font-weight: 600;
}

.stock-hint { font-size: 13px; color: var(--muted); }

/* 金额条 */
.amount-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #fff6f3, #fffaf8);
    border: 1px solid #ffd9cd;
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    margin: 18px 0;
}

.amount-bar span { color: #7a5a4e; font-size: 13.5px; }
.amount-bar strong { color: var(--buy-dark); font-size: 22px; }

/* 商品摘要 */
.goods-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafd;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.gs-name { font-weight: 600; color: var(--text-strong); }
.gs-price { color: var(--buy-dark); font-weight: 700; }

/* ============================ 提示条 ============================ */
.flash {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13.5px;
    border: 1px solid transparent;
    line-height: 1.7;
}

.flash-ok   { background: #eafaf1; border-color: #c3eed6; color: #10693c; }
.flash-err  { background: #fdeeed; border-color: #f8cdc9; color: #a02126; }
.flash-warn { background: #fff8e8; border-color: #fbe3a8; color: #8a5a08; }

.pay-mock-banner {
    background: #fff8e8;
    border: 1px solid #fbe3a8;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #8a5a08;
    line-height: 1.7;
}

.empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-size: 14px;
}

/* ============================ 面包屑 / 标签 ============================ */
.crumbs {
    font-size: 13px;
    color: var(--muted);
    margin: 15px 0 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.crumbs span { color: #c3ccda; }

.tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 5px;
    padding: 1px 8px;
    font-size: 12px;
}

/* 徽章 */
.badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 11px;
    background: #eef2f8;
    color: #5b6b83;
    white-space: nowrap;
}

.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red   { background: var(--red-soft);   color: var(--red); }
.badge-blue  { background: var(--primary-soft); color: var(--primary); }
.badge-gray  { background: #f1f4f9; color: #8b96a8; }
.badge-orange{ background: #fff4e3; color: #b06a06; }

/* ============================ 表格 ============================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.info-table th,
.info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    width: 110px;
    background: #fafcff;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 560px;
}

table.data th,
table.data td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}

table.data thead th {
    background: #f7faff;
    color: #42506b;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================ 卡密展示 ============================ */
.cards-box {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #f8fafd;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}

.card-idx {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.card-content {
    flex: 1 1 auto;
    font-size: 13.5px;
    color: var(--text-strong);
    word-break: break-all;
    background: transparent;
}

.copy-btn { flex: 0 0 auto; }

/* ============================ 订单列表 ============================ */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: all .16s;
}

.order-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.or-main { flex: 1 1 auto; min-width: 0; }
.or-name { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.or-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; word-break: break-all; }
.or-right { flex: 0 0 auto; text-align: right; }
.or-amount { color: var(--buy-dark); font-weight: 700; margin-bottom: 4px; }

/* ============================ 分页 ============================ */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 18px 0 6px;
    font-size: 13.5px;
}

.pager a,
.pager .current,
.pager .disabled,
.pager .gap {
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 9px;
    background: #fff;
    color: #4b5a72;
    display: inline-block;
}

.pager a:hover { border-color: var(--primary); color: var(--primary); }

.pager .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.pager .disabled { color: #c3ccda; background: #fafbfd; }
.pager .gap { border: 0; background: transparent; }
.pager .pg-info { border: 0; background: transparent; color: var(--muted); margin-right: 6px; }

/* ============================ 筛选器（后台复用） ============================ */
.filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0 16px;
}

.f-item { display: flex; flex-direction: column; gap: 5px; }
.f-item label { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.f-item input,
.f-item select {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    outline: 0;
}

.f-item input:focus,
.f-item select:focus { border-color: var(--primary); }

/* ============================ 页脚 ============================ */
.footer {
    margin-top: 34px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.9;
}

.footer p { margin: 0 0 4px; }
.footer-tips { color: #5b6b83; }
.footer strong { color: var(--buy-dark); }

/* ============================ 登录页（后台复用） ============================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 50%, #eaf1fb 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    margin: 0 0 4px;
    font-size: 21px;
    color: var(--text-strong);
    text-align: center;
}

.login-box .sub {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 22px;
}

.login-box .field { margin-bottom: 15px; }
.login-box .field label { font-size: 13px; }
.login-box .btn { margin-top: 6px; }

/* ============================ 库存告警色 ============================ */
.stock-low  { color: var(--orange); font-weight: 600; }
.stock-warn { color: var(--red); font-weight: 700; }

/* ============================ 分页页码/杂项 ============================ */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.stat {
    flex: 1 1 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-strong); margin: 4px 0 2px; }
.stat-sub { font-size: 12px; color: var(--muted); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 768px) {
    .wrap { padding: 0 12px; }

    .topbar-inner { height: 54px; gap: 8px; }
    .brand { font-size: 16px; gap: 7px; }
    .brand-dot { width: 20px; height: 20px; }
    .brand-dot::after { left: 5px; top: 5px; width: 10px; height: 10px; }
    .topnav { gap: 2px; }
    .topnav a { padding: 6px 9px; font-size: 13px; }

    .notice-panel { padding: 12px 14px; font-size: 12.5px; margin: 14px 0; line-height: 1.8; }

    .cat-bar { padding-bottom: 10px; }
    .chip { padding: 6px 13px; font-size: 13px; }

    .search-bar { gap: 8px; }
    .search-input { flex: 1 1 100%; height: 42px; }
    .search-btn { flex: 1 1 auto; height: 42px; }
    .sort-select { flex: 1 1 auto; height: 42px; }

    .cat-section-head { padding: 8px 13px; }
    .csh-name { font-size: 14px; }

    /* 商品行在手机上转为两行布局，彻底避免横向溢出 */
    .goods-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 13px;
        align-items: flex-start;
    }

    .goods-row .gr-ico {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 9px;
    }

    .goods-row .gr-main { flex: 1 1 calc(100% - 46px); }

    .goods-row .gr-name { font-size: 14px; }

    .goods-row .gr-price { margin-left: 46px; }

    .goods-row .gr-act {
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .btn-buy { padding: 7px 16px; font-size: 13px; }

    .ribbon-hot {
        left: -34px;
        top: 9px;
        width: 96px;
        font-size: 9.5px;
        padding: 2px 0;
    }

    .panel { padding: 16px 15px; border-radius: 10px; }
    .panel-title { font-size: 15px; }
    .card-title { padding: 12px 14px; font-size: 14px; }

    .form-row { gap: 0; }
    .form-row > .field { flex: 1 1 100%; }

    .info-table th { width: 88px; padding: 9px 10px; font-size: 12.5px; }
    .info-table td { padding: 9px 10px; }

    .card-item { flex-wrap: wrap; }
    .card-content { flex: 1 1 100%; order: 3; }

    .or-right { text-align: right; }
    .or-name { font-size: 13.5px; }

    .amount-bar { padding: 11px 14px; }
    .amount-bar strong { font-size: 19px; }

    .btn-lg { padding: 11px 20px; font-size: 14.5px; }
}

@media (max-width: 380px) {
    .topnav a { padding: 6px 7px; font-size: 12.5px; }
    .brand { font-size: 15px; }
    .goods-row .gr-price { margin-left: 0; }
    .goods-row .gr-act { flex: 1 1 100%; }
    .btn-buy { width: 100%; }
}

/* ==========================================================================
   会员中心（余额 / 充值 / 明细）
   ========================================================================== */

.nav-bal {
    color: var(--buy) !important;
    font-weight: 700;
}

.uc-balance-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 60%, #0a4fb8 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
}

.uc-bal-label { font-size: 13px; opacity: .85; letter-spacing: .5px; }

.uc-bal-num {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 4px 0 14px;
    letter-spacing: -1px;
}

.uc-bal-num span {
    font-size: 22px;
    font-weight: 600;
    margin-right: 2px;
    opacity: .9;
}

.uc-bal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.uc-bal-actions .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.uc-bal-actions .btn-ghost {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.uc-bal-tip {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    font-size: 12.5px;
    opacity: .92;
}

.uc-balance-inline {
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.uc-balance-inline strong { color: var(--buy); font-size: 18px; }

.uc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.uc-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}

.uc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.uc-card-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    word-break: break-all;
}

.uc-card-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.qa-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}

.qa-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

@media (max-width: 600px) {
    .uc-bal-num { font-size: 32px; }
    .uc-cards { grid-template-columns: 1fr; }
    .uc-card { padding: 12px; }
}


/* ==========================================================================
   使用教程
   ========================================================================== */

.nav-help {
    color: var(--buy) !important;
    font-weight: 600;
}

.help-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: start;
}

.help-side {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 12px;
}

.help-side-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 12px;
    font-weight: 700;
    color: var(--text-strong);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 6px;
}

.help-side-ico { font-size: 16px; }

.help-side-count {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    background: var(--line-soft);
    border-radius: 999px;
    padding: 1px 8px;
}

.help-cat { border-bottom: 1px dashed var(--line-soft); }
.help-cat:last-child { border-bottom: 0; }

.help-cat-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    background: none;
    border: 0;
    padding: 11px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
    cursor: pointer;
    font-family: inherit;
}

.help-cat-head:hover { color: var(--primary); }

.help-cat-n {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: var(--line-soft);
    border-radius: 999px;
    padding: 1px 7px;
}

.help-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    display: none;
}

.help-cat.is-open .help-list { display: block; }

.help-link {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
    transition: background .15s, color .15s;
}

.help-link:hover { background: var(--primary-soft); color: var(--primary); }

.help-link.on {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.help-main .panel { margin-bottom: 16px; }

.help-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.help-video {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
    background: #000;
    margin-bottom: 14px;
}

.help-body {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--text);
}

.help-body h4 {
    margin: 20px 0 8px;
    font-size: 15px;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

.help-body h4:first-child { margin-top: 4px; }
.help-body p { margin: 8px 0; }
.help-body ul { margin: 8px 0; padding-left: 22px; }
.help-body li { margin: 5px 0; }
.help-body strong { color: var(--text-strong); }
.help-body a { color: var(--primary); word-break: break-all; }

.help-body pre {
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.7;
}

.help-body .help-tip {
    background: #fff8e6;
    border: 1px solid #ffe0a3;
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    color: #8a5a00;
    font-size: 13.5px;
    margin-top: 14px;
}

.help-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.help-nav-left, .help-nav-right { flex: 1; }
.help-nav-right { text-align: right; }

.help-contact {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.help-contact-item { font-size: 13.5px; color: var(--muted); }

@media (max-width: 768px) {
    .help-layout { grid-template-columns: 1fr; }
    .help-side { position: static; }
    .help-body { font-size: 14px; }
}


/* ==========================================================================
   USDT（TRC20）支付页
   ========================================================================== */

.usdt-panel { max-width: 560px; margin-left: auto; margin-right: auto; }

.usdt-warn { text-align: left; line-height: 1.8; }

.usdt-amount-box {
    text-align: center;
    background: linear-gradient(135deg, #e9fbf2 0%, #e2f5ff 100%);
    border: 1px solid #bfe9d1;
    border-radius: var(--radius);
    padding: 18px 16px 14px;
    margin: 16px 0;
}

.usdt-amount-label { font-size: 13px; color: var(--muted); }

.usdt-amount {
    font-size: 42px;
    font-weight: 800;
    color: #0f9d58;
    line-height: 1.15;
    letter-spacing: -1px;
    word-break: break-all;
    margin: 2px 0;
}

.usdt-amount em {
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    color: #0b7a44;
    margin-left: 4px;
}

.usdt-amount-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
}

.usdt-addr-box {
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
}

.usdt-addr-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.usdt-addr {
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    color: var(--text-strong);
    user-select: all;
}

.usdt-qr { text-align: center; margin-top: 6px; }
.usdt-qr img {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 6px;
    max-width: 100%;
    height: auto;
}
.usdt-qr-tip { font-size: 12px; color: var(--muted); margin-top: 6px; }

.usdt-info { margin-top: 4px; }

.usdt-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #eef6ff;
    border: 1px solid var(--primary-line);
    color: var(--primary-dark);
    font-size: 13.5px;
    margin: 16px 0 10px;
}

.usdt-status.is-ok  { background: var(--green-soft); border-color: #bfe9d1; color: #10693c; font-weight: 600; }
.usdt-status.is-err { background: var(--red-soft);  border-color: #f7ccc9; color: #9f2026; }

.usdt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
    animation: usdtPulse 1.2s ease-in-out infinite;
}

.usdt-status.is-ok .usdt-dot,
.usdt-status.is-err .usdt-dot { animation: none; }

@keyframes usdtPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}

@media (max-width: 600px) {
    .usdt-amount { font-size: 32px; }
    .usdt-amount em { font-size: 14px; }
}


/* ==========================================================================
   视觉升级 v2 —— 顶栏导航 / 会员中心 / USDT 支付页
   （放在文件最后，覆盖前面的同名规则）
   ========================================================================== */

/* ============================ 顶栏 ============================ */
.topbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(227, 232, 241, .9);
    box-shadow: 0 1px 3px rgba(23, 43, 77, .04);
}

.topbar-inner { height: 64px; gap: 18px; }

.brand { font-size: 19px; letter-spacing: .2px; }

.brand-dot {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .38);
}

.brand-dot::after { left: 7px; top: 7px; width: 12px; height: 12px; border-radius: 4px; }

.topnav { min-width: 0; }

.topnav-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
    margin: -2px;
}

.topnav-scroll::-webkit-scrollbar { display: none; }

.topnav .nav-item {
    color: #5b6b83;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 11px;
    white-space: nowrap;
    transition: color .16s, background .16s, transform .16s;
}

.topnav .nav-item:hover {
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.topnav .nav-help { color: #b4581f; }
.topnav .nav-help:hover { color: #d2691e; background: #fff1e6; }

.topnav .nav-quiet { color: var(--muted); font-size: 13.5px; }
.topnav .nav-quiet:hover { color: var(--red); background: var(--red-soft); }

.topnav .nav-bal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5e0 0%, #ffe9c2 100%);
    border: 1px solid #ffd894;
    white-space: nowrap;
    transition: transform .16s, box-shadow .16s;
}

.topnav .nav-bal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .28);
}

.nav-bal-label { font-size: 12px; color: #a86a00; }
.nav-bal-num { font-size: 14.5px; font-weight: 800; color: #b45309; letter-spacing: .2px; }

.topnav .nav-cta {
    padding: 9px 18px;
    border-radius: 11px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #4d9bff 0%, #0d6efd 60%, #0a4fd0 100%);
    box-shadow: 0 4px 14px rgba(13, 110, 253, .3);
    white-space: nowrap;
    transition: transform .16s, box-shadow .16s, filter .16s;
}

.topnav .nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(13, 110, 253, .38);
    filter: brightness(1.04);
}

@media (max-width: 720px) {
    .topbar-inner { height: 58px; gap: 10px; }
    .brand { font-size: 16px; }
    .brand-dot { width: 22px; height: 22px; border-radius: 7px; }
    .brand-dot::after { left: 6px; top: 6px; width: 10px; height: 10px; }
    .topnav .nav-item { padding: 7px 11px; font-size: 13px; }
    .topnav .nav-cta { padding: 8px 14px; font-size: 13px; }
    .topnav .nav-bal { padding: 6px 11px; }
    .nav-bal-label { display: none; }
    .nav-bal-num { font-size: 13.5px; }
}

/* ============================ 会员中心 ============================ */
.uc-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px 22px 20px;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #0ea5e9 100%);
    box-shadow: 0 14px 36px rgba(29, 78, 216, .26);
}

.uc-hero-glow {
    position: absolute;
    right: -70px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.uc-hero-glow::after {
    content: '';
    position: absolute;
    left: -170px;
    top: 150px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .35) 0%, rgba(14, 165, 233, 0) 70%);
}

.uc-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 18px;
}

.uc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 800;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    flex: 0 0 auto;
}

.uc-hero-name { font-size: 16px; font-weight: 700; }
.uc-hero-sub { font-size: 12.5px; opacity: .78; margin-top: 1px; word-break: break-all; }

.uc-bal-label { font-size: 12.5px; opacity: .8; letter-spacing: .5px; position: relative; }

.uc-bal-num {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 2px 0 16px;
    position: relative;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.uc-bal-num span { font-size: 22px; font-weight: 600; margin-right: 3px; opacity: .85; }

.uc-bal-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

.uc-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 11px;
    background: #fff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: transform .16s, box-shadow .16s;
}

.uc-btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); color: #1d4ed8; }
.uc-btn-ico { font-size: 16px; line-height: 1; }

.uc-btn-line {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 11px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .42);
    transition: background .16s, transform .16s;
}

.uc-btn-line:hover { background: rgba(255, 255, 255, .26); color: #fff; transform: translateY(-1px); }

.uc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }

.uc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px 16px;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}

.uc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 43, 77, .1);
    border-color: var(--primary-line);
}

.uc-card-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: var(--primary-soft);
    flex: 0 0 auto;
}

.uc-card-body { min-width: 0; flex: 1; }

.uc-card-num {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.25;
    word-break: break-all;
}

.uc-card-label { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.uc-card-arrow { color: #c3ccdb; font-size: 20px; transition: transform .16s, color .16s; }
.uc-card:hover .uc-card-arrow { color: var(--primary); transform: translateX(3px); }

@media (max-width: 700px) {
    .uc-hero { padding: 18px; border-radius: 16px; }
    .uc-bal-num { font-size: 34px; }
    .uc-cards { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================ USDT 支付页 ============================ */
.usdt-panel {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(23, 43, 77, .1);
}

.usdt-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0f9d58 0%, #17a06a 55%, #22a6a0 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.usdt-head::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 70%);
}

.usdt-head-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    flex: 0 0 auto;
    position: relative;
}

.usdt-head-txt { flex: 1; min-width: 0; position: relative; }
.usdt-head-txt h2 { margin: 0; font-size: 17px; font-weight: 700; }
.usdt-head-txt p { margin: 2px 0 0; font-size: 12.5px; opacity: .88; }
.usdt-head-txt code {
    background: rgba(255, 255, 255, .18);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
}

.usdt-net-badge {
    position: relative;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .42);
    letter-spacing: .5px;
    flex: 0 0 auto;
}

.usdt-steps {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    gap: 6px;
    background: #f8fafd;
    border-bottom: 1px solid var(--line-soft);
}

.usdt-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}

.usdt-steps b {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    background: #e3e8f1;
    color: #8a93a5;
    flex: 0 0 auto;
}

.usdt-steps li.is-on { color: var(--green); font-weight: 700; }
.usdt-steps li.is-on b { background: var(--green); color: #fff; }

.usdt-amount-box {
    position: relative;
    overflow: hidden;
    margin: 18px;
    padding: 22px 18px 18px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf6 0%, #ecfdf5 45%, #e6fbf7 100%);
    border: 1px solid #c7f0d9;
}

.usdt-amount-box::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .14) 0%, rgba(16, 185, 129, 0) 70%);
}

.usdt-amount-label { font-size: 13px; color: #4b7a63; position: relative; }
.usdt-amount-label strong { color: #0f9d58; }

.usdt-amount {
    position: relative;
    font-size: 46px;
    font-weight: 800;
    color: #0b8f4f;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 6px 0 4px;
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}

.usdt-amount em {
    font-size: 17px;
    font-weight: 700;
    font-style: normal;
    margin-left: 5px;
    color: #12a05c;
    letter-spacing: 0;
}

.usdt-amount-sub { font-size: 12.5px; color: #6b8a7a; position: relative; margin-bottom: 14px; }
.usdt-amount-sub strong { color: #2f6b4f; }
.usdt-dot-sep { margin: 0 6px; opacity: .5; }

.usdt-copy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #9fe0bd;
    background: #fff;
    color: #0f9d58;
    cursor: pointer;
    font-family: inherit;
    transition: all .16s;
}

.usdt-copy:hover {
    background: #0f9d58;
    color: #fff;
    border-color: #0f9d58;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 157, 88, .28);
}

.usdt-copy.is-primary {
    width: 100%;
    background: linear-gradient(135deg, #12b76a 0%, #0f9d58 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(15, 157, 88, .3);
}

.usdt-copy.is-primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, #12b76a 0%, #0f9d58 100%); }
.usdt-copy-ico { font-size: 15px; line-height: 1; }

.usdt-qr-card {
    text-align: center;
    margin: 0 18px 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(23, 43, 77, .05);
}

.usdt-qr-card img { border-radius: 10px; display: block; margin: 0 auto; }
.usdt-qr-tip { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.usdt-addr-box { margin: 0 18px 16px; }

.usdt-addr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.usdt-addr-label { font-size: 13px; color: var(--muted); }

.usdt-addr-net {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f9d58;
    background: #e9fbf2;
    border: 1px solid #c7f0d9;
    padding: 2px 9px;
    border-radius: 999px;
}

.usdt-addr {
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-all;
    background: #f6f9fc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 10px;
    color: var(--text-strong);
    user-select: all;
    -webkit-user-select: all;
}

.usdt-net-warn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 18px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #ffe0a3;
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.7;
}

.usdt-net-warn strong { color: #a13d00; }

.usdt-net-warn-ico {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
    margin-top: 1px;
}

.usdt-meta {
    margin: 0 18px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.usdt-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 13.5px;
    background: #fff;
}

.usdt-meta-row + .usdt-meta-row { border-top: 1px solid var(--line-soft); }
.usdt-meta-row span { color: var(--muted); flex: 0 0 auto; }
.usdt-meta-row b { color: var(--text-strong); font-weight: 600; text-align: right; word-break: break-all; }
.usdt-meta-strong { color: #0f9d58 !important; font-weight: 800 !important; }

.usdt-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 18px 12px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #eef6ff;
    border: 1px solid var(--primary-line);
    color: var(--primary-dark);
    font-size: 13.5px;
    line-height: 1.6;
}

.usdt-status.is-ok { background: #e9fbf2; border-color: #bfe9d1; color: #0b7a44; font-weight: 700; }
.usdt-status.is-err { background: var(--red-soft); border-color: #f7ccc9; color: #9f2026; }

.usdt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
    animation: usdtPulse 1.3s ease-in-out infinite;
}

.usdt-status.is-ok .usdt-dot,
.usdt-status.is-err .usdt-dot { animation: none; }

@keyframes usdtPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.78); }
}

.usdt-check {
    display: block;
    width: calc(100% - 36px);
    margin: 0 18px 16px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .16s;
}

.usdt-check:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.usdt-tips {
    margin: 0;
    padding: 14px 18px 18px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.8;
    text-align: center;
    border-top: 1px dashed var(--line);
}

.usdt-tips strong { color: #b45309; }

@media (max-width: 600px) {
    .usdt-amount { font-size: 36px; letter-spacing: -1px; }
    .usdt-amount em { font-size: 14px; }
    .usdt-steps li { font-size: 11.5px; gap: 4px; }
    .usdt-head-txt h2 { font-size: 16px; }
}


/* ==========================================================================
   下单页 —— 左（购买卡，吸顶）+ 右（商品详情）
   ========================================================================== */

.buy-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 18px;
    align-items: start;
}

.buy-left { position: sticky; top: 78px; }

.buy-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(23, 43, 77, .06);
}

.buy-name {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-strong);
    word-break: break-word;
}

.buy-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.badge-auto,
.badge-stock,
.badge-up {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-auto  { color: #0f9d58; background: #e9fbf2; border: 1px solid #bfe9d1; }
.badge-stock { color: #0b5ed7; background: var(--primary-soft); border: 1px solid var(--primary-line); }
.badge-up    { color: #b45309; background: #fff8e6; border: 1px solid #ffe0a3; }

.buy-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.buy-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--buy);
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.buy-price i { font-size: 19px; font-style: normal; font-weight: 700; margin-right: 1px; }
.buy-price-unit { font-size: 13px; color: var(--muted); }

.buy-field { margin-bottom: 15px; }

.buy-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 7px;
}

.buy-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .16s, box-shadow .16s;
}

.buy-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.buy-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.buy-hint a { color: var(--primary); }

.buy-qty { display: flex; align-items: stretch; }

.buy-qty .qty-btn {
    width: 44px;
    border: 1px solid var(--line);
    background: #f8fafd;
    color: var(--text);
    font-size: 19px;
    cursor: pointer;
    font-family: inherit;
    transition: background .16s, color .16s, border-color .16s;
}

.buy-qty .qty-btn:first-child { border-radius: 10px 0 0 10px; }
.buy-qty .qty-btn:last-child  { border-radius: 0 10px 10px 0; }
.buy-qty .qty-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }

.buy-qty input {
    flex: 1;
    min-width: 0;
    text-align: center;
    border: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    padding: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--text);
    -moz-appearance: textfield;
}

.buy-qty input::-webkit-outer-spin-button,
.buy-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-qty input:focus { outline: none; background: #fbfdff; }

.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.pay-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 11px 6px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s, background .16s, box-shadow .16s;
    text-align: center;
}

.pay-opt:hover { border-color: #c3d9ff; background: #fafcff; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }

.pay-opt.is-on {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 4px 14px rgba(13, 110, 253, .14);
}

.pay-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    background: #eef2f8;
    color: #5b6b83;
    transition: background .16s, color .16s;
}

.pay-opt.is-on .pay-ico { background: var(--primary); color: #fff; }
.pay-ico.is-usdt { background: #e9fbf2; color: #0f9d58; }
.pay-opt.is-on .pay-ico.is-usdt { background: #0f9d58; color: #fff; }

.pay-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.pay-opt.is-on .pay-name { color: var(--primary-dark); }
.pay-sub { font-size: 11.5px; color: var(--muted); }
.pay-opt.is-on .pay-sub { color: var(--primary); font-weight: 600; }

.buy-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff1ec 100%);
    border: 1px solid #ffd9cd;
    margin: 16px 0 12px;
    font-size: 14px;
    color: #8a4b34;
}

.buy-amount strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--buy);
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}

.buy-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 13px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
    background: var(--buy-grad);
    box-shadow: 0 8px 22px rgba(255, 77, 46, .34);
    cursor: pointer;
    font-family: inherit;
    transition: transform .16s, box-shadow .16s, filter .16s;
}

.buy-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 77, 46, .42); filter: brightness(1.03); }
.buy-submit:active { transform: translateY(0); }
.buy-submit-ico { font-size: 17px; }

.buy-safe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.buy-safe a { color: var(--primary); }

.buy-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.buy-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(23, 43, 77, .04);
}

.buy-info-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.buy-info-head::before {
    content: '';
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, #4d9bff, #0d6efd);
    flex: 0 0 auto;
}

.buy-desc {
    font-size: 14.5px;
    line-height: 1.9;
    color: #3c4a5e;
    word-break: break-word;
}

.buy-desc p { margin: 8px 0; }

.buy-notes {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.9;
    color: #3c4a5e;
}

.buy-notes li { margin: 6px 0; }
.buy-notes strong { color: #1a2233; }
.buy-notes a { color: var(--primary); }

@media (max-width: 900px) {
    .buy-layout { grid-template-columns: 1fr; gap: 14px; }
    .buy-left { position: static; }
    .buy-card { padding: 16px; border-radius: 14px; }
    .buy-price { font-size: 28px; }
    .buy-submit { padding: 14px; font-size: 16px; }
}


/* ==========================================================================
   下单页 —— 布局对调：左（商品详情）+ 右（购买卡，吸顶）
   覆盖前面的 .buy-layout 规则
   ========================================================================== */

.buy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;   /* 左自适应 / 右固定 400 */
    gap: 18px;
    align-items: start;
}

/* 购买卡 DOM 在后面，用 grid 位置把它摆到右边并吸顶 */
.buy-left {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 78px;
}

.buy-right {
    grid-column: 1;
    grid-row: 1;
}

@media (max-width: 900px) {
    .buy-layout { grid-template-columns: 1fr; gap: 14px; }

    /* 单列时购买卡要排在最前面（手机上先看到价格和按钮） */
    .buy-left {
        grid-column: auto;
        grid-row: auto;
        order: -1;
        position: static;
    }

    .buy-right {
        grid-column: auto;
        grid-row: auto;
        order: 1;
    }
}


/* ==========================================================================
   商品详情富文本（对应铺货模板里的 class，也兼容站长自己写的 HTML）
   视觉参考上游发卡站的详情排版
   ========================================================================== */

.buy-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #7f8891;
    word-break: break-word;
}

.buy-desc p { margin: 0 0 8px; }
.buy-desc p:last-child { margin-bottom: 0; }
.buy-desc strong, .buy-desc b { color: #4a5568; font-weight: 700; }
.buy-desc a { color: #2f6fec; text-decoration: none; }
.buy-desc a:hover { text-decoration: underline; }

/* 圆形小标签 */
.buy-desc .d-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.75;
}

.buy-desc .d-tag-blue {
    background: #f3f8ff;
    color: #2f6fec;
    border: 1px solid #bfd3ff;
}

.buy-desc .d-tag-blue strong { color: #2f6fec; }

.buy-desc .d-tag-red {
    background: #fff5f3;
    color: #d94b66;
    border: 1px solid #f1b8c5;
}

.buy-desc .d-tag-red strong { color: #d94b66; }

/* 金色胶囊按钮 */
.buy-desc .d-btn-gold {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff2bf 0%, #ffd89c 100%);
    border: 1px solid #f0b429;
    color: #8a3200;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(240, 180, 41, .18);
    transition: transform .16s, box-shadow .16s, filter .16s;
}

.buy-desc .d-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(240, 180, 41, .3);
    filter: brightness(1.03);
    color: #8a3200;
    text-decoration: none;
}

/* 普通正文行 */
.buy-desc .d-line {
    margin: 0 0 6px;
    line-height: 1.75;
    color: #7f8891;
    font-size: 13.5px;
}

.buy-desc .d-line strong { color: #5a6472; }
.buy-desc .d-warn { color: #ff0000; }

/* 站长直接写普通 HTML 时的排版 */
.buy-desc ul, .buy-desc ol { margin: 8px 0; padding-left: 20px; }
.buy-desc li { margin: 4px 0; }

.buy-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 8px 0;
}

.buy-desc h3, .buy-desc h4, .buy-desc h5, .buy-desc h6 {
    margin: 14px 0 6px;
    color: #2b3445;
    line-height: 1.5;
}

.buy-desc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.buy-desc th, .buy-desc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.buy-desc th { background: #f8fafd; color: #4a5568; }

.buy-desc blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid var(--primary-line);
    background: #f8fafd;
    border-radius: 0 8px 8px 0;
}

.buy-desc code {
    background: #f2f5fa;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    color: #d6336c;
}

.buy-desc hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }


/* ==========================================================================
   Logo / 分类字体 / 公告链接
   ========================================================================== */

/* ---------- 站点 Logo（后台可换） ---------- */
.brand-logo {
    height: 34px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .brand-logo { height: 28px; max-width: 120px; }
    .brand-text { font-size: 15px; }
}

/* ---------- 分类 chips：加粗、加大、更有分量 ---------- */
.cat-bar { gap: 9px; padding: 6px 0 14px; }

.chip {
    padding: 9px 17px;
    font-size: 14.5px;
    font-weight: 600;
    color: #3c4a5e;
    border-radius: 22px;
    letter-spacing: .2px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(23, 43, 77, .05);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.chip.on {
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(13, 110, 253, .34);
    transform: translateY(-1px);
}

.chip-n {
    font-size: 11.5px;
    font-weight: 700;
    opacity: .95;
    background: rgba(13, 110, 253, .1);
    color: var(--primary);
    border-radius: 999px;
    padding: 0 7px;
    margin-left: 2px;
}

.chip.on .chip-n {
    background: rgba(255, 255, 255, .26);
    color: #fff;
    opacity: 1;
}

/* ---------- 分类分组标题：更大更醒目 ---------- */
.cat-section-head {
    padding: 12px 18px;
    gap: 12px;
    background: linear-gradient(90deg, #e3efff 0%, #f2f8ff 60%, #ffffff 100%);
    border: 1px solid #cfe2ff;
    border-bottom: 0;
    position: relative;
}

.cat-section-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #4d9bff, #0d6efd);
}

.csh-name {
    font-size: 17px;
    font-weight: 800;
    color: #123a6b;
    letter-spacing: .3px;
}

.csh-count {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    padding: 2px 11px;
}

@media (max-width: 600px) {
    .chip { padding: 8px 14px; font-size: 13.5px; }
    .cat-section-head { padding: 10px 14px; }
    .csh-name { font-size: 15.5px; }
}

/* ---------- 公告 / 页脚里的超链接 ---------- */
.notice-panel a,
.notice-body a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(13, 110, 253, .5);
    word-break: break-all;
}

.notice-panel a:hover,
.notice-body a:hover {
    border-bottom-style: solid;
    border-bottom-color: var(--primary);
}

.footer-tips a {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}


/* ==========================================================================
   商品图标（后台可以自己上传图片，或者填一个 emoji）
   ========================================================================== */

.goods-row .gr-ico img.gr-ico-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.goods-row .gr-ico .gr-ico-emoji {
    font-size: 22px;
    line-height: 1;
}

/* 商品详情弹窗 / 其它地方用到的通用尺寸 */
.gr-ico-img { object-fit: contain; display: block; }

