/* =============================================================
   Switch 卡带租赁 · 前台样式（电脑端 + 手机端）
   设计令牌 / 布局 / 组件，全站唯一样式入口
   ============================================================= */

/* ---------------- 设计令牌 ---------------- */
:root {
    --brand: #e60012;
    --brand-dark: #c00010;
    --brand-soft: #fff1f2;
    --brand-ghost: #ffe7e9;

    --ink: #17191d;
    --ink-2: #515865;
    --ink-3: #8b93a1;
    --ink-4: #b3b9c3;

    --bg: #f5f6f8;
    --card: #ffffff;
    --line: #ebedf1;
    --line-strong: #dfe2e8;

    --green: #00a870;
    --green-soft: #e8f7f0;
    --blue: #2f6bff;
    --blue-soft: #edf2ff;
    --orange: #e37318;
    --orange-soft: #fff4e8;
    --gray-soft: #f2f3f5;

    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 10px;

    --shadow-sm: 0 1px 2px rgba(23, 25, 29, .04), 0 2px 8px rgba(23, 25, 29, .03);
    --shadow: 0 4px 16px rgba(23, 25, 29, .06), 0 1px 3px rgba(23, 25, 29, .04);
    --shadow-lg: 0 18px 48px rgba(23, 25, 29, .12);

    --header-h: 68px;
    --max: 1440px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------- 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; display: block; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------- 顶栏 ---------------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-head__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    padding: 3px;
}
.brand__logo--ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), #ff4d5a);
    color: #fff; font-weight: 800; font-size: 17px;
    border: none; padding: 0;
}
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.site-nav a {
    padding: 8px 14px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 14.5px;
    transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--gray-soft); color: var(--ink); }
