/* ==========================================================================
   芭乐云IDC · 前台样式
   设计语言：玻璃拟态（Glassmorphism）+ 轻拟物 + 大圆角 + 清新绿
   所有类名与旧版保持兼容，仅视觉升级；末尾含移动端适配
   ========================================================================== */

/* ------------------------------------------------------------ 设计令牌 */
:root {
    --c-primary: #12a76a;
    --c-primary-2: #35cd8b;
    --c-primary-3: #0b8a56;
    --c-primary-soft: rgba(18, 167, 106, .10);
    --c-primary-glow: rgba(18, 167, 106, .28);
    --c-accent: #ff7fa3;              /* 芭乐粉，仅点缀 */
    --c-accent-soft: rgba(255, 127, 163, .12);

    --c-bg: #f2f9f5;
    --c-bg-2: #eaf5ef;
    --c-surface: #ffffff;
    --c-text: #10242f;
    --c-text-2: #4b6272;
    --c-text-3: #8ba3b1;
    --c-line: rgba(16, 36, 47, .09);
    --c-line-2: rgba(16, 36, 47, .06);

    --c-success: #12a76a;
    --c-warning: #e8a33d;
    --c-danger: #e05565;
    --c-info: #3a8ee6;

    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .86);
    --glass-brd: rgba(255, 255, 255, .7);
    --glass-blur: saturate(180%) blur(15px);

    --r-xs: 8px;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-full: 999px;

    --sh-1: 0 1px 2px rgba(14, 40, 55, .04), 0 10px 26px -16px rgba(14, 40, 55, .16);
    --sh-2: 0 2px 6px rgba(14, 40, 55, .05), 0 22px 46px -22px rgba(14, 40, 55, .22);
    --sh-in: inset 0 1px 0 rgba(255, 255, 255, .9);
    --sh-press: inset 0 2px 5px rgba(14, 40, 55, .12);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --sp: 16px;
    --nav-h: 68px;

    /* 兼容旧模板里用到的别名 */
    --c-primary-light: var(--c-primary-soft);
    --c-success-bg: rgba(18, 167, 106, .1);
}

/* ------------------------------------------------------------ 基础重置 */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

/* 防溢出：flex/grid 子项默认可以收缩，避免固定宽度子元素把页面撑出横向滚动 */
.container, .row, .col, .card, .card-head, .card-body, .card-foot,
.flex, .flex-between, .flex-center, .grid > *, .table-wrap, .user-layout > section,
.form-row > *, .input-group .form-control { min-width: 0; }
.table tbody td, .dl-value, .dl-label, .chat-content, .article, .code-line .cl-text { overflow-wrap: anywhere; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    background-image:
        radial-gradient(1100px 520px at 8% -8%, rgba(53, 205, 139, .16), transparent 62%),
        radial-gradient(900px 460px at 100% 0%, rgba(58, 142, 230, .10), transparent 60%),
        radial-gradient(760px 420px at 50% 108%, rgba(255, 127, 163, .08), transparent 65%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--c-primary-3); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--c-primary); }

img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 12px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code {
    background: var(--c-primary-soft); color: var(--c-primary-3);
    padding: 2px 6px; border-radius: 6px; font-size: .88em;
}
hr { border: 0; border-top: 1px solid var(--c-line); margin: 20px 0; }

::selection { background: var(--c-primary-glow); color: #fff; }

/* 滚动条（桌面端） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(16, 36, 47, .16); border-radius: var(--r-full); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(16, 36, 47, .28); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ 图标 */
.ico {
    display: inline-block; flex: none;
    vertical-align: -.16em;
    width: 1.15em; height: 1.15em;
    stroke-width: 1.65;
}
.ico-lg { width: 1.5em; height: 1.5em; }

/* 拟物图标底座 */
.icon-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 13px; flex: none;
    color: var(--c-primary-3);
    background: linear-gradient(160deg, #ffffff, #eaf6f0);
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .06), 0 10px 22px -14px rgba(14, 40, 55, .28);
    border: 1px solid rgba(255, 255, 255, .8);
}
.icon-tile .ico { width: 21px; height: 21px; }
.icon-tile.tile-s { width: 36px; height: 36px; border-radius: 11px; }
.icon-tile.tile-s .ico { width: 18px; height: 18px; }
.icon-tile.tile-lg { width: 54px; height: 54px; border-radius: 16px; }
.icon-tile.tile-lg .ico { width: 26px; height: 26px; }
.icon-tile.tile-pink { color: #d9456b; background: linear-gradient(160deg, #fff, #ffeef3); }
.icon-tile.tile-blue { color: #2f6fb5; background: linear-gradient(160deg, #fff, #ebf3fc); }
.icon-tile.tile-amber { color: #b9791f; background: linear-gradient(160deg, #fff, #fdf3e4); }

/* ------------------------------------------------------------ 布局 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 880px; }

.row { display: flex; gap: var(--sp); flex-wrap: wrap; }
.col { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: var(--sp); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp); }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.py-48 { padding-top: 48px; padding-bottom: 48px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .actions, .section-head .actions { justify-content: center; }
.text-muted { color: var(--c-text-3); }
.text-2 { color: var(--c-text-2); }
.text-primary { color: var(--c-primary); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-warning { color: var(--c-warning); }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; } .fs-24 { font-size: 24px; } .fs-32 { font-size: 32px; }
.fw-600 { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hide { display: none !important; }

/* ------------------------------------------------------------ 顶栏（玻璃） */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-brd);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 24px -18px rgba(14, 40, 55, .3);
}
.site-header .container {
    display: flex; align-items: center; gap: 18px;
    height: var(--nav-h);
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700; color: var(--c-text); letter-spacing: -.02em;
    white-space: nowrap;
}
.logo:hover { color: var(--c-primary-3); }
.logo img { height: var(--logo-h, 48px); width: auto; max-width: min(260px, 46vw); object-fit: contain; display: block; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 11px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; font-weight: 700;
    background: linear-gradient(155deg, var(--c-primary-2), var(--c-primary-3));
    box-shadow: var(--sh-in), 0 6px 16px -8px var(--c-primary-glow);
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; min-width: 0; }
.site-nav a {
    position: relative;
    padding: 9px 14px; border-radius: var(--r-full);
    color: var(--c-text-2); font-size: 14.5px; font-weight: 550;
    transition: all .18s var(--ease);
}
.site-nav a:hover { color: var(--c-primary-3); background: rgba(255, 255, 255, .75); }
.site-nav a.active {
    color: var(--c-primary-3);
    background: linear-gradient(180deg, #fff, var(--c-primary-soft));
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .05), 0 10px 20px -16px var(--c-primary-glow);
}
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle {
    display: none;
    width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .8); border: 1px solid var(--c-line); color: var(--c-text-2);
    cursor: pointer;
}
.nav-toggle .ico { width: 20px; height: 20px; }

