/* ==========================================================================
   蔚蓝模板 · 设计系统
   设计语言参照 passwk.top：主色 #2563eb、浅灰底、白色圆角卡片、柔和阴影
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-2: #3b82f6;
    --primary-deep: #1e40af;
    --primary-soft: #eff6ff;
    --indigo: #5a67f2;

    --bg: #f5f7fa;
    --card: #ffffff;

    --text: #1d1d1f;
    --text-2: #666666;
    --text-3: #999999;
    --text-4: #b8bcc4;

    --border: #e5e7eb;
    --border-2: #eef0f4;

    --danger: #ff4d4f;
    --success: #22c55e;
    --warning: #f59e0b;

    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 10px 30px -18px rgba(37, 99, 235, .25);
    --shadow-lg: 0 20px 46px -20px rgba(16, 24, 40, .28);
    --shadow-primary: 0 8px 20px -8px rgba(37, 99, 235, .55);

    --header-h: 64px;
    --wrap: 1200px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 14px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d5dae2;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0c7d2;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* 页脚已整体移除，主内容底部留白 */
main.wrap {
    padding-bottom: 44px;
}

.hidden {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-2);
}

.site-header .inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand .logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
}

.brand .logo svg {
    width: 19px;
    height: 19px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand .name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 导航：居中白色胶囊，当前项为蓝色实心胶囊 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    /* margin:auto 吸收两侧剩余空间 → 胶囊在页头居中 */
    margin: 0 auto;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -18px rgba(16, 24, 40, .32);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: .18s;
}

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

.main-nav a.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .75);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: .18s;
}

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

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    transition: .18s;
}

.user-chip:hover {
    border-color: #c7d7fe;
}

.user-chip .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-2), var(--indigo));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-chip .meta {
    line-height: 1.25;
}

.user-chip .meta b {
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.user-chip .meta span {
    font-size: 11px;
    color: var(--primary);
}

/* 移动端底部胶囊导航：只在手机端出现，桌面端不占位 */
.tabbar {
    display: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: .2s;
    user-select: none;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .7);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--primary-soft);
    border-color: var(--primary-2);
}

.btn-ghost {
    background: #fff;
    color: var(--text-2);
    border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--primary);
    border-color: #c7d7fe;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    height: 48px;
    font-size: 15px;
    border-radius: 12px;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================== 卡片 ============================== */

.card {
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
}

.card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-head h3::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--primary), var(--indigo));
}

.card-head .more {
    font-size: 12.5px;
    color: var(--text-3);
    transition: .18s;
}

.card-head .more:hover {
    color: var(--primary);
}

/* ============================== 首屏 Hero ============================== */

.hero {
    padding: 22px 0 6px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 268px;
    gap: 18px;
    align-items: stretch;
}

/* 左：系统通知 */
.notice-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notice-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 18px 12px;
    max-height: 318px;
}

.notice-item {
    padding: 11px 0;
    border-bottom: 1px dashed var(--border-2);
}

.notice-item:last-child {
    border-bottom: 0;
}

.notice-item .t {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: .18s;
}

.notice-item:hover .t {
    color: var(--primary);
}

.notice-item .d {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-empty {
    margin: auto;
    color: var(--text-4);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    line-height: 1.9;
}

.notice-empty svg {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 9px;
    stroke: #cbd5e1;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 中：轮播 */
.banner {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #eef2f8;
    /* 卡片比例固定：高度只由布局宽度决定，不再被轮播图尺寸撑大/压小。
       （hero-grid 是 stretch，若左右卡片更高则按行高对齐，各断点比例见响应式段） */
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.banner-track {
    display: flex;
    height: 100%;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    /* 图片偏大时按比例缩小到「完整可见」：不裁切、也不撑高卡片 */
    object-fit: contain;
}

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 3;
}

.banner-dots i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .6);
    transition: .3s;
    cursor: pointer;
}

.banner-dots i.on {
    width: 20px;
    background: #fff;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .82);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .25s;
    z-index: 3;
}

.banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow.prev {
    left: 12px;
}

.banner-arrow.next {
    right: 12px;
}

.banner-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 未配置轮播图时的品牌首屏（高度跟随 .banner，不再自己撑高） */
.banner-empty {
    height: 100%;
    box-sizing: border-box;
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    background:
        radial-gradient(560px 220px at 88% -10%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 52%, var(--indigo) 100%);
    color: #fff;
}

.banner-empty .be-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
}

.banner-empty .be-tag svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.banner-empty h2 {
    margin: 4px 0 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.3;
}

.banner-empty p {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
    margin-top: 6px;
}

.btn-light:hover:not(:disabled) {
    transform: translateY(-1px);
}

.banner-empty .be-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 8px;
    font-size: 12.5px;
    opacity: .88;
}

.banner-empty .be-list b {
    font-weight: 800;
}

