/* =========================================================
   全站统一设计系统（前台）
   ========================================================= */

:root {
    --brand: #0066cc;
    --brand-2: #0a7aee;
    --brand-deep: #00437f;
    --navy: #04142e;
    --navy-2: #062a5c;
    --accent: #e6162d;
    --accent-2: #ff4d3d;
    --gold: #ffc247;
    --green: #17b978;
    --text: #18212f;
    --text-2: #3a4553;
    --muted: #6b7684;
    --line: #e8ecf2;
    --bg: #f5f7fa;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 18px 45px rgba(10, 45, 95, .10);
    --shadow-sm: 0 8px 24px rgba(10, 45, 95, .08);
    --shadow-xs: 0 2px 10px rgba(10, 45, 95, .06);
    --header-h: 74px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-num: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* 手机端禁止缩放：禁用文字自动放大与双击缩放，双指缩放由 site_header.php 拦截 */
html,
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: pan-x pan-y;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    padding-top: var(--header-h);
}

body.page-home {
    padding-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
}

.container-wide {
    width: 94%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ================= 按钮 ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 102, 204, .28);
}

.btn-primary:hover {
    background: var(--brand-2);
    box-shadow: 0 12px 26px rgba(10, 122, 238, .34);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(230, 22, 45, .30);
}

.btn-accent:hover {
    box-shadow: 0 14px 30px rgba(230, 22, 45, .38);
}

.btn-outline {
    background: #fff;
    color: var(--brand);
    border-color: #cfe2f8;
}

.btn-outline:hover {
    border-color: var(--brand);
    background: #f4f9ff;
}

.btn-ghost {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .20);
}

.btn-light {
    background: #fff;
    color: var(--brand-deep);
    box-shadow: var(--shadow-xs);
}

.btn-light:hover {
    color: var(--brand);
}

.btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-lg {
    height: 52px;
    padding: 0 30px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .6;
    pointer-events: none;
}

/* ================= 顶部导航 ================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    color: #fff;
    transition: background .28s ease, box-shadow .28s ease, color .28s ease;
}

.site-header.scrolled,
.site-header.menu-open,
.site-header.is-solid {
    background: rgba(255, 255, 255, .97);
    color: var(--text);
    box-shadow: 0 6px 24px rgba(7, 32, 66, .10);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    flex: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex: none;
    background: linear-gradient(150deg, var(--brand-2), var(--brand-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 90, 190, .32);
    color: #fff;
    font-size: 19px;
}

.brand-mark.is-logo {
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.brand-mark.is-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text b {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
}

.brand-text i {
    font-size: 10px;
    font-style: normal;
    letter-spacing: 2.2px;
    opacity: .62;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: none;
}

.nav-links a {
    position: relative;
    font-size: 15px;
    white-space: nowrap;
    padding: 6px 0;
    opacity: .88;
    transition: opacity .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width .22s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.site-header:not(.scrolled):not(.menu-open):not(.is-solid) .nav-links a::after {
    background: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.nav-actions .btn {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 190;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(7, 32, 66, .12);
    padding: 10px 0 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
}

.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 6%;
    font-size: 15px;
    color: var(--text-2);
    border-bottom: 1px solid #f3f5f8;
}

.mobile-drawer a:last-child {
    border-bottom: none;
}

.mobile-drawer .btn {
    margin: 14px 6% 0;
    width: 88%;
}

/* ================= Hero（首页） ================= */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 76px) 0 96px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 12% -12%, rgba(10, 122, 238, .55), transparent 62%),
        radial-gradient(760px 480px at 88% 18%, rgba(0, 102, 204, .34), transparent 66%),
        linear-gradient(140deg, #030d1f 0%, #04203f 46%, #033a75 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 74%);
    mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 74%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 132, 255, .38), transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .20);
    color: rgba(255, 255, 255, .92);
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52e0a0;
    box-shadow: 0 0 0 4px rgba(82, 224, 160, .18);
}

.hero h1 {
    font-size: clamp(36px, 5.2vw, 62px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 22px 0 20px;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #8fd0ff, #fff 55%, #ffd88a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .78);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-stats .stat {
    padding-right: 16px;
}

.hero-stats .stat + .stat {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.hero-stats b {
    display: block;
    font-family: var(--font-num);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .5px;
}

.hero-stats b span {
    font-size: 13px;
    font-weight: 400;
    margin-left: 2px;
    color: rgba(255, 255, 255, .7);
}

.hero-stats p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
    margin-top: 4px;
}

.hero-stats .stat-net p {
    font-size: 10.5px;
    letter-spacing: -.2px;
    white-space: nowrap;
}

.hero-card {
    position: relative;
    border-radius: 24px;
    padding: 28px 26px 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 30px 70px rgba(0, 20, 50, .45);
    backdrop-filter: blur(16px);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8fd0ff, #ffd88a, transparent);
    opacity: .85;
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .5px;
}

.tag-hot {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5f52, var(--accent));
    color: #fff;
    letter-spacing: .5px;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 16px 0 4px;
    font-family: var(--font-num);
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.hero-price small {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
}

.hero-price span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, .66);
}

.hero-price-name {
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
}

.hero-card ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 24px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .8);
}

.hero-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.hero-card ul li i {
    color: #52e0a0;
    font-size: 12px;
    margin-top: 5px;
}

.hero-card .btn {
    width: 100%;
}

/* 公告条 */
.announce-bar {
    background: linear-gradient(90deg, #fff7e6, #fffdf5);
    border-bottom: 1px solid #ffe9bf;
}

.announce-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 0;
    font-size: 13.5px;
    color: #8a5a00;
}