.notice-bar {
    background: linear-gradient(90deg, rgba(53, 205, 139, .16), rgba(58, 142, 230, .12));
    border-bottom: 1px solid var(--c-line-2);
    font-size: 13.5px; color: var(--c-text-2);
}
.notice-bar .container { display: flex; align-items: center; gap: 8px; padding-top: 9px; padding-bottom: 9px; }
.notice-bar .ico { width: 16px; height: 16px; color: var(--c-primary-3); }

/* ------------------------------------------------------------ 按钮（轻拟物） */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 18px; border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 600; font-family: inherit; line-height: 1;
    color: var(--c-text-2); cursor: pointer; white-space: nowrap;
    background: linear-gradient(180deg, #ffffff, #f3f7f5);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .05), 0 8px 18px -14px rgba(14, 40, 55, .3);
    transition: transform .14s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--c-primary-3); border-color: rgba(18, 167, 106, .28); transform: translateY(-1px); box-shadow: var(--sh-in), 0 2px 4px rgba(14, 40, 55, .06), 0 14px 26px -16px var(--c-primary-glow); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-press); }
.btn .ico { width: 17px; height: 17px; }

.btn-primary {
    color: #fff; border-color: transparent;
    background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary));
    box-shadow: var(--sh-in), 0 2px 4px rgba(18, 167, 106, .22), 0 14px 28px -14px var(--c-primary-glow);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #3ed597, var(--c-primary)); border-color: transparent; }
.btn-success { color: #fff; border-color: transparent; background: linear-gradient(180deg, #35cd8b, #0f9e64); box-shadow: var(--sh-in), 0 14px 28px -16px var(--c-primary-glow); }
.btn-success:hover { color: #fff; }
.btn-danger { color: var(--c-danger); border-color: rgba(224, 85, 101, .26); background: linear-gradient(180deg, #fff, #fdf1f2); }
.btn-danger:hover { color: #fff; background: linear-gradient(180deg, #ec6b79, var(--c-danger)); border-color: transparent; }
.btn-ghost { background: rgba(255, 255, 255, .6); box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: #fff; box-shadow: var(--sh-1); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: var(--r-xs); }
.btn-sm .ico { width: 15px; height: 15px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: var(--r); }
.btn-lg .ico { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; box-shadow: none; color: var(--c-primary-3); padding: 0 4px; height: auto; }
.btn-link:hover { background: none; transform: none; box-shadow: none; text-decoration: underline; }
.btn.disabled, .btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ------------------------------------------------------------ 卡片（玻璃 + 轻拟物） */
.card {
    position: relative;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card::after {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    pointer-events: none;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card-pad { padding: 22px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 22px; border-bottom: 1px solid var(--c-line-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
}
.card-head h3, .card-head h4 { margin: 0; font-size: 16px; }
.card-title-sm { font-size: 14px; font-weight: 650; color: var(--c-text-2); }
.card-body { padding: 22px; }
.card-foot {
    padding: 16px 22px; border-top: 1px solid var(--c-line-2);
    background: linear-gradient(180deg, rgba(250, 253, 251, .6), rgba(255, 255, 255, .3));
}
.flat { background: rgba(255, 255, 255, .55); border: 1px solid var(--c-line); border-radius: var(--r); padding: 14px; }

/* 首页 hero */
.hero {
    position: relative; overflow: hidden;
    padding: 76px 0 66px; text-align: center;
}
.hero::before {
    content: ""; position: absolute; left: 50%; top: -180px; width: 780px; height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(53, 205, 139, .28), transparent 72%);
    pointer-events: none;
}
.hero h1 { position: relative; font-size: 40px; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--c-primary); }
.hero .sub { position: relative; max-width: 640px; margin: 0 auto 26px; color: var(--c-text-2); font-size: 16.5px; }
.hero-stats {
    position: relative; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px;
}
.hero-stats .hs {
    min-width: 148px; padding: 16px 22px; border-radius: var(--r-lg);
    background: var(--glass-strong); border: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: var(--sh-in), var(--sh-1);
}
.hero-stats .hs b { display: block; font-size: 24px; color: var(--c-primary-3); letter-spacing: -.02em; }
.hero-stats .hs span { font-size: 13px; color: var(--c-text-3); }

.section { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 23px; }
.section-head p { margin: 6px 0 0; color: var(--c-text-3); font-size: 14px; }

/* 服务优势 */
.feature { padding: 22px; }
.feature .fi {
    width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--c-primary-3);
    background: linear-gradient(160deg, #fff, #eaf6f0);
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .06), 0 12px 24px -16px rgba(14, 40, 55, .3);
    border: 1px solid rgba(255, 255, 255, .8);
}
.feature .fi .ico { width: 22px; height: 22px; }
.feature h4 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--c-text-3); font-size: 13.5px; line-height: 1.7; }

/* 维护中页面 */
.close-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 20px;
    background:
        radial-gradient(700px 400px at 50% 0%, rgba(53, 205, 139, .2), transparent 62%),
        var(--c-bg);
}
.close-card {
    width: 100%; max-width: 520px; text-align: center; padding: 40px 30px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); border-radius: 24px;
    box-shadow: var(--sh-in), 0 30px 70px -34px rgba(10, 30, 42, .45);
}
.close-icon {
    width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; color: var(--c-primary-3);
    background: linear-gradient(160deg, #fff, #eaf6f0);
    box-shadow: var(--sh-in), 0 14px 30px -18px rgba(14, 40, 55, .35);
}
.close-icon .ico { width: 30px; height: 30px; }
.close-card h1 { font-size: 21px; margin-bottom: 10px; }
.close-card p { color: var(--c-text-3); margin: 0; }

/* ------------------------------------------------------------ 产品卡片 */
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
    box-shadow: var(--sh-1); overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.product-card .cover {
    height: 132px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, rgba(53, 205, 139, .16), rgba(58, 142, 230, .12));
    color: var(--c-primary-3); overflow: hidden;
}
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card .cover .ph { font-size: 34px; font-weight: 700; opacity: .75; }
.product-card .p-body { padding: 16px 18px; flex: 1; }
.product-card.no-cover .p-body { padding-top: 18px; }
.product-card.no-cover .p-name { font-size: 17px; }
.product-card .p-name { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.product-card .p-sub { font-size: 13px; color: var(--c-text-3); min-height: 38px; line-height: 1.6; }
.product-card .p-price { margin-top: 10px; font-size: 20px; font-weight: 700; color: var(--c-primary-3); }
.product-card .p-price small { font-size: 12px; color: var(--c-text-3); font-weight: 500; }
.product-card .p-actions { padding: 0 18px 18px; }
.product-card .corner-tag {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #ff9ab7, var(--c-accent));
    box-shadow: 0 6px 14px -8px rgba(255, 127, 163, .8);
}
.product-card .top-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
    color: #fff; background: linear-gradient(135deg, #4bd39b, var(--c-primary-3));
    box-shadow: 0 6px 14px -8px var(--c-primary-glow);
}

/* 套餐/周期卡片 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.plan-card {
    position: relative; padding: 18px; border-radius: var(--r);
    background: linear-gradient(180deg, #fff, #f7fbf9);
    border: 1px solid var(--c-line); cursor: pointer; text-align: center;
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .04);
    transition: all .2s var(--ease);
}
.plan-card:hover { border-color: rgba(18, 167, 106, .35); transform: translateY(-2px); box-shadow: var(--sh-in), var(--sh-1); }
.plan-card.active {
    border-color: var(--c-primary);
    background: linear-gradient(180deg, #fff, var(--c-primary-soft));
    box-shadow: var(--sh-in), 0 0 0 3px var(--c-primary-soft), var(--sh-1);
}
.plan-card .pc-name { font-size: 13.5px; color: var(--c-text-2); }
.plan-card .pc-price { font-size: 22px; font-weight: 700; color: var(--c-primary-3); margin: 6px 0; }
.plan-card .pc-price small { font-size: 12px; font-weight: 500; color: var(--c-text-3); }
.plan-card .pc-tip { font-size: 12px; color: var(--c-text-3); }
.plan-card .pc-check { position: absolute; top: 10px; right: 12px; color: var(--c-primary); opacity: 0; transition: opacity .2s; }
.plan-card.active .pc-check { opacity: 1; }

/* ------------------------------------------------------------ 表单 */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--c-text-2); }
.form-label .req { color: var(--c-danger); margin-right: 3px; }
.form-control {
    width: 100%; height: 44px; padding: 0 14px; font-size: 14.5px; font-family: inherit;
    color: var(--c-text);
    background: linear-gradient(180deg, #fbfefd, #fff);
    border: 1px solid var(--c-line); border-radius: var(--r-sm);
    box-shadow: inset 0 1px 2px rgba(14, 40, 55, .04);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
    outline: none;
}
.form-control:hover { border-color: rgba(18, 167, 106, .28); }
.form-control:focus {
    background: #fff; border-color: var(--c-primary);
    box-shadow: 0 0 0 3.5px var(--c-primary-soft), inset 0 1px 2px rgba(14, 40, 55, .03);
}
textarea.form-control { height: auto; min-height: 104px; padding: 11px 14px; line-height: 1.65; resize: vertical; }
select.form-control {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238ba3b1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.form-control::placeholder { color: #a9bcc7; }
.form-control[disabled], .form-control[readonly] { background: #f4f8f6; color: var(--c-text-3); box-shadow: none; }
.form-control.is-locked { border-style: dashed; }
.form-tip { font-size: 12.5px; color: var(--c-text-3); margin-top: 7px; line-height: 1.65; }
.form-tip a { font-size: 12.5px; }
.form-error { font-size: 12.5px; color: var(--c-danger); margin-top: 7px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 200px; min-width: 0; }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group .form-control { flex: 1; }

.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--c-text-2); }
.checkbox input, .radio input { width: 17px; height: 17px; accent-color: var(--c-primary); cursor: pointer; }

.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccdbd5; border-radius: var(--r-full); transition: .25s var(--ease); cursor: pointer; box-shadow: inset 0 1px 3px rgba(14, 40, 55, .18); }
.switch span::before {
    content: ""; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .25s var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22), inset 0 1px 0 #fff;
}
.switch input:checked + span { background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary)); }
.switch input:checked + span::before { transform: translateX(19px); }