/* 右：用户卡 */
.user-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-panel .hi {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-panel .hi .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-2), var(--indigo));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.user-panel .hi b {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.user-panel .hi span {
    font-size: 12px;
    color: var(--text-3);
}

.user-panel .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

/* 关闭个人中心时只有一个按钮 */
.user-panel .actions.one {
    grid-template-columns: 1fr;
}

.user-panel .actions .btn {
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
}

.balance-box {
    background: linear-gradient(135deg, #f0f6ff, #f7f9ff);
    border: 1px solid #e2ecff;
    border-radius: var(--r);
    padding: 12px 14px;
}

.balance-box .lb {
    font-size: 12px;
    color: var(--text-3);
}

.balance-box .val {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.4px;
}

.balance-box .val small {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}

.assure {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 4px;
}

.assure div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
}

.assure svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================== 公告条 ============================== */

.notice-bar {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 0 16px;
    box-shadow: var(--shadow-sm);
}

.notice-bar .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.notice-bar .tag svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notice-bar .track {
    flex: 1;
    min-width: 0;
    /* flex 项默认 min-width:auto，会被 nowrap 文字撑开 → 手机上把整页顶宽 */
    overflow: hidden;
    position: relative;
    height: 22px;
}

.notice-bar .track span {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-2);
    animation: marquee 22s linear infinite;
}

.notice-bar:hover .track span {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================== 分类 ============================== */

.section {
    margin-top: 26px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 14px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-head h2::before {
    content: "";
    width: 5px;
    height: 19px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--primary), var(--indigo));
}

.section-head .sub {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 400;
}

/* 商品搜索框（分类标题行右侧） */
.goods-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    max-width: 100%;
    height: 40px;
    padding: 0 10px 0 34px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: .2s;
}

.goods-search>svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: var(--text-3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: .2s;
}

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

.goods-search input::placeholder {
    color: var(--text-4);
}

.goods-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.goods-search:focus-within>svg {
    stroke: var(--primary);
}

.goods-search .gs-clear {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #f0f2f5;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s;
}

.goods-search .gs-clear:hover {
    background: #e4e7ec;
    color: var(--text);
}

.goods-search .gs-clear svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.cat-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cat-chip {
    height: 36px;
    padding: 0 17px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: .2s;
}

.cat-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .35;
}

.cat-chip:hover {
    color: var(--primary);
    border-color: #c7d7fe;
    background: var(--primary-soft);
}

.cat-chip.on {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-primary);
}

.cat-chip.on .dot {
    background: #fff;
    opacity: .9;
}

/* ============================== 商品网格 ============================== */

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 16px;
}

.goods-card {
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s;
    position: relative;
}

.goods-card:hover {
    transform: translateY(-3px);
    border-color: #dbe6ff;
    box-shadow: var(--shadow);
}

/* 封面：正方形大图，商品图完整居中（参照 passwk.top 商品卡） */
.goods-cover {
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.goods-cover .mark {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .8);
}

.goods-cover .state-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border-2);
    color: var(--primary);
    backdrop-filter: blur(6px);
}

.goods-body {
    padding: 13px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.goods-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片价格：跟随商品名，深色加粗（区别于抽屉合计的红色） */
.goods-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.3px;
}

.goods-price .cur {
    font-size: 15px;
    font-weight: 700;
}

.goods-price .num {
    font-size: 24px;
}

/* 计价单位（如 /每门）：跟随价格但弱化，不抢主体 */
.goods-price .unit {
    margin-left: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-3);
}

/* ============================== 空态 / 骨架 ============================== */

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}

.empty svg {
    width: 46px;
    height: 46px;
    stroke: #d6dbe4;
    fill: none;
    stroke-width: 1.6;
    margin: 0 auto 12px;
}