.site-nav a.is-on { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.site-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.user-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.user-chip__avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; overflow: hidden;
}
.user-chip__name { font-size: 13.5px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 11px;
    background: #fff; color: var(--ink);
    font-size: 14.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: transform .12s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: linear-gradient(135deg, #ff3b4a 0%, var(--brand) 55%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(230, 0, 18, .22);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(230, 0, 18, .3); }
.btn--ghost { border-color: var(--line-strong); background: #fff; color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--block { display: flex; width: 100%; }
.btn--lg { height: 50px; font-size: 16px; border-radius: 13px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------------- 通用区块 ---------------- */
.page { padding: 28px 0 64px; }
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.panel__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 16px; font-weight: 700; }
.panel__body { padding: 22px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.section-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.section-head a { color: var(--ink-3); font-size: 13.5px; }
.section-head a:hover { color: var(--brand); }

.badge {
    display: inline-flex; align-items: center;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 12px; font-weight: 600; line-height: 1.7;
}
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--brand-soft); color: var(--brand); }
.badge-gray { background: var(--gray-soft); color: var(--ink-3); }
.badge-platform { background: #eef2ff; color: #3d5afe; }

.alert { border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: var(--brand-soft); color: #c0161f; border: 1px solid #ffd6d9; }
.alert-success { background: var(--green-soft); color: #00794f; border: 1px solid #c9ecdd; }
.alert-info { background: var(--blue-soft); color: #2452c9; border: 1px solid #d8e3ff; }

/* ---------------- 首页横幅 ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1b1d22 0%, #2a2023 45%, #4a1218 100%);
    color: #fff;
    border-radius: 0;
}
.hero::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -140px; top: -220px;
    background: radial-gradient(circle, rgba(230, 0, 18, .55), transparent 62%);
    filter: blur(10px);
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 40px;
    padding: 64px 24px 68px;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12.5px; letter-spacing: .3px;
    margin-bottom: 18px;
}
.hero__title { font-size: 46px; line-height: 1.16; font-weight: 800; letter-spacing: -1px; }
.hero__sub { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .74); max-width: 480px; }
.hero__actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__actions .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hero__stats { display: flex; gap: 34px; margin-top: 38px; }
.hero__stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.hero__stat span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.hero__visual { position: relative; }
.hero__image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    transform: rotate(-1.5deg);
}
.hero__stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero__stack-item {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 10px;
}
.hero__stack-item img { border-radius: 10px; aspect-ratio: 16/10; object-fit: contain; width: 100%; background: rgba(255,255,255,.12); }
.hero__stack-item span { display: block; margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 公告 ---------------- */
.notice {
    display: flex; align-items: center; gap: 10px;
    margin-top: -20px; position: relative; z-index: 2;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: var(--shadow);
    font-size: 13.5px;
    color: var(--ink-2);
}
.notice__tag {
    flex: none; font-size: 12px; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); border-radius: 6px; padding: 2px 8px;
}
.notice__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 搜索与筛选 ---------------- */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin: 34px 0 20px;
    flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
    transition: all .18s;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.search {
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 5px 6px 5px 14px;
    min-width: 320px;
    transition: border-color .18s, box-shadow .18s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(230, 0, 18, .08); }
.search svg { flex: none; color: var(--ink-4); }
.search input { flex: 1; border: none; outline: none; height: 34px; background: transparent; min-width: 0; }
.search button {
    height: 34px; padding: 0 16px;
    border: none; border-radius: 8px;
    background: var(--ink); color: #fff;
    font-size: 13.5px; font-weight: 600; cursor: pointer;
}

/* ---------------- 商品网格 ---------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.p-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* 游戏盒装封面多为竖版：改用 3:4 容器 + contain，保证整张封面完整显示不裁切 */
.p-card__cover { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, #f7f8fa, #eef0f4); overflow: hidden; }
.p-card__cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.p-card:hover .p-card__cover img { transform: scale(1.04); }
.p-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #c8ced8; }
.p-card__stock {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 9px; border-radius: 7px;
    font-size: 11.5px; font-weight: 600;
    background: rgba(20, 22, 26, .62); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.p-card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__name {
    font-size: 14.5px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.p-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-card__version { font-size: 11.5px; color: var(--ink-3); }
.p-card__price { display: flex; align-items: baseline; gap: 3px; margin-top: auto; }
.p-card__price b { color: var(--brand); font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.p-card__price span { font-size: 11.5px; color: var(--ink-3); }
.p-card__deposit { font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 空状态 / 加载 ---------------- */
.empty { text-align: center; padding: 72px 20px; color: var(--ink-3); }
.empty__icon { font-size: 46px; opacity: .5; }
.empty__text { margin: 14px 0 18px; font-size: 14px; }
.load-more {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 30px 0 4px; font-size: 13px; color: var(--ink-3);
    cursor: pointer;
}
.spinner {
    width: 16px; height: 16px; flex: none;
    border: 2px solid rgba(23, 25, 29, .12);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 服务保障 / 流程 ---------------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 44px 0 0; }
.feature {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.feature__icon {
    width: 38px; height: 38px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: var(--brand-soft); color: var(--brand);
    font-size: 18px;
}
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; display: block; margin-top: 3px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.step { position: relative; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__no {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
    margin-bottom: 12px;
}
.step b { font-size: 14.5px; }
.step p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ---------------- 商品详情 ---------------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-4); }

.detail {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}
.detail__cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 16/10;
}
.detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.detail__cover .p-card__ph { font-size: 72px; }

/* 详情页多图画廊（主图 + 子图） */
.detail__media { min-width: 0; }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery__stage {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    aspect-ratio: 1 / 1;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f6f7f9;
    cursor: zoom-in;
}
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--ink-2);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .14);
    transition: transform .15s, background .15s;
}
.gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .58);
    color: #fff;
    font-size: 12px;
    letter-spacing: .02em;
}
.gallery__counter b { font-weight: 700; }
.gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .08);
    transition: border-color .15s, transform .15s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { transform: translateY(-1px); }
.gallery__thumb.is-on { border-color: var(--brand); }

/* 放大查看 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 14, 22, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.lightbox__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.detail__title { font-size: 30px; font-weight: 800; letter-spacing: -.6px; line-height: 1.25; }
.detail__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.detail__pricebox {
    margin-top: 22px;
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}
.detail__price { display: flex; align-items: baseline; gap: 6px; }
.detail__price b { font-size: 32px; font-weight: 800; color: var(--brand); letter-spacing: -1px; }
.detail__price span { color: var(--ink-3); font-size: 13px; }
.detail__deposit { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.period-tab {
    position: relative; cursor: pointer;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    background: #fff;
    transition: border-color .18s, background .18s;
}
.period-tab input { position: absolute; opacity: 0; pointer-events: none; }
.period-tab b { display: block; font-size: 15px; }
.period-tab span { display: block; font-size: 12.5px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.period-tab small { display: block; font-size: 11px; color: var(--ink-3); }
.period-tab.is-on { border-color: var(--brand); background: var(--brand-soft); }
.detail__actions { display: flex; gap: 12px; margin-top: 22px; }
.detail__actions .btn { flex: 1; }
.detail__note { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.detail__note b { color: var(--ink-2); font-weight: 600; }

.prose { font-size: 14px; color: var(--ink-2); line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.prose--empty { color: var(--ink-3); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field__label {
    display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px;
}
.field__req { color: var(--brand); }
.field__hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input, .textarea, select.input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.textarea { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, select.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, .08);
}
.input[readonly], .input:disabled { background: #f7f8fa; color: var(--ink-3); }
.input-group { position: relative; }
.input-group .input { padding-right: 96px; }
.input-group__btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    height: 32px; padding: 0 12px; border: none; border-radius: 7px;
    background: var(--gray-soft); color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}

/* ---------------- 下单页 ---------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.checkout__main > * + * { margin-top: 16px; }
.checkout__aside { position: sticky; top: calc(var(--header-h) + 20px); }

.buy-card { display: flex; gap: 14px; }
.buy-card__cover {
    width: 116px; height: 73px; flex: none;
    border-radius: 12px; overflow: hidden; background: var(--gray-soft);
}
.buy-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-card__body { flex: 1; min-width: 0; }
.buy-card__name { font-size: 16px; font-weight: 700; }
.buy-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

.periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.period {
    position: relative;
    border: 1.5px solid var(--line-strong); border-radius: 12px;
    padding: 14px 10px; text-align: center; cursor: pointer;
    transition: all .18s;
}
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period__days { font-size: 15px; font-weight: 700; }
.period__price { font-size: 14px; font-weight: 800; color: var(--brand); margin-top: 4px; }
.period__label { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.period.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(230, 0, 18, .06); }

.addr-list { display: grid; gap: 10px; }
.addr {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer;
    transition: all .18s;
}
.addr:hover { border-color: var(--line-strong); }
.addr input[type="radio"] { margin-top: 4px; accent-color: var(--brand); flex: none; }
.addr__body { flex: 1; min-width: 0; }
.addr__line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addr__name { font-weight: 700; font-size: 14px; }
.addr__phone { color: var(--ink-2); font-size: 13px; }
.addr__text { color: var(--ink-2); font-size: 13px; margin-top: 4px; word-break: break-all; }
.addr.is-on { border-color: var(--brand); background: var(--brand-soft); }
.link-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 14px; padding: 0; border: none; background: none;
    color: var(--brand); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.addr-new { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }

.fee-list { display: grid; gap: 10px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.fee-row b { color: var(--ink); font-weight: 600; }
.fee-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.fee-total span { font-size: 14px; font-weight: 600; }
.fee-total b { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }

.steps-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.steps-bar i {
    width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gray-soft); font-style: normal; font-size: 11px; font-weight: 700;
}
.steps-bar .is-on { color: var(--ink); font-weight: 600; }
.steps-bar .is-on i { background: var(--brand); color: #fff; }
.steps-bar em { color: var(--ink-4); font-style: normal; }

/* ---------------- 订单 ---------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px; overflow-x: auto; }
.tabs a {
    position: relative; padding: 14px 18px;
    font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.tabs a.is-on { color: var(--brand); font-weight: 700; }
.tabs a.is-on::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px;
    background: var(--brand); border-radius: 2px;
}
.tabs a span { font-size: 12px; color: var(--ink-3); margin-left: 3px; }

.order {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.order + .order { margin-top: 14px; }
.order__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; background: #fafbfc; border-bottom: 1px solid var(--line);
    font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap;
}
.order__head b { color: var(--ink-2); font-weight: 600; }
.order__body { display: flex; gap: 14px; padding: 16px 18px; }
.order__cover { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--gray-soft); flex: none; }
.order__cover img { width: 100%; height: 100%; object-fit: cover; }
.order__info { flex: 1; min-width: 0; }
.order__name { font-size: 15px; font-weight: 700; }
.order__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.order__price { text-align: right; flex: none; }
.order__price b { display: block; font-size: 18px; color: var(--brand); font-weight: 800; }
.order__price span { font-size: 12px; color: var(--ink-3); }
.order__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px; border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}
.order__foot .addr { padding: 0; border: none; background: none; font-size: 12.5px; color: var(--ink-3); cursor: default; }
.order__actions { display: flex; gap: 8px; margin-left: auto; }

.timeline { display: grid; gap: 0; }
.tl-item { position: relative; padding: 0 0 22px 26px; }
.tl-item::before {
    content: ""; position: absolute; left: 6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line-strong);
}
.tl-item::after {
    content: ""; position: absolute; left: 10.5px; top: 16px; bottom: 0;
    width: 1px; background: var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::after { display: none; }
.tl-item.is-done::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-item b { font-size: 14px; display: block; }
.tl-item span { font-size: 12.5px; color: var(--ink-3); }

.success {
    text-align: center;
    padding: 40px 24px;
}
.success__icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700;
}
.success h2 { font-size: 22px; font-weight: 800; }
.success p { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.success__actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.kv { display: grid; gap: 12px; }
.kv__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.kv__row span { color: var(--ink-3); flex: none; }
.kv__row b { font-weight: 600; text-align: right; word-break: break-all; }

/* 订单操作（续租 / 归还） */
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-action {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: #fcfcfd;
}
.order-action__head { margin-bottom: 12px; }
.order-action__head b { font-size: 15px; display: block; }
.order-action__head span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.order-action__row { display: flex; gap: 10px; }
.order-action__row .input { flex: 1; min-width: 0; height: 40px; }
.order-action__row .btn { flex: none; height: 40px; padding: 0 18px; }
.order-hint {
    font-size: 12.5px; color: var(--ink-3); line-height: 1.8;
    background: var(--gray-soft); border-radius: 10px; padding: 12px 14px;
}

/* ---------------- 我的账户 ---------------- */
.account { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 22px; align-items: start; }
.account__side { position: sticky; top: calc(var(--header-h) + 20px); }
.profile-card { text-align: center; padding: 26px 20px; }
.profile-card__avatar {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--brand), #ff5a66);
    color: #fff; font-size: 26px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.profile-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__name { font-size: 17px; font-weight: 700; }
.profile-card__phone { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.profile-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-card__stats b { display: block; font-size: 18px; }
.profile-card__stats span { font-size: 11.5px; color: var(--ink-3); }

.side-nav { margin-top: 14px; padding: 8px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 10px;
    font-size: 14px; color: var(--ink-2);
}
.side-nav a:hover { background: var(--gray-soft); }
.side-nav a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.side-nav a.danger { color: var(--brand); margin-top: 6px; }

.avatar-upload { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.avatar-upload__preview {
    width: 74px; height: 74px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; overflow: hidden; flex: none;
}
.avatar-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload label.btn { cursor: pointer; }
.avatar-upload input[type="file"] { display: none; }

.addr-card {
    padding: 16px; border: 1px solid var(--line); border-radius: 12px;
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff;
}
.addr-card + .addr-card { margin-top: 10px; }
.addr-card__main { flex: 1; min-width: 0; }
.addr-card__ops { display: flex; gap: 12px; flex: none; font-size: 12.5px; }
.addr-card__ops a { color: var(--ink-3); }
.addr-card__ops a:hover { color: var(--brand); }

/* ---------------- 登录 ---------------- */
.auth {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
}
.auth__aside {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #1a1c21 0%, #2b1a1d 55%, #521018 100%);
    color: #fff;
    padding: 64px 56px;
    display: flex; flex-direction: column; justify-content: center;
}
.auth__aside::after {
    content: ""; position: absolute; width: 460px; height: 460px;
    left: -120px; bottom: -200px;
    background: radial-gradient(circle, rgba(230, 0, 18, .5), transparent 65%);
}
.auth__aside h2 { font-size: 34px; font-weight: 800; letter-spacing: -.6px; position: relative; z-index: 1; }
.auth__aside p { margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 14.5px; max-width: 380px; position: relative; z-index: 1; }
.auth__points { margin-top: 30px; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth__point { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.auth__point i { color: #ff8d96; font-style: normal; }

.auth__panel {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
}
.auth__box { width: 100%; max-width: 380px; }
.auth__brand { text-align: center; margin-bottom: 26px; }
.auth__logo {
    width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px;
    background: linear-gradient(135deg, #ff3b4a, var(--brand));
    color: #fff; font-size: 28px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(230, 0, 18, .22);
    overflow: hidden;
}
.auth__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.auth__brand h1 { font-size: 22px; font-weight: 800; }
.auth__brand p { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.auth__tabs { display: flex; gap: 6px; background: var(--gray-soft); padding: 4px; border-radius: 12px; margin-bottom: 22px; }
.auth__tabs a {
    flex: 1; text-align: center; padding: 9px 0; border-radius: 9px;
    font-size: 14px; color: var(--ink-2);
}
.auth__tabs a.is-on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); }

.auth__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-4); font-size: 12px; }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 11px; border: 1px solid var(--line-strong);
    background: #fff; font-size: 14px; font-weight: 600;
}
.oauth a:hover { border-color: var(--ink-4); }
.oauth .alipay { color: #1677ff; }
.oauth .wechat { color: #07c160; }

.auth__foot { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.8; }
.auth__foot a { color: var(--brand); }

/* ---------------- 协议页 ---------------- */
.doc { max-width: 960px; margin: 0 auto; }
.doc__head { margin-bottom: 24px; }
.doc__head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.doc__head p { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.doc__body { padding: 34px 38px 38px; }
.doc__intro p { font-size: 15px; color: var(--ink-2); line-height: 2; }
.doc__intro p + p { margin-top: 10px; }
.doc__list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.doc__item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 4px;
}
.doc__item + .doc__item { border-top: 1px solid var(--line); }
.doc__no {
    flex: none;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 14px; font-weight: 800;
    margin-top: 2px;
}
.doc__text { font-size: 15px; color: var(--ink-2); line-height: 1.9; padding-top: 3px; }
.doc-help {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.doc-help__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.doc-help__icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    background: var(--gray-soft);
    margin-bottom: 2px;
}
.doc-help__card b { font-size: 14.5px; }
.doc-help__card span, .doc-help__card a { font-size: 13.5px; color: var(--ink-2); }
.doc-help__card a { color: var(--brand); font-weight: 600; }

/* ---------------- 页脚 ---------------- */
.site-foot {
    margin-top: 60px;
    background: #14161a;
    color: rgba(255, 255, 255, .62);
    padding: 44px 0 30px;
}
.site-foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 700; }
.site-foot a { display: block; font-size: 13px; line-height: 2.1; }
.site-foot a:hover { color: #fff; }
.site-foot__time { display: block; font-size: 13px; line-height: 2.1; color: rgba(255, 255, 255, .62); }
.site-foot__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.site-foot__desc { font-size: 12.5px; line-height: 1.8; max-width: 300px; }
.site-foot__bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px; flex-wrap: wrap;
}

/* ---------------- 移动端底部标签 ---------------- */
.tabbar { display: none; }

/* ---------------- 浮动客服 ---------------- */
.hotline {
    position: fixed; right: 24px; bottom: 28px; z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
}
.hotline a, .hotline button {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 18px; cursor: pointer;
}
.hotline a:hover { border-color: var(--brand); }

/* =============================================================
   响应式
   ============================================================= */
/* 电脑端整体放大：更大字号与留白，避免“手机页铺宽”的局促感 */
@media (min-width: 1081px) {
    body { font-size: 15px; }
    .page { padding: 34px 0 72px; }

    /* 顶栏 */
    .site-head__inner { height: 76px; }
    :root { --header-h: 76px; }
    .brand__logo { width: 42px; height: 42px; }
    .brand__name { font-size: 18px; }
    .site-nav { gap: 10px; }
    .site-nav a { padding: 9px 18px; font-size: 15.5px; }

    /* 首页横幅 */
    .hero__inner { gap: 64px; padding: 96px 32px 104px; }
    .hero__title { font-size: 58px; }
    .hero__sub { font-size: 18px; max-width: 560px; margin-top: 18px; }
    .hero__actions { margin-top: 36px; gap: 16px; }
    .hero__actions .btn--lg { height: 56px; padding: 0 34px; font-size: 17px; }
    .hero__stats { gap: 56px; margin-top: 52px; }
    .hero__stat b { font-size: 32px; }
    .hero__stat span { font-size: 13.5px; }
    .hero__stack { gap: 18px; }
    .hero__stack-item { padding: 12px; border-radius: 18px; }
    .hero__stack-item img { border-radius: 12px; }
    .hero__stack-item span { font-size: 13.5px; margin-top: 10px; }

    /* 商品区 */
    .toolbar { margin: 44px 0 24px; }
    .chip { padding: 9px 20px; font-size: 14.5px; }
    .search { min-width: 380px; }
    .search input { height: 40px; }
    .search button { height: 40px; padding: 0 22px; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: 26px; }
    .section-head p { font-size: 14.5px; }
    .grid { gap: 24px; }
    .p-card { border-radius: var(--radius-lg); }
    .p-card__body { padding: 14px 16px 18px; gap: 8px; }
    .p-card__name { font-size: 15.5px; }
    .p-card__price b { font-size: 22px; }
    .p-card__version, .p-card__deposit { font-size: 12.5px; }
    .p-card__stock { font-size: 12px; }

    /* 面板与通用 */
    .panel__title { font-size: 17px; }
    .panel__body { padding: 26px; }
    .btn { font-size: 15px; }
    .btn--lg { height: 54px; font-size: 17px; border-radius: 14px; }
    .btn--sm { height: 38px; font-size: 14px; }

    /* 页脚 */
    .site-foot { padding: 60px 0 36px; margin-top: 72px; }
    .site-foot h4 { font-size: 15px; }
    .site-foot a { font-size: 14px; }
    .site-foot__desc { font-size: 13.5px; }
}

@media (min-width: 1600px) {
    .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero__title { font-size: 38px; }
    .detail { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 26px; }
    .checkout { grid-template-columns: minmax(0, 1fr) 310px; }
    .account { grid-template-columns: 232px minmax(0, 1fr); }
    .site-foot__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root { --header-h: 58px; }
    .wrap { padding: 0 16px; }
    .site-nav { display: none; }
    .site-head__inner { gap: 12px; }
    .brand__name { font-size: 15px; }
    .user-chip__name { display: none; }
    .user-chip { padding: 4px; }
    .page { padding: 18px 0 40px; }

    .doc__body { padding: 22px 18px 24px; }
    .doc__head h1 { font-size: 23px; }
    .doc__item { gap: 12px; padding: 14px 2px; }
    .doc__text { font-size: 14px; }
    .doc-help { grid-template-columns: 1fr; gap: 12px; }
    .doc-help__card { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
    .doc-help__icon { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; margin: 0; }
    .order-actions { grid-template-columns: 1fr; gap: 12px; }
    .order-action { padding: 14px; }
    .order-action__row { flex-direction: column; }
    .order-action__row .btn { width: 100%; }

    .hero__inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 16px 44px; }
    .hero__title { font-size: 32px; }
    .hero__sub { font-size: 14.5px; }
    .hero__stats { gap: 24px; margin-top: 26px; }
    .hero__stat b { font-size: 20px; }
    .hero__visual { display: none; }

    .notice { margin-top: -14px; padding: 10px 14px; font-size: 12.5px; }

    .toolbar { margin: 22px 0 14px; gap: 12px; }
    .search { min-width: 0; width: 100%; order: 2; }
    .chips { order: 1; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; }

    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .p-card { border-radius: 12px; }
    .p-card__body { padding: 10px 11px 12px; }
    .p-card__name { font-size: 13.5px; }
    .p-card__price b { font-size: 17px; }

    .section-head h2 { font-size: 18px; }
    .section-head p { font-size: 12.5px; }

    .features { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
    .feature { padding: 14px; }
    .steps { grid-template-columns: 1fr; gap: 10px; }

    /* 详情 */
    .detail { grid-template-columns: 1fr; gap: 16px; }
    .detail__cover { border-radius: 14px; }
    .gallery__stage { border-radius: 14px; }
    .gallery__thumb { flex: 0 0 56px; width: 56px; height: 56px; }
    .gallery__nav { width: 34px; height: 34px; font-size: 18px; }
    .gallery__nav--prev { left: 8px; }
    .gallery__nav--next { right: 8px; }
    .detail__title { font-size: 22px; }
    .detail__price b { font-size: 26px; }
    .detail__actions { position: sticky; bottom: 0; }
    .detail__pricebox { margin-top: 14px; padding: 16px; }

    /* 下单 */
    .checkout { grid-template-columns: 1fr; }
    .checkout__aside { position: static; }
    .checkout__aside .panel { position: sticky; bottom: 0; border-radius: 14px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .order__body { padding: 14px; gap: 12px; }
    .order__cover { width: 64px; height: 64px; }
    .order__price b { font-size: 16px; }

    /* 账户 */
    .account { grid-template-columns: 1fr; gap: 14px; }
    .account__side { position: static; }
    .profile-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
    .profile-card__avatar { width: 56px; height: 56px; margin: 0; font-size: 20px; }
    .profile-card__stats { display: none; }
    .side-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .side-nav a { justify-content: center; padding: 10px 4px; font-size: 13px; }
    .side-nav a.danger { grid-column: 1 / -1; margin-top: 2px; }

    /* 登录 */
    .auth { grid-template-columns: 1fr; min-height: auto; }
    .auth__aside { display: none; }
    .auth__panel { padding: 32px 20px 48px; }

    /* 页脚 */
    .site-foot { margin-top: 36px; padding: 30px 0 86px; }
    .site-foot__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .site-foot__brand-col { grid-column: 1 / -1; }
    .site-foot__bottom { margin-top: 20px; font-size: 11.5px; }

    /* 底部标签栏 */
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: flex;
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .tabbar a {
        flex: 1; padding: 8px 0 9px;
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: 10.5px; color: var(--ink-3);
    }
    .tabbar a.is-on { color: var(--brand); font-weight: 600; }
    .tabbar svg { width: 21px; height: 21px; }
    .hotline { display: none; }
    .doc__body { padding: 20px; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 27px; }
}

/* =============================================================
   推广中心 / 积分 / 会员卡
   ============================================================= */

.badge-gold {
    background: linear-gradient(135deg, #fff4d6, #ffe0a3);
    color: #8a5a00;
    margin-left: 6px;
    vertical-align: 1px;
}

.profile-card__assets {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.profile-card__assets a {
    display: block; padding: 8px 6px; border-radius: 10px;
    background: var(--gray-soft); transition: background .18s var(--ease);
}
.profile-card__assets a:hover { background: var(--brand-soft); }
.profile-card__assets span { display: block; font-size: 11px; color: var(--ink-3); }
.profile-card__assets b { display: block; font-size: 14px; margin-top: 2px; }

/* 横幅 */
.promo-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 30px 32px; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #1b1d22 0%, #2a2d35 52%, #3d2023 100%);
    color: #fff; box-shadow: var(--shadow);
}
.promo-hero::after {
    content: ''; position: absolute; right: -80px; top: -100px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 18, .38), transparent 65%);
    pointer-events: none;
}
.promo-hero__body { position: relative; z-index: 1; }
.promo-hero__eyebrow {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); font-size: 12px; letter-spacing: .08em;
}
.promo-hero h1 { font-size: 26px; line-height: 1.28; margin: 12px 0 8px; }
.promo-hero p { margin: 0; max-width: 580px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.promo-hero p b { color: #ffd166; }
.promo-hero__stats { display: flex; gap: 36px; margin-top: 22px; }
.promo-hero__stats b { display: block; font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.promo-hero__stats span { font-size: 12px; color: rgba(255, 255, 255, .58); }
.promo-hero__art { position: relative; z-index: 1; font-size: 66px; line-height: 1; }
.promo-hero__art i {
    position: absolute; right: -14px; bottom: 2px;
    font-style: normal; font-size: 14px; font-weight: 800; color: #ffd166;
}

/* 推广码 */
.promo-code {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; border: 1px dashed var(--line-strong);
    border-radius: var(--radius); background: var(--gray-soft);
}
.promo-code__label { font-size: 12px; color: var(--ink-3); }
.promo-code__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px; font-weight: 800; letter-spacing: .12em; margin-top: 2px;
}
.copy-row { display: flex; gap: 10px; }
.copy-row .input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.promo-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* 规则 */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rule-item {
    display: flex; gap: 12px; padding: 14px;
    border: 1px solid var(--line); border-radius: 12px;
}
.rule-item__icon { font-size: 20px; line-height: 1.3; }
.rule-item__body b { display: block; font-size: 13.5px; }
.rule-item__body span { font-size: 12px; color: var(--ink-3); }
.promo-convert { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.promo-convert > div { padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); }
.promo-convert b { display: block; font-size: 14px; color: var(--brand); }
.promo-convert span { font-size: 12px; color: var(--ink-3); }
.rule-notes { margin: 16px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-3); }
.rule-notes li { margin-bottom: 4px; }

/* 邀请记录 */
.invite-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.invite-row:last-child { border-bottom: none; }
.invite-row__avatar {
    width: 40px; height: 40px; flex: none; overflow: hidden;
    border-radius: 50%; background: var(--gray-soft);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--ink-3);
}
.invite-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.invite-row__main { flex: 1; min-width: 0; }
.invite-row__name { font-size: 13.5px; font-weight: 600; }
.invite-row__meta { font-size: 12px; color: var(--ink-3); }
.invite-row__state .badge { font-size: 11px; }

/* 积分流水 */
.log-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.log-row:last-child { border-bottom: none; }
.log-row__icon {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    background: var(--gray-soft); color: var(--ink-3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.log-row__main { flex: 1; min-width: 0; }
.log-row__title { font-size: 13.5px; font-weight: 600; }
.log-row__time { font-size: 12px; color: var(--ink-3); }
.log-row__points { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.log-row__points.is-plus { color: var(--brand); }
.log-row__points.is-minus { color: var(--ink-3); }

/* 积分总览 */
.points-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 26px 30px; border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #e60012, #ff5a3c);
    color: #fff; box-shadow: 0 14px 34px rgba(230, 0, 18, .22);
}
.points-summary__label { font-size: 13px; color: rgba(255, 255, 255, .78); }
.points-summary__value {
    font-size: 42px; font-weight: 800; line-height: 1.1;
    letter-spacing: -.02em; margin: 4px 0 6px; font-variant-numeric: tabular-nums;
}
.points-summary__sub { font-size: 13px; color: rgba(255, 255, 255, .82); }
.points-summary__sub b { color: #fff; }
.points-summary__sub span { font-size: 12px; color: rgba(255, 255, 255, .62); }
.points-summary__cells { display: flex; gap: 30px; }
.points-summary__cells > div { text-align: center; }
.points-summary__cells b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.points-summary__cells span { font-size: 12px; color: rgba(255, 255, 255, .66); }

/* 会员 */
.member-banner {
    display: flex; align-items: center; gap: 14px; margin-top: 14px;
    padding: 14px 18px; border-radius: var(--radius);
    background: linear-gradient(100deg, #fff9ea, #fff0d2);
    border: 1px solid #f4e0b4;
}
.member-banner__icon { font-size: 24px; }
.member-banner__text { flex: 1; min-width: 0; }
.member-banner__text b { display: block; font-size: 13.5px; color: #8a5a00; }
.member-banner__text span { font-size: 12px; color: #a8842f; }

.points-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }
.member-state {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px; background: var(--gray-soft);
}
.member-state.is-on { background: linear-gradient(120deg, #1b1d22, #33363f); color: #fff; }
.member-state__crown { font-size: 26px; }
.member-state__title { font-size: 14.5px; font-weight: 700; }
.member-state__meta { font-size: 12px; color: var(--ink-3); }
.member-state.is-on .member-state__meta { color: rgba(255, 255, 255, .66); }
.member-state__meta span { margin-left: 8px; color: #e8b64c; }
.member-benefits { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.member-benefits li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.member-benefits li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--green); font-weight: 800;
}
.redeem-form { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.redeem-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.redeem-form__row b { display: block; font-size: 15px; }
.redeem-form__row span { font-size: 12px; color: var(--ink-3); }

.earn-list { display: grid; gap: 14px; }
.earn-item { display: flex; gap: 12px; align-items: flex-start; }
.earn-item i { font-style: normal; font-size: 20px; line-height: 1.3; }
.earn-item b { display: block; font-size: 13.5px; }
.earn-item span { font-size: 12px; color: var(--ink-3); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager__info { font-size: 12.5px; color: var(--ink-3); }

.copy-toast {
    position: fixed; left: 50%; bottom: 90px; z-index: 999;
    transform: translate(-50%, 10px); opacity: 0;
    padding: 9px 16px; border-radius: 999px;
    background: rgba(23, 25, 29, .92); color: #fff; font-size: 13px;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    pointer-events: none; white-space: nowrap;
}
.copy-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
    .promo-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .promo-hero h1 { font-size: 21px; }
    .promo-hero__stats { gap: 24px; width: 100%; }
    .promo-hero__stats b { font-size: 19px; }
    .promo-hero__art { display: none; }
    .rule-grid, .promo-convert, .points-grid { grid-template-columns: 1fr; }
    .promo-code { flex-direction: column; align-items: flex-start; gap: 12px; }
    .promo-code__value { font-size: 22px; }
    .points-summary { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px; }
    .points-summary__value { font-size: 36px; }
    .points-summary__cells { width: 100%; justify-content: space-between; gap: 10px; }
    .points-summary__cells > div { text-align: left; }
    .member-banner { flex-wrap: wrap; }
    .member-banner__text { flex-basis: calc(100% - 40px); }
    .invite-row__state { margin-left: 52px; }
    .invite-row { flex-wrap: wrap; }
    .copy-row { flex-direction: column; }
    .copy-row .btn { width: 100%; }
}

/* 下单页：积分抵扣 */
.points-switch {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: 12px;
    background: var(--brand-soft); cursor: pointer;
}
.points-switch input { width: 17px; height: 17px; accent-color: var(--brand); }
.points-switch span { font-size: 13.5px; font-weight: 600; }
.points-switch em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--brand); }
.points-input-row {
    display: flex; align-items: center; gap: 12px; margin-top: 12px;
    transition: opacity .18s var(--ease);
}
.points-input-row .input { width: 150px; }
.points-input-row span { font-size: 13px; color: var(--ink-3); }
.points-input-row b { color: var(--brand); }
.points-input-row.is-off { opacity: .45; }
.fee-row .fee-cut { color: var(--brand); font-weight: 700; }
@media (max-width: 860px) {
    .points-switch em { margin-left: 0; flex-basis: 100%; padding-left: 27px; }
    .points-input-row .input { width: 130px; }
}

/* =============================================================
   收银台 / 订单状态
   ============================================================= */
.badge-yellow { background: #fff8e6; color: #a06a00; }
.badge-purple { background: #f3eeff; color: #6b3fd4; }

.pay-demo {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff8e6; border: 1px solid #ffe6b0; color: #8a5a00;
    border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px;
}
.pay-demo b { background: #ffd166; color: #5c3c00; border-radius: 6px; padding: 2px 8px; font-size: 12px; }

.pay-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }

.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
    margin-bottom: 10px; transition: .18s; position: relative;
}
.pay-method:hover { border-color: var(--line-strong); }
.pay-method.is-active { border-color: var(--brand); background: var(--brand-soft); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method__icon {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
}
.pay-method__icon--ali { background: #1677ff; }
.pay-method__icon--wx { background: #07c160; }
.pay-method__body { flex: 1; min-width: 0; }
.pay-method__body b { display: block; font-size: 14.5px; }
.pay-method__body small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.pay-method__check {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-size: 12px; color: #fff;
    background: var(--line-strong); opacity: .35;
}
.pay-method.is-active .pay-method__check { background: var(--brand); opacity: 1; }

.pay-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line);
}
.pay-total span { font-size: 14px; color: var(--ink-2); }
.pay-total b { font-size: 28px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }

.pay-timer { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.pay-timer b { color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
    .pay-grid { grid-template-columns: 1fr; }
}

.pay-list { display: grid; gap: 2px; }
.pay-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 2px; border-bottom: 1px dashed var(--line);
}
.pay-item:last-child { border-bottom: none; }
.pay-item__main b { display: block; font-size: 14px; }
.pay-item__main span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.pay-item__right { display: flex; align-items: center; gap: 10px; }
.pay-item__right b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-item__right b.is-out { color: var(--green); }

/* =============================================================
   蘑菇时间风格（支付宝租赁小程序样式）覆盖层
   浅色背景 + 大圆角卡片 + 胶囊搜索 + 金刚区 + 底部租赁栏
   ============================================================= */

/* ---------- 全局：卡片去描边、柔和阴影 ---------- */
.panel, .p-card, .order, .feature, .step {
    border: none;
    box-shadow: 0 2px 12px rgba(23, 25, 29, .05);
}
.panel { border-radius: 16px; }

/* ---------- 按钮：主按钮渐变胶囊 ---------- */
.btn { border-radius: 999px; }
.btn--primary {
    background: var(--brand-grad);
    box-shadow: 0 6px 16px rgba(23, 25, 29, .12);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(23, 25, 29, .18); }
.btn--ghost { border-color: transparent; background: #fff; box-shadow: 0 1px 6px rgba(23, 25, 29, .06); }
.btn--ghost:hover { border-color: transparent; color: var(--brand); }

/* ---------- 首页 Banner：圆角彩色横幅卡片 ---------- */
.hero {
    margin: 18px auto 0;
    width: calc(100% - 32px);
    max-width: calc(var(--max) - 32px);
    border-radius: 22px;
    background: var(--brand-grad);
    box-shadow: 0 16px 40px rgba(23, 25, 29, .16);
}
.hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, .34), transparent 62%);
    filter: none;
}
.hero__inner { padding: 48px 40px 52px; }
.hero__eyebrow {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .28);
}
.hero__title { font-size: 40px; letter-spacing: -.5px; }
.hero__actions .btn--primary {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}
.hero__actions .btn--ghost {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    box-shadow: none;
}
.hero__stack-item { border-radius: 16px; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .22); }

/* ---------- 金刚区：平台快捷入口 ---------- */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 18px 0 4px;
}
.quick-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 6px 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(23, 25, 29, .05);
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.quick-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand); }
.quick-nav i {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 21px;
    background: var(--brand-soft);
}
.quick-nav a.is-on { color: var(--brand); }
.quick-nav a.is-on i { background: var(--brand-ghost); }

/* ---------- 搜索与筛选：胶囊化 ---------- */
.toolbar { margin: 20px 0 18px; }
.search {
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(23, 25, 29, .06);
    padding: 4px 6px 4px 16px;
}
.search:focus-within { box-shadow: 0 0 0 3px var(--brand-ghost); }
.search button { border-radius: 999px; background: var(--brand-grad); }
.chip { border: none; box-shadow: 0 1px 6px rgba(23, 25, 29, .05); }
.chip:hover { color: var(--brand); }
.chip--on { background: var(--brand-grad); border: none; color: #fff; }

/* ---------- 商品卡：蘑菇时间风（日均租金醒目） ---------- */
.p-card { border-radius: 16px; }
.p-card:hover { box-shadow: 0 14px 32px rgba(23, 25, 29, .12); }
.p-card__body { gap: 7px; }
.p-card__price b { font-size: 21px; }
.p-card__total { font-style: normal; font-size: 11.5px; color: var(--ink-4); margin-left: auto; }
.p-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-tag {
    font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 5px;
    background: var(--gray-soft); color: var(--ink-3);
}
.p-tag--deposit { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.p-tag--ship { background: var(--green-soft); color: var(--green); }

/* ---------- 订单卡 ---------- */
.order { border-radius: 16px; }
.order__head { background: transparent; border-bottom: 1px dashed var(--line); }
.order__foot { border-top: none; padding-top: 4px; }
.order__actions .btn { border-radius: 999px; }

/* ---------- 详情页：底部租赁操作栏（蘑菇时间式） ---------- */
.rent-bar { display: none; }
@media (max-width: 860px) {
    .rent-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0; z-index: 70;
        display: flex; align-items: center; gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        box-shadow: 0 -4px 18px rgba(23, 25, 29, .08);
    }
    .rent-bar__info { flex: 1; min-width: 0; }
    .rent-bar__info b { display: block; font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -.3px; line-height: 1.25; }
    .rent-bar__info span { font-size: 11.5px; color: var(--ink-3); }
    .rent-bar__btn {
        flex: none;
        display: inline-flex; align-items: center; justify-content: center;
        height: 46px; padding: 0 34px;
        border-radius: 999px;
        background: var(--brand-grad);
        color: #fff; font-size: 15.5px; font-weight: 700;
        box-shadow: 0 8px 18px rgba(23, 25, 29, .16);
    }
    .rent-bar__btn.is-off { background: var(--gray-soft); color: var(--ink-4); box-shadow: none; pointer-events: none; }
    /* 详情页为底部栏留出空间，隐藏原内联按钮 */
    .page--rent { padding-bottom: 86px; }
    .page--rent .detail__actions { display: none; }
    /* 底部栏与标签栏错开：有 tabbar 时上移 */
    body:has(.tabbar) .rent-bar { bottom: 57px; }
}

/* ---------- 我的账户：渐变用户卡 ---------- */
.profile-card {
    background: var(--brand-grad);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.profile-card::after {
    content: ""; position: absolute; right: -60px; top: -80px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
    pointer-events: none;
}
.profile-card__avatar {
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .45);
    color: #fff;
}
.profile-card__name { color: #fff; }
.profile-card__phone { color: rgba(255, 255, 255, .72); }
.profile-card__stats { border-top-color: rgba(255, 255, 255, .18); }
.profile-card__stats span { color: rgba(255, 255, 255, .66); }
.profile-card__assets a { background: rgba(255, 255, 255, .14); }
.profile-card__assets a:hover { background: rgba(255, 255, 255, .22); }
.profile-card__assets span { color: rgba(255, 255, 255, .66); }
.profile-card__assets b { color: #fff; }

/* ---------- 移动端微调 ---------- */
@media (max-width: 860px) {
    .hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 18px; }
    .hero__inner { padding: 30px 20px 34px; }
    .hero__title { font-size: 26px; }
    .quick-nav { grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
    .quick-nav a { padding: 12px 2px 10px; font-size: 11.5px; border-radius: 12px; }
    .quick-nav i { width: 38px; height: 38px; font-size: 18px; }
    .notice { margin-top: -14px; }
}

@media (min-width: 1081px) {
    .hero__inner { padding: 64px 56px 68px; }
    .hero__title { font-size: 46px; }
    .quick-nav a { font-size: 14px; }
    .quick-nav i { width: 50px; height: 50px; font-size: 23px; }
}

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

/* 搜索独占一行时占满宽度 */
.toolbar .search:only-child { flex: 1; min-width: 0; }
@media (max-width: 860px) {
    .toolbar .search:only-child { order: 0; }
}

/* ---------- 手机端商品列表：一行一个（蘑菇时间列表式） ---------- */
.p-card__more, .p-card__cta { display: none; }

@media (max-width: 860px) {
    .grid { grid-template-columns: 1fr; gap: 12px; }

    .p-card {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
    }
    .p-card__cover {
        width: 128px;
        flex: none;
        aspect-ratio: 16 / 10;
        border-radius: 10px;
    }
    .p-card__stock { top: 6px; right: 6px; font-size: 11px; padding: 2px 7px; }
    .p-card__body { padding: 0; gap: 5px; min-width: 0; }
    .p-card__name { font-size: 14.5px; min-height: 0; -webkit-line-clamp: 2; }
    .p-card__meta { font-size: 11.5px; gap: 5px; }
    .p-card__price { margin-top: 1px; }
    .p-card__price b { font-size: 19px; }
    .p-card__total { font-size: 11px; }
    .p-card__tags { display: none; }

    .p-card__more {
        display: flex; align-items: center; flex-wrap: wrap;
        gap: 6px 0;
        margin-top: 1px;
        font-size: 11.5px; color: var(--ink-3);
        width: 100%;
    }
    .p-card__more span { white-space: nowrap; }
    .p-card__more span + span::before {
        content: "·"; margin-right: 6px; color: var(--ink-4);
    }
    .p-card__cta {
        display: inline-flex; align-items: center;
        margin-left: auto; padding: 4px 13px;
        border-radius: 999px;
        background: var(--brand-grad);
        color: #fff; font-size: 12px; font-style: normal; font-weight: 700;
        box-shadow: 0 4px 10px rgba(23, 25, 29, .14);
    }
}

/* ---------- 个人中心菜单图标 ---------- */
.side-nav a i {
    width: 30px; height: 30px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--gray-soft);
    font-style: normal; font-size: 15px; line-height: 1;
}
.side-nav a span:last-child { margin-left: auto; color: var(--ink-4); font-size: 15px; }
.side-nav a:hover i { background: var(--brand-soft); }
.side-nav a.is-on i { background: var(--brand-ghost); }
.side-nav a.danger i { background: var(--brand-soft); }

@media (max-width: 860px) {
    .side-nav a { flex-direction: column; gap: 6px; padding: 12px 4px 10px; font-size: 12px; }
    .side-nav a i { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
    .side-nav a span:last-child { display: none; }
}
.p-card__free { color: var(--green); }
@media (max-width: 860px) {
    .p-card__more { flex-wrap: nowrap; overflow: hidden; }
    .p-card__cta { flex: none; }
}
@media (max-width: 860px) {
    .p-card__more .p-card__free { display: none; }
    .p-card__cta { padding: 4px 11px; font-size: 11.5px; }
}

/* ---------- 商品卡：品类标签 / 玩法标签 / 无货态 ---------- */
.badge-genre {
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
}
.p-card__play { display: flex; gap: 5px; flex-wrap: wrap; }
.p-play {
    font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 5px;
    background: #f2f4f7; color: #6b7280;
}
.p-card.is-empty .p-card__cover img { opacity: .55; filter: grayscale(.5); }
.p-card.is-empty .p-card__cta { background: var(--gray-soft); color: var(--ink-4); box-shadow: none; }

@media (max-width: 860px) {
    .p-card__play { display: none; }
}

/* ---------- 品类筛选条 ---------- */
.genre-bar {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px;
    margin: 12px 0 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.genre-bar::-webkit-scrollbar { display: none; }
.genre-bar .chip { flex: none; white-space: nowrap; }

/* ---------- 详情页：盒装封面完整显示 ---------- */
.detail__cover img, .buy-card__cover img { object-fit: contain; background: linear-gradient(140deg, #f7f8fa, #eef0f4); }

/* ---------- 详情页：库存状态行 ---------- */
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.detail__stock {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 6px 12px; border-radius: 999px;
    background: var(--green-soft); color: var(--green);
    font-size: 12.5px; font-weight: 600;
}
.detail__stock.is-out { background: var(--gray-soft); color: var(--ink-3); }
.detail__stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- 渠道一键登录按钮 ---------- */
.channel-login {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 18px; padding: 13px 18px; border-radius: 999px;
    font-size: 15.5px; font-weight: 700; color: #fff;
    box-shadow: 0 8px 20px rgba(23, 25, 29, .12);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.channel-login:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23, 25, 29, .18); color: #fff; }
.channel-login__icon { font-size: 19px; }
.channel-login__tag {
    margin-left: 4px; padding: 2px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .24); font-size: 11.5px; font-weight: 600;
}
.channel-login--alipay { background: linear-gradient(135deg, #2a8cff, #1677ff); }
.channel-login--wechat { background: linear-gradient(135deg, #22c869, #07c160); }

/* ---------- 模拟授权页 ---------- */
.mock-auth { max-width: 420px; margin: 26px auto 40px; padding: 0 16px; }
.mock-auth__card {
    background: #fff; border-radius: 18px; padding: 28px 24px 24px;
    box-shadow: 0 10px 34px rgba(23, 25, 29, .1);
}
.mock-auth__head { text-align: center; }
.mock-auth__logo {
    width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    background: var(--gray-soft);
}
.mock-auth__plat { font-size: 12.5px; color: var(--ink-3); }
.mock-auth__title { font-size: 19px; font-weight: 800; margin-top: 2px; }
.mock-auth__sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.mock-auth__tip {
    margin: 16px 0 18px; padding: 10px 12px; border-radius: 10px;
    background: #fff8e6; color: #8a6100; font-size: 12.5px; line-height: 1.6;
}
.mock-auth__badge {
    display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px;
    background: #ffe9b0; color: #8a6100; font-size: 11.5px; font-weight: 700;
}
.mock-auth__user { display: flex; align-items: center; gap: 12px; }
.mock-auth__avatar {
    width: 46px; height: 46px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-grad); color: #fff; font-size: 20px; font-weight: 700;
}
.mock-auth__fields { flex: 1; min-width: 0; }
.mock-auth__label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.mock-auth__fields input {
    width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--line); font-size: 14px;
}
.mock-auth__check {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 14px 0 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5;
}
.mock-auth__id { font-size: 12px; color: var(--ink-4); margin-bottom: 10px; word-break: break-all; }
.mock-auth__ok {
    display: block; width: 100%; height: 46px; margin-top: 14px;
    border: none; border-radius: 999px; background: var(--mock-color, var(--brand));
    color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.mock-auth__cancel { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- 登录账号锁定态 ---------- */
.input--locked {
    background: #f7f8fa !important;
    color: var(--ink-2);
    cursor: not-allowed;
    letter-spacing: .5px;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa1ab' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.kv__lock {
    display: inline-block; margin-left: 6px; padding: 2px 8px;
    border-radius: 999px; background: var(--gray-soft);
    color: var(--ink-3); font-size: 11.5px; font-weight: 500;
}

/* =============================================================
   手机端「我的」页：小程序 / 淘宝式个人中心
   ============================================================= */
.mine-mobile { display: none; }
.mine-back   { display: none; }

@media (max-width: 860px) {
    /* 个人中心隐藏站点页脚，保留底部标签栏 */
    .site-foot.is-m-hidden { display: none; }

    .mine-mobile { display: block; padding-bottom: 78px; }
    .account.is-desktop-only { display: none; }
    .account.is-subpage { display: block; padding-bottom: 70px; }
    .account.is-subpage .account__side { display: none; }

    .mine-back {
        display: inline-flex; align-items: center;
        margin-bottom: 10px; padding: 7px 15px 7px 11px;
        border-radius: 999px; background: #fff; color: var(--ink-2);
        font-size: 13px; box-shadow: 0 2px 10px rgba(23, 25, 29, .07);
    }

    /* 渐变用户头（通栏） */
    .mine-hero {
        position: relative; overflow: hidden;
        margin: -18px -16px 0;
        padding: 18px 16px 58px;
        background: var(--brand-grad);
        color: #fff;
    }
    .mine-hero::after {
        content: ""; position: absolute; right: -46px; top: -68px;
        width: 180px; height: 180px; border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 66%);
        pointer-events: none;
    }
    .mine-hero__row { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
    .mine-hero__avatar {
        width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden;
        display: flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, .22);
        border: 2px solid rgba(255, 255, 255, .5);
        font-size: 22px; font-weight: 800; color: #fff;
    }
    .mine-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
    .mine-hero__info { flex: 1; min-width: 0; }
    .mine-hero__name { display: flex; align-items: center; gap: 6px; font-size: 17.5px; font-weight: 800; }
    .mine-hero__vip {
        padding: 1px 7px; border-radius: 999px;
        font-size: 10.5px; font-weight: 700;
        background: linear-gradient(135deg, #ffe6a8, #ffcf6b); color: #7a4d00;
    }
    .mine-hero__sub {
        margin-top: 5px; font-size: 12px; color: rgba(255, 255, 255, .76);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .mine-hero__edit {
        flex: none; padding: 6px 13px; border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .5);
        font-size: 12.5px; color: #fff;
    }
    .mine-hero__stats {
        position: relative; z-index: 1;
        display: grid; grid-template-columns: repeat(3, 1fr);
        margin-top: 16px; padding: 11px 0;
        border-radius: 14px; background: rgba(255, 255, 255, .16);
    }
    .mine-hero__stats a { position: relative; text-align: center; color: #fff; }
    .mine-hero__stats a + a::before {
        content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px;
        background: rgba(255, 255, 255, .28);
    }
    .mine-hero__stats b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
    .mine-hero__stats span { font-size: 11.5px; color: rgba(255, 255, 255, .76); }

    /* 卡片 */
    .mine-card {
        background: #fff; border-radius: 16px; margin-top: 10px;
        box-shadow: 0 4px 16px rgba(23, 25, 29, .06);
        overflow: hidden;
    }
    .mine-card--orders { position: relative; z-index: 2; margin-top: -44px; }
    .mine-card__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 4px; }
    .mine-card__head h3 { font-size: 15px; font-weight: 800; }
    .mine-card__head a { font-size: 12.5px; color: var(--ink-3); }

    /* 订单宫格 */
    .mine-orders { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 2px 14px; }
    .mine-orders a {
        position: relative; display: flex; flex-direction: column;
        align-items: center; gap: 6px; padding: 6px 0;
        font-size: 11.5px; color: var(--ink-2);
    }
    .mine-orders svg { width: 23px; height: 23px; color: var(--brand); }
    .mine-dot {
        position: absolute; top: 0; left: 50%; margin-left: 7px;
        min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
        background: #f6453d; color: #fff;
        font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center;
    }

    /* 资产 */
    .mine-assets { display: grid; grid-template-columns: repeat(2, 1fr); padding: 16px 0; }
    .mine-assets a { position: relative; text-align: center; color: var(--ink-1); }
    .mine-assets a + a::before {
        content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
        background: var(--line);
    }
    .mine-assets b { display: block; font-size: 18px; font-weight: 800; }
    .mine-assets span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }

    /* 会员横幅 */
    .mine-vip {
        display: flex; align-items: center; gap: 10px;
        margin-top: 10px; padding: 13px 14px;
        border-radius: 16px; color: #7a4d00;
        background: linear-gradient(120deg, #fff1cf 0%, #ffe1a6 55%, #ffd07a 100%);
        box-shadow: 0 4px 16px rgba(23, 25, 29, .06);
    }
    .mine-vip.is-off { color: #5a4a2a; }
    .mine-vip__icon {
        width: 34px; height: 34px; flex: none; border-radius: 11px;
        display: flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, .6); color: #b7791f;
    }
    .mine-vip__icon svg { width: 19px; height: 19px; }
    .mine-vip__txt { flex: 1; min-width: 0; }
    .mine-vip__txt b { display: block; font-size: 14.5px; font-weight: 800; }
    .mine-vip__txt span { display: block; margin-top: 2px; font-size: 11.5px; opacity: .8; }
    .mine-vip__go {
        flex: none; padding: 6px 12px; border-radius: 999px;
        background: #3a2b12; color: #ffe9bd; font-size: 12px; font-weight: 700;
    }

    /* 功能列表 */
    .mine-list a { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
    .mine-list a + a::before {
        content: ""; position: absolute; left: 57px; right: 0; top: 0; height: 1px;
        background: var(--line);
    }
    .mine-list__icon {
        width: 32px; height: 32px; flex: none; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        background: var(--brand-soft); color: var(--brand);
    }
    .mine-list__icon svg { width: 18px; height: 18px; }
    .mine-list__txt { flex: 1; min-width: 0; }
    .mine-list__t { display: block; font-size: 14px; font-weight: 600; color: var(--ink-1); }
    .mine-list__s { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
    .mine-list__arrow { color: var(--ink-4); font-size: 15px; }

    .mine-logout {
        display: block; margin: 12px 0 0; padding: 13px;
        border-radius: 16px; background: #fff;
        box-shadow: 0 4px 16px rgba(23, 25, 29, .06);
        text-align: center; font-size: 14.5px; font-weight: 600; color: #e0453c;
    }
    .mine-foot { margin: 14px 0 0; text-align: center; font-size: 11.5px; color: var(--ink-4); }
}

@media (max-width: 360px) {
    .mine-orders { padding: 8px 0 12px; }
    .mine-orders a { font-size: 11px; }
    .mine-hero__stats span { font-size: 11px; }
}

/* 手机端「我的」页：顶部沉浸式，站点头与渐变头无缝衔接 */
@media (max-width: 860px) {
    body:has(.mine-mobile) .site-head {
        background: var(--brand);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    body:has(.mine-mobile) .brand__name { color: #fff; }
    body:has(.mine-mobile) .user-chip { display: none; }
    body:has(.mine-mobile) .mine-hero {
        background: linear-gradient(168deg, var(--brand) 0%, var(--brand-deep) 100%);
    }
}

/* =============================================================
   公共交互增强：Toast / 返回顶部 / 提交中状态
   由 assets/js/user.js 驱动
   ============================================================= */
.sw-toasts {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(92vw, 440px);
    pointer-events: none;
}
.sw-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 11px 16px 11px 12px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.sw-toast.is-in { opacity: 1; transform: translateY(0); }
.sw-toast__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: var(--blue);
}
.sw-toast--success .sw-toast__icon { background: var(--green); }
.sw-toast--error .sw-toast__icon   { background: var(--brand); }
.sw-toast--warn .sw-toast__icon    { background: var(--orange); }
.sw-toast__text { min-width: 0; word-break: break-word; }

.sw-to-top {
    position: fixed;
    right: 24px;
    bottom: 26px;
    z-index: 900;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink-2);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sw-to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.sw-to-top:hover { color: var(--brand); border-color: var(--brand-ghost); }
.sw-to-top svg { width: 19px; height: 19px; }

.sw-btn-spin {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sw-spin .7s linear infinite;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }
.is-loading { opacity: .78; cursor: progress; }
img[loading="lazy"] { background: #f0f2f5; }
img.is-broken { object-fit: contain; }
.pay-timer.is-expired { color: var(--brand); font-weight: 600; }

@media (max-width: 860px) {
    .sw-to-top { right: 15px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    .sw-toast, .sw-to-top { transition: none; }
    .sw-btn-spin { animation-duration: 1.6s; }
}

/* ==========================================================
   协议页：导言 / 目录 / 章节 / 条款 / 提示框
   ========================================================== */
.doc { max-width: 1120px; }
.doc-head { margin-bottom: 18px; }
.doc-head__crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.doc-head__crumb a { color: var(--ink-3); }
.doc-head__crumb a:hover { color: var(--brand); }
.doc-head__lead { font-size: 14px !important; color: var(--ink-2) !important; margin-top: 6px !important; }
.doc-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.doc-head__meta span {
    font-size: 12px; color: var(--ink-3); background: var(--gray-soft);
    border-radius: 999px; padding: 5px 11px;
}
.doc-head__meta .doc-head__tag { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.doc-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-toc {
    position: sticky; top: calc(var(--header-h) + 20px);
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px;
}
.doc-toc__title { font-size: 13px; font-weight: 800; color: var(--ink); padding: 0 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.doc-toc__list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.doc-toc__list a {
    display: block; padding: 8px 10px; border-radius: 9px;
    font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.doc-toc__list a:hover { background: var(--brand-soft); color: var(--brand); }
.doc-toc__links { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.doc-toc__links a { font-size: 12.5px; color: var(--brand); }

.doc-content { padding: 28px 32px 32px; }
.doc-intro {
    background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 6px;
}
.doc-intro p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.doc-intro p + p { margin-top: 8px; }
.doc-sec { scroll-margin-top: calc(var(--header-h) + 18px); padding-top: 26px; }
.doc-sec + .doc-sec { margin-top: 6px; border-top: 1px solid var(--line); }
.doc-sec__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.doc-sec__title span {
    flex: none; width: 28px; height: 28px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 800;
}
.doc-sec__p { font-size: 14px; color: var(--ink-2); line-height: 1.9; padding: 12px 4px 0; }
.doc-clause { padding: 13px 4px; gap: 13px; }
.doc-clause .doc__no { width: 25px; height: 25px; border-radius: 8px; font-size: 12px; }
.doc-clause .doc__text { font-size: 14px; line-height: 1.85; }
.doc-note {
    display: flex; gap: 9px; align-items: flex-start;
    background: #fff8e8; border: 1px solid #f3e2b3; color: #795b17;
    border-radius: 10px; padding: 11px 14px; margin: 10px 0;
    font-size: 13px; line-height: 1.75;
}
.doc-note::before { content: '💡'; flex: none; }
.doc-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; font-size: 13px; color: var(--ink-3);
}
.doc-actions .btn { flex: none; }

@media (max-width: 860px) {
    .doc-head__meta span { font-size: 11.5px; padding: 4px 9px; }
    .doc-layout { grid-template-columns: 1fr; gap: 12px; }
    .doc-toc { position: static; padding: 12px; border-radius: 12px; }
    .doc-toc__title { padding-bottom: 8px; margin-bottom: 8px; }
    .doc-toc__list { flex-direction: row; overflow-x: auto; max-height: none; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
    .doc-toc__list::-webkit-scrollbar { display: none; }
    .doc-toc__list a { flex: none; white-space: nowrap; background: var(--gray-soft); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
    .doc-toc__links { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .doc-content { padding: 18px 16px 22px; }
    .doc-sec { padding-top: 20px; }
    .doc-sec__title { font-size: 16px; }
    .doc-clause .doc__text { font-size: 13.5px; }
    .doc-actions { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   首页金刚区：平台筛选 + 租前必读，按实际数量自适应列
   ========================================================== */
.home-entries {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 14px; margin: 18px 0 4px;
}
.entry-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 18px 20px 20px; box-shadow: 0 2px 12px rgba(23, 25, 29, .05);
}
.entry-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.entry-panel__head b { font-size: 15px; font-weight: 800; }
.entry-panel__head span { font-size: 12px; color: var(--ink-3); }

.quick-nav { display: grid; grid-template-columns: repeat(var(--qc, 3), minmax(0, 1fr)); gap: 10px; margin: 0; }
.quick-nav .quick-nav__item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px 12px; background: var(--gray-soft); border: 1px solid transparent;
    border-radius: 14px; box-shadow: none; font-size: 13.5px; font-weight: 700;
    color: var(--ink); text-align: center; transition: background .18s var(--ease), border-color .18s var(--ease);
}
.quick-nav .quick-nav__item:hover { transform: none; box-shadow: none; background: var(--brand-soft); color: var(--brand); }
.quick-nav .quick-nav__item i {
    width: 46px; height: 46px; border-radius: 15px; font-size: 22px;
    background: #fff; box-shadow: 0 2px 8px rgba(23, 25, 29, .06);
}
.quick-nav .quick-nav__item.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.quick-nav .quick-nav__item.is-on i { background: var(--brand-ghost); }
.quick-nav__sub { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-grid a {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2);
    transition: background .18s var(--ease), border-color .18s var(--ease);
}
.service-grid a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.service-grid__icon {
    flex: none; width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; background: var(--gray-soft);
}
.service-grid__txt { flex: 1; min-width: 0; }
.service-grid__txt b { display: block; font-size: 13px; font-weight: 700; }
.service-grid__txt span { font-size: 11px; color: var(--ink-3); }
.service-grid__arrow { flex: none; color: var(--ink-4); font-size: 15px; }

@media (max-width: 860px) {
    .home-entries { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
    .entry-panel { padding: 14px 14px 16px; border-radius: 14px; }
    .quick-nav { grid-template-columns: repeat(var(--qc-sm, 3), minmax(0, 1fr)); gap: 8px; }
    .quick-nav .quick-nav__item { padding: 12px 4px 10px; border-radius: 12px; font-size: 12.5px; }
    .quick-nav .quick-nav__item i { width: 40px; height: 40px; font-size: 19px; }
    .service-grid { gap: 8px; }
}
@media (max-width: 380px) {
    .quick-nav { grid-template-columns: repeat(var(--qc-sm, 3), minmax(0, 1fr)); }
    .quick-nav__sub { display: none; }
}
@media (min-width: 1081px) {
    .entry-panel { padding: 20px 24px 24px; }
    .quick-nav .quick-nav__item i { width: 50px; height: 50px; font-size: 24px; }
}

/* ==========================================================
   确认订单：协议勾选 / 租赁须知速览 / 拦截提示
   ========================================================== */
.checkout-agree {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3);
}
.checkout-agree input { flex: none; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--brand); }
.checkout-agree label { flex: 1; min-width: 0; cursor: pointer; }
.checkout-agree a { color: var(--brand); }
.checkout-agree.is-error { color: var(--brand); font-weight: 600; }
.rule-summary { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rule-summary__title { font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.rule-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rule-summary li { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.65; }
.rule-summary li::before { content: '·'; flex: none; color: var(--brand); font-weight: 800; }
.rule-summary__more { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.checkout-alert {
    background: #fff8e8; border: 1px solid #f3e2b3; color: #795b17;
    border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.75;
}
#all-games { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ==========================================================
   首页无刷新筛选：只替换 #gameList，页面其余部分保持不动
   ========================================================== */
.game-list {
    position: relative;
    min-height: 160px;              /* 切换条件时减少页面高度骤变 */
    transition: opacity .18s ease;
}
.game-list::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    height: 2px; width: 100%; border-radius: 2px; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    pointer-events: none;
}
.game-list.is-loading { opacity: .5; pointer-events: none; }
.game-list.is-loading::before { opacity: 1; animation: sw-filter-sweep 1.05s linear infinite; }
@keyframes sw-filter-sweep {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
/* 点击后立刻给选中反馈，不用等数据回来 */
.quick-nav__item, .genre-bar .chip {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.quick-nav__item.is-pending, .genre-bar .chip.is-pending { transform: translateY(-1px); }
.quick-nav__item[aria-busy="true"], .genre-bar .chip[aria-busy="true"] { opacity: .72; }
#entryTotal { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .game-list, .quick-nav__item, .genre-bar .chip { transition: none; }
    .game-list.is-loading::before { animation-duration: 2.4s; }
}



/* ==========================================================
   手机端真机适配 + 支付宝小程序 web-view
   （集中放末尾，便于单独维护；不改动既有桌面规则）
   ========================================================== */

/* 小程序自带顶部导航栏，H5 再显示一套会形成双导航；sticky 元素偏移同步归零 */
body.in-alipay { --header-h: 0px; }
body.in-alipay .site-head { display: none !important; }
body.in-alipay .site-foot { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
body.in-alipay .tabbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
body.in-alipay .sw-to-top { display: none; }   /* 与小程序原生返回/顶部能力重复 */

/* 触摸响应：去掉 300ms 双击延迟，保留系统点击高亮反馈 */
@media (max-width: 860px) {
    a, button, label, input[type="radio"], input[type="checkbox"], select {
        touch-action: manipulation;
    }
    /* iOS 聚焦时字号 <16px 会自动放大页面，导致布局跳动 */
    .input, input[type="text"], input[type="tel"], input[type="password"],
    input[type="number"], input[type="date"], input[type="email"],
    textarea, select { font-size: 16px; }

    /* 防止长串英文 / 链接把窄屏撑出横向滚动 */
    .doc-layout, .home-entries, .checkout, .pay-grid, .detail, .account,
    .doc-content, .panel__body, .entry-panel, .game-list { min-width: 0; }
    .doc-content, .panel__body, .entry-panel, .rule-summary li,
    .checkout-agree, .doc-help__card { overflow-wrap: anywhere; }

    /* 新组件的移动端细节 */
    .doc-actions > span { display: flex; gap: 8px; flex-wrap: wrap; }
    .doc-actions .btn { min-height: 40px; display: inline-flex; align-items: center; }
    .doc-toc__list a { padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; }
    .doc-help { gap: 10px; }
    .checkout-agree { align-items: center; gap: 10px; font-size: 13px; }
    .checkout-agree input { width: 18px; height: 18px; margin: 0; flex: none; }
    .checkout-agree label { min-height: 40px; display: flex; align-items: center; }
    .rule-summary li { font-size: 12.5px; }
    .service-grid a { min-height: 58px; }
    .quick-nav__item { min-height: 76px; }
    .game-list.is-loading::before { height: 3px; }

    /* 底部吸附的结算/操作条不能压在标签栏下面 */
    .detail__actions,
    .checkout__aside .panel { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }

    /* 页脚主体资质公示 */
    .site-foot__legal {
        margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--ink-3);
        overflow-wrap: anywhere;
    }
}

/* 320~360px 小屏：金刚区与服务卡片再收紧，仍保持每行排满 */
@media (max-width: 360px) {
    .wrap { padding-left: 12px; padding-right: 12px; }
    .quick-nav { gap: 6px; }
    .quick-nav .quick-nav__item { padding: 10px 2px 8px; font-size: 12px; min-height: 68px; }
    .quick-nav .quick-nav__item i { width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }
    .service-grid { gap: 6px; }
    .service-grid a { padding: 9px 8px; gap: 7px; }
    .service-grid__icon { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
    .service-grid__txt b { font-size: 12px; }
    .service-grid__txt span { font-size: 10px; }
    .entry-panel { padding: 12px 10px 14px; }
    .hero__stats { gap: 16px; }
    .hero__stat b { font-size: 18px; }
    .site-foot__grid { grid-template-columns: 1fr; }
    .doc-content { padding: 16px 12px 20px; }
}

/* 首次访问的隐私政策轻提示（非模态，不拦截页面、不强弹授权） */
.sw-privacy[hidden] { display: none; }
.sw-privacy {
    position: fixed; left: 10px; right: 10px; z-index: 950;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 12px 14px;
    font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.sw-privacy__txt { flex: 1 1 200px; min-width: 0; }
.sw-privacy a { color: var(--brand); font-weight: 600; }
.sw-privacy__btns { display: flex; gap: 8px; flex: none; }
.sw-privacy__btns button {
    min-height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--gray-soft); color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}
.sw-privacy__btns button.sw-privacy__ok {
    background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
@media (min-width: 861px) {
    .sw-privacy { left: 24px; right: 24px; bottom: 24px; max-width: 720px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .sw-privacy { transition: none; }
}

/* ==========================================================
   关于我们 / 退款与售后（审核要求：真实商家信息 + 可走通的退款流程）
   ========================================================== */
.help-hero {
    display: flex; align-items: center; gap: 16px;
    background: var(--brand-grad); color: #fff;
    border-radius: 18px; padding: 22px 24px; margin-bottom: 16px;
}
.help-hero__icon {
    flex: none; width: 54px; height: 54px; border-radius: 16px;
    display: grid; place-items: center; font-size: 27px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
}
.help-hero h1 { font-size: 21px; font-weight: 800; }
.help-hero p { font-size: 13px; opacity: .92; margin-top: 4px; line-height: 1.7; }
.help-panel { margin-bottom: 14px; border-radius: 16px; }
.help-panel .panel__head { border-radius: 16px 16px 0 0; }
.help-note { font-size: 12.5px; line-height: 1.85; color: var(--ink-3); margin-top: 14px; }
.help-note a { color: var(--brand); font-weight: 600; }

.help-kv { display: grid; gap: 0; }
.help-kv__row {
    display: flex; gap: 14px; justify-content: space-between; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.help-kv__row:last-child { border-bottom: 0; }
.help-kv__row span { flex: none; color: var(--ink-3); min-width: 120px; }
.help-kv__row b { flex: 1; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.help-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.help-contact {
    display: flex; align-items: center; gap: 11px; padding: 13px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--gray-soft);
    min-height: 62px;
}
.help-contact:hover { border-color: var(--brand); background: var(--brand-soft); }
.help-contact__icon {
    flex: none; width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; font-size: 17px; background: #fff;
}
.help-contact > span:nth-child(2) { flex: 1; min-width: 0; }
.help-contact b { display: block; font-size: 13px; font-weight: 700; }
.help-contact em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.help-contact i { flex: none; font-style: normal; color: var(--ink-4); font-size: 17px; }

.help-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.help-links a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 14px; border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}
.help-links a:hover { border-color: var(--brand); background: var(--brand-soft); }
.help-links span { font-size: 21px; }
.help-links b { font-size: 13.5px; font-weight: 700; }
.help-links em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.help-faq { display: grid; gap: 8px; }
.help-faq__item { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--card); }
.help-faq__item[open] { border-color: var(--brand-ghost); background: var(--brand-soft); }
.help-faq__item summary {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    min-height: 48px; font-size: 13.5px; font-weight: 600; list-style: none;
}
.help-faq__item summary::-webkit-details-marker { display: none; }
.help-faq__item summary span { flex: none; color: var(--brand); font-size: 12px; font-weight: 800; }
.help-faq__item summary::after { content: '＋'; margin-left: auto; color: var(--ink-4); font-size: 16px; }
.help-faq__item[open] summary::after { content: '－'; }
.help-faq__item p { padding: 0 0 14px 26px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }

.help-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--brand-soft); border: 1px solid var(--brand-ghost);
    border-radius: 12px; padding: 16px 18px;
}
.help-cta b { font-size: 14.5px; font-weight: 800; }
.help-cta p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin-top: 4px; }
.help-cta .btn { flex: none; }
.help-steps { display: grid; gap: 12px; }
.help-step { display: flex; gap: 12px; align-items: flex-start; }
.help-step i {
    flex: none; width: 26px; height: 26px; border-radius: 9px; font-style: normal;
    display: grid; place-items: center; background: var(--brand-grad); color: #fff;
    font-size: 12px; font-weight: 800;
}
.help-step b { font-size: 13.5px; font-weight: 700; }
.help-step p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin-top: 3px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 860px) {
    .help-hero { padding: 16px; gap: 12px; border-radius: 14px; }
    .help-hero__icon { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
    .help-hero h1 { font-size: 18px; }
    .help-hero p { font-size: 12px; }
    .help-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .help-links a { padding: 12px; min-height: 82px; }
    .help-kv__row { flex-direction: column; gap: 2px; font-size: 13px; }
    .help-kv__row span { min-width: 0; }
    .help-kv__row b { text-align: left; }
    .help-cta { flex-direction: column; align-items: stretch; }
    .help-cta .btn { width: 100%; }
    .help-contacts { grid-template-columns: 1fr; }
    .help-actions .btn { flex: 1 1 140px; }
}