/* 分段控件 */
.seg {
    display: inline-flex; padding: 4px; gap: 4px;
    background: rgba(255, 255, 255, .7); border: 1px solid var(--c-line);
    border-radius: var(--r-full); box-shadow: inset 0 1px 2px rgba(14, 40, 55, .05);
    flex-wrap: wrap;
}
.seg a, .seg button {
    padding: 7px 15px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 550;
    color: var(--c-text-2); background: none; border: 0; cursor: pointer; font-family: inherit;
    transition: all .18s var(--ease);
}
.seg a:hover, .seg button:hover { color: var(--c-primary-3); }
.seg a.active, .seg button.active {
    color: #fff; background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary));
    box-shadow: 0 6px 14px -8px var(--c-primary-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* 上传控件 */
.upload-box {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px; border-radius: var(--r);
    background: linear-gradient(180deg, #fbfefd, #f5faf7);
    border: 1px dashed rgba(18, 167, 106, .38);
}
.upload-box .up-preview {
    width: 96px; height: 56px; border-radius: var(--r-xs); flex: none;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-in);
}
.upload-box .up-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload-box .up-body { flex: 1 1 220px; min-width: 0; }
.upload-box input[type=file] { font-size: 13px; width: 100%; }

/* ------------------------------------------------------------ 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.table-wrap { scrollbar-width: thin; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table thead th {
    text-align: left; padding: 12px 14px; font-size: 12.5px; font-weight: 650;
    color: var(--c-text-3); white-space: nowrap;
    background: rgba(244, 250, 247, .9); border-bottom: 1px solid var(--c-line);
}
.table thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.table thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--c-line-2); vertical-align: middle; }
.table tbody tr { transition: background .16s var(--ease); }
.table tbody tr:hover { background: rgba(18, 167, 106, .045); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: 6px; }

/* 数据列表 */
.data-list { display: block; }
.dl-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--c-line-2); }
.dl-row:last-child { border-bottom: 0; }
.dl-label { flex: 0 0 108px; color: var(--c-text-3); font-size: 13.5px; }
.dl-value { flex: 1; min-width: 0; word-break: break-word; }