.skeleton {
    background: linear-gradient(90deg, #eef1f5 25%, #f6f8fa 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: shimmer 1.3s ease infinite;
    border-radius: var(--r-lg);
    height: 232px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ============================== 抽屉 / 下单面板 ============================== */

.mask {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .28s;
    z-index: 1000;
}

.mask.show {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 560px;
    max-width: 100%;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.drawer.show {
    transform: translateX(0);
}

.drawer-head {
    background: #fff;
    border-bottom: 1px solid var(--border-2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.drawer-head .ttl {
    flex: 1;
    min-width: 0;
}

.drawer-head .ttl b {
    font-size: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-head .ttl span {
    font-size: 12px;
    color: var(--text-3);
}

.x-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .18s;
}

.x-btn:hover {
    color: var(--danger);
    border-color: #ffd4d4;
    background: #fff5f5;
}

.x-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-foot {
    background: #fff;
    border-top: 1px solid var(--border-2);
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.drawer-foot .total {
    flex: 1;
    min-width: 0;
}

.drawer-foot .total .lb {
    font-size: 12px;
    color: var(--text-3);
}

/* 网课未选课时：底部提示转为警示色 */
.drawer-foot .total .lb.warn {
    color: var(--warning);
    font-weight: 600;
}

/* 提交按钮被锁定时（网课未查到课 / 未勾选课程）呈灰底，一眼看出不可点 */
.drawer-foot .btn:disabled {
    background: #cbd5e1;
    color: #fff;
    box-shadow: none;
}

/* 抽屉合计：红色价签 */
.drawer-foot .total .price {
    display: flex;
    align-items: baseline;
    color: var(--danger);
    font-weight: 800;
    letter-spacing: -.3px;
}

.drawer-foot .total .price .cur {
    font-size: 14px;
    font-weight: 700;
}

.drawer-foot .total .price .num {
    font-size: 24px;
}

.panel-card {
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    padding: 16px 16px 4px;
    /* 同 .goods-docs：抽屉主体是 flex 纵向滚动容器，卡片不能被压缩 */
    flex-shrink: 0;
}

.panel-card h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.panel-card h4 .n {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.goods-docs {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    border: 1px solid #e2ecfe;
    border-left: 3px solid var(--primary-2);
    color: var(--text-2);
    border-radius: var(--r-sm);
    padding: 10px 13px 11px;
    font-size: 12.5px;
    line-height: 1.7;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
    /* 抽屉主体是 flex 纵向滚动容器，不锁住 shrink 的话说明区会被压成一条细缝 */
    flex-shrink: 0;
}

.goods-docs .gd-head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.goods-docs .gd-head svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.goods-docs .gd-p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.goods-docs .gd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.goods-docs .gd-list li {
    position: relative;
    padding-left: 14px;
    margin-top: 4px;
    word-break: break-word;
}

.goods-docs .gd-list li:first-child {
    margin-top: 0;
}

.goods-docs .gd-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-2);
    opacity: .5;
}

/* ============================== 表单 ============================== */

.field {
    margin-bottom: 13px;
}

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

.field>label .req {
    color: var(--danger);
    margin-left: 3px;
}

.field .hint {
    font-size: 11.5px;
    color: var(--text-4);
    margin-top: 5px;
    line-height: 1.6;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    height: 42px;
    padding: 0 13px;
    color: var(--text);
    background: #fff;
    transition: .18s;
    outline: none;
}

.textarea {
    height: auto;
    min-height: 104px;
    padding: 11px 13px;
    resize: vertical;
    line-height: 1.65;
}

.input:focus,
.textarea:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}

.input[readonly] {
    background: #f8fafc;
    color: var(--text-2);
    cursor: default;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-4);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .input {
    flex: 1;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pill {
    position: relative;
}

.radio-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-pill span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 15px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    font-size: 13px;
    transition: .18s;
    cursor: pointer;
}

.radio-pill input:checked+span {
    color: var(--primary);
    border-color: var(--primary-2);
    background: var(--primary-soft);
    font-weight: 600;
}

/* 支付方式 */
.pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pay-pill {
    position: relative;
}

.pay-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-pill span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    font-size: 13.5px;
    transition: .18s;
    cursor: pointer;
}

.pay-pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pay-pill svg.pi {
    border-radius: 5.5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

.pay-pill input:checked+span {
    border-color: var(--primary-2);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

/* 课程列表 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 2px;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    background: #fff;
    transition: .18s;
    cursor: pointer;
}

.course-row:hover {
    border-color: #dbe6ff;
    background: #fbfdff;
}

.course-row.on {
    border-color: var(--primary-2);
    background: var(--primary-soft);
}

.course-row .box {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1.6px solid #cdd5e0;
    flex-shrink: 0;
    position: relative;
    transition: .18s;
}

.course-row.on .box {
    background: var(--primary);
    border-color: var(--primary);
}

.course-row.on .box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.course-row .cname {
    font-size: 13.5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-row .cid {
    font-size: 11.5px;
    color: var(--text-3);
    flex-shrink: 0;
    /* 课程ID 原样展示（可能很长）：限宽后折行，避免把课程名挤没 */
    max-width: 62%;
    overflow-wrap: anywhere;
    text-align: right;
}

/* 工具条（全选等） */
.course-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 9px;
}

.text-btn {
    background: none;
    border: 0;
    color: var(--primary);
    font-size: 12.5px;
    padding: 0;
    font-weight: 600;
}

.text-btn:hover {
    text-decoration: underline;
}

/* ============================== 查单页 ============================== */

/* 页头：保持紧凑，避免大面积蓝块压住下方内容 */
.page-hero {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--indigo) 100%);
    padding: 22px 0 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -130px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.page-hero h1 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.page-hero p {
    margin: 0;
    opacity: .85;
    font-size: 13px;
}

.query-box {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}

/* 订单页公告条 */
.query-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.65;
}

.query-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.query-box .input-group .input {
    height: 50px;
    font-size: 15px;
}

.query-box .btn {
    height: 50px;
    padding: 0 28px;
}

.order-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    padding: 16px 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: .2s;
}

.order-card:hover {
    border-color: #dbe6ff;
    box-shadow: var(--shadow-sm);
}

.order-card .oc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-card .oc-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-card .oc-main {
    flex: 1;
    min-width: 0;
}

.order-card .oc-main b {
    font-size: 14.5px;
    display: block;
    word-break: break-word;
}

.order-card .oc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--text-3);
}

.order-card .oc-meta i {
    font-style: normal;
    color: var(--text-2);
}

/* ============================== 订单进度条 ============================== */