.announce-bar i {
    color: #f0a300;
}

.announce-bar strong {
    font-weight: 600;
}

/* ================= 通用区块 ================= */

.section {
    padding: 76px 0;
}

.section-tight {
    padding: 44px 0;
}

.section-alt {
    background: #fff;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.3;
}

.section-desc {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--muted);
    max-width: 620px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--brand);
    white-space: nowrap;
}

.link-more:hover i {
    transform: translateX(3px);
}

.link-more i {
    transition: transform .2s ease;
}

/* 运营商入口 */
.op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.op-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 26px 24px;
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.op-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.op-card.op-cmcc {
    background: linear-gradient(135deg, #1a7be0, #0b4da2);
}

.op-card.op-unicom {
    background: linear-gradient(135deg, #ff6a5a, #d81f2a);
}

.op-card.op-telecom {
    background: linear-gradient(135deg, #2e6cf6, #173a9e);
}

.op-card.op-cbn {
    background: linear-gradient(135deg, #2fb37a, #0c7a52);
}

.op-card.op-wasu {
    background: linear-gradient(135deg, #ff5a4d, #c4000f);
}

.op-card.op-default {
    background: linear-gradient(135deg, #5b6f8c, #2c3e57);
}

.op-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    opacity: .88;
}

.op-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.op-count {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.op-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.op-card p {
    font-size: 13px;
    opacity: .76;
    margin-top: 14px;
}

.op-card .op-go {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* 商品卡片 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d4e6fb;
}

.product-cover {
    position: relative;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-cover.op-cmcc {
    background: linear-gradient(135deg, #1a7be0, #0b4da2);
}

.product-cover.op-unicom {
    background: linear-gradient(135deg, #ff6a5a, #d81f2a);
}

.product-cover.op-telecom {
    background: linear-gradient(135deg, #2e6cf6, #173a9e);
}

.product-cover.op-cbn {
    background: linear-gradient(135deg, #2fb37a, #0c7a52);
}

.product-cover.op-wasu {
    background: linear-gradient(135deg, #ff5a4d, #c4000f);
}

.product-cover.op-default {
    background: linear-gradient(135deg, #5b6f8c, #2c3e57);
}

/* 详情页封面复用运营商品色，避免无图片时出现空白块 */
.detail-cover.op-cmcc {
    background: linear-gradient(135deg, #1a7be0, #0b4da2);
}

.detail-cover.op-unicom {
    background: linear-gradient(135deg, #ff6a5a, #d81f2a);
}

.detail-cover.op-telecom {
    background: linear-gradient(135deg, #2e6cf6, #173a9e);
}

.detail-cover.op-cbn {
    background: linear-gradient(135deg, #2fb37a, #0c7a52);
}

.detail-cover.op-wasu {
    background: linear-gradient(135deg, #ff5a4d, #c4000f);
}

.detail-cover.op-default {
    background: linear-gradient(135deg, #5b6f8c, #2c3e57);
}

.cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-image:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .22), transparent 42%),
        linear-gradient(120deg, rgba(255, 255, 255, .10) 0 30%, transparent 30% 60%, rgba(255, 255, 255, .07) 60% 100%);
}

.cover-fallback b {
    font-family: var(--font-num);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.cover-fallback span {
    font-size: 12px;
    opacity: .82;
    letter-spacing: 1px;
}

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-deep);
    font-weight: 600;
}

.product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.45;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标题分段不拆开，分隔符跟随上一段，换行只出现在段与段之间 */
.product-title .tt {
    white-space: nowrap;
}

.product-title .tt:not(:last-child)::after {
    content: " ·";
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 14px;
}

.tag {
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f0f6ff;
    color: var(--brand);
    border: 1px solid #dcebfb;
}

.tag.tag-op {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-op-logo {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
}

.tag.tag-gold {
    background: #fff8e8;
    color: #a06b00;
    border-color: #ffedc2;
}

.price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--accent);
}

.price-row .price {
    font-family: var(--font-num);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.price-row .price small {
    font-size: 14px;
    font-weight: 600;
    margin-right: 1px;
}

.price-row .price-old {
    font-size: 12.5px;
    color: #b0b8c4;
    text-decoration: line-through;
}

.price-row .price-unit {
    font-size: 12px;
    color: var(--muted);
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 10px;
}

.product-foot .sales {
    font-size: 12px;
    color: var(--muted);
}

.product-foot .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.product-foot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.share-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #f5faff;
}

/* 优势 / 流程 / FAQ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f2ff, #f5f9ff);
    color: var(--brand);
    font-size: 19px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: var(--font-num);
    font-size: 30px;
    font-weight: 800;
    color: #eef3fa;
    line-height: 1;
}

.step h3 {
    font-size: 15.5px;
    font-weight: 650;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.faq-list {
    display: grid;
    gap: 12px;
}

/* 问题行铺满内容区，答案限制行宽保证可读性 */
.faq-item p {
    max-width: 780px;
}

.section-head p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

#faq .section-head p {
    max-width: 720px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 4px 20px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 550;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    color: var(--brand);
    transition: transform .2s ease;
    font-size: 13px;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 16px;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
}

/* ================= 内页头部 ================= */

.page-hero {
    position: relative;
    padding: 52px 0 46px;
    background:
        radial-gradient(700px 300px at 88% -20%, rgba(10, 122, 238, .16), transparent 70%),
        linear-gradient(180deg, #eef5ff, #f5f7fa);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb i {
    font-size: 10px;
}

.page-hero h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.3;
}

.page-hero p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14.5px;
    max-width: 640px;
}

/* 商城首页：在售套餐数量单独成行，避免与描述文案挤在一起换行 */
.mall-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 102, 204, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.mall-hero-meta i {
    color: var(--brand);
    font-size: 11px;
}

.mall-hero-meta b {
    color: var(--brand);
    font-weight: 700;
}

/* ================= 商城筛选 ================= */

.filter-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 22px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.filter-row + .filter-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #edf1f6;
}

.filter-label {
    font-size: 13px;
    color: var(--muted);
    min-width: 56px;
}

.chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fafcff;
    color: var(--text-2);
    font-size: 13px;
    transition: all .18s ease;
}

.chip:hover {
    border-color: #b9d7f7;
    color: var(--brand);
}

.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.chip-label-short {
    display: none;
}

.chip-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-right: 6px;
    object-fit: contain;
}

.chip.is-active .chip-logo {
    background: #fff;
    border-radius: 50%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fafcff;
    min-width: 240px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.search-box i {
    color: #a6b2c2;
}

.mall-search-form {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* 搜索框、排序、搜索按钮统一高度与圆角，视觉上保持同一组控件 */
.mall-search-form .search-box,
.mall-search-form select,
.mall-search-form .btn {
    height: 42px;
    border-radius: 12px;
}

.mall-search-form .search-box {
    flex: 1 1 260px;
}

.mall-search-form .btn {
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 102, 204, .18);
}

.mall-search-form .search-box:focus-within {
    border-color: #b9d7f7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .08);
}

/* 排序：放在结果行右侧，节省一行高度 */
.filter-result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sort-select {
    height: 30px;
    padding: 0 28px 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22><path d=%22M5 8l5 5 5-5%22 fill=%22none%22 stroke=%22%236b7684%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/></svg>') no-repeat right 9px center/12px 12px;
    font-size: 12.5px;
    color: var(--text-2);
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #b9d7f7;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .08);
}

.filter-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 18px;
    font-size: 13.5px;
    color: var(--muted);
}

.filter-result b {
    color: var(--brand);
    font-size: 16px;
    font-family: var(--font-num);
}

/* ================= 商品详情 ================= */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

.detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-xs);
}

.detail-card + .detail-card {
    margin-top: 20px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.detail-cover {
    position: relative;
    height: 178px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 自动生成的分享主图（1200×560）：高度跟随图片自身比例，任何容器都不裁切文字
   （微信 X5 内核不支持 aspect-ratio，这里用 width:100% + height:auto 实现） */
.detail-cover.is-generated {
    height: auto;
    min-height: 0;
}

.detail-cover.is-generated img {
    height: auto;
    object-fit: contain;
}

.detail-cover.is-generated picture {
    display: block;
    width: 100%;
}

/* 自动生成的主图为横幅比例：保持左右两栏布局，仅加宽左侧图片栏 */
@media (min-width: 641px) {
    .detail-hero.is-banner {
        grid-template-columns: 320px 1fr;
        align-items: stretch;
    }

    /* 详情图填满左栏高度，消除图片下方的空白 */
    .detail-hero.is-banner .detail-cover {
        height: auto;
    }

    .detail-hero.is-banner .detail-cover img {
        height: 100%;
        object-fit: cover;
    }

    .detail-hero.is-banner .detail-cover picture {
        height: 100%;
    }

    /* 右栏变窄后按钮自适应：宽度足够时并排等宽，不足时自动上下排列 */
    .detail-hero.is-banner .detail-actions {
        justify-content: flex-start;
    }

    .detail-hero.is-banner .detail-actions .btn {
        flex: 1 1 160px;
        min-width: 0;
        padding: 0 18px;
    }
}

.detail-title {
    font-size: 24px;
    font-weight: 750;
    line-height: 1.4;
}

.detail-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 6px;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 12px;
    color: var(--accent);
}

.detail-price .price {
    font-family: var(--font-num);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.detail-price .price small {
    font-size: 18px;
    font-weight: 600;
}

.detail-price .price-old {
    font-size: 14px;
    color: #b0b8c4;
    text-decoration: line-through;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.detail-actions .btn {
    min-width: 176px;
    box-shadow: none;
}

/* 三个按钮配色：主操作蓝色渐变、客服微信绿、分享浅蓝底 */
.detail-actions .btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 6px 16px rgba(0, 102, 204, .22);
}

.detail-actions .btn-wechat {
    background: #07c160;
    border-color: #07c160;
}

.detail-actions .btn-wechat:hover {
    background: #06ad56;
    border-color: #06ad56;
}

.detail-actions .btn-outline {
    background: #eefaf3;
    border-color: #bfe9d2;
    color: #0a9d52;
}

.detail-actions .btn-outline:hover {
    background: #e0f6ea;
    border-color: #9fdcbc;
    color: #078945;
}

.detail-actions .btn-primary:hover {
    box-shadow: 0 8px 18px rgba(0, 102, 204, .22);
}

/* 分享弹窗 */
.share-modal-card {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    text-align: center;
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f2f6fb;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}

.share-modal-close:hover {
    background: #e8eff8;
    color: var(--brand);
}

.share-qr {
    width: 196px;
    height: 196px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 14px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.share-qr img,
.share-qr canvas {
    display: block;
    width: 180px;
    height: 180px;
}

.share-qr-fallback {
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.share-link input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12.5px;
}

.share-native {
    width: 100%;
}

/* 微信内分享提示 */
.share-wechat-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #d6f0dd;
    border-radius: 12px;
    background: #f1fbf4;
    text-align: left;
}

.share-wechat-tip[hidden] {
    display: none;
}

.share-wechat-tip > i {
    flex: none;
    margin-top: 1px;
    font-size: 20px;
    color: #07c160;
}

.share-wechat-tip b {
    display: block;
    font-size: 13px;
    color: #0d7a3f;
    margin-bottom: 2px;
}

.share-wechat-tip span {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: #3f6b50;
}

.modal.is-wechat .share-native {
    display: none;
}

@media (max-width: 640px) {
    .detail-actions {
        gap: 10px;
    }

    /* 主按钮独占一行，客服与分享并排，避免三个按钮挤在一行 */
    .detail-actions .btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        padding: 0 14px;
    }

    .detail-actions .btn-primary {
        flex: 1 1 100%;
    }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f3f7;
    text-align: left;
}

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

.detail-section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.detail-section-title::before {
    content: "";
    width: 4px;
    height: 17px;
    border-radius: 3px;
    background: var(--brand);
}

.detail-intro {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.9;
    white-space: pre-wrap;
}

/* 下单面板 */
.order-panel {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.order-panel-head {
    padding: 16px 22px;
    background: linear-gradient(135deg, #f2f8ff, #ffffff);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-panel-head h3 {
    font-size: 16px;
    font-weight: 700;
}

.order-panel-head span {
    font-size: 12px;
    color: var(--green);
}

.order-panel-body {
    padding: 20px 22px 22px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-field label .req {
    color: var(--accent);
    margin-left: 2px;
}

.form-field label .opt {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafcff;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field textarea {
    height: 88px;
    padding: 11px 13px;
    resize: vertical;
    line-height: 1.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .10);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    margin: 4px 0 14px;
    text-wrap: pretty;
}

.form-note i {
    color: var(--brand);
    margin-right: 4px;
}

.order-panel .btn {
    width: 100%;
}

.submit-bar {
    display: none;
}

/* 空状态 */
.empty {
    padding: 70px 20px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #dfe6ef;
    border-radius: var(--radius);
}

.empty i {
    font-size: 34px;
    color: #c5d2e2;
    margin-bottom: 14px;
    display: block;
}

.empty p {
    font-size: 14px;
}

/* ================= 表格（分销中心） ================= */

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    font-size: 16.5px;
    font-weight: 700;
}

.panel-body {
    padding: 20px 22px;
}

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

.data-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f7faff;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 14px;
    border-top: 1px solid #f1f4f8;
    vertical-align: middle;
}

.data-table tr:hover td {
    background: #fafcff;
}

.table-wrap {
    overflow-x: auto;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #f0f6ff;
    color: var(--brand);
    white-space: nowrap;
}

.status-pill.is-green {
    background: #e9fbf3;
    color: #0f9d63;
}

.status-pill.is-orange {
    background: #fff6e8;
    color: #b26a00;
}

.status-pill.is-gray {
    background: #f2f4f7;
    color: #6b7684;
}

.status-pill.is-red {
    background: #fff0f0;
    color: #d92d20;
}

/* 统计卡 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
}

.stat-card .stat-label {
    font-size: 12.5px;
    color: var(--muted);
}

.stat-card .stat-value {
    font-family: var(--font-num);
    font-size: 28px;
    font-weight: 800;
    margin-top: 6px;
    line-height: 1.2;
}

.stat-card .stat-value small {
    font-size: 14px;
    font-weight: 600;
    margin-left: 2px;
}

.stat-card.is-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    border-color: transparent;
    color: #fff;
}

.stat-card.is-brand .stat-label {
    color: rgba(255, 255, 255, .72);
}

/* 复制框 */
.copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7faff;
    border: 1px dashed #c9def5;
    border-radius: 10px;
    padding: 12px 14px;
}

.copy-box code {
    flex: 1;
    font-size: 12.5px;
    color: var(--brand-deep);
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.copy-box .btn {
    height: 34px;
    font-size: 12.5px;
    flex: none;
}

/* ================= 登录页 ================= */

.auth-wrap {
    min-height: calc(100vh - var(--header-h) - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 32px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .5px;
}

.auth-card .auth-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin: 8px 0 24px;
}

.auth-card .btn {
    width: 100%;
    margin-top: 6px;
}

.auth-card .auth-foot {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 18px;
}

.auth-card .auth-foot a {
    color: var(--brand);
}

/* ================= 提示与弹层 ================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.alert-error {
    background: #fff1f0;
    color: #b42318;
    border: 1px solid #ffd6d2;
}

.alert-success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #bdf0d4;
}

.alert-info {
    background: #eff8ff;
    color: #175cd3;
    border: 1px solid #cfe6ff;
}

.toast-wrap {
    position: fixed;
    left: 50%;
    top: 92px;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92%, 420px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 12px;
    background: rgba(24, 33, 47, .94);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 14px 34px rgba(10, 25, 50, .28);
    animation: toast-in .24s ease;
}

.toast.is-error {
    background: rgba(190, 30, 34, .96);
}

.toast.is-success {
    background: rgba(9, 138, 84, .96);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功弹层 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 18, 38, .55);
    backdrop-filter: blur(3px);
}

.modal.open {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 20, 50, .35);
    animation: modal-in .24s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, #34d399, #0f9d63);
    box-shadow: 0 12px 24px rgba(15, 157, 99, .28);
}

.modal-card h3 {
    font-size: 20px;
    font-weight: 750;
    margin-bottom: 8px;
}

.modal-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.8;
}

.order-no {
    display: inline-block;
    margin: 14px 0 4px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f2f8ff;
    color: var(--brand-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    letter-spacing: .5px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.modal-actions .btn {
    flex: 1;
}

/* ================= 分页 ================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13.5px;
    color: var(--text-2);
    transition: all .18s ease;
}

.page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.page-link.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page-gap {
    color: var(--muted);
    font-size: 13px;
}

/* ================= 页脚 ================= */

.site-footer {
    margin-top: 70px;
    background: linear-gradient(160deg, #04142e, #062a5c);
    color: rgba(255, 255, 255, .72);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 52px 0 38px;
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.9;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14.5px;
    font-weight: 650;
    margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, .66);
}

.footer-col a:hover {
    color: #fff;
}

.footer-contact b {
    display: block;
    font-family: var(--font-num);
    font-size: 24px;
    color: #fff;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    flex-wrap: wrap;
}

.footer-beian {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 0 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

.footer-beian a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.footer-beian .beian-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    line-height: 1;
    flex: 0 0 auto;
}

.footer-beian .beian-icon.is-icp {
    width: auto;
    min-width: 24px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2px;
    color: rgba(255, 255, 255, .65);
}

.footer-beian .beian-icon-img {
    width: auto;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.footer-beian a:hover {
    color: rgba(255, 255, 255, .8);
}

.footer-beian a:hover .beian-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.footer-beian a:hover .beian-icon-img {
    opacity: .85;
}

/* ================= 工具类 ================= */

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* CTA 横幅 */
.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 40px 46px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(600px 260px at 82% 0%, rgba(10, 122, 238, .55), transparent 68%),
        linear-gradient(135deg, #04203f, #033a75);
    box-shadow: 0 24px 55px rgba(10, 45, 95, .22);
}

.cta-band h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: .5px;
}

.cta-band p {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    max-width: 520px;
}

.cta-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: none;
}

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

@media (max-width: 1200px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 1080px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-card {
        max-width: 520px;
    }

    .detail-layout {
        grid-template-columns: 1fr 340px;
    }

    .footer-main {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 28px;
    }

    .footer-contact {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .op-grid,
    .feature-grid,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid,
    .product-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .order-panel {
        position: static;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 56px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .detail-hero {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    :root {
        --header-h: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 17px;
    }

    .brand-text b {
        font-size: 16px;
    }

    .brand-text i {
        display: none;
    }

    .hero {
        padding: calc(var(--header-h) + 34px) 0 48px;
    }

    .hero-badge {
        padding: 6px 13px;
        font-size: 12px;
    }

    .hero h1 {
        margin: 18px 0 14px;
        font-size: 30px;
        letter-spacing: .5px;
    }

    .hero-sub {
        font-size: 14px;
        line-height: 1.8;
        text-wrap: balance;
    }

    .hero-cta {
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 26px;
    }

    .hero-cta .btn {
        flex: 1 1 0;
        min-width: 0;
        height: 48px;
        padding: 0 10px;
        font-size: 14px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin-top: 30px;
        padding: 18px 0;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 16px;
        background: rgba(255, 255, 255, .045);
    }

    .hero-stats .stat {
        padding: 0 14px;
    }

    .hero-stats .stat:nth-child(-n+2) {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .hero-stats .stat:nth-child(3) {
        padding-left: 14px;
        border-left: none;
    }

    .hero-stats b {
        font-size: 24px;
    }

    .hero-stats p {
        font-size: 12px;
    }

    .hero-card {
        padding: 22px 20px;
    }

    .op-grid {
        grid-template-columns: 1fr;
    }

    /* 服务保障 / 办理流程：手机端 2×2 紧凑卡片，减少纵向空白 */
    .feature-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .feature-card,
    .step {
        padding: 15px 13px;
        border-radius: 12px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 15px;
        margin-bottom: 10px;
    }

    .feature-card h3,
    .step h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .feature-card p,
    .step p {
        font-size: 11.5px;
        line-height: 1.65;
    }

    .step::before {
        top: 10px;
        right: 12px;
        font-size: 22px;
    }

    /* 商品列表：手机端两列卡片，压缩封面与信息，避免单列大卡片过长 */
    .product-grid,
    .product-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    /* 只有一个商品时占满整行，避免右侧留空 */
    .product-grid > :only-child {
        grid-column: 1 / -1;
    }

    .section-title {
        text-wrap: balance;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .product-card:hover {
        transform: none;
    }

    .product-cover {
        height: 104px;
    }

    .cover-fallback b {
        font-size: 24px;
        letter-spacing: 0;
    }

    .cover-fallback span {
        font-size: 11px;
        letter-spacing: .5px;
    }

    .cover-badge {
        left: 8px;
        top: 8px;
        padding: 2px 7px;
        font-size: 10px;
    }

    .product-body {
        padding: 10px 10px 12px;
    }

    .product-title {
        font-size: 13px;
        line-height: 1.4;
        min-height: 36px;
        text-wrap: balance;
    }

    .product-meta {
        gap: 4px;
        margin: 8px 0 10px;
    }

    .product-meta .tag {
        font-size: 10px;
        padding: 1px 5px;
        border-radius: 5px;
    }

    .product-meta .tag-op-logo {
        width: 11px;
        height: 11px;
        flex-basis: 11px;
    }

    .price-row {
        gap: 3px;
    }

    .price-row .price {
        font-size: 21px;
    }

    .price-row .price small {
        font-size: 12px;
    }

    .price-row .price-unit,
    .price-row .price-old {
        font-size: 11px;
    }

    .product-foot {
        margin-top: 8px;
        gap: 6px;
    }

    .product-foot .sales {
        font-size: 11px;
        white-space: nowrap;
    }

    .product-foot-actions {
        gap: 6px;
        margin-left: auto;
    }

    .product-foot .share-btn {
        display: none;
    }

    .product-foot .btn {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .op-card {
        min-height: 132px;
        padding: 22px 20px;
    }

    .section {
        padding: 46px 0;
    }

    .filter-card {
        padding: 16px;
    }

    .filter-label {
        width: 100%;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .mall-hero {
        padding: 26px 0 24px;
    }

    .mall-hero .breadcrumb {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .mall-hero h1 {
        font-size: 26px;
    }

    /* 长标题均衡断行，避免最后一行只剩一两个字 */
    .page-hero h1,
    .detail-title {
        text-wrap: balance;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .detail-title {
        font-size: 20px;
    }

    .mall-hero p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

    .mall-content {
        padding: 20px 0 36px;
    }

    .mall-content .filter-card {
        margin-bottom: 16px;
        padding: 16px 14px;
        border-radius: 16px;
    }

    .mall-content .filter-row {
        display: block;
    }

    .mall-content .filter-row + .filter-row {
        margin-top: 12px;
        padding-top: 12px;
    }

    .mall-content .filter-label {
        font-size: 12px;
        line-height: 1.5;
    }

    /* 筛选项保持单行：网络等分一行，速率等超宽时横向滑动，不换行 */
    .mall-content .filter-chips {
        margin-top: 8px;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mall-content .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .mall-content .filter-chips > .chip {
        flex: 0 0 auto;
        height: 34px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    .mall-content .filter-network .filter-chips {
        gap: 4px;
        overflow: visible;
    }

    .mall-content .filter-network .filter-chips > .chip {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding: 0 2px;
        font-size: 12px;
        white-space: nowrap;
    }

    .mall-content .filter-network .chip-logo {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        margin-right: 3px;
    }

    .mall-content .filter-network .chip-label-full {
        display: none;
    }

    .mall-content .filter-network .chip-label-short {
        display: inline;
    }

    .mall-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 10px;
        align-items: center;
    }

    .mall-search-form .search-box {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .mall-search-form .btn {
        grid-column: 2;
        width: 100%;
        padding: 0 10px;
    }

    .filter-result {
        gap: 10px;
        font-size: 12.5px;
    }

    .filter-result-actions {
        gap: 8px;
    }

    .filter-result .link-more {
        font-size: 12px;
    }

    .sort-select {
        height: 28px;
        padding: 0 26px 0 10px;
        font-size: 12px;
        background-position: right 8px center;
        background-size: 11px 11px;
    }

    .mall-content .filter-result {
        margin: 0 0 14px;
    }

    .page-hero {
        padding: 16px 0 18px;
    }

    .section-tight {
        padding: 18px 0 26px;
    }

    .detail-card {
        padding: 20px 18px;
    }

    .detail-card + .detail-card {
        margin-top: 12px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .detail-cover {
        height: 150px;
    }

    .detail-price .price {
        font-size: 36px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .order-panel {
        border-radius: var(--radius);
    }

    .order-panel .submit-row {
        display: none;
    }

    .submit-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(10, 45, 95, .10);
    }

    .submit-bar .btn {
        width: 100%;
    }

    body.has-submit-bar {
        padding-bottom: 78px;
    }

    .site-footer {
        margin-top: 44px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        padding: 28px 0 20px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-brand .brand {
        margin-bottom: 10px;
    }

    .footer-brand p {
        max-width: none;
        font-size: 12px;
        line-height: 1.75;
    }

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .footer-col a,
    .footer-col p {
        font-size: 12.5px;
        line-height: 1.8;
    }

    .footer-col a {
        display: inline-block;
        margin: 0 12px 6px 0;
    }

    .footer-contact {
        display: grid;
        grid-column: span 2;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 16px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, .10);
        text-align: left;
    }

    .footer-contact h4 {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .footer-contact b {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.3;
        white-space: nowrap;
    }

    .footer-contact p {
        grid-column: 2;
        margin: 0;
        text-align: right;
    }

    .footer-contact p:first-of-type {
        grid-row: 1;
    }

    .footer-contact p:last-child {
        grid-row: 2;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px 10px;
        padding: 14px 0;
        font-size: 11px;
        text-align: left;
    }

    .footer-bottom span:last-child {
        margin-left: auto;
        text-align: right;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
    }

    .cta-band-actions {
        width: 100%;
    }

    .cta-band-actions .btn {
        flex: 1;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .data-table {
        font-size: 12.5px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

/* =========================================================
   订单进度查询
   ========================================================= */
.query-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}

.query-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}

.query-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 16px;
}

.query-card-title i {
    color: var(--brand);
}

.query-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.query-form .form-field {
    margin: 0;
}

.query-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.query-tip i {
    margin-top: 3px;
    color: var(--brand);
}

.query-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #fff3f0;
    border: 1px solid #ffd9d1;
    color: #c0392b;
    font-size: 13.5px;
}

/* 状态横幅 */
.query-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: #f6f9fe;
}

.query-banner-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-size: 18px;
}

.query-banner-main {
    flex: 1;
    min-width: 0;
}

.query-banner-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.query-banner-head b {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.query-banner-step {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0, 102, 204, .09);
    color: var(--brand);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.query-banner-main p {
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-2);
}

.query-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.query-banner-meta b {
    font-family: var(--font-num);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--text-2);
}

.query-banner.status-pending {
    background: #fff8ec;
    border-color: #ffe6c2;
}

.query-banner.status-pending .query-banner-icon {
    background: #f5a623;
}

.query-banner.status-pending .query-banner-step {
    background: rgba(245, 166, 35, .14);
    color: #b26a00;
}

.query-banner.status-accepted {
    background: #eff6ff;
    border-color: #d6e6fd;
}

.query-banner.status-done {
    background: #edf9f2;
    border-color: #cbeedd;
}

.query-banner.status-done .query-banner-icon {
    background: var(--green);
}

.query-banner.status-done .query-banner-step {
    background: rgba(23, 185, 120, .14);
    color: #0d7a45;
}

.query-banner.status-canceled {
    background: #f6f7f9;
    border-color: var(--line);
}

.query-banner.status-canceled .query-banner-icon {
    background: #9aa4b2;
}

.query-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 24px 0 4px;
}

.query-step {
    position: relative;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.query-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 3px;
    border-radius: 2px;
    background: var(--line);
}

.query-step.is-active::after {
    background: var(--brand);
}

/* 当前节点之后的连线保持灰色，表示尚未完成 */
.query-step.is-current::after {
    background: var(--line);
}

.query-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #eef3fa;
    color: #7b8ba3;
    font-weight: 700;
    font-size: 13px;
}

.query-step.is-active .query-dot {
    background: var(--brand);
    color: #fff;
}

.query-step.is-current .query-dot {
    box-shadow: 0 0 0 4px rgba(0, 102, 204, .14);
}

.query-step b {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.query-step.is-active b {
    color: var(--text);
}

.query-step small {
    font-size: 11.5px;
    color: var(--muted);
}

/* 订单信息：图标竖排列表 */
.query-info {
    margin-top: 22px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #f7f9fc;
}

.query-info-title {
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.query-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.query-info-ico {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 8px;
    background: #e8f2fe;
    color: var(--brand);
    font-size: 12px;
}

.query-info-list li > span:not(.query-info-ico) {
    flex: none;
    width: 62px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted);
}

.query-info-list b {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text);
    word-break: break-word;
}

.query-help h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.query-help ul {
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 760px) {
    .query-form {
        grid-template-columns: 1fr;
    }

    .query-banner {
        gap: 12px;
        padding: 16px;
    }

    .query-banner-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 16px;
    }

    .query-banner-head b {
        font-size: 18px;
    }

    .query-banner-main p {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .query-banner-meta {
        flex-direction: column;
        gap: 2px;
        margin-top: 8px;
        font-size: 11.5px;
    }

    /* 手机端：三步横排，仅保留步骤名 */
    .query-progress {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: none;
        margin: 20px 0 6px;
    }

    .query-step {
        display: block;
        text-align: center;
        padding-bottom: 0;
    }

    .query-step:not(:last-child)::after {
        top: 13px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
        bottom: auto;
        width: auto;
        height: 3px;
    }

    .query-dot {
        display: inline-flex;
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .query-step b {
        margin-bottom: 0;
        font-size: 12.5px;
        line-height: 1.4;
    }

    .query-step small {
        display: none;
    }

    .query-info {
        margin-top: 18px;
        padding: 12px 14px;
    }

    .query-info-list li {
        gap: 8px;
        padding: 7px 0;
    }

    .query-info-ico {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .query-info-list li > span:not(.query-info-ico) {
        width: 58px;
        font-size: 12px;
    }

    .query-info-list b {
        font-size: 13px;
    }

    .query-card {
        padding: 16px;
    }
}

/* =========================================================
   分销中心增强
   ========================================================= */

.dist-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dist-quick-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dist-quick-item:hover {
    transform: translateY(-2px);
    border-color: #c9def5;
    box-shadow: 0 10px 24px rgba(10, 45, 95, .08);
}

.dist-quick-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: 10px;
    background: #eef6ff;
    color: var(--brand);
    font-size: 15px;
}

.dist-quick-item b {
    font-size: 14.5px;
}

.dist-quick-item span {
    font-size: 12.5px;
    color: var(--muted);
}

.dist-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
    margin-bottom: 16px;
}

.dist-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 16px;
    text-align: center;
}

.dist-qr {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.dist-qr img,
.dist-qr canvas {
    display: block;
    width: 132px;
    height: 132px;
}

.dist-qr-fallback {
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.dist-qr-card p {
    margin: 0;
    font-size: 13px;
}

.dist-qr-card p.text-muted {
    font-size: 12px;
}

.dist-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dist-metric {
    padding: 12px 14px;
    background: #f7faff;
    border: 1px solid #e8f0fa;
    border-radius: 10px;
}

.dist-metric span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.dist-metric b {
    display: block;
    margin-top: 4px;
    font-family: var(--font-num);
    font-size: 20px;
    line-height: 1.25;
}

.dist-metric b small {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.dist-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px dashed #edf1f6;
}

.dist-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dist-bar-val {
    font-family: var(--font-num);
    font-size: 11px;
    color: var(--muted);
}

.dist-bar {
    display: block;
    width: 100%;
    max-width: 38px;
    min-height: 4px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #4d9fff, var(--brand));
}

.dist-bar-col em {
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.filter-row .filter-select,
.filter-row .filter-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    outline: none;
}

.filter-row .filter-select:focus,
.filter-row .filter-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .10);
}

.panel-body > .filter-row:first-child {
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .dist-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dist-promo {
        grid-template-columns: 1fr;
    }

    .dist-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 分销中心表格：手机端卡片化 */
@media (max-width: 640px) {
    .table-wrap.is-mcards {
        overflow: visible;
    }

    .data-table-mcards thead {
        display: none;
    }

    .data-table-mcards,
    .data-table-mcards tbody,
    .data-table-mcards tr,
    .data-table-mcards td {
        display: block;
    }

    .data-table-mcards tbody {
        padding: 0 14px 14px;
    }

    .data-table-mcards tbody tr {
        margin-top: 12px;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow-xs);
    }

    .data-table-mcards td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border: 0;
        font-size: 13px;
        text-align: right;
    }

    .data-table-mcards td::before {
        content: attr(data-label);
        flex: none;
        color: var(--muted);
        font-size: 12px;
        text-align: left;
    }

    .data-table-mcards td:first-child {
        margin-bottom: 6px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #edf1f6;
        font-size: 13.5px;
        font-weight: 700;
    }

    .data-table-mcards td:first-child::before {
        display: none;
    }

    .data-table-mcards tr:hover td {
        background: transparent;
    }

    .data-table-mcards.is-compact tbody tr {
        margin-top: 10px;
        padding: 10px 14px;
    }
}

@media (max-width: 640px) {
    .dist-quick {
        gap: 10px;
    }

    .dist-quick-item {
        padding: 14px;
    }

    .dist-quick-item span {
        font-size: 12px;
    }

    .dist-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dist-metric {
        padding: 10px 12px;
    }

    .dist-metric b {
        font-size: 18px;
    }

    .dist-bars {
        gap: 6px;
    }

    .filter-row .filter-select,
    .filter-row .filter-input {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* ================= 协议文档 / 同意勾选 ================= */

.agree-doc {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px 28px 30px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.agree-meta {
    font-size: 12.5px;
    color: var(--muted);
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.agree-doc h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 8px;
}

.agree-doc p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-2);
}

.agree-tip {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #f4f9ff;
    color: #2a5f96 !important;
    font-size: 13px !important;
}

.agree-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.form-field .agree-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-2);
    cursor: pointer;
}

.agree-check input {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brand);
}

.agree-check a {
    color: var(--brand);
    font-weight: 500;
    /* 协议名称整段不折行（避免“明）》”被拆到下一行），空间不足时整体换行 */
    white-space: nowrap;
}

.agree-fields .agree-check + .agree-check {
    margin-top: 8px;
}

.agree-check a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .agree-doc {
        padding: 20px 16px 24px;
    }

    .agree-doc h2 {
        font-size: 15px;
    }

    .form-field .agree-check {
        font-size: 12.5px;
    }
}

/* 320px 极窄屏：缩小字号与间距，保证协议名称仍按两行展示 */
@media (max-width: 360px) {
    .form-field .agree-check {
        font-size: 12px;
        gap: 6px;
    }
}

/* ================= 协议阅读弹窗 ================= */

.agree-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 18, 38, .55);
    backdrop-filter: blur(3px);
}

.agree-modal.open {
    display: flex;
}

.agree-modal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 20, 50, .35);
    animation: modal-in .24s ease;
}

.agree-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    flex: none;
}

.agree-modal-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.agree-modal-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f5f8;
    color: var(--muted);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.agree-modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #f7f9fc;
}

.agree-modal-body iframe {
    display: block;
    width: 100%;
    height: 68vh;
    border: 0;
    background: #fff;
}

.agree-modal-foot {
    flex: none;
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
    .agree-modal {
        padding: 10px;
    }

    .agree-modal-card {
        max-height: 90vh;
        border-radius: 14px;
    }

    .agree-modal-body iframe {
        height: 72vh;
    }
}

/* =========================================================
   微信客服（部门店铺）
   ========================================================= */
.wx-service-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(23, 185, 120, .32);
    border-radius: 10px;
    background: rgba(23, 185, 120, .1);
    color: #0e9f6e;
    font-size: 15px;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s;
}

.wx-service-trigger:hover {
    background: rgba(23, 185, 120, .18);
    border-color: rgba(23, 185, 120, .55);
    transform: translateY(-1px);
}

.btn-wechat {
    background: #0e9f6e;
    border-color: #0e9f6e;
    color: #fff;
}

.btn-wechat:hover {
    background: #0b8a5f;
    border-color: #0b8a5f;
    color: #fff;
}

body.wx-service-locked {
    overflow: hidden;
}

.wx-service-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.wx-service-modal[hidden] {
    display: none;
}

.wx-service-mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 40, .55);
    backdrop-filter: blur(2px);
}

.wx-service-panel {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 22px 20px 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 26px 60px rgba(8, 20, 40, .32);
    text-align: center;
    animation: wxServiceIn .22s ease;
}

@keyframes wxServiceIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wx-service-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .16s, color .16s;
}

.wx-service-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.wx-service-head {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.wx-service-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .26);
}

.wx-service-head-text b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.wx-service-head-text small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.wx-service-qr {
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.wx-service-qr img {
    display: block;
    width: 168px;
    height: 168px;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.wx-service-qr p {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.wx-service-id {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    text-align: left;
}

.wx-service-id span {
    flex: none;
    font-size: 12px;
    color: var(--muted);
}

.wx-service-id b {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.wx-service-id button {
    flex: none;
    height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(0, 102, 204, .28);
    border-radius: 999px;
    background: rgba(0, 102, 204, .08);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s, border-color .16s;
}

.wx-service-id button:hover {
    background: rgba(0, 102, 204, .14);
    border-color: rgba(0, 102, 204, .45);
}

.wx-service-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #0e9f6e);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(14, 159, 110, .28);
    transition: transform .16s, box-shadow .16s;
}

.wx-service-open:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(14, 159, 110, .34);
}

.wx-service-tip {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .wx-service-panel {
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .wx-service-qr img {
        width: 148px;
        height: 148px;
    }
}