/* ------------------------------------------------------------ 徽标 */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; line-height: 1.6;
    border: 1px solid transparent;
}
.badge-success { color: #0b7a4d; background: rgba(18, 167, 106, .13); border-color: rgba(18, 167, 106, .22); }
.badge-warning { color: #a4711b; background: rgba(232, 163, 61, .15); border-color: rgba(232, 163, 61, .26); }
.badge-danger { color: #b93a4a; background: rgba(224, 85, 101, .13); border-color: rgba(224, 85, 101, .24); }
.badge-info { color: #2469ac; background: rgba(58, 142, 230, .13); border-color: rgba(58, 142, 230, .24); }
.badge-muted { color: #62798a; background: rgba(16, 36, 47, .06); border-color: rgba(16, 36, 47, .1); }
.badge-primary { color: #0b7a4d; background: var(--c-primary-soft); border-color: rgba(18, 167, 106, .22); }

.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: var(--r-xs); font-size: 12px; font-weight: 600;
    color: var(--c-primary-3); background: var(--c-primary-soft); border: 1px solid rgba(18, 167, 106, .18);
}

.rt-tag {
    display: inline-block; min-width: 54px; text-align: center;
    padding: 2px 8px; border-radius: var(--r-xs); font-size: 12px; font-weight: 650;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.rt-blue { color: #2469ac; background: rgba(58, 142, 230, .14); }
.rt-indigo { color: #4348a8; background: rgba(99, 102, 241, .14); }
.rt-purple { color: #7a3fa8; background: rgba(154, 88, 220, .14); }
.rt-orange { color: #a4711b; background: rgba(232, 163, 61, .16); }
.rt-green { color: #0b7a4d; background: rgba(18, 167, 106, .14); }
.rt-cyan { color: #0f7b8a; background: rgba(20, 184, 200, .14); }
.rt-pink { color: #b93a67; background: var(--c-accent-soft); }
.rt-gray { color: #62798a; background: rgba(16, 36, 47, .07); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); margin-right: 6px; box-shadow: 0 0 0 3px rgba(18, 167, 106, .16); }
.dot.off { background: var(--c-text-3); box-shadow: 0 0 0 3px rgba(16, 36, 47, .08); }

/* ------------------------------------------------------------ 提示条 */
.alert {
    /* 注意：这里**不能用 flex** —— 用 flex 会把 alert 里的内联内容
       （<b> / <a> / <code> 等）各自拆成一个 flex item，视觉上变成多行。
       图标改用行内对齐即可。*/
    display: block;
    padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; line-height: 1.75;
    border: 1px solid transparent; margin-bottom: 16px;
}
.alert > .ico { display: inline-block; vertical-align: -0.16em; margin-right: 7px; }
.alert b { font-weight: 650; }
.alert-success { color: #0b7a4d; background: rgba(18, 167, 106, .1); border-color: rgba(18, 167, 106, .2); }
.alert-error, .alert-danger { color: #b93a4a; background: rgba(224, 85, 101, .1); border-color: rgba(224, 85, 101, .2); }
.alert-warning { color: #96671a; background: rgba(232, 163, 61, .12); border-color: rgba(232, 163, 61, .24); }
.alert-info { color: #2469ac; background: rgba(58, 142, 230, .1); border-color: rgba(58, 142, 230, .2); }

/* 富文本内容（公告 / 单页 / 帮助） */
.article { font-size: 14.5px; line-height: 1.95; color: var(--c-text-2); word-break: break-word; }
.article h1, .article h2, .article h3 { margin: 22px 0 10px; color: var(--c-text); }
.article p { margin: 0 0 14px; }
.article img { border-radius: var(--r-sm); max-width: 100%; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--c-primary-3); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
    margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--c-primary);
    background: var(--c-primary-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--c-text-2);
}
.article table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.article table th, .article table td { border: 1px solid var(--c-line); padding: 8px 12px; }
.article table th { background: rgba(244, 250, 247, .9); }
.article pre { background: #0f2a24; color: #b8f2d8; padding: 14px; border-radius: var(--r); overflow: auto; font-size: 12.5px; }

.btn-warning { color: #8a5c12; border-color: rgba(232, 163, 61, .3); background: linear-gradient(180deg, #fff, #fdf6ea); }
.btn-warning:hover { color: #fff; background: linear-gradient(180deg, #eeb35a, #d98f1f); border-color: transparent; }

.fs-14 { font-size: 14px; }
.flex-1 { flex: 1; min-width: 0; }
.text-info { color: var(--c-info); }
.text-decoration-line-through { text-decoration: line-through; }

/* ------------------------------------------------------------ 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 18px 0 4px; }
/* 分页结构为 <nav class="pager"><ul><li>…，必须重置列表样式，否则会出现圆点 + 竖排 */
.pager ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager li { display: flex; align-items: center; list-style: none; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 11px; border-radius: var(--r-sm);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--c-text-2);
    background: rgba(255, 255, 255, .8); border: 1px solid var(--c-line);
    transition: all .18s var(--ease);
}
.pager a:hover { color: var(--c-primary-3); border-color: rgba(18, 167, 106, .35); transform: translateY(-1px); }
/* 当前页高亮：同时兼容 .pager span.current 与 <li class="active"><span> 两种写法 */
.pager span.current,
.pager li.active > span { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary)); box-shadow: 0 8px 18px -10px var(--c-primary-glow); }
.pager span.disabled,
.pager li.disabled > span { opacity: .45; }
.pager .dots,
.pager li.dots > span,
.pager li.dots > a { min-width: 24px; padding: 0 4px; border: 0; background: none; box-shadow: none; }

/* 窄表单单页卡片（修改密码/邮箱/实名等）：只做宽度收敛，不带 .container 的额外内边距与居中 */
.form-card { max-width: 640px; }
.form-card-sm { max-width: 560px; }

/* ------------------------------------------------------------ 密码输入框内嵌「眼睛」按钮 */
/* 结构：<div class="pwd-wrap"><input class="form-control"><button class="pwd-eye" data-eye="#id">眼睛图标</button></div> */
.pwd-wrap { position: relative; }
.pwd-wrap .form-control { padding-right: 42px; }          /* 给右侧图标留位，避免文字压到图标 */
.pwd-eye {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--c-text-3); cursor: pointer; line-height: 1;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.pwd-eye:hover { color: var(--c-primary); background: rgba(18, 167, 106, .1); }
.pwd-eye:focus-visible { outline: 2px solid rgba(18, 167, 106, .45); outline-offset: 1px; }
.pwd-eye .ico { width: 17px; height: 17px; }
/* 明文状态（已点开）：图标高亮 + 叠一条斜线，直观表示"点一下会隐藏" */
.pwd-eye.is-on { color: var(--c-primary); }
.pwd-eye.is-on::after {
    content: ""; position: absolute; width: 19px; height: 2px; border-radius: 2px;
    background: currentColor; transform: rotate(-45deg);
}
/* ------------------------------------------------------------ 图形验证码（登录 / 注册） */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .form-control { flex: 1 1 auto; min-width: 0; }
.captcha-img { flex: 0 0 auto; width: 132px; height: 44px; border-radius: var(--r-sm);
    border: 1px solid var(--c-line); background: #f6fbf8; cursor: pointer; display: block;
    -webkit-user-select: none; user-select: none; }
.captcha-img:hover { border-color: rgba(18, 167, 106, .45); }
@media (max-width: 420px) {
    .captcha-img { width: 108px; height: 40px; }
}

/* ------------------------------------------------------------ 用户中心 · 产品购买页 / 控制台快捷入口 */
.buy-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(18, 167, 106, .14), rgba(53, 205, 139, .06) 55%, rgba(58, 142, 230, .08));
    border: 1px solid rgba(18, 167, 106, .18); }
.buy-hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 167, 106, .18), transparent 68%); pointer-events: none; }
/* 控制台快捷入口：文字在左、按钮在右，窄屏自动上下堆叠 */
.buy-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.buy-cta .bc-text { min-width: 0; }
.buy-cta .bh-sub { margin-bottom: 0; }
.buy-cta > .btn { flex: none; }

.buy-hero h2 { margin: 0 0 4px; font-size: 19px; }
.buy-hero .bh-sub { margin: 0 0 16px; color: var(--c-text-2); font-size: 13.5px; }
.buy-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-stat { flex: 1 1 150px; min-width: 140px; background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-brd);
    border-radius: var(--r); padding: 12px 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.buy-stat .bs-label { font-size: 12.5px; color: var(--c-text-3); display: flex; align-items: center; gap: 5px; }
.buy-stat .bs-value { font-size: 21px; font-weight: 700; margin-top: 3px; }
.buy-stat .bs-value small { font-size: 12px; font-weight: 500; color: var(--c-text-3); }
.buy-stat.warn .bs-value { color: var(--c-danger); }
.buy-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
/* 商品卡片 v2 —— 不依赖封面图，直接把关键规格铺出来（用户要求：不点详情也能看清） */
.product-card .pc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; padding: 14px 18px 0; }
.product-card .pc-left, .product-card .pc-right { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-card .pc-right { margin-left: auto; }
/* 顶部徽章行紧挨标题，避免和 p-body 的 padding 叠加导致间距过大 */
.product-card .pc-top + .p-body { padding-top: 10px; }
.product-card .pc-badge {
    font-size: 12px; font-weight: 600; line-height: 1.5; padding: 3px 10px; border-radius: var(--r-full); color: #fff;
}
.product-card .pc-badge-top { background: linear-gradient(135deg, #4bd39b, var(--c-primary-3)); box-shadow: 0 6px 14px -8px var(--c-primary-glow); }
.product-card .pc-badge-tag { background: linear-gradient(135deg, #ff9ab7, var(--c-accent)); box-shadow: 0 6px 14px -8px rgba(255, 127, 163, .8); }
.product-card .pc-badge-mine { background: linear-gradient(135deg, #8fd3ff, #3a8ee6); box-shadow: 0 6px 14px -8px rgba(58, 142, 230, .75); }
/* 库存标签（右上角）：按库存状态变色，让买家一眼看出紧不紧张 */
.product-card .pc-stock { box-shadow: none; font-variant-numeric: tabular-nums; }
.product-card .pc-stock.free { background: rgba(16, 36, 47, .07); color: var(--c-text-2); }
.product-card .pc-stock.ok   { background: linear-gradient(135deg, #4bd39b, var(--c-primary-3)); color: #fff; }
.product-card .pc-stock.low  { background: linear-gradient(135deg, #ffc46b, #e8952a); color: #fff; box-shadow: 0 6px 14px -8px rgba(232, 149, 42, .8); }
.product-card .pc-stock.out  { background: linear-gradient(135deg, #ff9ab7, var(--c-accent)); color: #fff; }
.product-card .p-name a { color: inherit; text-decoration: none; }
.product-card .p-name a:hover { color: var(--c-primary-3); }
/* 规格小表：两列对齐，虚线分隔 */
.product-card .pc-specs {
    margin: 13px 0; border: 1px solid rgba(16, 36, 47, .07); border-radius: 11px; overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 167, 106, .045), rgba(255, 255, 255, .55));
}
.product-card .pc-spec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 12px; font-size: 13px; }
.product-card .pc-spec + .pc-spec { border-top: 1px dashed rgba(16, 36, 47, .08); }
.product-card .pc-spec-k { color: var(--c-text-3); flex: none; }
.product-card .pc-spec-v { color: var(--c-text); font-weight: 600; text-align: right; word-break: break-all; }
.product-card .pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.product-card .pc-meta .sold { margin-left: auto; color: var(--c-text-3); font-size: 12px; }
/* 底部操作条：价格 + 按钮 */
.product-card .pc-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
    padding: 13px 18px; border-top: 1px solid rgba(16, 36, 47, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(18, 167, 106, .05));
}
.product-card .pc-foot .p-price { margin: 0; line-height: 1.2; }
.product-card .pc-foot .p-price b { font-size: 22px; }
.product-card .pc-foot .p-price span { font-size: 12px; color: var(--c-text-3); font-weight: 500; }
.product-card .pc-foot .btn { flex: none; white-space: nowrap; }
/* 用户中心列更窄：价格 + 多个按钮时允许整体右对齐换行 */
.product-card .pc-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.product-card.no-cover .p-body { padding-top: 14px; padding-bottom: 14px; }
.product-card .mine-tag { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(18, 167, 106, .92); color: #fff;
    font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-full); box-shadow: 0 6px 16px -8px var(--c-primary-glow); }
.buy-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.buy-actions .btn { flex: 1; }
@media (max-width: 1024px) {
    /* 用户中心内容区被左侧导航挤压，筛选栏提前换行更易用 */
    .buy-filter { flex-direction: column; align-items: stretch; }
    .buy-filter > .seg { justify-content: flex-start; flex-wrap: wrap; }
    .buy-filter > .flex-center { flex-wrap: wrap; }
    .buy-filter .input-group { flex: 1 1 100%; max-width: 100% !important; }
}
@media (max-width: 640px) {
    .buy-hero { padding: 18px 16px; }
    .buy-stat { flex: 1 1 100%; }
    .buy-filter { flex-direction: column; align-items: stretch; }
    .buy-actions { padding: 0 14px 14px; }
}
/* ------------------------------------------------------------ 用户中心布局 */
.user-layout { display: flex; gap: 22px; align-items: flex-start; padding-top: 26px; padding-bottom: 56px; }
.side-menu {
    flex: 0 0 226px; position: sticky; top: calc(var(--nav-h) + 16px);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
    box-shadow: var(--sh-1); padding: 12px; overflow: hidden;
}
.side-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--c-text-2); font-size: 14px; font-weight: 550;
    transition: all .16s var(--ease);
}
.side-menu a .ico { width: 18px; height: 18px; opacity: .8; }
.side-menu a:hover { background: rgba(255, 255, 255, .8); color: var(--c-primary-3); }
.side-menu a.active {
    color: var(--c-primary-3);
    background: linear-gradient(180deg, #fff, var(--c-primary-soft));
    box-shadow: var(--sh-in), 0 8px 18px -14px var(--c-primary-glow);
}
.side-menu a.active .ico { opacity: 1; }
.sm-title {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 12px; margin-top: 8px;
    font-size: 12px; font-weight: 650; color: var(--c-text-3); letter-spacing: .04em;
}
.sm-count { font-size: 11px; color: var(--c-text-3); }

.page-title {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.page-title h1 { margin: 0; font-size: 23px; }
.breadcrumb { font-size: 13px; color: var(--c-text-3); margin-bottom: 12px; }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-primary); }

/* 数据卡片 */
.stat-card {
    position: relative; padding: 18px; border-radius: var(--r-lg);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); box-shadow: var(--sh-in), var(--sh-1);
    overflow: hidden;
}
.stat-card.accent::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary-3));
}
.stat-card .sc-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--c-text-3); }
.stat-card .sc-label .ico { width: 16px; height: 16px; }
.stat-card .sc-value { margin-top: 8px; font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--c-text); }
.stat-card .sc-value small { font-size: 13px; font-weight: 500; color: var(--c-text-3); }

/* 代码行 / 复制 */
.code-line {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--r-sm);
    background: linear-gradient(180deg, #fbfefd, #f4f8f6);
    border: 1px solid var(--c-line); font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px; margin-bottom: 8px;
}
.code-line:last-child { margin-bottom: 0; }
.code-line .cl-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
    flex: none; padding: 4px 11px; font-size: 12px; font-weight: 600; font-family: inherit;
    color: var(--c-primary-3); cursor: pointer;
    background: rgba(255, 255, 255, .9); border: 1px solid rgba(18, 167, 106, .25);
    border-radius: var(--r-xs); transition: all .16s var(--ease);
}
.copy-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pwd-mask { letter-spacing: 2px; }

/* ------------------------------------------------------------ 弹窗（玻璃） */
.modal-mask {
    position: fixed; inset: 0; z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 20px;
    background: rgba(12, 32, 44, .42);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; animation: maskIn .22s var(--ease); }
.modal {
    width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
    box-shadow: 0 30px 70px -20px rgba(10, 30, 42, .45);
    animation: modalIn .26s var(--ease);
}
.modal-lg { max-width: 760px; }
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--c-line-2);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close {
    width: 32px; height: 32px; border-radius: var(--r-xs); border: 0; cursor: pointer;
    background: rgba(16, 36, 47, .05); color: var(--c-text-2); font-size: 17px; line-height: 1;
    transition: all .16s var(--ease);
}
.modal-close:hover { background: rgba(224, 85, 101, .12); color: var(--c-danger); }
.modal-body { padding: 20px; }
.modal-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
    padding: 14px 20px; border-top: 1px solid var(--c-line-2);
    background: linear-gradient(180deg, rgba(250, 253, 251, .5), rgba(255, 255, 255, .2));
}
.modal-note { padding: 0 20px 16px; font-size: 12.5px; color: var(--c-text-3); }

@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* 保存失败时弹窗轻微抖动，避免用户以为"点了没反应" */
@keyframes modalShake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.modal-mask.shake .modal { animation: modalShake .38s var(--ease); }

/* ------------------------------------------------------------ Toast */
#toast-box { position: fixed; top: 18px; left: 0; right: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 9px;
    max-width: min(560px, calc(100vw - 32px));
    padding: 11px 18px; border-radius: var(--r-full);
    font-size: 14px; font-weight: 550;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd);
    box-shadow: 0 16px 40px -18px rgba(10, 30, 42, .4);
    animation: toastIn .28s var(--ease);
}
.toast .t-icon {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; background: var(--c-info);
}
.toast.success .t-icon { background: var(--c-success); }
.toast.error .t-icon { background: var(--c-danger); }
.toast.warning .t-icon { background: var(--c-warning); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 空状态 / 骨架 */
.empty { padding: 44px 20px; text-align: center; color: var(--c-text-3); }
.empty .ei {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary-3);
    background: linear-gradient(160deg, #fff, #eaf6f0);
    box-shadow: var(--sh-in), 0 12px 26px -16px rgba(14, 40, 55, .3);
}
.empty .ei .ico { width: 26px; height: 26px; }
.empty p { margin: 0; font-size: 14px; }

.skeleton {
    background: linear-gradient(90deg, rgba(16, 36, 47, .05) 25%, rgba(16, 36, 47, .1) 37%, rgba(16, 36, 47, .05) 63%);
    background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-xs);
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; }
.spin-dark { border-color: rgba(16, 36, 47, .2); border-top-color: var(--c-text-2); }
@keyframes sp { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .34s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.collapse { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.collapse.open { max-height: 1200px; }
.acc { border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; margin-bottom: 10px; background: rgba(255, 255, 255, .6); }
.acc-body { padding: 16px; border-top: 1px solid var(--c-line-2); }

/* ------------------------------------------------------------ 工单会话 */
.chat { display: flex; flex-direction: column; gap: 18px; }
.chat-item { display: flex; gap: 12px; align-items: flex-start; }
.chat-item .avatar {
    width: 38px; height: 38px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 650; color: var(--c-text-2);
    background: linear-gradient(160deg, #fff, #eef4f1);
    box-shadow: var(--sh-in), 0 1px 2px rgba(14, 40, 55, .06);
}
.chat-bubble {
    flex: 1; min-width: 0; padding: 13px 16px; border-radius: var(--r);
    background: rgba(255, 255, 255, .92); border: 1px solid var(--c-line-2);
    box-shadow: var(--sh-1);
}
.chat-item.admin .avatar { color: #fff; background: linear-gradient(155deg, var(--c-primary-2), var(--c-primary-3)); }
.chat-item.admin .chat-bubble { background: linear-gradient(180deg, rgba(53, 205, 139, .10), rgba(255, 255, 255, .95)); border-color: rgba(18, 167, 106, .22); }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-text-3); margin-bottom: 6px; }
.chat-content { font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.chat-attach { margin-top: 8px; }
.chat-attach a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* ------------------------------------------------------------ 步骤条 */
.steps { display: flex; align-items: center; gap: 0; margin: 6px 0 26px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; color: var(--c-text-3); font-size: 13.5px; }
.step .num {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 650;
    background: linear-gradient(180deg, #fff, #eef4f1); border: 1px solid var(--c-line);
    box-shadow: var(--sh-in);
}
.step::after { content: ""; flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--c-line); }
.step:last-child::after { display: none; }
.step.done .num { color: #fff; border-color: transparent; background: linear-gradient(155deg, var(--c-primary-2), var(--c-primary)); box-shadow: 0 6px 16px -8px var(--c-primary-glow); }
.step.done::after { background: linear-gradient(90deg, var(--c-primary), rgba(18, 167, 106, .25)); }
.step.active { color: var(--c-text); font-weight: 600; }
.step.active .num { color: #fff; border-color: transparent; background: linear-gradient(155deg, var(--c-primary-2), var(--c-primary)); box-shadow: 0 6px 16px -8px var(--c-primary-glow), 0 0 0 4px var(--c-primary-soft); }

/* ------------------------------------------------------------ 费用小结 */
.summary { border: 1px solid var(--c-line-2); border-radius: var(--r); overflow: hidden; background: rgba(255, 255, 255, .6); }
.sm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; font-size: 14px; border-bottom: 1px dashed var(--c-line-2); }
.sm-row:last-child { border-bottom: 0; }
.sm-row span { color: var(--c-text-3); }
.sm-row b { font-weight: 650; }
.sm-row.total { background: linear-gradient(180deg, rgba(53, 205, 139, .1), rgba(255, 255, 255, .4)); font-size: 15px; }
.sm-row.total b { color: var(--c-danger); font-size: 21px; letter-spacing: -.02em; }

/* 支付方式 */
.pay-channel {
    display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 10px;
    border: 1px solid var(--c-line); border-radius: var(--r); cursor: pointer;
    background: linear-gradient(180deg, #fff, #f8fcfa);
    transition: all .18s var(--ease);
}
.pay-channel:hover { border-color: rgba(18, 167, 106, .35); transform: translateY(-1px); box-shadow: var(--sh-1); }
.pay-channel .pc-icon {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: var(--sh-in), 0 6px 14px -8px rgba(14, 40, 55, .4);
}
.pay-channel .pc-icon .ico { width: 20px; height: 20px; }
.pay-channel .pc-icon.alipay { background: linear-gradient(155deg, #45a8ff, #1677ff); }
.pay-channel .pc-icon.wxpay { background: linear-gradient(155deg, #4ed26a, #12a34f); }
.pay-channel .pc-icon.qqpay { background: linear-gradient(155deg, #5cb3ff, #2b6fd6); }
.pay-channel .pc-icon.balance { background: linear-gradient(155deg, #ffc46b, #e8952a); }
.pay-channel .pc-main { flex: 1; min-width: 0; }
.pay-channel .pc-main small { display: block; color: var(--c-text-3); font-size: 12.5px; }
/* 右侧选择圆点（未选中：空心） */
.pay-channel .pc-check {
    flex: none; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--c-line); background: #fff;
    transition: all .16s var(--ease);
}
/* 选中态：整卡高亮 + 圆点填充 ——
   注意 .active 由页内 JS 切换；同时用
   input:checked 兜底（脚本没跑起来也能看出选中哪个）*/
.pay-channel.active,
.pay-channel:has(input[type="radio"]:checked) {
    border-color: var(--c-primary);
    background: linear-gradient(180deg, rgba(18, 167, 106, .07), rgba(255, 255, 255, .92));
    box-shadow: 0 0 0 3px rgba(18, 167, 106, .13), var(--sh-1);
}
.pay-channel.active .pc-check,
.pay-channel input[type="radio"]:checked ~ .pc-check {
    border-color: var(--c-primary); background: var(--c-primary);
}
.pay-channel.active .pc-check::after,
.pay-channel input[type="radio"]:checked ~ .pc-check::after {
    content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
}
.pay-channel.active .pc-main b { color: var(--c-primary); }
/* 键盘可达：radio 透明但仍可 Tab 聚焦 */
.pay-channel:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(18, 167, 106, .16); }

/* ------------------------------------------------------------ 页脚 */
.site-footer {
    margin-top: 46px; padding: 40px 0 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(240, 248, 244, .9));
    border-top: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 12px; color: var(--c-text); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--c-text-3); font-size: 13.5px; }
.footer-grid a:hover { color: var(--c-primary); }
.fl { color: var(--c-text-3); font-size: 13.5px; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--c-line-2);
    font-size: 12.5px; color: var(--c-text-3);
}
.footer-bottom a { color: var(--c-text-3); }

/* ------------------------------------------------------------ 认证页 */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px;
    background:
        radial-gradient(760px 420px at 20% 0%, rgba(53, 205, 139, .2), transparent 60%),
        radial-gradient(620px 380px at 90% 100%, rgba(58, 142, 230, .14), transparent 62%),
        var(--c-bg);
}
.auth-card {
    width: 100%; max-width: 420px; padding: 34px 30px 26px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-brd); border-radius: 24px;
    box-shadow: var(--sh-in), 0 30px 70px -34px rgba(10, 30, 42, .45);
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }
/* 登录页 logo：按 --logo-h 的 2.5 倍显示（默认 48px → 120px），上限 132px。
   注意：模板里不要再写行内 height —— 行内样式会盖掉这里（历史上写死过 34px，导致 logo 一直很小）。*/
.auth-logo img { height: min(calc(var(--logo-h, 48px) * 2.5), 132px); width: auto; max-width: min(340px, 72vw); object-fit: contain; }
.auth-sub { color: var(--c-text-3); font-size: 14px; margin-bottom: 22px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--c-text-3); }
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 22px; border-radius: var(--r-full); background: rgba(16, 36, 47, .05); }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 12px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.auth-tabs a.active { color: #fff; background: linear-gradient(180deg, var(--c-primary-2), var(--c-primary)); box-shadow: 0 8px 18px -10px var(--c-primary-glow); }

/* ------------------------------------------------------------ 通用小工具 */
.m-only { display: none !important; }
.scroll-hint { font-size: 12px; color: var(--c-text-3); text-align: right; margin-top: 6px; }

/* ==========================================================================
   移动端适配
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .user-layout { gap: 16px; }
    .side-menu { flex: 0 0 200px; }
}

@media (max-width: 860px) {
    :root { --nav-h: 60px; --sp: 14px; }

    .container { padding: 0 15px; }
    body { font-size: 14.5px; }

    /* 顶栏：抽屉式菜单 */
    .site-header .container { gap: 10px; }
    .logo img { height: min(var(--logo-h, 48px), 40px); max-width: min(200px, 52vw); }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 8px); z-index: 70;
        flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px;
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
        box-shadow: 0 26px 60px -24px rgba(10, 30, 42, .45);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: all .22s var(--ease);
        max-height: 70vh; overflow: auto;
    }
    .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .site-nav a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; }
    .header-right { gap: 6px; }
    .header-right .btn { padding: 0 11px; }
    .header-right .btn > span:not(.badge) { display: none; }   /* 只留图标，角标保留 */
    .header-right .btn .badge { margin-left: -4px; }

    /* 栅格单列 */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    /* 强制列占满整行：覆盖模板里的行内 flex-basis（固定基准宽度会撑破手机屏） */
    .row { flex-direction: column; }
    .row > *, .col { flex: 1 1 100% !important; max-width: 100% !important; min-width: 0 !important; width: 100%; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row > * { flex: 1 1 auto; }
    .input-group { flex-wrap: wrap; }
    .input-group > * { flex: 1 1 100%; }
    .seg { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .modal-body, .modal-foot { overflow-x: hidden; }
    .hero-stats { width: 100%; }

    .hero { padding: 44px 0 38px; }
    .hero h1 { font-size: 27px; }
    .hero .sub { font-size: 15px; }
    .hero-stats .hs { min-width: 128px; padding: 13px 16px; flex: 1 1 40%; }
    .hero-stats .hs b { font-size: 20px; }
    .section { padding: 30px 0; }

    /* 页头：标题独占一行，操作按钮另起一行平分宽度并允许换行
       —— 控制台 3 个按钮、主机/服务器详情 4 个按钮在手机上会挤爆并被裁切 */
    .page-title { flex-direction: column; align-items: stretch; gap: 10px; }
    .page-title h1 { font-size: 20px; }
    .page-title > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .page-title > div > .btn { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 0 10px; }
    .page-title > div > .btn-block { flex: 1 1 100%; }

    /* 页头里的搜索表单：占满整行，输入框自适应、按钮保持右侧（不要上下堆叠） */
    .page-title > form, .page-title > .input-group { flex: 1 1 100%; max-width: 100% !important; min-width: 0; }
    .page-title > .input-group { flex-wrap: nowrap; }
    .page-title > .input-group > .form-control { flex: 1 1 auto; min-width: 0; }
    .page-title > .input-group > .btn { flex: 0 0 auto; }
    /* 窄表单卡片在小屏一律占满，不再被 max-width 限制 */
    /* 控制台快捷入口：按钮占满整行，避免右侧按钮被挤压 */
    .buy-cta { flex-direction: column; align-items: stretch; }
    .buy-cta > .btn { width: 100%; justify-content: center; }

    .form-card, .form-card-sm { max-width: 100%; }

    /* 兜底：卡片上一旦误用了 .container，去掉它多出来的内边距与居中，
       否则「container 的 20px」会和「card-pad 的 22px」叠加，内容被挤成一条 */
    .card.container, .card.container-sm { padding: 0; max-width: 100%; margin-left: 0; margin-right: 0; }

    /* 右对齐的单元格在手机上改为左对齐（竖排后右对齐会显得错位） */
    .dl-row .text-right, .dl-row .dl-value.text-right { text-align: left; }
    .card, .stat-card, .product-card, .side-menu, .auth-card { border-radius: var(--r); }
    .card-head, .card-body, .card-foot { padding: 15px 16px; }
    .card-pad { padding: 16px; }

    /* 用户中心：侧栏变横向滚动条 */
    /* 关键：基础样式是 align-items:flex-start，改列方向后子项会按 max-content 撑宽
       （实测内容区会被撑到 524px，在 390px 手机上直接穿模）——必须改为拉伸 */
    .user-layout { flex-direction: column; align-items: stretch; padding-top: 16px; padding-bottom: 40px; }
    .user-layout > section { width: 100%; max-width: 100%; }
    .side-menu {
        position: static; width: 100%; flex: none;
        display: flex; gap: 8px; overflow-x: auto; padding: 10px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .side-menu::-webkit-scrollbar { display: none; }
    .side-menu a { flex: none; padding: 9px 14px; border-radius: var(--r-full); white-space: nowrap; }
    .sm-title { display: none; }

    /* 表格：横向滚动 + 首列吸附 */
    .table { font-size: 13.5px; min-width: 520px; }
    .table thead th, .table tbody td { padding: 10px 11px; }
    .table-wrap { border: 1px solid var(--c-line-2); }

    /* 弹窗全屏化 */
    .modal-mask { padding: 0; align-items: flex-end; }
    .modal { max-width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheetIn .28s var(--ease); }
    @keyframes sheetIn { from { transform: translateY(30px); } to { transform: none; } }
    .modal-foot { position: sticky; bottom: 0; background: #fff; }

    .steps { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .steps::-webkit-scrollbar { display: none; }
    .step { flex: none; min-width: 40%; }
    .step span { white-space: nowrap; }

    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-bottom { justify-content: center; text-align: center; }

    .page-title h1 { font-size: 20px; }
    .page-title .btn { flex: 1 1 auto; }
    .dl-row { flex-direction: column; gap: 4px; }
    .dl-label { flex: none; font-size: 12.5px; }

    .toast { font-size: 13.5px; padding: 10px 15px; }
    .btn { height: 44px; }            /* 触摸目标 ≥44px */
    .btn-sm { height: 38px; }
    .form-control { height: 46px; }
    .m-only { display: revert !important; }
}

@media (max-width: 380px) {
    /* 超窄屏（320~380px）：顶栏进一步瘦身，避免右侧按钮组溢出屏幕 */
    .container { padding: 0 12px; }
    .logo img { height: min(var(--logo-h, 48px), 32px); max-width: min(130px, 40vw); }
    .logo { font-size: 16px; gap: 7px; }
    .header-right { gap: 3px; }
    .header-right .btn { padding: 0 8px; }
    .header-right .header-user { display: none; }   /* 昵称收起，只留图标 */
    .page-title > div > .btn { padding: 0 8px; font-size: 13px; }
    .buy-stat .bs-value { font-size: 19px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .seg { width: 100%; }
    .seg a, .seg button { flex: 1; text-align: center; padding: 8px 10px; }
    .modal-head, .modal-body, .modal-foot { padding-left: 15px; padding-right: 15px; }
    .stat-card .sc-value { font-size: 21px; }
}

/* 打印 */
@media print {
    .site-header, .site-footer, .side-menu, .btn, .pager { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ddd; }
}