.oc-progress {
    --tier: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.oc-progress .op-track {
    flex: 1;
    min-width: 0;
    height: 8px;
    border-radius: 99px;
    background: #eef2f7;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.oc-progress .op-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 99px;
    background-color: var(--tier);
    transition: width .9s cubic-bezier(.22, .61, .36, 1);
}

.oc-progress .op-num {
    flex: none;
    min-width: 40px;
    text-align: right;
    font-size: 13px;
    font-weight: 800;
    color: var(--tier);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.2px;
}

.oc-progress .op-num i {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    margin-left: 1px;
    opacity: .8;
}

/* 档位配色（沿用站点默认模板的档位：0 红 / <30 橙 / <70 蓝 / 70+ 绿）
   0%   待处理   红  —— 需留意，尚未开始跑
   1-29 起步     橙
   30-69 处理中  蓝（本站主色）
   70-99 收尾     绿
   100   已完成   深绿（去条纹）
   异常   一律红 */
.oc-progress.is-zero {
    --tier: #ff4d4f;
}

.oc-progress.is-low {
    --tier: #faad14;
}

.oc-progress.is-mid {
    --tier: #2563eb;
}

.oc-progress.is-high {
    --tier: #52c41a;
}

.oc-progress.is-done {
    --tier: #16a34a;
}

.oc-progress.is-error {
    --tier: #ff4d4f;
}

/* 空轨道的底色也按档位微调，避免"红的数字配灰轨道"的割裂感 */
.oc-progress.is-zero .op-track,
.oc-progress.is-error .op-track {
    background: #fdeef0;
}

.oc-progress.is-done .op-track {
    background: #e8f9ef;
}

/* 处理中的档位加流动条纹，传达"正在跑"；完成/异常/未开始不放条纹 */
.oc-progress.is-low .op-fill,
.oc-progress.is-mid .op-fill,
.oc-progress.is-high .op-fill {
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .34) 25%, transparent 25%, transparent 50%,
            rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, .34) 75%, transparent 75%);
    background-size: 14px 14px;
    animation: opStripe .9s linear infinite;
}

@keyframes opStripe {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 14px 0;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
}

.pill-ok {
    background: #e8f9ef;
    color: #16a34a;
}

.pill-run {
    background: var(--primary-soft);
    color: var(--primary);
}

.pill-no {
    background: #fff1f0;
    color: var(--danger);
}

/* ============================== 弹窗 / 提示 ============================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal .box {
    width: 440px;
    max-width: 100%;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(14px) scale(.98);
    transition: .28s;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
}

.modal.show .box {
    transform: none;
}

.modal .box .mh {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal .box .mh b {
    flex: 1;
    font-size: 15.5px;
}

.modal .box .mb {
    padding: 18px 20px;
    overflow-y: auto;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal .box .mf {
    padding: 13px 20px;
    border-top: 1px solid var(--border-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 「消息」弹窗里的通知条目 */
.msg-item {
    padding: 11px 0;
    border-bottom: 1px dashed var(--border-2);
}

.msg-item:first-child {
    padding-top: 0;
}

.msg-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.msg-item .t {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.msg-item .d {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-3);
}

.toast-wrap {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: 11px;
    box-shadow: var(--shadow-lg);
    padding: 11px 17px;
    font-size: 13.5px;
    color: var(--text);
    animation: toastIn .3s cubic-bezier(.22, .61, .36, 1);
    max-width: 88vw;
}

.toast svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast.ok svg {
    stroke: var(--success);
}

.toast.err svg {
    stroke: var(--danger);
}

.toast.info svg {
    stroke: var(--primary);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 加载 */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.spinner.dark {
    border-color: rgba(37, 99, 235, .25);
    border-top-color: var(--primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================== 悬浮按钮 ============================== */

.float-btns {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--text-2);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .22s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.fab.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fab.primary {
    background: linear-gradient(135deg, var(--primary), var(--indigo));
    color: #fff;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .6);
}

.fab svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================== 消息中心页 ============================== */

/* 页面底色：参照图的淡蓝渐变，只在消息页生效 */
body.msg-body {
    background: linear-gradient(180deg, #eff5ff 0%, #f5f9ff 42%, #f5f7fa 100%);
}

/* 背景柔光圆 */
.msg-deco {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: rgba(78, 124, 255, .10);
}

.msg-deco.d1 {
    width: 260px;
    height: 260px;
    top: -110px;
    left: -90px;
}

.msg-deco.d2 {
    width: 190px;
    height: 190px;
    top: 30px;
    right: -70px;
    background: rgba(107, 148, 255, .13);
}

.msg-deco.d3 {
    width: 240px;
    height: 240px;
    bottom: -90px;
    right: -80px;
}

.msg-deco.d4 {
    width: 170px;
    height: 170px;
    bottom: 30px;
    left: -80px;
    background: rgba(107, 148, 255, .13);
}

.msg-hero {
    position: relative;
    z-index: 1;
    padding: 22px 0 6px;
}

.msg-hero h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.msg-hero p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--text-3);
}

.msg-page {
    position: relative;
    z-index: 1;
}

/* ---------- 概要卡 ---------- */
.msg-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.msg-summary .ms-ic {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-summary .ms-ic svg {
    width: 19px;
    height: 19px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.msg-summary b {
    font-size: 16px;
    font-weight: 700;
}

.msg-summary .ms-n {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-3);
}

/* ---------- 消息卡片 ---------- */
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.msg-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

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

.msg-card:active {
    transform: scale(.99);
}

.msg-card.read {
    opacity: .84;
}

/* 未读：左侧主色竖条 + 极淡的蓝色渐入，和参照图一致 */
.msg-card.unread {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(37, 99, 235, .05), #fff 22%);
}

.msg-ic {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.msg-ic svg {
    width: 22px;
    height: 22px;
    stroke: #9aa3b2;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.msg-card.unread .msg-ic svg {
    stroke: var(--primary);
}

.msg-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    border: 1.5px solid #fff;
}

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

.msg-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.msg-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.msg-card.unread .msg-title {
    color: var(--primary);
}

.msg-time {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-3);
}

.msg-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--text-3);
}

/* ---------- 空状态 / 加载 / 到底 ---------- */
.msg-empty,
.msg-loading {
    padding: 46px 0 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

.msg-empty svg,
.msg-loading svg {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 10px;
    stroke: #cbd5e1;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.msg-empty b {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
}

.msg-empty span {
    display: block;
    margin-top: 4px;
    color: var(--text-4);
}

.msg-more {
    padding: 20px 0 6px;
    text-align: center;
    font-size: 12.5px;
    color: #c0c7d2;
}

/* ---------- 消息详情：底部抽屉 ---------- */
.msg-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 620px;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, 102%);
    opacity: 0;
    visibility: hidden;
    transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .3s, visibility .3s;
    z-index: 1001;
}

.msg-sheet.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.ms-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-2);
}

.ms-head b {
    font-size: 15.5px;
    font-weight: 700;
}

.ms-body {
    flex: 1;
    min-height: 0;
    padding: 18px 20px 24px;
    overflow-y: auto;
}

.ms-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
}

.ms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-2);
    font-size: 12px;
    color: var(--text-3);
}

.ms-content {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-2);
    word-break: break-word;
}

.ms-content p {
    margin: 0 0 10px;
}

.ms-content img {
    margin: 10px 0;
    border-radius: 10px;
}

.ms-content a {
    color: var(--primary);
}

/* 桌面端：抽屉改成居中浮层，别贴着屏幕底边 */
@media (min-width: 861px) {
    .msg-sheet {
        top: 50%;
        bottom: auto;
        max-height: 78vh;
        border-radius: var(--r-lg);
        transform: translate(-50%, -46%) scale(.97);
    }

    .msg-sheet.show {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 手机端：标题居中贴住顶栏、间距收紧、抽屉贴底、胶囊加角标 */
@media (max-width: 860px) {
    .msg-hero {
        padding: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-2);
    }

    .msg-hero .wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 46px;
    }

    .msg-hero h1 {
        font-size: 16.5px;
        font-weight: 700;
        letter-spacing: .2px;
    }

    .msg-hero p {
        display: none;
    }

    .msg-deco.d1 {
        width: 180px;
        height: 180px;
        top: -80px;
        left: -70px;
    }

    .msg-deco.d3 {
        width: 170px;
        height: 170px;
        bottom: -70px;
        right: -60px;
    }

    .msg-summary {
        margin-top: 12px;
        padding: 14px 16px;
        border-radius: var(--r);
    }

    .msg-summary .ms-ic {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .msg-summary b {
        font-size: 15px;
    }

    .msg-list {
        gap: 10px;
        margin-top: 12px;
    }

    .msg-card {
        gap: 10px;
        padding: 14px 15px;
        border-radius: var(--r);
    }

    .msg-title {
        font-size: 14.5px;
    }

    .msg-more {
        padding: 16px 0 4px;
    }

    .msg-sheet {
        max-height: 82vh;
        border-radius: 18px 18px 0 0;
    }

    .ms-body {
        padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
    }

    .ms-title {
        font-size: 16px;
    }

    /* ---------- 底部胶囊「消息」未读角标 ---------- */
    .tb-item {
        position: relative;
    }

    .tb-badge {
        position: absolute;
        top: 3px;
        left: 50%;
        margin-left: 7px;
        min-width: 17px;
        height: 17px;
        padding: 0 5px;
        border-radius: 9px;
        background: linear-gradient(135deg, #ff4757, #ff3838);
        color: #fff;
        font-size: 10.5px;
        font-style: normal;
        font-weight: 700;
        line-height: 17px;
        text-align: center;
        box-shadow: 0 3px 8px rgba(255, 71, 87, .4);
        pointer-events: none;
    }
}

/* ============================== 商品分类页（/?mod=goods） ============================== */

/* 左：分类竖列；右：商品 */
.goods-page {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
}

/* 左侧分类竖列：吸顶，条数多时在栏内独立上下滚动（不影响右侧） */
.side-cats {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: flex-start;
    flex: none;
    width: 168px;
    max-height: calc(100vh - var(--header-h) - 32px);
    max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 6px;
    scrollbar-width: none;
}

.side-cats::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sc-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    position: relative;
    transition: .18s;
}

.sc-item+.sc-item {
    margin-top: 2px;
}

.sc-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.sc-item:hover {
    background: #f6f8fb;
    color: var(--text);
}

/* 选中：浅蓝底 + 左侧主色竖条（与分类芯片同一套视觉语言） */
.sc-item.on {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.sc-item.on::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
}

.sc-loading {
    padding: 26px 8px;
    text-align: center;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1.9;
}

/* 右侧商品区 */
.goods-main {
    flex: 1;
    min-width: 0;
}

.gm-toolbar {
    margin-bottom: 12px;
}

.gm-toolbar .goods-search {
    width: 100%;
}

.gm-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 2px 12px;
}

.gm-head b {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.2px;
}

.gm-head span {
    color: var(--text-3);
    font-size: 12.5px;
}

/* ---------- 商品排列样式（后台「商品排列样式」配置项） ----------
   该配置**只对手机端生效**：所有 .layout-* 规则一律写在
   @media (max-width: 860px) 里（见下方「响应式」段落），
   桌面端永远是默认双列网格，跟这里配了什么无关。
   容器上的 layout-list / layout-big 类仍由 PHP 照常输出，
   桌面端因为没有对应规则而自然回落到 .goods-grid 的基础样式。 */

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

/* ---------- 中屏（≤1080）：收起左侧通知卡 ---------- */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 268px;
    }

    /* 中间列变宽，横幅跟着变扁一点，避免整块过高 */
    .banner {
        aspect-ratio: 16 / 7;
    }

    .notice-panel {
        display: none;
    }
}

/* ---------- 移动端（≤860）：单列 + 全面紧凑化 ---------- */
@media (max-width: 860px) {

    /* 刘海屏：页头 / 抽屉底部让出安全区 */
    .site-header {
        padding-top: env(safe-area-inset-top);
    }

    .site-header .inner {
        height: 58px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand .logo {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .brand .logo svg {
        width: 17px;
        height: 17px;
    }

    .brand .name {
        font-size: 16px;
        max-width: 46vw;
    }

    .main-nav {
        display: none;
    }

    /* 顶栏只剩品牌 + 一个操作入口，整体靠右 */
    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .header-actions .btn {
        height: 36px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 999px;
    }

    .user-chip {
        padding: 4px 11px 4px 4px;
        gap: 7px;
        max-width: 44vw;
    }

    .user-chip .avatar {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .user-chip .meta {
        min-width: 0;
    }

    .user-chip .meta b {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 手机上只留昵称，余额在用户卡里已有 */
    .user-chip .meta span {
        display: none;
    }

    /* ---------- 首屏 ---------- */
    .hero {
        padding: 12px 0 4px;
    }

    /* 单列：轮播提到最上，用户卡随后 */
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .banner {
        order: 1;
        aspect-ratio: 16 / 9;
        border-radius: var(--r);
    }

    /* 触摸端没有 hover，箭头永远不会出现，直接收起 */
    .banner-arrow {
        display: none;
    }

    .banner-dots {
        bottom: 10px;
        gap: 6px;
    }

    .banner-dots i {
        width: 6px;
        height: 6px;
    }

    .banner-dots i.on {
        width: 17px;
    }

    .banner-empty {
        padding: 22px 20px;
        gap: 8px;
    }

    .banner-empty h2 {
        font-size: 21px;
    }

    .banner-empty .be-list {
        gap: 6px 14px;
    }

    /* 用户卡：压缩留白，「服务保障」由竖排三条改为横排三宫格 */
    .user-panel {
        order: 2;
        padding: 14px 15px;
        gap: 12px;
        border-radius: var(--r);
    }

    .user-panel .hi {
        gap: 10px;
    }

    .user-panel .hi .avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    /* 长昵称不撑破卡片 */
    .user-panel .hi>span:last-child {
        min-width: 0;
    }

    .user-panel .hi b {
        font-size: 14.5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-panel .actions {
        gap: 8px;
    }

    .user-panel .actions .btn {
        height: 40px;
        font-size: 13.5px;
    }

    .balance-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
    }

    .balance-box .val {
        font-size: 20px;
    }

    /* 「服务保障」由竖排三条改为横排三宫格（带浅底块，读起来像 App 的服务承诺） */
    .assure {
        flex-direction: row;
        gap: 6px;
        margin-top: 0;
        padding-top: 12px;
        border-top: 1px dashed var(--border-2);
    }

    .assure div {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding: 9px 4px 10px;
        border-radius: 10px;
        background: #f7f9fc;
        font-size: 11px;
        line-height: 1.35;
        color: var(--text-2);
    }

    .assure svg {
        width: 16px;
        height: 16px;
    }

    /* ---------- 公告条 ---------- */
    .notice-bar {
        margin-top: 12px;
        height: 42px;
        gap: 9px;
        padding: 0 6px 0 13px;
    }

    .notice-bar .tag {
        font-size: 12px;
        gap: 5px;
    }

    .notice-bar .tag svg {
        width: 14px;
        height: 14px;
    }

    .notice-bar .track span {
        font-size: 12.5px;
    }

    /* ---------- 分类 + 搜索 ---------- */
    .section {
        margin-top: 20px;
    }

    /* 标题与搜索框同一行（副标题让位，省掉一整行） */
    .section-head {
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .section-head h2 {
        font-size: 17px;
        gap: 7px;
        flex-shrink: 0;
    }

    .section-head h2::before {
        width: 4px;
        height: 17px;
    }

    .section-head .sub {
        display: none;
    }

    .goods-search {
        flex: 1;
        width: auto;
        min-width: 0;
        height: 38px;
        padding: 0 10px 0 32px;
    }

    .goods-search>svg {
        left: 12px;
        width: 14px;
        height: 14px;
    }

    .goods-search input {
        font-size: 13px;
    }

    /* 分类芯片：横向滚动一行，不再换行占三行 */
    .cat-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        margin: 0 -14px 14px;
        padding: 2px 14px 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .cat-chip {
        height: 32px;
        padding: 0 14px;
        font-size: 13px;
        gap: 6px;
        flex-shrink: 0;
    }

    .cat-chip .dot {
        width: 5px;
        height: 5px;
    }

    /* ---------- 商品网格 ---------- */
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
    }

    .goods-card {
        border-radius: var(--r);
    }

    .goods-cover img {
        padding: 8px;
    }

    .goods-cover .mark {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 13px;
    }

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

    .goods-body {
        padding: 10px 11px 13px;
        gap: 6px;
    }

    .goods-name {
        font-size: 13px;
        line-height: 1.4;
    }

    .goods-price .cur {
        font-size: 13px;
    }

    .goods-price .num {
        font-size: 20px;
    }

    .goods-price .unit {
        margin-left: 2px;
        font-size: 11px;
    }

    /* ---------- 查单页 ---------- */
    .page-hero {
        padding: 16px 0 18px;
    }

    .page-hero h1 {
        font-size: 19px;
    }

    .page-hero p {
        font-size: 12.5px;
    }

    .query-box {
        padding: 16px;
        border-radius: var(--r);
    }

    .query-box .input-group .input {
        height: 46px;
        font-size: 14.5px;
    }

    .query-box .btn {
        height: 46px;
        padding: 0 20px;
    }

    .order-card {
        padding: 14px;
        gap: 12px;
    }

    .order-card .oc-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .oc-progress {
        gap: 8px;
        margin-top: 9px;
    }

    .oc-progress .op-track {
        height: 7px;
    }

    .oc-progress .op-num {
        min-width: 36px;
        font-size: 12.5px;
    }

    /* ---------- 下单抽屉（全屏） ---------- */
    .drawer {
        width: 100%;
    }

    .drawer-head {
        padding: 13px 15px;
    }

    .drawer-head .ttl b {
        font-size: 15px;
    }

    .drawer-body {
        padding: 13px 15px 18px;
        gap: 12px;
    }

    .drawer-foot {
        padding: 11px 15px;
        padding-bottom: calc(11px + env(safe-area-inset-bottom));
        gap: 12px;
    }

    .drawer-foot .btn {
        padding: 0 22px;
    }

    .drawer-foot .total .price .num {
        font-size: 22px;
    }

    .panel-card {
        padding: 14px 14px 4px;
    }

    .pay-pill span {
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .course-list {
        max-height: 260px;
    }

    /* ---------- 悬浮按钮：抬到胶囊导航之上 ---------- */
    .float-btns {
        right: 16px;
        bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .fab {
        width: 42px;
        height: 42px;
    }

    .fab svg {
        width: 19px;
        height: 19px;
    }

    /* ---------- 底部胶囊导航 ---------- */
    .tabbar {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 900;
        padding: 7px 6px;
        background: #fff;
        border-radius: 26px;
        box-shadow: 0 12px 32px -10px rgba(16, 24, 40, .26), 0 2px 6px rgba(16, 24, 40, .05);
    }

    .tb-item {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 0 5px;
        border: 0;
        background: none;
        border-radius: 18px;
        font-family: inherit;
        font-size: 11.5px;
        line-height: 1;
        color: var(--text-3);
        cursor: pointer;
        transition: color .18s, background .18s;
        -webkit-tap-highlight-color: transparent;
    }

    .tb-item svg {
        width: 23px;
        height: 23px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .tb-item.on {
        color: var(--primary);
    }

    .tb-item.on svg {
        stroke-width: 2.1;
    }

    .tb-item:active {
        background: var(--primary-soft);
    }

    /* ---------- 容器 ---------- */
    .wrap {
        padding: 0 14px;
    }

    /* 给底部胶囊留出空间，别遮住最后一屏内容 */
    main.wrap {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    /* 手机端隐藏「自助下单」卡片（无需注册/7×24/官方渠道/进度可查） */
    .user-panel.self-order {
        display: none;
    }

    /* ---------- 商品分类页：左分类竖列（可上下滑动）+ 右商品 ---------- */
    .goods-page {
        gap: 10px;
        margin-top: 14px;
    }

    .side-cats {
        /* 放大到 112px + 14px 字号：实测 8 个分类里 7 个能单行显示，
           只剩最长的中英混排名（中国大学MOOC）自然折两行 */
        width: 112px;
        /* 吸顶导航 58px + 刘海安全区 */
        top: calc(58px + env(safe-area-inset-top) + 10px);
        max-height: calc(100vh - 58px - env(safe-area-inset-top) - 112px);
        max-height: calc(100dvh - 58px - env(safe-area-inset-top) - 112px);
        border-radius: 14px;
        padding: 6px;
    }

    .sc-item {
        padding: 12px 10px;
        font-size: 14px;
        line-height: 1.4;
        border-radius: 10px;
    }

    .sc-item.on::before {
        height: 16px;
        width: 3.5px;
    }

    .gm-toolbar {
        margin-bottom: 10px;
    }

    .gm-head {
        margin: 0 2px 10px;
    }

    .gm-head b {
        font-size: 14.5px;
    }

    .gm-head span {
        font-size: 11.5px;
    }

    /* ---------- 商品排列样式（后台配置，仅手机端生效） ---------- */

    /* 列表：单列横向卡，左小图 + 右名称价格，一屏看更多 */
    .goods-grid.layout-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .goods-grid.layout-list .goods-card {
        flex-direction: row;
        align-items: stretch;
    }

    .goods-grid.layout-list .goods-card:hover {
        transform: none;
    }

    .goods-grid.layout-list .goods-cover {
        width: 92px;
        flex: none;
        aspect-ratio: auto;
        border-bottom: 0;
        border-right: 1px solid var(--border-2);
    }

    .goods-grid.layout-list .goods-cover img {
        padding: 8px;
    }

    .goods-grid.layout-list .goods-cover .mark {
        width: 40px;
        height: 40px;
        font-size: 17px;
        border-radius: 11px;
    }

    .goods-grid.layout-list .goods-cover .state-badge {
        top: 8px;
        left: 8px;
        right: auto;
        font-size: 10px;
        padding: 2px 7px;
    }

    .goods-grid.layout-list .goods-body {
        padding: 12px 14px;
        gap: 6px;
        justify-content: center;
    }

    .goods-grid.layout-list .goods-name {
        font-size: 14.5px;
    }

    .goods-grid.layout-list .goods-price .num {
        font-size: 20px;
    }

    /* 大图：单列，封面更大更抢眼 */
    .goods-grid.layout-big {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .goods-grid.layout-big .goods-cover {
        aspect-ratio: 16 / 10;
    }

    .goods-grid.layout-big .goods-cover img {
        padding: 14px;
    }

    .goods-grid.layout-big .goods-cover .mark {
        width: 74px;
        height: 74px;
        font-size: 28px;
        border-radius: 20px;
    }

    .goods-grid.layout-big .goods-body {
        padding: 14px 16px 18px;
    }

    .goods-grid.layout-big .goods-name {
        font-size: 16px;
    }

    /* 右栏卡片比首页窄，内边距与字号跟着收 */
    .goods-page .goods-body {
        padding: 10px 10px 12px;
        gap: 7px;
    }

    .goods-page .goods-name {
        font-size: 12.5px;
    }

    .goods-page .goods-price .num {
        font-size: 17px;
    }

    .goods-page .goods-price .cur {
        font-size: 12px;
    }

    /* 页内锚点跳转避开吸顶导航 */
    #goods {
        scroll-margin-top: 66px;
    }
}

/* 小屏手机（≤480）：横幅比例再收一点，避免过扁；品牌首屏精简，防止小高度下溢出 */
@media (max-width: 480px) {
    .banner {
        aspect-ratio: 7 / 4;
    }

    .banner-empty {
        padding: 18px 16px;
        gap: 7px;
    }

    .banner-empty h2 {
        font-size: 19px;
    }

    .banner-empty .be-list {
        display: none;
    }

    .brand .name {
        max-width: 40vw;
    }

    .user-panel {
        padding: 13px 14px;
    }

    .goods-grid {
        gap: 10px;
    }

    .goods-body {
        padding: 9px 10px 12px;
    }

    .goods-name {
        font-size: 12.5px;
    }

    .goods-price .num {
        font-size: 19px;
    }

    /* 商品分类页：左栏尺寸沿用上方 860 断点（96px 宽的机型上再收会小到看不清），
       只把「列表」样式里横向卡的封面略收一点 */
    .goods-grid.layout-list .goods-cover {
        width: 88px;
    }
}

/* 触摸设备：去掉 hover 位移/描边，避免点按后卡片停在悬停态 */
@media (hover: none) {
    .goods-card:hover {
        transform: none;
        border-color: var(--border-2);
        box-shadow: none;
    }

    .btn:hover:not(:disabled) {
        transform: none;
    }
}
