:root {
    --tokyo-bg: #f0f0f3;
    --tokyo-surface: #ffffff;
    --tokyo-black: #000000;
    --tokyo-text: #1c2024;
    --tokyo-muted: #60646c;
    --tokyo-muted-strong: #555860;
    --tokyo-muted-soft: #b0b4ba;
    --tokyo-border: #e0e1e6;
    --tokyo-border-strong: #d9d9e0;
    --tokyo-shadow-soft: 0 3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.07);
    --tokyo-shadow-elevated: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
    --tokyo-radius-sm: 8px;
    --tokyo-radius-md: 16px;
    --tokyo-radius-lg: 24px;
    --tokyo-radius-pill: 9999px;

    /* ======================================================================
       语义色令牌（2026-10-16 配色收口）
       改版前：首页主色蓝 #0d74ce + 详情页主色橙 #f5641e + 3 种蓝 + 3 种绿
               + 金色 #9a6a12 + 公告内联红/橙，单页可见 11 种文字色。
       现在：**一个品牌色族（橙）+ 一个成功色 + 中性灰阶**，全部从这里取值。
       要点：填充/按钮用 --tk-accent（鲜橙，白字可读）；
             文字/链接必须用 --tk-accent-ink（深橙，白底 5.3:1 过 AA）。
       ====================================================================== */
    --tk-accent: #f5641e;
    --tk-accent-strong: #d9530f;
    --tk-accent-ink: #b8460b;
    --tk-accent-soft: #fff1e7;
    --tk-success: #127b3c;
    --tk-success-dot: #22c55e;
    --tk-success-soft: rgba(18, 123, 60, 0.1);
    --tk-warn: #b07709;
    --tk-warn-soft: rgba(176, 119, 9, 0.12);
    --tk-danger: #c8372b;
    --tk-danger-soft: rgba(200, 55, 43, 0.1);
    --tk-info: #0d74ce;
    --tk-info-soft: rgba(13, 116, 206, 0.1);

    /* ----------------------------------------------------------------------
       中性灰阶（2026-10-16 提升到 :root）
       原先这套 --tk-ink/--tk-sub/--tk-faint/--tk-line*/--tk-well/--tk-card 只定义在
       .tk-detail 内部，导致详情页之外的规则（文章区 .support-note、下载按钮等）
       引用 var(--tk-line) 时解析失败、回退到浏览器默认色。
       现统一提升到 :root，全站共用一套灰阶；.tk-detail 只保留其专属的圆角令牌。
       ---------------------------------------------------------------------- */
    --tk-ink: #16181d;
    --tk-sub: #6b7280;
    --tk-faint: #9aa1ab;
    --tk-line: #eceef2;
    --tk-line-strong: #d8dde4;
    --tk-line-soft: #f2f4f7;
    --tk-well: #f6f7f9;
    --tk-card: #ffffff;

    /* 兼容旧变量名：全主题所有蓝色交互元素统一走品牌色族 */
    --tokyo-link: var(--tk-accent-ink);
}

html {
    scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

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

body.tokyo-theme {
    margin: 0;
    background: var(--tokyo-bg);
    color: var(--tokyo-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

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

/* 键盘焦点：统一 2px 黑色描边。
   主题原先只有 .sku / .alipay-guide-card / 查询按钮有焦点样式，其余按钮与链接
   在键盘导航时看不到焦点（.tokyo-nav-toggle 甚至显式 outline:none）。 */
:focus-visible {
    outline: 2px solid var(--tokyo-black);
    outline-offset: 2px;
}

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

.tokyo-page-frame {
    min-height: 100vh;
}

.tokyo-main {
    padding-bottom: 72px;
    margin-top: 18px;
}

#pjax-container {
    transition: opacity 0.18s ease;
}

#pjax-container.is-pjax-loading {
    opacity: 0.68;
    pointer-events: none;
}

.tokyo-shell {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
}

.tokyo-shell--narrow {
    width: min(960px, calc(100% - 32px));
}

.tokyo-nav-shell {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 14px 0 0;
}

.tokyo-nav-wrap {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
}

.tokyo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
    border: 1px solid rgba(224, 225, 230, 0.95);
    border-radius: var(--tokyo-radius-pill);
    background: rgba(240, 240, 243, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--tokyo-shadow-soft);
    padding: 10px 16px;
}

.tokyo-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 0;
}

.tokyo-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 44px; /* 热区达标：视觉仍是 42px logo，可点区域补足 44 */
}

.tokyo-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--tokyo-radius-pill);
    object-fit: cover;
    border: 1px solid var(--tokyo-border-strong);
    background: var(--tokyo-surface);
    flex: 0 0 42px;
}

.tokyo-brand-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tokyo-brand-chip::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: rgba(28, 32, 36, 0.55);
}

.tokyo-brand-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tokyo-black);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.tokyo-nav-toggle {
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    padding: 8px 12px;
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    box-shadow: none;
}

.tokyo-nav-toggle:focus,
.tokyo-nav-toggle:focus-visible,
.tokyo-nav-toggle:not(:disabled):not(.disabled):active {
    outline: none;
    box-shadow: none !important;
}

/* 取消默认光晕后必须补回可见焦点，否则键盘用户完全看不到当前焦点 */
.tokyo-nav-toggle:focus-visible {
    outline: 2px solid var(--tokyo-black);
    outline-offset: 2px;
}

.tokyo-nav-toggle .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(28,32,36,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M5 7h20M5 15h20M5 23h20'/%3E%3C/svg%3E");
}

.tokyo-nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.tokyo-nav .navbar-collapse {
    flex-grow: 1;
    min-width: 0;
}

.tokyo-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.tokyo-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--tokyo-radius-pill);
    color: var(--tokyo-muted);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: 0.2s ease;
}

.tokyo-notice-trigger {
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    text-align: left;
}

.tokyo-nav-link:hover,
.tokyo-nav-link.is-active {
    color: var(--tokyo-text);
    background: var(--tokyo-surface);
    box-shadow: var(--tokyo-shadow-soft);
}

.tokyo-nav-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.tokyo-searchbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    min-width: 0;
    width: min(100%, 300px);
    padding: 0 12px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-muted);
}

/* 让 input 撑满胶囊高度：实测原先内部输入控件只有 19px 高，
   键盘/触屏点击范围过小；height:100% 后与 44px 外框对齐。 */
.tokyo-searchbox input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tokyo-text);
    font-size: 0.88rem;
}

.tokyo-searchbox input::placeholder {
    color: var(--tokyo-muted-soft);
}

.tokyo-auth-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tokyo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 2026-10-16：40 → 44。实测全站主按钮（导航/登录/搜索/查询）都停在 40-42px，
       低于触控下限；详情页新卡片已是 44，这里把基类统一到 44，消除两套标准。 */
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.tokyo-button i,
.tokyo-commodity-action-link i,
.tokyo-commodity-action-disabled i,
.optional-card i,
.qty-group button i {
    font-size: 0.92em;
    line-height: 1;
    flex-shrink: 0;
}

.tokyo-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--tokyo-shadow-soft);
}

.tokyo-button-dark {
    border-color: var(--tokyo-black);
    background: var(--tokyo-black);
    color: var(--tokyo-surface);
}

.tokyo-button-light {
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
}

.tokyo-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 5px 10px 5px 7px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.tokyo-user-chip::after {
    margin-left: 10px;
    margin-top: 0;
    align-self: center;
    vertical-align: middle;
    position: relative;
    top: 1px;
    flex-shrink: 0;
}

.tokyo-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #ececf0;
}

.tokyo-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.tokyo-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
}

.tokyo-user-balance {
    color: var(--tokyo-muted);
    font-size: 0.68rem;
    line-height: 1.1;
}

.tokyo-user-dropdown {
    min-width: 0;
}

.tokyo-dropdown-menu {
    padding: 10px;
    border: 1px solid var(--tokyo-border);
    border-radius: 18px;
    box-shadow: var(--tokyo-shadow-elevated);
}

.tokyo-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 12px;
}

.tokyo-dropdown-menu .dropdown-item i {
    width: 16px;
    color: var(--tokyo-muted);
}

/* ===== 顶栏语言切换 =====
   与 .tokyo-user-chip 同款描边胶囊，登录/未登录都显示。
   按钮上带当前语言短码（公共 ready.js 填 [data-lang-label]），
   只放一个地球图标看不出当前是哪国语言。 */

.tokyo-lang-chip:hover,
.tokyo-lang-dropdown.show .tokyo-lang-chip {
    border-color: var(--tokyo-muted-soft);
}

/* 沿用用户胶囊的下拉箭头对齐修正 */

/* 覆盖 bootstrap 的实心蓝选中态。菜单是浅色底，所以用深色文字 +
   一层淡灰高亮；写 color:inherit 会取到 --bs-dropdown-color，同样是深色但
   不受主题控制，这里直接写死本主题的 --tokyo-text。 */
.tokyo-dropdown-menu .dropdown-item.active,
.tokyo-dropdown-menu .dropdown-item:active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--tokyo-text);
    font-weight: 600;
}

/* 菜单项是 flex，用 margin-left:auto 把对勾推到右端（float 在 flex 里不生效） */
.tokyo-dropdown-menu .dropdown-item.active::after {
    content: "\2713";
    margin-left: auto;
    font-weight: 700;
    color: var(--tokyo-link);
}

/* ≤1199px 时导航折叠成整宽面板，胶囊跟着撑满，与 .tokyo-user-chip 对齐 */

/* ≤767px 时 .tokyo-dropdown-menu 会变成常驻的两列网格（见下方主规则），
   用户菜单是大卡片没问题，但语言只有 4 个短词，用同样的 76px 高卡片太占地方，
   这里压回单行高度。 */
@media (max-width: 767px) {
    .tokyo-lang-dropdown .tokyo-dropdown-menu .dropdown-item {
        min-height: 0;
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.88rem;
    }

    .tokyo-lang-dropdown .tokyo-dropdown-menu .dropdown-item.active::after {
        margin-left: 6px;
    }
}

.tokyo-hero,
.tokyo-item-header,
.tokyo-query-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 38px 0 22px;
}

.tokyo-eyebrow,
.panel-kicker {
    margin: 0 0 12px;
    color: var(--tokyo-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tokyo-hero h1,
.tokyo-page-title,
.panel-title-lg {
    margin: 0;
    color: var(--tokyo-black);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.tokyo-hero-summary,
.tokyo-page-summary,
.tokyo-current-meta,
.tokyo-muted {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--tokyo-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.panel {
    border: 1px solid var(--tokyo-border);
    border-radius: 24px;
    background: var(--tokyo-surface);
    box-shadow: var(--tokyo-shadow-soft);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--tokyo-border);
}

.panel-title {
    margin: 0;
    color: var(--tokyo-black);
    font-size: clamp(1.2rem, 1.8vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.card-content-no-password,
.card-password-section {
    margin-top: 12px;
}

.panel-body {
    padding: 22px;
}

.tokyo-shop-layout {
    display: grid;
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 26px;
}

.tokyo-sidebar-panel {
    position: sticky;
    top: 104px;
}

.tokyo-catalog-panel {
    align-self: start;
}

.tokyo-index-heading,
.tokyo-catalog-heading {
    min-height: 110px;
}

.tokyo-index-heading {
    align-items: center;
}

.tokyo-index-heading-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.tokyo-index-panel-title {
    font-size: clamp(1rem, 1.4vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.tokyo-category-tree {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 6px;
    max-height: calc(100vh - 180px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
}

.tokyo-mobile-filter-trigger,
.tokyo-mobile-sidebar-close,
.tokyo-mobile-sidebar-backdrop,
.tokyo-pill-mobile-only {
    display: none;
}

.tokyo-commodity-tags .tokyo-pill-mobile-only,
.tokyo-pill.tokyo-pill-mobile-meta,
.tokyo-pill.tokyo-pill-mobile-price,
.tokyo-pill.tokyo-pill-mobile-member {
    display: none !important;
}

.tokyo-category-node {
    display: grid;
    align-content: start;
    gap: 6px;
}

.tokyo-category-row {
    --tokyo-depth: 0;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding-left: calc(var(--tokyo-depth) * 16px);
}

.tokyo-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--tokyo-border);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-bg);
    color: var(--tokyo-muted);
    appearance: none;
    -webkit-appearance: none;
    transition: 0.2s ease;
    flex: 0 0 24px;
}

.tokyo-category-toggle.is-expanded i {
    transform: rotate(90deg);
}

.tokyo-category-toggle i {
    transition: transform 0.2s ease;
}

.tokyo-category-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px; /* 热区达标 */
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--tokyo-radius-pill);
    background: transparent;
    color: var(--tokyo-muted-strong);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.tokyo-category-link:hover,
.tokyo-category-link.is-active {
    border-color: var(--tokyo-border-strong);
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    box-shadow: var(--tokyo-shadow-soft);
}

.tokyo-category-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--tokyo-radius-pill);
    border: 1px solid var(--tokyo-border);
    background: center / cover no-repeat var(--tokyo-bg);
    flex: 0 0 24px;
}

.tokyo-category-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.tokyo-category-name {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tokyo-category-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.tokyo-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-bg);
    color: var(--tokyo-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.tokyo-tree-feedback {
    padding: 14px 4px;
    color: var(--tokyo-muted);
    font-size: 0.86rem;
}

.tokyo-catalog-heading {
    position: relative;
    align-items: flex-start;
    padding-right: 404px;
}

.tokyo-catalog-body {
    padding-top: 22px;
}

.tokyo-catalog-tools {
    position: absolute;
    top: 18px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: min(100%, 360px);
    min-width: 0;
}

.tokyo-search-combo {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    gap: 6px;
}

.tokyo-searchbox-combo {
    flex: 1 1 auto;
    width: auto;
    height: 44px; /* 与右侧 44px 搜索按钮等齐，输入热区达标 */
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tokyo-searchbox-combo i {
    color: var(--tokyo-muted);
    font-size: 0.92rem;
}

.tokyo-searchbox-combo input {
    height: 100%;
    font-size: 0.86rem;
}

.tokyo-search-combo .tokyo-button {
    min-height: 44px;
    padding: 0 16px;
    border-width: 1px;
    box-shadow: none;
    flex: 0 0 auto;
}

.tokyo-search-combo .tokyo-button:hover {
    transform: none;
}

.tokyo-table-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tokyo-border);
    border-radius: 18px;
    background: #fcfcfd;
    min-height: var(--tokyo-table-stable-height, 0);
    transition: min-height 0.2s ease;
}

.tokyo-table-wrap.is-loading .tokyo-commodity-table {
    opacity: 0.32;
}

.tokyo-table-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(252, 252, 253, 0.9);
    color: var(--tokyo-muted-strong);
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 2;
}

.tokyo-table-wrap.is-loading .tokyo-table-loading {
    opacity: 1;
}

.tokyo-table-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(28, 32, 36, 0.12);
    border-top-color: rgba(28, 32, 36, 0.84);
    border-radius: 50%;
    animation: tokyo-spin 0.8s linear infinite;
}

.tokyo-commodity-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.tokyo-commodity-col-price {
    width: 108px;
}

.tokyo-commodity-col-stock {
    width: 98px;
}

.tokyo-commodity-col-sold {
    width: 58px;
}

.tokyo-commodity-col-action {
    width: 118px;
}

.tokyo-commodity-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--tokyo-border);
    color: var(--tokyo-muted);
    background: rgba(240, 240, 243, 0.6);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tokyo-commodity-table thead th:first-child,
.tokyo-commodity-table tbody td:first-child {
    text-align: left;
}

.tokyo-commodity-table thead th:nth-child(2),
.tokyo-commodity-table thead th:nth-child(3),
.tokyo-commodity-table thead th:nth-child(4),
.tokyo-commodity-table tbody td:nth-child(2),
.tokyo-commodity-table tbody td:nth-child(3),
.tokyo-commodity-table tbody td:nth-child(4) {
    text-align: center;
}

.tokyo-commodity-table thead th:nth-child(5),
.tokyo-commodity-table tbody td:nth-child(5) {
    text-align: right;
}

.tokyo-commodity-table tbody td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--tokyo-border);
    vertical-align: middle;
}

.tokyo-commodity-table tbody tr {
    transition: background 0.2s ease;
}

.tokyo-commodity-table tbody tr:last-child td {
    border-bottom: 0;
}

.tokyo-commodity-row:hover {
    background: rgba(255, 255, 255, 0.75);
}

.tokyo-commodity-main {
    min-width: 260px;
}

.tokyo-commodity-anchor {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.tokyo-commodity-thumb {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--tokyo-border);
    /* 缩略图改用 <img loading="lazy">，object-fit 保证不变形；
       background 只作为图片加载前的占位底色。 */
    object-fit: cover;
    background: center / cover no-repeat var(--tokyo-bg);
    flex: 0 0 42px;
}

.tokyo-commodity-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.tokyo-commodity-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tokyo-text);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.tokyo-commodity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tokyo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 21px;
    padding: 0 8px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-bg);
    color: var(--tokyo-muted-strong);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tokyo-pill.tokyo-pill-primary {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.tokyo-pill.tokyo-pill-success {
    background: var(--tk-success-soft);
    color: var(--tk-success);
}

.tokyo-pill.tokyo-pill-mobile-meta {
    background: rgba(240, 240, 243, 0.9);
    color: var(--tokyo-muted-strong);
}

/* 价格 pill：改中性底（原为金色 #9a6a12，是主题里第四套强调色） */
.tokyo-pill.tokyo-pill-mobile-price {
    background: rgba(240, 240, 243, 0.95);
    color: var(--tokyo-text);
    border: 1px solid var(--tokyo-border);
}

.tokyo-pill.tokyo-pill-mobile-member {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.tokyo-commodity-price {
    color: var(--tokyo-black);
    white-space: nowrap;
}

.tokyo-commodity-price-stack {
    display: inline-grid;
    justify-items: center;
    gap: 5px;
}

.tokyo-commodity-price-main {
    color: var(--tokyo-black);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.tokyo-commodity-price-note {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 7px;
    border: 1px solid rgba(245, 100, 30, 0.22);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(245, 100, 30, 0.1);
}

.tokyo-commodity-muted {
    color: var(--tokyo-muted);
    font-size: 0.84rem;
    white-space: nowrap;
    text-align: center;
}

.tokyo-commodity-action {
    white-space: nowrap;
    text-align: right;
}

.tokyo-commodity-action-link,
.tokyo-commodity-action-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px; /* 热区达标 */
    padding: 0 14px;
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

.tokyo-commodity-action-link {
    background: var(--tokyo-black);
    color: var(--tokyo-surface);
}

.tokyo-commodity-action-disabled {
    background: var(--tokyo-bg);
    color: var(--tokyo-muted-soft);
}

.tokyo-empty-row td {
    padding: 22px 16px;
    color: var(--tokyo-muted);
    text-align: center;
}

.tokyo-item-panel,
.tokyo-description-panel,
.tokyo-query-panel {
    margin-bottom: 22px;
}

/* 纯文字模式：原 .tokyo-item-cover-card / -trigger / -hint / .item-cover 及
   .tokyo-image-layer / .tokyo-image-preview 图片预览样式已随封面移除（见文件末尾 text-mode 区）。 */

.tokyo-item-inline-title {
    margin: 0;
    color: var(--tokyo-black);
    font-size: clamp(1.28rem, 1.7vw, 1.95rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.tokyo-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.tokyo-item-badges .badge-soft {
    flex: 0 0 auto;
    align-self: flex-start;
    white-space: nowrap;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.badge-soft-primary {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.badge-soft-success {
    background: var(--tk-success-soft);
    color: var(--tk-success);
}

.badge-soft-info {
    background: var(--tk-info-soft);
    color: var(--tk-info);
}

.shared-button {
    cursor: pointer;
}

.badge-soft-danger,
.badge-soft-muted {
    background: rgba(176, 180, 186, 0.2);
    color: var(--tokyo-muted);
}

.tokyo-item-price .price {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    min-height: 34px;
    margin: 0;
    color: var(--tokyo-black);
    line-height: 1;
    min-width: 124px;
    font-size: 1.8rem;
    font-weight: 800;
}

.tokyo-item-price .unit {
    margin-right: 0;
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-0.02em);
}

.tokyo-item-price .price-amount {
    display: inline-block;
    font-size: 1.68rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.tokyo-item-price {
    display: flex;
    align-items: flex-end;
    min-height: 38px;
    margin: 0;
    line-height: 1;
}

.tokyo-item-price .price.is-loading {
    align-items: center;
}

.tokyo-item-price .price-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 124px;
    min-height: 38px;
}

.tokyo-item-price .icon-spin {
    font-size: 1rem;
}

.tokyo-field {
    display: grid;
    gap: 8px;
}

.form-label {
    color: var(--tokyo-muted-strong);
    font-size: 0.8rem;
    font-weight: 600;
}

.form-control,
.optional-card {
    width: 100%;
    min-height: 44px; /* 热区达标：全站输入框基类，原先 42px */
    border: 1px solid var(--tokyo-border-strong);
    border-radius: 14px;
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    font-size: 0.88rem;
    box-shadow: none;
}

.optional-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-control {
    padding: 0 12px;
}

/* 焦点色：原为硬编码蓝 #2547d0（第五套色系遗留），收敛到品牌橙 */
.form-control:focus {
    border-color: var(--tk-accent);
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    padding-top: 6px;
    overflow: visible;
    isolation: isolate;
}

.sku {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-muted-strong);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: visible;
    z-index: 0;
}

.sku.has-money {
    padding-right: 14px;
}

.sku-label {
    display: block;
    min-width: 0;
}

.sku.is-primary {
    border-color: var(--tokyo-black);
    background: var(--tokyo-black);
    color: var(--tokyo-surface);
}

.sku:hover,
.sku:focus-visible,
.sku.is-primary {
    z-index: 4;
}

.badge-money {
    --tokyo-badge-money-bg: #f7f8fa;
    --tokyo-badge-money-border: rgba(18, 22, 28, 0.08);
    --tokyo-badge-money-shadow: 0 10px 20px rgba(18, 22, 28, 0.14);
    position: absolute;
    top: -22px;
    right: -16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-badge-money-bg);
    color: var(--tokyo-text);
    border: 1px solid var(--tokyo-badge-money-border);
    box-shadow: var(--tokyo-badge-money-shadow);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transform: none;
    pointer-events: none;
    isolation: isolate;
    z-index: 5;
}

.badge-money::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--tokyo-badge-money-bg);
    filter: drop-shadow(0 1px 0 var(--tokyo-badge-money-border));
    z-index: -1;
}

.sku.is-primary .badge-money {
    --tokyo-badge-money-bg: #ffffff;
    --tokyo-badge-money-border: rgba(18, 22, 28, 0.1);
    --tokyo-badge-money-shadow: 0 12px 24px rgba(18, 22, 28, 0.18);
    color: var(--tokyo-text);
}

.qty-group {
    width: min(188px, 100%);
    max-width: 188px;
    min-height: 44px; /* 热区达标：原先靠 input 撑高，实测只有 42px */
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: 999px;
    background: var(--tokyo-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.qty-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border: 0;
    background: rgba(24, 28, 34, 0.04);
    color: var(--tokyo-text);
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.qty-group button:first-child {
    border-right: 1px solid var(--tokyo-border);
}

.qty-group button:last-child {
    border-left: 1px solid var(--tokyo-border);
}

.qty-group .form-control {
    min-width: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 10px;
    color: var(--tokyo-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    opacity: 1;
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: none;
}

.qty-group .form-control::-webkit-outer-spin-button,
.qty-group .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 验证码组：目前仅详情页下单表单使用（.tk-fields 内有更细的覆盖规则）。
   查询页的人机验证已于 2026-10-16 按需求移除，本组不再服务查询页。 */
.tokyo-captcha-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(100%, 300px);
    max-width: 300px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* 验证码输入框：占满整组高度，与 44px 热区对齐（原固定 34px 会在组内悬空） */
.tokyo-captcha-group .captcha-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 12px;
}

.tokyo-captcha-group .captcha-input:focus {
    background: transparent;
    box-shadow: none;
}

.tokyo-captcha-group .input-group-append {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-left: 6px;
}

.tokyo-captcha-group .input-group-append::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 24px;
    background: var(--tokyo-border);
    transform: translateY(-50%);
}

.captcha-img,
.input-group-text {
    border: 0;
    background-color: rgba(255, 255, 255, 0);
}

.captcha-img {
    display: block;
    width: 86px;
    height: 42px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 999px;
}

.cash-pay {
    padding: 14px;
    border: 1px solid var(--tokyo-border);
    border-radius: 18px;
    background: var(--tokyo-bg);
}

.pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px; /* 付款按钮是关键转化目标，热区必须达标（原 40px） */
    padding: 0 14px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pay-list .pay img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tokyo-login-required-pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: 16px;
    background: var(--tokyo-surface);
}

.tokyo-login-required-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tokyo-login-required-copy strong {
    color: var(--tokyo-text);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tokyo-login-required-copy span {
    color: var(--tokyo-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.wholesale-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
}

.wholesale-table th,
.wholesale-table td {
    padding: 12px 14px;
    border-color: var(--tokyo-border);
}

.tokyo-description-body {
    overflow-wrap: anywhere;
}

.tokyo-description-panel .panel-header {
    justify-content: flex-start;
}

.tokyo-description-panel .panel-title {
    font-size: clamp(1rem, 1.35vw, 1.45rem);
    letter-spacing: -0.04em;
}

/* 查询表单：输入框 + 查询按钮同行两列。
   2026-10-16 按需求去掉人机验证，恢复为最初的单行布局。 */
.order-query-form {
    display: grid;
    gap: 12px;
    align-items: start;
}

.tokyo-query-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tokyo-query-form .btn-search-query {
    grid-column: 2;
    flex: 0 0 auto;
    white-space: nowrap;
}

.tokyo-query-form .form-control {
    min-width: 0;
    min-height: 46px; /* 与详情页控件同高（原 44，全站统一到 46） */
}

@media (max-width: 767px) {
    /* 窄屏：按钮折到输入框下一行 */
    .tokyo-query-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .tokyo-query-form .btn-search-query {
        grid-column: 1 / -1;
    }
}

.tokyo-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 190px;
    text-align: center;
}

.tokyo-empty-state i {
    color: var(--tokyo-muted);
    font-size: 1.7rem;
}

.tokyo-empty-state h3 {
    margin: 0;
    color: var(--tokyo-black);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.tokyo-empty-state p {
    margin: 0;
    max-width: 520px;
    color: var(--tokyo-muted);
}

.order-list {
    display: grid;
    gap: 16px;
}

.order-item {
    padding: 20px;
    border: 1px solid var(--tokyo-border);
    border-radius: 20px;
    background: #fbfbfc;
}

.order-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--tokyo-border);
}

.order-left,
.order-right,
.order-basic,
.order-amount {
    display: grid;
    gap: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
}

.status-pending {
    background: var(--tk-warn-soft);
    color: var(--tk-warn);
}

.status-paid,
.status-shipped {
    background: var(--tk-success-soft);
    color: var(--tk-success);
}

.status-waiting-shipment {
    background: var(--tk-info-soft);
    color: var(--tk-info);
}

.order-no {
    color: var(--tokyo-black);
    font-size: 0.92rem;
    font-weight: 700;
}

.order-time,
.payment-time,
.payment-dst,
.amount-label {
    color: var(--tokyo-muted);
    font-size: 0.8rem;
}

.amount-value {
    color: var(--tokyo-black);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.goods-section {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
}

.goods-thumb {
    flex: 0 0 64px;
}

.goods-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--tokyo-border);
}

.goods-details {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.goods-name {
    margin: 0;
    color: var(--tokyo-black);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.goods-sku,
.shipment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: var(--tokyo-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
}

.a-badge-success,
.shipment-paid {
    background: var(--tk-success-soft);
    color: var(--tk-success);
}

.a-badge-primary {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.a-badge-warning,
.shipment-waiting {
    background: var(--tk-warn-soft);
    color: var(--tk-warn);
}

.card-section {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--tokyo-border);
}

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

.card-display {
    padding: 14px;
    border: 1px solid var(--tokyo-border);
    border-radius: 16px;
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.84rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.password-form .input-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.password-form .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 38px;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.password-form .form-control:focus {
    background: transparent;
    box-shadow: none;
}

.view-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px; /* 热区达标 */
    padding: 0 15px;
    border: 1px solid var(--tokyo-black) !important;
    border-radius: var(--tokyo-radius-pill) !important;
    border-top-left-radius: var(--tokyo-radius-pill) !important;
    border-bottom-left-radius: var(--tokyo-radius-pill) !important;
    background: var(--tokyo-black) !important;
    color: var(--tokyo-surface) !important;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: none;
    flex: 0 0 auto;
}

.card-loading {
    margin-top: 12px;
}

.loading-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-bg);
    color: var(--tokyo-muted);
}

.tokyo-inline-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--tokyo-border);
    border-radius: 18px;
    background: var(--tokyo-bg);
    color: var(--tokyo-muted-strong);
}

.tokyo-notice-modal {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: min(calc(100vh - 40px), 760px);
    overflow: hidden;
}

.tokyo-notice-modal-head {
    display: grid;
    gap: 8px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--tokyo-border);
    background: linear-gradient(180deg, rgba(240, 240, 243, 0.58), rgba(255, 255, 255, 0));
}

.tokyo-notice-kicker {
    color: var(--tokyo-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tokyo-notice-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tokyo-black);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tokyo-notice-title i {
    color: var(--tokyo-muted-strong);
    font-size: 1rem;
}

.tokyo-notice-popup-inner {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px 18px;
    color: var(--tokyo-text);
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
    overflow-y: auto;
}

.tokyo-notice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 12px;
}

.tokyo-notice-tip {
    margin: 0;
    padding: 0 24px 22px;
    text-align: right;
    color: var(--tokyo-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.tokyo-layer-popup {
    overflow: hidden;
    border: 1px solid var(--tokyo-border) !important;
    border-radius: 28px !important;
    background: var(--tokyo-surface) !important;
    box-shadow: var(--tokyo-shadow-elevated) !important;
}

.tokyo-layer-popup .layui-layer-content {
    overflow: hidden !important;
    background: var(--tokyo-surface);
}

.component-popup {
    border-radius: 28px !important;
    border: 1px solid var(--tokyo-border) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--tokyo-shadow-elevated) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.component-popup .layui-layer-content {
    background: linear-gradient(180deg, rgba(248, 249, 252, 0.94) 0%, rgba(255, 255, 255, 0.96) 28%);
}

.component-popup .layui-layer-title {
    border-bottom: 1px solid rgba(220, 224, 231, 0.72) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: var(--tokyo-black) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

.component-popup .layui-layer-btn {
    border-top: 1px solid rgba(220, 224, 231, 0.72) !important;
    background: rgba(255, 255, 255, 0.72);
}

.component-popup .mcy-card {
    padding: 18px;
    border: 1px solid var(--tokyo-border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.component-popup .hex-query-form,
.component-popup .table-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.component-popup .hex-query-form .layui-input-inline,
.component-popup .table-search .layui-input-inline {
    float: none !important;
    display: flex;
    align-items: center;
    margin: 0 !important;
    width: auto !important;
    padding-top: 0 !important;
}

.component-popup .hex-query-form .layui-input-inline:first-child,
.component-popup .table-search .layui-input-inline:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.component-popup .hex-query-form .layui-input-inline:last-child,
.component-popup .table-search .layui-input-inline:last-child {
    flex: 0 0 auto;
}

.component-popup .hex-query-form .layui-input,
.component-popup .table-search .layui-input {
    height: 38px !important;
    min-height: 38px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--tokyo-text);
    font-size: 0.86rem;
    box-shadow: none !important;
}

.component-popup .hex-query-form .layui-input:focus,
.component-popup .table-search .layui-input:focus {
    background: transparent !important;
    box-shadow: none !important;
}

.component-popup .hex-query-form .queryBtn,
.component-popup .hex-query-form .query-button,
.component-popup .table-search .queryBtn,
.component-popup .table-search .query-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 15px;
    border: 1px solid var(--tokyo-black) !important;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-black) !important;
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: none;
}

.component-popup .hex-query-form .queryBtn:hover,
.component-popup .hex-query-form .queryBtn:focus-visible,
.component-popup .hex-query-form .query-button:hover,
.component-popup .hex-query-form .query-button:focus-visible,
.component-popup .table-search .queryBtn:hover,
.component-popup .table-search .queryBtn:focus-visible,
.component-popup .table-search .query-button:hover,
.component-popup .table-search .query-button:focus-visible {
    background: #141922 !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .component-popup .hex-query-form,
    .component-popup .table-search {
        flex-wrap: wrap;
    }

    .component-popup .hex-query-form .layui-input-inline:first-child,
    .component-popup .table-search .layui-input-inline:first-child,
    .component-popup .hex-query-form .layui-input-inline:last-child,
    .component-popup .table-search .layui-input-inline:last-child {
        width: 100% !important;
    }

    .component-popup .hex-query-form .queryBtn,
    .component-popup .hex-query-form .query-button,
    .component-popup .table-search .queryBtn,
    .component-popup .table-search .query-button {
        width: 100%;
    }
}

.component-popup .bootstrap-table {
    color: var(--tokyo-text);
}

.component-popup .bootstrap-table .fixed-table-toolbar {
    margin: 0;
}

.component-popup .bootstrap-table .fixed-table-toolbar::after {
    display: none;
}

.component-popup .bootstrap-table .fixed-table-container {
    overflow: hidden;
    border: 1px solid rgba(221, 225, 232, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.component-popup .bootstrap-table .fixed-table-container .table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.component-popup .bootstrap-table .fixed-table-container .table thead th {
    background: #f6f7fa;
    color: var(--tokyo-muted-strong);
    font-size: 0.82rem !important;
    font-weight: 700;
    border-color: rgba(221, 225, 232, 0.9) !important;
}

.component-popup .bootstrap-table .fixed-table-container .table thead th .th-inner {
    padding: 16px 18px;
}

.component-popup .bootstrap-table .fixed-table-container .table tbody tr {
    font-size: 0.94rem !important;
    color: var(--tokyo-text);
}

.component-popup .bootstrap-table .fixed-table-container .table tbody tr:hover {
    background: rgba(17, 24, 39, 0.025);
}

.component-popup .bootstrap-table .fixed-table-container .table tbody tr.selected td {
    background: rgba(17, 24, 39, 0.05);
}

.component-popup .bootstrap-table .fixed-table-container .table td {
    padding: 20px 18px;
    border-color: rgba(229, 232, 238, 0.84) !important;
    background: transparent;
    color: var(--tokyo-text);
    font-size: 0.94rem !important;
    line-height: 1.55;
}

.component-popup .bootstrap-table .fixed-table-container .table .bs-checkbox {
    width: 56px;
    text-align: center;
}

.component-popup .bootstrap-table .fixed-table-container .table .bs-checkbox input[type="radio"],
.component-popup .bootstrap-table .fixed-table-container .table .bs-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tokyo-black);
    cursor: pointer;
}

.component-popup .bootstrap-table .fixed-table-container .table tbody tr.no-records-found td {
    padding: 28px 18px;
    color: var(--tokyo-muted);
    font-size: 0.9rem !important;
}

.component-popup .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.component-popup .bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap .loading-text {
    color: var(--tokyo-muted);
}

.component-popup .bootstrap-table .a-badge-primary {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--tk-info-soft);
    color: var(--tk-info);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: none;
}

.component-popup .bootstrap-table .fixed-table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 4px 0;
}

.component-popup .bootstrap-table .fixed-table-pagination::after {
    display: none;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail,
.component-popup .bootstrap-table .fixed-table-pagination > .pagination {
    float: none !important;
    margin: 0 !important;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--tokyo-muted);
    font-size: 0.82rem;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination {
    display: flex;
    align-items: center;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail .page-list,
.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
    margin: 0;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(221, 225, 232, 0.9);
    border-radius: 12px !important;
    background: #ffffff;
    color: var(--tokyo-black);
    box-shadow: none;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu {
    padding: 8px;
    border: 1px solid rgba(221, 225, 232, 0.9);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination ul.pagination {
    gap: 8px;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination ul.pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(221, 225, 232, 0.9);
    border-radius: 12px;
    background: #ffffff;
    color: var(--tokyo-muted-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination ul.pagination .page-item.active .page-link {
    border-color: var(--tokyo-black);
    background: var(--tokyo-black);
    color: #ffffff;
}

.component-popup .bootstrap-table .fixed-table-pagination > .pagination ul.pagination .page-item.disabled .page-link {
    background: rgba(244, 246, 248, 0.92);
    color: rgba(120, 126, 136, 0.72);
}

.tokyo-closed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.tokyo-footer {
    padding: 0 0 24px;
}

.tokyo-footer-wrap {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid var(--tokyo-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--tokyo-shadow-soft);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tokyo-footer-wrap--single {
    justify-content: center;
}

.tokyo-footer-copy,
.tokyo-footer-icp {
    color: var(--tokyo-muted);
    font-size: 0.8rem;
}

.icon-spin {
    animation: tokyo-spin 0.9s linear infinite;
}

@keyframes tokyo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199px) {
    .tokyo-nav {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .tokyo-brand-wrap {
        width: 100%;
    }

    .tokyo-nav .navbar-collapse {
        width: 100%;
        margin-top: 12px;
    }

    .tokyo-nav-main {
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(217, 217, 224, 0.9);
    }

    .tokyo-index-heading,
    .tokyo-catalog-heading {
        min-height: auto;
    }

    .tokyo-catalog-heading {
        padding-right: 22px;
    }

    .tokyo-catalog-tools {
        position: static;
        width: 100%;
    }

    .tokyo-nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .tokyo-nav-links .nav-item {
        width: 100%;
    }

    .tokyo-nav-tools {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tokyo-auth-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tokyo-auth-actions .tokyo-button {
        width: 100%;
    }

    .tokyo-user-dropdown {
        width: 100%;
    }

    .tokyo-user-chip {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .tokyo-shop-layout {
        grid-template-columns: 1fr;
    }

    .tokyo-sidebar-panel {
        position: static;
    }

    .tokyo-category-tree {
        max-height: none;
    }

    .tokyo-hero,
    .tokyo-item-header,
    .tokyo-query-header {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    body.tokyo-mobile-drawer-open {
        overflow: hidden;
    }

    .tokyo-shell,
    .tokyo-shell--narrow,
    .tokyo-nav-wrap,
    .tokyo-footer-wrap {
        width: calc(100% - 20px);
    }

    .tokyo-main {
        padding-bottom: 72px;
        margin-top: 18px;
    }

    .tokyo-nav-shell {
        position: static;
        z-index: auto;
        padding-top: 10px;
    }

    .tokyo-nav {
        border-radius: 28px;
        padding: 12px;
    }

    .tokyo-brand-wrap {
        align-items: center;
        gap: 12px;
    }

    .tokyo-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .tokyo-brand-name {
        font-size: 0.92rem;
    }

    .tokyo-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        flex: 0 0 52px;
    }

    .tokyo-nav-links {
        gap: 8px;
    }

    .tokyo-nav-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--tokyo-border-strong);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: none;
    }

    .tokyo-nav-tools {
        gap: 10px;
    }

    .tokyo-user-chip {
        min-height: 48px;
        justify-content: space-between;
        padding: 8px 12px 8px 8px;
    }

    .tokyo-user-dropdown {
        position: relative;
    }

    .tokyo-dropdown-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        position: static !important;
        inset: auto !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin-top: 8px !important;
        padding: 8px;
        border-radius: 20px;
        box-shadow: var(--tokyo-shadow-soft);
    }

    .tokyo-dropdown-divider-wrap {
        display: none;
    }

    .tokyo-dropdown-menu .dropdown-item {
        min-height: 76px;
        padding: 12px;
        border-radius: 14px;
        font-size: 0.94rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        border: 1px solid var(--tokyo-border-strong);
        background: rgba(255, 255, 255, 0.72);
    }

    .tokyo-dropdown-menu .dropdown-item i {
        width: auto;
        font-size: 1.05rem;
    }

    .tokyo-dropdown-entry-danger {
        grid-column: 1 / -1;
    }

    .tokyo-dropdown-entry-danger .dropdown-item {
        min-height: 46px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-color: rgba(222, 39, 39, 0.16);
        background: rgba(255, 250, 250, 0.96);
    }

    .panel-header,
    .panel-body,
    .order-item {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tokyo-catalog-tools,
    .tokyo-query-form,
    .tokyo-footer-wrap,
    .order-header,
    .goods-section {
        flex-direction: column;
        align-items: stretch;
    }

    .tokyo-catalog-body {
        padding-top: 18px;
    }

    .tokyo-catalog-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .tokyo-catalog-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tokyo-index-panel-title {
        font-size: 1.18rem;
    }

    .tokyo-notice-actions {
        flex-direction: column-reverse;
    }

    .tokyo-notice-actions .tokyo-button {
        width: 100%;
    }

    .tokyo-notice-popup-inner {
        max-height: none;
    }

    .tokyo-search-combo {
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }

    .tokyo-searchbox-combo {
        min-height: 44px;
        border: 1px solid var(--tokyo-border-strong);
        border-radius: var(--tokyo-radius-pill);
        background: var(--tokyo-surface);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .tokyo-search-combo .tokyo-button {
        width: 100%;
    }

    .tokyo-mobile-filter-trigger {
        display: inline-flex;
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
    }

    .tokyo-shop-layout {
        position: relative;
        margin-top: 12px;
    }

    .tokyo-sidebar-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        width: min(84vw, 336px);
        height: auto;
        border-radius: 0 24px 24px 0;
        transform: translateX(calc(-100% - 12px));
        transition: transform 0.24s ease;
        box-shadow: var(--tokyo-shadow-elevated);
        overflow: hidden;
    }

    body.tokyo-mobile-drawer-open .tokyo-sidebar-panel {
        transform: translateX(0);
    }

    .tokyo-mobile-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        border: 0;
        background: rgba(28, 32, 36, 0.26);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.tokyo-mobile-drawer-open .tokyo-mobile-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .tokyo-mobile-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--tokyo-border-strong);
        border-radius: var(--tokyo-radius-pill);
        background: var(--tokyo-bg);
        color: var(--tokyo-text);
        flex: 0 0 44px;
    }

    .tokyo-sidebar-panel .panel-body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        overflow: hidden;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .tokyo-category-tree {
        align-content: start;
        grid-auto-rows: max-content;
        gap: 2px;
        flex: 1 1 auto;
        max-height: 100%;
        padding-right: 4px;
    }

    .tokyo-category-node {
        gap: 2px;
    }

    .tokyo-category-row {
        padding-left: calc(var(--tokyo-depth) * 12px);
    }

    .tokyo-category-link {
        padding: 7px 8px;
        min-height: 44px; /* 覆盖上面的 7px 内边距，保证移动端热区不被压回 40 */
    }

    .tokyo-searchbox,
    .tokyo-query-form .form-control,
    .tokyo-button {
        width: 100%;
    }

    .tokyo-commodity-table,
    .tokyo-commodity-table thead,
    .tokyo-commodity-table tbody,
    .tokyo-commodity-table tr,
    .tokyo-commodity-table th,
    .tokyo-commodity-table td {
        display: block;
        width: 100%;
    }

    .tokyo-commodity-table thead {
        display: none;
    }

    .tokyo-commodity-table tbody tr {
        padding: 6px 0;
    }

    .tokyo-commodity-table tbody td {
        padding: 12px 16px;
        border-bottom: 0;
    }

    /* 移动端只保留「商品」与「操作」两列：价格/库存/销量已经以 pill 形式折进卡片内，
       操作列则被重排成卡片右侧的圆形进入按钮（见下）。按类名排除而不是 nth-child，
       这样「销量」列开关时列数变化也不会误伤操作列。 */
    .tokyo-commodity-row td:not(.tokyo-commodity-main):not(.tokyo-commodity-action) {
        display: none;
    }

    .tokyo-commodity-row {
        position: relative;
        border-bottom: 1px solid var(--tokyo-border);
        cursor: pointer;
        transition: background 0.16s ease;
    }

    /* 触屏上 tr:active 不稳定，主要靠右侧圆钮与标题区的按压反馈 */
    .tokyo-commodity-row:active {
        background: rgba(16, 18, 24, 0.035);
    }

    .tokyo-commodity-row:last-child {
        border-bottom: 0;
    }

    .tokyo-commodity-main {
        min-width: 0;
    }

    /* 操作列绝对定位到卡片右侧、垂直居中，变成一颗圆形按钮。
       卡片高度由标题行数决定，绝对定位才不会跟着内容高度跳动；
       z-index 高于标题区，避免长标题压住点击热区。 */
    /* 选择器带 .tokyo-commodity-table 前缀：上方 `.tokyo-commodity-table td
       { display:block; width:100% }`（0,1,1）会压过裸类名（0,1,0），
       不加前缀这里的 width/padding 全部失效。 */
    .tokyo-commodity-table .tokyo-commodity-action {
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        width: auto;
        min-width: 0;
        padding: 0;
        text-align: center;
        z-index: 1;
    }

    .tokyo-commodity-action-link,
    .tokyo-commodity-action-disabled {
        width: 44px; /* 42 → 44：移动端商品卡的唯一可点入口，热区达标 */
        height: 44px;
        min-height: 44px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }

    .tokyo-commodity-action-link {
        box-shadow: 0 6px 14px rgba(16, 18, 24, 0.18);
    }

    /* 圆钮里放不下「购买 / 售罄」文案，只保留图形 */
    .tokyo-commodity-action-link span,
    .tokyo-commodity-action-disabled span {
        display: none;
    }

    /* 有货：隐藏购物袋图标，改用纯 CSS 右箭头 ——
       表达的是「进入详情」，比购物袋更像可点击的入口 */
    .tokyo-commodity-action-link i {
        display: none;
    }

    .tokyo-commodity-action-link::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: 3px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        border-radius: 1px;
        transform: rotate(45deg);
    }

    .tokyo-commodity-action-link:active {
        transform: scale(0.93);
    }

    /* 售罄：保留 ⊘ 图标，浅底 + 描边，与深色可点圆钮形成明确对比 */
    .tokyo-commodity-action-disabled {
        border: 1px solid var(--tokyo-border);
        box-shadow: none;
    }

    .tokyo-commodity-price,
    .tokyo-commodity-muted {
        text-align: left;
    }

    .tokyo-commodity-price-stack {
        justify-items: start;
    }

    .tokyo-pill-mobile-only,
    .tokyo-commodity-tags .tokyo-pill-mobile-only,
    .tokyo-pill.tokyo-pill-mobile-meta,
    .tokyo-pill.tokyo-pill-mobile-price,
    .tokyo-pill.tokyo-pill-mobile-member {
        display: inline-flex !important;
    }

    .tokyo-commodity-tags {
        gap: 5px;
    }

    /* 沿用 tbody td 的 12/16 内边距，右侧再多留 64px 给圆形「进入」按钮。
       同样需要 .tokyo-commodity-table 前缀才能压过 tbody td 的 padding。 */
    .tokyo-commodity-table .tokyo-commodity-main {
        padding: 12px 16px;
        padding-right: 64px;
    }

    .tokyo-commodity-thumb {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 15px;
    }

    /* 超长商品名最多两行，避免单卡被撑高、列表节奏被打乱 */
    .tokyo-commodity-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        line-height: 1.35;
    }

    /* 售罄：内容整体降饱和，右侧 ⊘ 圆钮表明不可点击 */
    .tokyo-commodity-row.is-soldout {
        cursor: default;
    }

    .tokyo-commodity-row.is-soldout:active {
        background: transparent;
    }

    .tokyo-commodity-row.is-soldout .tokyo-commodity-thumb {
        filter: grayscale(1);
        opacity: 0.6;
    }

    .tokyo-commodity-row.is-soldout .tokyo-commodity-copy {
        opacity: 0.62;
    }

    .tokyo-commodity-row.is-soldout .tokyo-commodity-anchor {
        pointer-events: none;
    }

    .tokyo-commodity-table tbody td:not(.tokyo-commodity-main):not(.tokyo-commodity-action)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--tokyo-muted);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .tokyo-item-inline-title {
        font-size: 1.12rem;
        line-height: 1.16;
    }

    .sku-list {
        padding-top: 4px;
    }

    .qty-group {
        width: 100%;
        max-width: none;
    }

    .badge-money {
        top: -10px;
        right: -10px;
        min-height: 20px;
        padding: 0 7px;
        font-size: 0.62rem;
    }

    .badge-money::after {
        left: 10px;
        bottom: -5px;
        border-left-width: 4px;
        border-right-width: 4px;
        border-top-width: 5px;
    }

    .password-form .input-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .password-form .form-control {
        width: 100%;
        min-height: 44px;
        height: auto;
        padding: 0 12px;
        border: 1px solid var(--tokyo-border-strong);
        border-radius: 14px !important;
        border-top-right-radius: 14px !important;
        border-bottom-right-radius: 14px !important;
        background: var(--tokyo-surface);
    }

    .password-form .view-card-btn {
        width: 100%;
        min-height: 44px;
        border-radius: var(--tokyo-radius-pill) !important;
        border-top-left-radius: var(--tokyo-radius-pill) !important;
        border-bottom-left-radius: var(--tokyo-radius-pill) !important;
    }
}

/* ==========================================================================
   商品标签（#807）
   管理员在后台给商品配的彩色标签，排在系统徽章（自动发货/推荐）之前。
   颜色只认后端白名单里的 8 个 token，模板负责给出具体色值。
   ========================================================================== */

/* ===== 移动端语言切换（放在文件末尾：必须排在上面那条 .tokyo-dropdown-menu 的
   2 列卡片网格之后才生效） =====
   那条网格是给用户菜单的图标卡片设计的，语言菜单被一并套用后会变成一个 2×2 方块，
   跟上面那串整行胶囊完全两种风格，还把登录按钮顶下去。这里把语言这一支单独拉回：
   胶囊占满整行（与 .tokyo-nav-link 同款），下拉退化成单列列表。 */
@media (max-width: 767px) {
    

    

    /* 箭头推到行尾，与整行胶囊的视觉重心一致 */
    

    /* display 必须分「展开/收起」两态写：上面那条网格规则是 .tokyo-dropdown-menu(单类)，
       会盖掉 bootstrap 的 .dropdown-menu{display:none}，所以这里要显式补回隐藏态，
       只写 display:block 会让菜单常驻展开、点了收不回去。 */
    .tokyo-lang-dropdown .tokyo-dropdown-menu {
        display: none;
        padding: 8px;
    }

    .tokyo-lang-dropdown .tokyo-dropdown-menu.show {
        display: block;
    }

    .tokyo-lang-dropdown .tokyo-dropdown-menu .dropdown-item {
        min-height: 44px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 0 14px;
        font-size: 0.94rem;
    }

    .tokyo-lang-dropdown .tokyo-dropdown-entry + .tokyo-dropdown-entry {
        margin-top: 8px;
    }
}

/* ==========================================================================
   Tokyo 主题 —— 覆盖层（历史追加区重写版）

   本段由原先 3022~4893 行的追加式样式整理而来，处理了四类问题：
   1) 同一选择器被反复定义（后写的覆盖前写的，浏览器仍要全部参与层叠）；
   2) 全局泄漏：body{padding}、:root 通用变量、::-webkit-scrollbar、
      prefers-reduced-motion 的 * 通配符会溢出到全站其他页面；
   3) 常驻动画：infinite 的缩放 / 阴影 / 渐变位移动画每帧都要重绘；
   4) 死代码：模板与脚本都不再引用的选择器。
   设计令牌统一为 --tokyo-* 前缀，文章区的排版令牌收敛到 .tokyo-description-body。
   ========================================================================== */

/* ==========================================================================
   §1 公告弹窗正文排版
   ========================================================================== */
.tokyo-notice-popup-inner h5 {
    margin: 0;
    color: #919ca7;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.tokyo-notice-popup-inner p {
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.tokyo-notice-popup-inner strong {
    color: #de2727;
}

.tokyo-notice-popup-inner blockquote {
    margin: 10px 0;
    color: #e67e23;
}

.tokyo-notice-popup-inner a {
    color: #3688fc;
}

/* ==========================================================================
   §2 引导贴纸卡（教程入口）+ 温馨提示
   ========================================================================== */
.sticker-wrap {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 10px;
    text-align: left;
}

.sticker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.sticker-btn,
.sticker-btn:hover,
.sticker-btn:focus {
    text-decoration: none;
}

.alipay-guide-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid rgba(22, 119, 255, 0.28);
    border-radius: 11px;
    color: #ffffff;
    background:
        radial-gradient(circle at 0 50%, transparent 0, transparent 6px, #1677ff 7px),
        radial-gradient(circle at 100% 50%, transparent 0, transparent 6px, #1677ff 7px),
        linear-gradient(135deg, #2f8cff 0%, #1677ff 48%, #0958d9 100%);
    box-shadow: 0 7px 18px rgba(22, 119, 255, 0.24);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.alipay-guide-card::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    right: 72px;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0 45%, transparent 45% 100%);
    background-size: 1px 7px;
}

/* 流光只在悬停时跑：常驻 infinite 会让这条卡片持续重绘 */
.alipay-guide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 35%, transparent 58%);
    transform: translateX(-120%);
    pointer-events: none;
}

.alipay-guide-card:hover::after,
.alipay-guide-card:focus-visible::after {
    animation: alipayGuideShine 0.9s ease-in-out;
}

.alipay-guide-card:hover,
.alipay-guide-card:focus {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(22, 119, 255, 0.42);
    box-shadow: 0 10px 22px rgba(22, 119, 255, 0.30);
}

.alipay-guide-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    padding: 0 7px;
    border-radius: 11px 0 9px 0;
    background: rgba(255, 255, 255, 0.96);
    color: #1677ff;
    font-size: 9px;
    font-weight: 900;
    line-height: 18px;
    letter-spacing: 0.2px;
}

.alipay-guide-ico {
    position: relative;
    z-index: 1;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-top: 4px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1677ff;
    font-size: 15px;
    box-shadow: inset 0 -3px 8px rgba(22, 119, 255, 0.12), 0 4px 10px rgba(0, 52, 145, 0.16);
}

.alipay-guide-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
    padding-right: 8px;
    line-height: 1.22;
}

.alipay-guide-text strong {
    display: block;
    max-width: 100%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.alipay-guide-text em {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alipay-guide-go {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 62px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #ffffff;
    color: #1677ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 26px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 52, 145, 0.16);
}

.alipay-guide-arrow {
    display: none;
}

.warm-tip-line {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(250, 140, 22, 0.22);
    border-radius: 9px;
    color: #7a3b00;
    background: #fff7e6;
    box-shadow: 0 4px 10px rgba(250, 140, 22, 0.08);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.warm-tip-line i {
    margin-right: 4px;
    color: #fa8c16;
}

@keyframes alipayGuideShine {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 767px) {
    .sticker-row {
        gap: 8px;
    }

    .alipay-guide-card {
        min-height: 48px;
        padding: 8px 9px;
        border-radius: 10px;
    }

    .alipay-guide-card::before {
        right: 64px;
    }

    .alipay-guide-ico {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .alipay-guide-text strong {
        font-size: 12.5px;
    }

    .alipay-guide-go {
        min-width: 54px;
        height: 24px;
        padding: 0 7px;
        font-size: 10px;
        line-height: 24px;
    }

    .warm-tip-line {
        font-size: 11px;
        padding: 7px 9px;
    }
}

/* ==========================================================================
   §3 详情页标题右侧的类型胶囊
   ========================================================================== */
.tokyo-item-inline-title span {
    display: inline-block;
    padding: 0.2em 1.2em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.04);
    color: #1e1e2a;
    font-size: 0.6em;
    font-weight: 500;
    letter-spacing: 0.5px;
    vertical-align: middle;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tokyo-item-inline-title span:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   §4 文章区（宝贝详情）排版
   令牌原先定义在 :root，通用名（--text / --border / --primary …）会溢出到
   全站其他页面；这里收敛到 .tokyo-description-body 内部并加 --doc- 前缀。
   2026-10-16：base 默认值也统一到品牌族与全站灰阶（原为蓝紫 #4f6ef7/#7c5cff、
   绿 #10b981、Tailwind 灰 #1f2937/#4b5563/#94a3b8），保证任何引用场景下
   都不会再出现第二套色调。
   ========================================================================== */
.tokyo-description-body {
    --doc-primary: var(--tk-accent);
    --doc-primary-2: var(--tk-accent);
    --doc-primary-soft: var(--tk-accent-soft);
    --doc-accent: var(--tk-success);
    --doc-danger: var(--tk-danger);
    --doc-text: var(--tk-ink);
    --doc-text-2: var(--tk-sub);
    --doc-muted: var(--tk-faint);
    --doc-border: var(--tk-line-soft);
    --doc-radius: 16px;
    --doc-radius-sm: 10px;
    --doc-shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.04), 0 1px 2px rgba(31, 41, 55, 0.04);
    --doc-t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--doc-text);
}

/* 顶部一条静态渐变条（原为 infinite 位移动画，每 6s 全宽重绘一次）。
   颜色原为蓝→紫，与本主题的黑白灰基调冲突，收敛为中性渐隐细线。 */
.tokyo-description-body::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg,
    rgba(28, 32, 36, 0.5) 0%,
    rgba(28, 32, 36, 0.08) 55%,
    rgba(28, 32, 36, 0) 100%);
}

.tokyo-description-body > p,
.intro-block p {
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0 var(--doc-radius-sm) var(--doc-radius-sm) 0;
    background: linear-gradient(90deg, var(--doc-primary-soft), transparent 60%);
    color: var(--doc-text-2);
    font-size: clamp(0.94rem, 2.4vw, 1rem);
    transition: transform var(--doc-t);
}

.tokyo-description-body > p:hover {
    transform: translateX(2px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed var(--doc-border);
    color: var(--doc-text);
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 700;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    margin-right: 0.15rem;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--doc-primary), var(--doc-primary-2));
}

.section-title i {
    color: var(--doc-primary);
    font-size: 1.15em;
}

/* 「新号必看」角标：去掉原来的无限缩放脉冲（每帧重绘 box-shadow） */
.tag {
    display: inline-block;
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #fff3e0;
    color: #9a5b00;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-list,
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

/* 2026-10-16：底色由蓝紫渐变（#fafbff/#f5f7fc）改中性浅灰，
   hover 由蓝色光晕（rgba(79,110,247,.25)）改品牌橙浅底，彻底去掉文章区残余蓝色。 */
.feature-list li,
.info-list li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    border: 1px solid var(--doc-border);
    border-radius: var(--doc-radius-sm);
    background: var(--tk-well);
    color: var(--doc-text-2);
    font-size: clamp(0.92rem, 2.4vw, 0.98rem);
    transition: transform var(--doc-t), box-shadow var(--doc-t), border-color var(--doc-t), background var(--doc-t);
}

.feature-list li::before,
.info-list li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--doc-primary);
    box-shadow: 0 0 0 4px var(--tk-accent-soft);
}

.feature-list li:hover,
.info-list li:hover {
    transform: translateY(-2px);
    border-color: var(--tk-accent);
    background: var(--tk-accent-soft);
    box-shadow: var(--doc-shadow-sm);
}

.feature-list li strong,
.info-list li strong {
    color: var(--doc-text);
    font-weight: 600;
}

.feature-list li p,
.info-list li p {
    display: inline;
    margin: 0;
}

.highlight {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    border: 1px solid var(--tk-accent-soft);
    border-radius: 6px;
    background: var(--tk-accent-soft);
    color: var(--doc-primary);
    font-weight: 600;
}

.divider-light {
    height: 1px;
    margin: 1.5rem 0;
    border: none;
    background: linear-gradient(90deg, transparent, var(--doc-border), transparent);
}

.support-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.8rem;
    padding: 1.1rem 1.25rem;
    border: 1px dashed #dce3f5;
    border-radius: var(--doc-radius);
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
}

.support-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.support-note i {
    width: 1.4rem;
    color: var(--doc-primary);
    font-size: 1rem;
    text-align: center;
}

.support-note strong {
    color: var(--doc-text);
}

.support-note .time-badge {
    margin-left: auto;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--tk-line);
    border-radius: 999px;
    background: var(--tk-card);
    color: var(--tk-ink);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.copyright-line {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--doc-border);
    color: var(--doc-muted);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    text-align: center;
}

.copyright-line i {
    margin-right: 4px;
    color: var(--doc-accent);
}

@media (max-width: 767px) {
    .panel-body.tokyo-description-body {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .section-title {
        margin: 1.3rem 0 0.8rem;
        font-size: 1.05rem;
    }

    .tag {
        margin-left: 0;
        font-size: 0.66rem;
        padding: 0.15rem 0.5rem;
    }

    .feature-list li,
    .info-list li {
        padding: 0.78rem 0.9rem 0.78rem 2.3rem;
        font-size: 0.92rem;
    }

    .feature-list li::before,
    .info-list li::before {
        left: 0.85rem;
        top: 1rem;
        width: 7px;
        height: 7px;
    }

    .support-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    .support-note .time-badge {
        margin-left: 0;
        white-space: normal;
    }
}

/* ==========================================================================
   §5 全局规则收敛
   原先的 ::-webkit-scrollbar / prefers-reduced-motion 的 * / print 里的 body
   会作用到全站（含后台），这里全部限定在 .tokyo-theme 内。
   ========================================================================== */
.tokyo-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tokyo-theme ::-webkit-scrollbar-track {
    background: transparent;
}

/* 2026-10-16：滚动条 thumb 原为第五套蓝色 rgba(79,110,247,…)，改为中性墨色，
   与全站灰阶一致；hover 加深但不引色。 */
.tokyo-theme ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(22, 24, 29, 0.18);
}

.tokyo-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 24, 29, 0.34);
}

@media (prefers-reduced-motion: reduce) {
    .tokyo-theme *,
    .tokyo-theme *::before,
    .tokyo-theme *::after {
        animation: none !important;
        transition: none !important;
    }

    .tokyo-theme {
        scroll-behavior: auto !important;
    }
}

@media print {
    .tokyo-theme {
        background: #fff;
    }

    .tokyo-theme .tokyo-description-body {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .tokyo-theme .service-float-wrapper,
    .tokyo-theme .tokyo-nav-shell {
        display: none;
    }
}

/* ==========================================================================
   §6 在线客服：悬浮按钮 + 弹窗
   ========================================================================== */
.service-float-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 2026-10-16 遮挡修复：详情页移动端把结算栏常驻底部（.tk-aside fixed、z-index 40），
   客服浮标原 bottom:24px 正好压在"立即支付"上、且它 z-index 9999 更高，
   导致支付按钮被挡住点不到。详情页内将其上移到结算栏之上（56px 圆钮 + 16px 间距 + 安全区）。 */
.tokyo-theme:has(.tk-aside) .service-float-wrapper {
    bottom: calc(96px + env(safe-area-inset-bottom));
}

/* 2026-10-16 配色收口：原为硬编码藏青 #1a1a2e→#16213e（第三套色，与导航黑/白/橙基调冲突），
   统一改为主题黑族。保留轻微深浅渐变，仍能读出"浮起"的层次感。 */
.service-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2f36, var(--tokyo-black));
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.service-float-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.service-float-btn:active {
    transform: scale(0.94);
}

/* 在线状态圆点：去掉无限扩散动画（animation 每帧重绘 box-shadow） */
.service-float-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--tokyo-black);
    border-radius: 50%;
    background: #22c55e;
}

.service-float-label {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
    user-select: none;
}

.service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.service-modal-box {
    width: 92%;
    max-width: 400px;
    border: 1px solid var(--tk-line);
    border-radius: 20px;
    background: var(--tk-card);
    box-shadow: var(--tokyo-shadow-elevated);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.service-modal-overlay.active .service-modal-box {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.service-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--tk-line);
}

.service-modal-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tk-ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-modal-header h4 i {
    color: var(--tk-accent);
    font-size: 20px;
}

.service-modal-close {
    padding: 0 4px;
    border: none;
    background: none;
    color: var(--tk-faint);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.service-modal-close:hover {
    color: var(--tk-ink);
}

.service-modal-body {
    padding: 18px 24px 26px;
}

.service-modal-body .service-greeting {
    margin-bottom: 14px;
    color: var(--tk-sub);
    font-size: 13.5px;
    line-height: 1.7;
}

.service-modal-body .service-greeting strong {
    color: var(--tk-ink);
}

.service-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tk-line-soft);
}

.service-info-item:last-of-type {
    border-bottom: none;
}

.service-info-item .label {
    flex-shrink: 0;
    min-width: 70px;
    color: var(--tk-faint);
    font-size: 13px;
}

.service-info-item .value {
    color: var(--tk-ink);
    font-size: 14.5px;
    font-weight: 500;
    word-break: break-all;
}

.service-info-item .value.qq-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tk-accent-ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.service-info-item .value.qq-number .copy-hint {
    padding: 2px 10px;
    border: 1px solid var(--tk-line);
    border-radius: 12px;
    background: var(--tk-well);
    color: var(--tk-sub);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-info-item .value.qq-number .copy-hint:hover {
    border-color: var(--tk-accent);
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.service-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-actions .btn:active {
    transform: scale(0.98);
}

/* 主动作走品牌橙，与应用内其余主按钮一致（原为 QQ 蓝 #12b7f5） */
.service-actions .btn-qq {
    background: var(--tk-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 100, 30, 0.28);
}

.service-actions .btn-qq:hover {
    background: var(--tk-accent-strong);
    box-shadow: 0 6px 20px rgba(245, 100, 30, 0.34);
}

.service-actions .btn-copy {
    border-color: var(--tk-line-strong);
    background: var(--tk-card);
    color: var(--tk-ink);
}

.service-actions .btn-copy:hover {
    border-color: var(--tk-accent);
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

.service-actions .btn-copy.copied {
    border-color: var(--tk-success);
    background: var(--tk-success);
    color: #ffffff;
}

.service-modal-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--tk-line-soft);
    color: var(--tk-faint);
    font-size: 12px;
    letter-spacing: 0.2px;
    text-align: center;
}

.service-modal-footer a {
    color: var(--tk-sub);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.service-modal-footer a:hover {
    color: var(--tk-accent-ink);
}

/* ==========================================================================
   响应式断点规范（2026-10-16 审计统一）
   历史上有 9 种断点（767 / 767.98 / 1024 / 1199 / 640 / 576 / 480 / 400 / print），
   同一种机型会同时命中多条互相覆盖。现行 4 档 + 2 个局部微调：
     ≤1199px  顶栏折叠（navbar-expand-xl 的边界，勿改）
     ≤1024px  平板横屏 / 窄桌面
     ≤767px   手机（主移动端断点，绝大多数移动样式放这里）
     ≤480px   小屏手机
     ≤640px / ≤400px  仅用于详情页商品小图的尺寸微调（.tk-thumb）
   新增规则请归到这 4 档之一，不要再造新数值。
   ========================================================================== */
@media (max-width: 576px) {
    .service-float-wrapper {
        right: 16px;
        bottom: 16px;
    }

    .service-float-btn {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    .service-float-label {
        padding: 3px 10px;
        font-size: 11px;
    }

    .service-modal-box {
        max-width: 94%;
    }

    .service-modal-body {
        padding: 16px 18px 22px;
    }

    .service-info-item .label {
        min-width: 60px;
        font-size: 12px;
    }

    .service-info-item .value.qq-number {
        font-size: 16px;
    }

    .service-actions .btn {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   §7 卡密展示与加载态（assets/user/controller/index/query.js 依赖这些类名）
   ========================================================================== */
.card-display.loading {
    padding: 2rem 1.5rem;
    border-color: #b8d0f0;
    background: linear-gradient(145deg, #f0f6ff, #e8f0fe);
    box-shadow: 0 8px 32px rgba(50, 100, 200, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #0b1f3b;
    animation: loadingPulse 2.4s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%,
    100% {
        box-shadow: 0 8px 32px rgba(50, 100, 200, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    50% {
        box-shadow: 0 12px 48px rgba(50, 100, 200, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}

.card-display.loading .loading-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

/* 原为 background-clip:text 的无限渐变位移，代价高；改为静态渐变文字 */
.card-display.loading .loading-main {
    background: linear-gradient(135deg, #1a4a8a, #3b7fd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.card-display.loading .loading-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1.6rem;
    border: 1px solid rgba(60, 120, 210, 0.12);
    border-radius: 40px;
    background: rgba(60, 120, 210, 0.08);
    color: #4a6a8f;
    font-size: 0.85rem;
    font-weight: 430;
    letter-spacing: 0.3px;
}

.card-display.loading .loading-progress {
    position: relative;
    width: 100%;
    max-width: 240px;
    height: 3.5px;
    margin-top: 0.8rem;
    border-radius: 20px;
    background: rgba(60, 120, 210, 0.12);
    overflow: hidden;
}

.card-display.loading .loading-progress .bar {
    display: block;
    width: 30%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #2b6fc4, #7fb0f0, #2b6fc4);
    animation: progressSlide 1.8s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        transform: translateX(-60%) scaleX(0.8);
    }

    50% {
        transform: translateX(150%) scaleX(1.2);
    }

    100% {
        transform: translateX(-60%) scaleX(0.8);
    }
}

.card-display.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.card-display.fetched {
    border-color: #8bc3a8;
    background: #f6faf9;
    box-shadow: 0 4px 16px rgba(60, 180, 120, 0.10);
    color: #1a3d2e;
    animation: fetchedPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-display.fetched .loading-text .loading-main {
    background: linear-gradient(135deg, #1a6b4a, #34a87c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-display.fetched .loading-sub,
.card-display.fetched .loading-progress,
.card-display.error .loading-sub,
.card-display.error .loading-progress {
    display: none;
}

@keyframes fetchedPop {
    0% {
        opacity: 0.7;
        transform: scale(0.96);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.card-display.error {
    border-color: #f5b8b0;
    background: #fff6f5;
    box-shadow: 0 4px 16px rgba(220, 60, 60, 0.08);
    color: #8a2a1f;
}

.card-display.error .loading-text .loading-main {
    background: linear-gradient(135deg, #b33a2a, #d95a4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 480px) {
    .card-display.loading {
        padding: 1.5rem 1rem;
    }

    .card-display.loading .loading-main {
        font-size: 0.95rem;
    }

    .card-display.loading .loading-sub {
        padding: 0.2rem 1.2rem;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   §8 复制 / 下载按钮（原文件里定义了 3 遍，这里合并为一份）
   ========================================================================== */
.custom-download-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.custom-download-btn .copy-btn,
.custom-download-btn .download-btn,
.custom-download-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 16px;
    border: 1px solid var(--tk-line);
    border-radius: 999px;
    background: var(--tk-well);
    color: var(--tk-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-download-btn .copy-btn:hover,
.custom-download-btn .download-btn:hover,
.custom-download-btn a:hover {
    border-color: var(--tk-line-strong);
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.custom-download-btn .copy-btn:active,
.custom-download-btn .download-btn:active,
.custom-download-btn a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================================================================
   §9 店铺公告条
   ========================================================================== */
.tokyo-notice-strip-wrap {
    width: 100%;
    padding: 14px 0 2px;
}

.tokyo-notice-strip {
    position: relative;
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    border: 1px solid var(--tokyo-border);
    border-radius: var(--tokyo-radius-md);
    background: var(--tokyo-surface);
    box-shadow: var(--tokyo-shadow-soft);
    overflow: hidden;
    animation: tokyoNoticeFadeIn 0.32s ease both;
}

.tokyo-notice-strip-inner {
    padding: 12px 18px 14px;
}

/* 头部：左侧「公告」胶囊 + 右侧「展开全文 / 收起」 */
.tokyo-notice-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.tokyo-notice-strip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px 3px 9px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-black);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.tokyo-notice-strip-chip i {
    font-size: 0.82rem;
}

.tokyo-notice-strip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px; /* 热区达标（原 40px） */
    padding: 4px 14px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-muted-strong);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tokyo-notice-strip-toggle:hover {
    border-color: var(--tokyo-black);
    background: var(--tokyo-black);
    color: #ffffff;
}

.tokyo-notice-strip-toggle i {
    font-size: 0.76rem;
    transition: transform 0.2s ease;
}

/* 展开态箭头朝上 */
.tokyo-notice-strip:not(.is-collapsed) .tokyo-notice-strip-toggle i {
    transform: rotate(180deg);
}

.tokyo-notice-strip-content {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--tokyo-text);
    font-size: 0.86rem;
    line-height: 1.65;
}

.tokyo-notice-strip-content p,
.tokyo-notice-strip-content ul {
    margin: 0 0 8px;
}

.tokyo-notice-strip-content > *:last-child {
    margin-bottom: 0;
}

/* 折叠态：只留约两行 + 底部渐隐。
   不用 -webkit-line-clamp —— 正文是多块元素，line-clamp 对块级子元素不可靠。 */
.tokyo-notice-strip.is-collapsed .tokyo-notice-strip-content {
    position: relative;
    max-height: calc(1.65em * 2);
    overflow: hidden;
}

.tokyo-notice-strip.is-collapsed .tokyo-notice-strip-content::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1.6em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--tokyo-surface) 72%);
    pointer-events: none;
}

/* ---- 公告正文（gonggao.html）结构样式 ---- */
.notice-lead {
    margin: 0 0 8px;
    color: var(--tokyo-text);
    font-weight: 600;
}

.notice-list {
    margin: 0 0 8px;
    padding-left: 1.15em;
    list-style: disc;
    color: var(--tokyo-muted-strong);
}

.notice-list li {
    margin: 2px 0;
}

.notice-tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 10px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(176, 180, 186, 0.16);
    color: var(--tokyo-muted-strong);
}

.notice-tip i {
    margin-top: 3px;
    color: var(--tk-warn, #b07709);
}

/* 教程 / 下载入口做成胶囊按钮：同时解决「裸 URL 当文字」与「20px 热区」 */
.notice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.notice-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 13px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-surface);
    color: var(--tokyo-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.notice-links a:hover {
    border-color: var(--tokyo-black);
    background: var(--tokyo-black);
    color: #ffffff;
}

.notice-links a i:last-child {
    opacity: 0.55;
    font-size: 0.72rem;
}

.notice-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid var(--tokyo-border);
    color: var(--tokyo-muted-soft);
    font-size: 0.74rem;
}

.notice-foot strong {
    color: var(--tokyo-muted-strong);
}

@keyframes tokyoNoticeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .tokyo-notice-strip-wrap {
        padding: 10px 0 2px;
    }

    .tokyo-notice-strip {
        width: calc(100% - 24px);
        border-radius: 14px;
    }

    .tokyo-notice-strip-inner {
        padding: 10px 14px 12px;
    }

    .tokyo-notice-strip-content {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .tokyo-notice-strip.is-collapsed .tokyo-notice-strip-content {
        max-height: calc(1.6em * 2);
    }

    .notice-links {
        gap: 7px;
    }

    .notice-links a {
        min-height: 44px;
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    .notice-foot {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   §10 遗留色系已清理
   .maipro-* / .tg-* / .notice-box 是上一版设计的残留（Telegram 蓝 #0088cc +
   浅绿底 #f4fff8），主题内零引用，2026-10-16 审计后删除，避免与 --tk-* 色系打架。
   ========================================================================== */

/* ==========================================================================
   §12 详情页（参考稿版式）
   结构：面包屑 → 商品信息头（纯文字）→ 下单区（左「PURCHASE / 选择购买信息」卡
   + 右粘性「应付金额 / 付款」卡）→「DETAILS / 宝贝详情」卡。
   注意：.vstack（<form>）必须是唯一下单表单容器（引擎对它 serializeArray() 取全部入参）。
   这里把分栏放在 .tk-detail 上：表单占左列，结算卡 .tk-aside 作为 .tk-detail 的直接
   子元素占右列 —— 付款区（.cash-pay / .pay-list）在表单外，引擎用全局选择器取它，
   不依赖表单成员关系。窄屏 .tk-detail 改 display:block，结算卡才能真正贴底吸底。
   ========================================================================== */
.tk-detail {
    /* 2026-10-16：原先这里重复定义了一整套灰阶与品牌橙（与 :root 完全同值），
       改色时容易只改一处。现全部删除、直接继承 :root；此处只保留详情页专属令牌。 */
    --tk-r-card: 16px;
    --tk-r-well: 14px;
    --tk-r-ctl: 10px;

    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 18px;
    align-content: start;
    align-items: start;
}

/* 面包屑 / 信息头 / 两列包裹层 / 宝贝详情 依次单列排布 */
.tk-crumbs,
.tk-head,
.tk-order-wrap,
.tk-details {
    grid-column: 1 / -1;
}

/* 两列包裹层：表单左列 + 结算卡右列。这是 .tk-aside 的 sticky 包含块，
   高度随表单而定，从而让付款卡吸顶到详情卡开始即停止。 */
.tk-order-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px);
    column-gap: 18px;
    align-items: start;
}

/* ---------------- 面包屑 ---------------- */
.tk-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tk-faint);
    font-size: 0.78rem;
}

.tk-crumbs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 12px 4px;
    margin: -12px -4px;
    color: var(--tk-sub);
    font-weight: 600;
    transition: color 0.18s ease;
}

.tk-crumbs-back:hover {
    color: var(--tk-ink);
}

.tk-crumbs-sep {
    color: var(--tk-line-strong);
}

/* ---------------- 商品信息头 ---------------- */
.tk-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

/* 信息头 = 商品小图 + 文字列（标题 / 标签 / 说明） */
.tk-head-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

/* 商品小图：白底 + 细描边 + 轻投影。object-fit: contain 保证任意比例的
   封面（方形图标 / 竖长截图 / 外链图）都完整可见，不被裁切。 */
.tk-thumb {
    flex: 0 0 auto;
    display: block;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 1px solid var(--tk-line);
    border-radius: 16px;
    background: var(--tk-card);
    box-shadow: 0 1px 2px rgba(22, 24, 29, 0.06);
    overflow: hidden;
}

.tk-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--tk-well);
    object-fit: contain;
    /* 封面 404 / 外链失效时：不显示破图与超长 alt 文案，只留灰底方块 */
    color: transparent;
    font-size: 0;
}

.tk-head-text {
    flex: 1 1 auto;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.tk-title {
    font-size: clamp(1.22rem, 1.9vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--tk-ink);
}

/* 标题里的类型胶囊（TG协议 / AIP号）：覆盖 §3 的深色底与 hover 抬升 */
.tk-title span {
    margin-left: 8px;
    padding: 0.24em 0.8em;
    border: 1px solid var(--tk-line);
    border-radius: 999px;
    background: var(--tk-well);
    color: var(--tk-sub);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: middle;
}

.tk-title span:hover {
    background: var(--tk-well);
    border-color: var(--tk-line);
    box-shadow: none;
}

.tk-tags .badge-soft {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.tk-tags .badge-soft-success {
    background: #e9f7ef;
    color: #15803d;
}

.tk-tags .badge-soft-primary,
.tk-tags .badge-soft-info {
    background: var(--tk-well);
    color: var(--tk-sub);
}

.tk-lede {
    margin: 0;
    color: var(--tk-faint);
    font-size: 0.8rem;
}

.tk-share {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tk-line);
    border-radius: 12px;
    background: var(--tk-card);
    color: var(--tk-sub);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tk-share:hover {
    color: var(--tk-ink);
    border-color: var(--tk-line-strong);
    transform: translateY(-1px);
}

/* ---------------- 下单区两列 ---------------- */
.tk-order {
    grid-column: 1;
    margin: 0;
}

.tk-card {
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-card);
    background: var(--tk-card);
}

.tk-card--purchase {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.tk-card-head {
    display: grid;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tk-line-soft);
}

.tk-eyebrow {
    color: var(--tk-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
}

.tk-card-title {
    margin: 0;
    color: var(--tk-ink);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ---------------- 字段分组块 ---------------- */
.tk-fields {
    display: grid;
    gap: 12px;
}

.tk-fields .tokyo-field {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--tk-r-well);
    background: var(--tk-well);
}

.tk-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tk-fields .form-label {
    margin: 0;
    color: var(--tk-ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.tk-field-hint {
    color: var(--tk-faint);
    font-size: 0.74rem;
}

/* 只作用于 .tokyo-field 的直接子输入框；数量 / 验证码在 .input-group 内，单独处理 */
.tk-fields .tokyo-field > .form-control {
    min-height: 44px;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-ctl);
    background: var(--tk-card);
    color: var(--tk-ink);
    font-size: 0.88rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tk-fields .tokyo-field > .form-control::placeholder {
    color: var(--tk-faint);
}

.tk-fields .tokyo-field > .form-control:focus {
    border-color: var(--tk-accent);
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.tk-fields .optional-card {
    min-height: 44px;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-ctl);
    background: var(--tk-card);
    color: var(--tk-sub);
    font-size: 0.84rem;
}

/* 规格胶囊 */
.tk-fields .sku-list {
    padding-top: 0;
    gap: 10px 8px;
}

.tk-fields .sku {
    min-height: 38px;
    gap: 0;
    padding: 0 14px;
    border: 1px solid var(--tk-line);
    background: var(--tk-card);
    color: var(--tk-sub);
    font-size: 0.82rem;
}

.tk-fields .sku.has-money {
    padding-right: 14px;
}

.tk-fields .sku:hover {
    border-color: var(--tk-line-strong);
    color: var(--tk-ink);
}

.tk-fields .sku.is-primary {
    background: #1c1b1a;
    background: #1c1b1a;
    color: #ffffff;
}

/* 价格角标由「浮标」改为行内后缀：不再压到上方标签，也不再随行高跳动 */
.tk-fields .badge-money {
    position: static;
    top: auto;
    right: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    opacity: 0.72;
    transform: none;
    z-index: auto;
}

.tk-fields .badge-money::after {
    content: none;
}

.tk-fields .sku.is-primary .badge-money {
    opacity: 0.85;
    color: white;
}

/* 数量：无分隔线的胶囊控件 */
.tk-fields .qty-group {
    width: 132px;
    max-width: 132px;
    min-height: 44px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    border: 1px solid var(--tk-line);
    background: var(--tk-card);
    box-shadow: none;
}

.tk-fields .qty-group button {
    background: transparent;
    color: var(--tk-sub);
    font-size: 0.78rem;
    transition: color 0.18s ease;
}

.tk-fields .qty-group button:hover {
    color: var(--tk-ink);
    background: transparent;
}

.tk-fields .qty-group button:first-child,
.tk-fields .qty-group button:last-child {
    border: 0;
}

.tk-fields .qty-group .form-control {
    color: var(--tk-ink);
    font-size: 0.95rem;
    font-weight: 700;
}

/* 人机验证：由「胶囊套胶囊」改为平铺一行 */
.tk-fields .tokyo-captcha-group {
    width: 100%;
    max-width: none;
    min-height: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tk-fields .tokyo-captcha-group .captcha-input {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-ctl);
    background: var(--tk-card);
    color: var(--tk-ink);
    font-size: 0.88rem;
}

.tk-fields .tokyo-captcha-group .captcha-input:focus {
    border-color: var(--tk-accent);
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.tk-fields .tokyo-captcha-group .input-group-append {
    padding-left: 0;
}

.tk-fields .tokyo-captcha-group .input-group-append::before {
    content: none;
}

.tk-fields .captcha-img {
    width: 104px;
    height: 44px;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-r-ctl);
}

/* 2026-10-16 遮挡修复：移动端客服浮标（fixed，右侧 16px）会压住验证码图片，
   导致看不到/点不到"点击刷新"。窄屏把输入框与图片改为两行布置，图片靠左，
   彻底避开浮标占据的右侧 80px 区域。 */
@media (max-width: 767px) {
    .tk-fields .tokyo-captcha-group {
        flex-wrap: wrap;
    }

    .tk-fields .tokyo-captcha-group .captcha-input {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .tk-fields .captcha-img {
        width: 120px;
        height: 44px;
    }
}

/* ---------------- 右侧结算卡 ---------------- */
/* 作为 .tk-order-wrap（两列包裹层）的直接子元素，sticky 的包含块高度 = 表单列高度，
   付款卡只在表单区域内吸顶，详情卡开始即停止跟随。窄屏 .tk-order-wrap 转单列后
   再改贴底吸底（见响应式段）。 */
.tk-aside {
    grid-column: 2;
    position: sticky;
    top: 96px;
    align-self: start;
    min-width: 0;
    /* 宽度由 clamp 在 300–360px 之间自适应：窄视口取 300px 保证按钮不挤压，
       宽视口取 360px 填掉原先 320px 固定宽留下的右侧留白，视觉更饱满。 */
}

.tk-summary {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.tk-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tk-price-label {
    color: var(--tk-faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.tk-summary .tokyo-item-price {
    display: block;
    min-height: 0;
    margin: 0;
}

/* 金额作为决策关键信息，改用品牌橙强调（原为纯黑 --tk-ink，与标题同色、
   在黑白灰界面里没有视觉锚点）。深橙 --tk-accent-strong 在白色卡底上对比度达标。 */
.tk-summary .tokyo-item-price .price {
    justify-content: flex-end;
    min-width: 0;
    min-height: 0;
    color: var(--tk-accent-strong);
    font-size: clamp(1.75rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.tk-summary .tokyo-item-price .unit {
    color: var(--tk-accent);
    font-size: 0.95rem;
    font-weight: 700;
    transform: none;
}

.tk-summary .tokyo-item-price .price-spinner {
    min-width: 0;
    min-height: 0;
}

.tk-summary .tokyo-item-price .price-amount {
    font-size: inherit;
    letter-spacing: inherit;
}

/* 付款区：与金额行之间用细虚线分层。.cash-pay 的显隐由引擎控制，这里不设 display */
.tk-summary .cash-pay {
    padding: 14px 0 0;
    margin-top: 2px;
    border: 0;
    border-top: 1px dashed var(--tk-line);
    border-radius: 0;
    background: transparent;
}

.tk-summary .cash-pay .form-label {
    display: block;
    margin: 0 0 10px;
    color: var(--tk-sub);
    font-size: 0.8rem;
    font-weight: 600;
}

.tk-summary .cash-pay .form-label i {
    color: var(--tk-faint);
}

.tk-summary .pay-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

/* PC：与移动端同一套「白卡支付项」，悬停时橙色描边 + 浅橙底，贴合主题点缀色 */
.tk-summary .pay-list .pay {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 16px;
    gap: 12px;
    border: 1px solid var(--tk-line-strong);
    border-radius: 14px;
    background: #ffffff;
    color: var(--tk-ink);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tk-summary .pay-list .pay:hover {
    border-color: var(--tk-accent);
    background: var(--tk-accent-soft);
    color: var(--tk-ink);
    transform: none;
    box-shadow: 0 6px 16px rgba(245, 100, 30, 0.12);
}

.tk-summary .pay-list .pay img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

/* 仅限会员：浅底提示块 + 通栏主按钮 */
.tk-summary .tokyo-login-required-pay {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tk-summary .tokyo-login-required-copy {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    background: var(--tk-well);
}

.tk-summary .tokyo-login-required-copy strong {
    color: var(--tk-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.tk-summary .tokyo-login-required-copy span {
    color: var(--tk-sub);
    font-size: 0.76rem;
    line-height: 1.5;
}

.tk-summary .tokyo-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
}

.tk-summary .tokyo-button-dark {
    background: var(--tk-accent);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(245, 100, 30, 0.26);
}

.tk-summary .tokyo-button-dark:hover {
    background: var(--tk-accent-strong);
}

/* ---------------- 宝贝详情 ---------------- */
.tk-details {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.tk-details-body {
    min-width: 0;
}

/* 文章区：去掉顶部渐变装饰线；段落的蓝紫渐变底 + 左侧色条一并改为纯文字。
   2026-10-16 补：原先把 --doc-primary 三点重映射到品牌橙，但**灰阶三点漏了** ——
   --doc-text(#1f2937) / --doc-text-2(#4b5563) / --doc-muted(#94a3b8) 仍在按 Tailwind 灰
   渲染，导致详情页可见文字色多达 13 种（首页只有 8）。这里一并收到 --tk-* 令牌族，
   使全站灰阶只有一套：--tk-ink / --tk-sub / --tk-faint。 */
.tk-details .tokyo-description-body {
    --doc-primary: var(--tk-accent);
    --doc-primary-2: var(--tk-accent);
    --doc-primary-soft: var(--tk-accent-soft);
    --doc-text: var(--tk-ink);
    --doc-text-2: var(--tk-sub);
    --doc-muted: var(--tk-faint);
    --doc-border: var(--tk-line-soft);
    --doc-accent: var(--tk-success);
}

.tk-details .tokyo-description-body::before {
    content: none;
}

.tk-details .tokyo-description-body > p,
.tk-details .intro-block p {
    margin: 0 0 0.85rem;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--tk-sub);
    font-size: 0.92rem;
    line-height: 1.9;
}

.tk-details .tokyo-description-body > p:hover {
    transform: none;
}

/* 文章区列表：把「一块块浅底盒子 + 蓝色光晕圆点」压成纯文字行（只留细分割线与
   一枚小方点），并与主行动色统一。原样式里的蓝紫渐变、硬编码蓝色（#4f6ef7）
   和 hover 抬升是上一版遗留，与参考稿的干净排版冲突。 */
.tk-details .feature-list,
.tk-details .info-list {
    gap: 0;
    margin: 0 0 1.4rem;
}

.tk-details .feature-list li,
.tk-details .info-list li {
    padding: 12px 0 12px 22px;
    border: 0;
    border-bottom: 1px solid var(--tk-line-soft);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--tk-sub);
    font-size: 0.9rem;
    line-height: 1.75;
    transform: none;
    transition: none;
}

.tk-details .feature-list li:last-child,
.tk-details .info-list li:last-child {
    border-bottom: 0;
}

.tk-details .feature-list li:hover,
.tk-details .info-list li:hover {
    transform: none;
    border-color: var(--tk-line-soft);
    background: none;
    box-shadow: none;
}

.tk-details .feature-list li::before,
.tk-details .info-list li::before {
    left: 2px;
    top: 19px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--tk-accent);
    box-shadow: none;
}

.tk-details .feature-list li strong,
.tk-details .info-list li strong {
    color: var(--tk-ink);
    font-weight: 600;
}

.tk-details .li-ico,
.tk-details .info-list li > i {
    margin-right: 8px;
    color: var(--tk-accent);
}

.tk-details .highlight {
    padding: 0.05rem 0.4rem;
    border: 0;
    border-radius: 6px;
    background: var(--tk-accent-soft);
    color: var(--tk-accent-strong);
    font-weight: 600;
}

.tk-details .divider-light {
    height: 1px;
    margin: 1.5rem 0;
    background: none;
    border-top: 1px solid var(--tk-line-soft);
}

/* ---- MarkdownBlog 插件自动生成的目录（TOC）----
   结构：<ul class="mdblog-toc"> → <li class="mdblog-toc-l2/-l3"> → <a href="#mdblog-...">
   这些 <a> 没有任何类名，插件自带样式也没给足热区：实测每条只有 17px 高，
   在触屏上几乎点不中。这里在文章区作用域内补足 44px 热区与主题色。 */
.tk-details .mdblog-toc a,
.tk-details .tokyo-description-body a[href^="#mdblog-"] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--tk-sub);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.tk-details .mdblog-toc a:hover,
.tk-details .tokyo-description-body a[href^="#mdblog-"]:hover {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
}

/* 目录层级缩进与层级标记 */
.tk-details .mdblog-toc li {
    list-style: none;
}

.tk-details .mdblog-toc-l3 a {
    padding-left: 26px;
    color: var(--tk-faint);
    font-size: 0.86rem;
}

/* 小标题：去掉左侧竖条（与行首图标重复），改为图标 + 细底线 */
.tk-details .section-title {
    margin: 1.6rem 0 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--tk-line-soft);
    color: var(--tk-ink);
    font-size: clamp(1rem, 2.6vw, 1.1rem);
}

.tk-details .section-title::before {
    content: none;
}

.tk-details .section-title i {
    color: var(--tk-accent);
    font-size: 1.05em;
}

.tk-details .tag {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-strong);
}

.tk-details .support-note {
    margin-top: 1.4rem;
    padding: 14px 16px;
    border: 1px solid var(--tk-line-soft);
    border-radius: 12px;
    background: var(--tk-well);
    color: var(--tk-sub);
    box-shadow: none;
}

.tk-details .support-note strong {
    color: var(--tk-ink);
}

.tk-details .support-note i {
    color: var(--tk-faint);
}

.tk-details .time-badge {
    border: 1px solid var(--tk-line);
    background: var(--tk-card);
    color: var(--tk-ink);
}

/* badge-soft 作为 <button> 时的默认样式重置 */
button.badge-soft {
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.badge-soft:hover {
    transform: translateY(-1px);
    box-shadow: var(--tokyo-shadow-soft);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    /* 单列：整页改为普通文档流（不再是 grid）。结算卡若留在 grid 行内，
       sticky 只能在自身行高内移动，等于不吸底；改成 block 后它的包含块是整张
       详情容器，才能真正贴底吸底。 */
    .tk-detail {
        display: block;
        padding-bottom: 84px;
    }

    .tk-detail > * + * {
        margin-top: 14px;
    }

    /* 两列包裹层转单列：表单在上、结算卡在下（同 block 流） */
    .tk-order-wrap {
        display: block;
    }

    /* 移动端结算栏常驻底部（fixed），脱离文档流；
       top:auto 抵消桌面 sticky 的 top:96px，否则 fixed 会被 top+bottom
       双向约束拉成整屏高。.tk-detail 的 padding-bottom 为其留白 */
    .tk-aside {
        grid-column: auto;
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
    }

    .tk-summary {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid var(--tk-line);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 30px rgba(22, 24, 29, 0.14);
    }

    .tk-price-row {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }

    .tk-summary .tokyo-item-price .price {
        justify-content: flex-start;
    }

    .tk-summary .cash-pay {
        flex: 0 0 auto;
    }

    /* 贴底栏里不再重复「付款方式」标题，按钮自身即说明 */
    .tk-summary .cash-pay .form-label {
        display: none;
    }

    .tk-summary .pay-list .pay {
        min-height: 44px;
        padding: 0 22px;
    }
}

@media (max-width: 640px) {
    .tk-detail {
        width: calc(100% - 24px);
        gap: 14px;
    }

    .tk-card--purchase {
        padding: 16px;
        gap: 14px;
    }

    .tk-details {
        padding: 16px;
        gap: 14px;
    }

    .tk-summary {
        padding: 12px 14px;
    }

    .tk-head {
        gap: 12px;
    }

    .tk-head-info {
        gap: 12px;
    }

    .tk-thumb {
        width: 52px;
        height: 52px;
        padding: 3px;
        border-radius: 14px;
    }

    .tk-thumb img {
        border-radius: 11px;
    }

    .tk-title {
        font-size: 1.16rem;
    }

    .tk-crumbs {
        font-size: 0.74rem;
    }

    .tk-fields .tokyo-field {
        padding: 12px 14px;
    }

    /* 贴底栏宽度有限：会员提示只保留结论句，按钮仍在 */
    .tk-summary .tokyo-login-required-pay {
        gap: 0;
    }

    .tk-summary .tokyo-login-required-copy {
        padding: 0;
        background: transparent;
    }

    .tk-summary .tokyo-login-required-copy strong {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .tk-summary .tokyo-login-required-copy span {
        display: none;
    }
}

/* 极窄屏（≤400px）：小图再收一档，给标题让出宽度 */
@media (max-width: 400px) {
    .tk-thumb {
        width: 44px;
        height: 44px;
        padding: 3px;
        border-radius: 12px;
    }

    .tk-thumb img {
        border-radius: 9px;
    }
}

/* ==========================================================================
   §13 支付方式弹出面板（窄屏 ≤1024px）
   只切 class、不移动 .cash-pay 节点：引擎用全局选择器 $('.pay-list').append()
   渲染支付按钮，复制节点会造成重复。桌面端支付列表保持内联。
   ========================================================================== */
.tk-sheet-top {
    display: none;
}

.tk-sheet-trigger {
    display: none;
}

@media (max-width: 1024px) {
    /* 贴底栏入口：价格在左，「选择支付方式」胶囊在右 */
    .tk-sheet-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 20px;
        border: 0;
        border-radius: 999px;
        background: #333;
        color: #ffffff;
        font-size: 0.88rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        box-shadow: 0 10px 22px rgba(245, 100, 30, 0.26);
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .tk-sheet-trigger:hover {
        background: var(--tk-accent-strong);
        transform: translateY(-1px);
    }

    /* .cash-pay 化身底部弹出面板：fixed 脱离贴底栏 flex 流，
       引擎 fadeIn 写入的内联 display 不影响这里的显隐（用 visibility/transform 控制） */
    .tk-summary .cash-pay {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: block;
        max-height: 78vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        margin-top: 0;
        padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 18px 18px 0 0;
        background: #ffffff;
        box-shadow: 0 -18px 48px rgba(22, 24, 29, 0.2);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .tk-summary .cash-pay.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    /* 面板头部（仅窄屏显示） */
    .tk-sheet-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid var(--tk-line);
    }

    .tk-sheet-title {
        display: grid;
        gap: 2px;
    }

    .tk-sheet-title strong {
        color: var(--tk-ink);
        font-size: 1.02rem;
        font-weight: 700;
    }

    .tk-sheet-title span {
        color: var(--tk-faint);
        font-size: 0.76rem;
    }

    .tk-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px; /* 32 → 44：关闭按钮是高频误触目标，热区必须达标 */
        height: 44px;
        flex: 0 0 44px;
        margin: -6px -8px 0 0;
        border: 0;
        border-radius: 50%;
        background: var(--tk-well);
        color: var(--tk-sub);
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .tk-sheet-close:hover {
        background: var(--tk-line-soft);
        color: var(--tk-ink);
    }

    /* 弹出面板里不再显示「付款方式」小标题，面板头部已说明用途 */
    .tk-summary .cash-pay .form-label {
        display: none;
    }

    /* 面板顶部抓手（纯视觉，示意可下滑关闭） */
    .tk-summary .cash-pay::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: var(--tk-line);
        transform: translateX(-50%);
    }

    /* 支付方式：两列卡片网格（参考稿样式） */
    .tk-summary .pay-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tk-summary .pay-list .pay {
        justify-content: flex-start;
        min-height: 52px;
        padding: 0 14px;
        gap: 10px;
        border: 1px solid var(--tk-line-strong);
        border-radius: 14px;
        background: #ffffff;
        color: var(--tk-ink);
        font-size: 0.86rem;
        font-weight: 600;
        box-shadow: none;
    }

    .tk-summary .pay-list .pay:hover {
        background: #ffffff;
        border-color: var(--tk-accent);
        color: var(--tk-ink);
        transform: none;
        box-shadow: none;
    }

    /* 触屏按压反馈：浅橙底 + 描边加深 */
    .tk-summary .pay-list .pay:active {
        background: var(--tk-accent-soft);
        border-color: var(--tk-accent-strong);
        box-shadow: none;
    }

    .tk-summary .pay-list .pay img {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }

    /* 弹出时的蒙层与背景锁滚动 */
    html.tk-pay-sheet-lock {
        overflow: hidden;
    }

    /* 关键：.tk-aside 是 position:sticky + z-index:20，会创建层叠上下文，
       把子元素 .cash-pay 的 z-index:1200 锁死在 z-index=20 的上下文里，
       结果蒙层(1100)盖在面板之上、点不到支付按钮。弹层打开时把 .tk-aside
       提升到 1300，使面板浮到蒙层(1100)之上。 */
    html.tk-pay-sheet-lock .tk-aside {
        position: relative;
        z-index: 1300;
    }

    html.tk-pay-sheet-lock::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(16, 18, 22, 0.45);
    }

    /* 弹层打开时收起客服悬浮球：它会浮在蒙层之上、挡住面板右下角 */
    html.tk-pay-sheet-lock .service-float-wrapper {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* 平时也把悬浮球抬到贴底结算栏上方，避免压住「选择支付方式」按钮 */
    .service-float-wrapper {
        bottom: 92px;
    }

    /* 会员专属提示在面板里恢复完整排版 */
    .tk-summary .tokyo-login-required-copy {
        padding: 14px;
        background: var(--tk-well);
    }

    .tk-summary .tokyo-login-required-copy span {
        display: block;
    }
}
#shuomingbuy {
    /* 公告正文容器。折叠 / 展开的排版统一由 §9 的
       .tokyo-notice-strip-content 控制，这里只做兜底，避免独立引用时无样式。 */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ==========================================================================
   §14 审计补丁（2026-10-16）
   第 3 批：字阶、信息头配重、单商品留白。集中放在末尾，便于回溯与回滚。
   ========================================================================== */

/* --- 1. 文章区标题层级：内容里的 h1~h6 不得压过卡片标题（H2 约 1.02rem），
        否则出现「H3 比 H2 大」的大纲视觉颠倒（实测 H2 24.6px / H3 25.6px）。 --- */
.tk-details-body h1,
.tk-details-body h2,
.tk-details-body h3,
.tk-details-body h4,
.tk-details-body h5,
.tk-details-body h6 {
    position: relative;
    margin: 1.25em 0 0.5em;
    padding-left: 10px;
    color: var(--tk-ink);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.tk-details-body h1::before,
.tk-details-body h2::before,
.tk-details-body h3::before,
.tk-details-body h4::before,
.tk-details-body h5::before,
.tk-details-body h6::before {
    content: "";
    position: absolute;
    top: 0.28em;
    left: 0;
    width: 3px;
    height: 0.92em;
    border-radius: 2px;
    background: var(--tk-accent);
}

.tk-details-body > :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

/* --- 2. 查询页页面标题：51.2px 的 hero 字号对一个表单页过重，
        收到与其它页面同一档（clamp 上限 2rem）。 --- */
.tokyo-query-header .tokyo-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

/* --- 3. 详情页信息头：小图放大、分享按钮不再孤零零吊在最右侧，
        而是跟标题同一行、与内容同宽，消除中间大片空白。 --- */
.tk-head {
    align-items: flex-start;
    gap: 14px;
}

.tk-thumb {
    width: 84px;
    height: 84px;
    border-radius: 18px;
}

.tk-thumb img {
    border-radius: 13px;
}

.tk-head-text {
    flex: 1 1 auto;
}

/* 分享按钮贴到文字列的右上角，而不是整个 header 的两端 */
.tk-head .tk-share {
    margin-left: auto;
    flex: 0 0 44px;
}

/* --- 4. 列表只有 1~2 个商品时表格下方大片空场：给容器一个下限高度，
        并在底部给出中性提示，避免看起来像加载失败。 --- */
.tokyo-table-wrap {
    min-height: 120px;
}

.tokyo-empty-row td {
    padding: 34px 16px !important;
    color: var(--tokyo-muted);
    text-align: center;
}

@media (max-width: 767px) {
    .tk-thumb {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .tk-thumb img {
        border-radius: 12px;
    }

    .tk-head .tk-share {
        flex: 0 0 44px;
    }
}

@media (max-width: 400px) {
    .tk-thumb {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .tk-thumb img {
        border-radius: 11px;
    }
}

/* ==========================================================================
   §15 控件与字段统一层（2026-10-20 v2）
   --------------------------------------------------------------------------
   背景问题（实测定位，不是猜的）：
   1) 内核通用样式 assets/common/css/_.css 里有
         input, textarea { background-color: transparent !important; }
      主题里所有 .form-control 的 background（含简写）都被它吃掉，
      于是详情页输入框在 #f6f7f9 的字段块里"消失"，只剩一条几乎看不见的浅边框。
      → 本层所有输入类控件的底色一律用 background-color + !important 对撞。
   2) widget_render() 输出的是「裸 div + label + .form-control」，没有主题的
      .tokyo-field 包裹，也没有任何 .form-check 样式 → 与手写字段两种长相。
   3) select / textarea / checkbox / radio 全站没有定义，走的是 Bootstrap 原生。

   本层只做覆盖，不改 §2 / §12 既有规则；删掉本段即可回滚到改动前。
   依赖：Item.html 给 #{widget_render()} 套了 .tk-widget-fields 容器。

   统一后的规格（一处改、全站生效）：
     字段块      padding 14/16，圆角 14（--tk-r-well），底色 --tk-well
     标签        13.12px / 600 / --tk-ink，与控件间距 8px
     单行控件    min-height 46，圆角 12，边框 #dfe3ea，白底
     多行文本    min-height 104，padding 12/14
     下拉        同单行，右侧 40px 细线 chevron
     复选/单选   18px 方框（圆角 5），胶囊可点区，选中橙底白勾
     焦点        边框 --tk-accent + 3px --tk-accent-soft 外环
   ========================================================================== */

/* ---- 15.0 全局兜底：让所有 .form-control 重新"有底" --------------------
   查询页、密码弹窗、后台表单同源问题，统一在这一条上解决。 */
input.form-control,
textarea.form-control,
select.form-control {
    background-color: var(--tk-card) !important;
}

/* ---- 15.1 字段块：手写字段与自定义字段共用同一容器 --------------------- */
.tk-fields .tokyo-field,
.tk-widget-fields > div {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--tk-r-well);
    background: var(--tk-well);
}

/* 商品没填自定义字段时不留空行 */
.tk-widget-fields:empty {
    display: none;
}

/* custom 型 widget（插件注入的人机验证等）没有 label，不套灰色 well */
.tk-widget-fields > .acg-widget-custom {
    padding: 0;
    background: none;
}

/* ---- 15.2 标签：字号/字重/行高统一，压过 Bootstrap 的 .mb-1 -------------- */
.tk-fields .form-label,
.tk-widget-fields label.form-label {
    margin: 0 !important;
    color: var(--tk-ink);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.tk-field-hint {
    flex: 0 0 auto;
    color: var(--tk-faint);
    font-size: 0.74rem;
    font-weight: 400;
}

/* ---- 15.3 单行控件：高度 / 圆角 / 边框 / 字号一套值 ---------------------
   min-height 必须 !important：§12 的 .tk-fields .tokyo-field > .form-control
   特异性更高且写了 44px，不加会变成「手写字段 44 / 自定义字段 46」两种高度。 */
.tk-fields .form-control,
.tk-widget-fields .form-control {
    width: 100%;
    min-height: 46px !important;
    padding: 0 14px;
    border: 1px solid #dfe3ea !important;
    border-radius: 12px !important;
    background-color: var(--tk-card) !important;
    color: var(--tk-ink) !important;
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tk-fields .form-control::placeholder,
.tk-widget-fields .form-control::placeholder {
    color: var(--tk-faint);
    font-size: 0.84rem;
}

/* 焦点：全站同一种橙色外环 */
.tk-fields .form-control:focus,
.tk-widget-fields .form-control:focus {
    border-color: var(--tk-accent) !important;
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
    outline: 0;
}

/* 数量组内的数字框不参与上面的"白底描边"，它由外层胶囊承担 */
.tk-fields .qty-group .form-control {
    min-height: 0 !important;
    padding: 0 4px;
    border: 0 !important;
    background-color: transparent !important;
    font-weight: 600;
}

/* 验证码：输入框与图片同一行，图片视作控件的右半截。
   必须显式 width:auto —— 上面 15.3 的 width:100% 会把图片挤到下一行。 */
.tk-fields .tokyo-captcha-group {
    flex-wrap: nowrap;
}

.tk-fields .tokyo-captcha-group .captcha-input {
    width: auto;
    flex: 1 1 auto;
    min-height: 46px;
    border-radius: 12px 0 0 12px !important;
}

.tk-fields .tokyo-captcha-group .input-group-append {
    flex: 0 0 auto;
}

.tk-fields .tokyo-captcha-group .captcha-img {
    width: 104px;
    height: 46px;
    border: 1px solid #dfe3ea;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    object-fit: cover;
    cursor: pointer;
}

/* ---- 15.4 多行文本 ------------------------------------------------------
   min-height 也要 !important：15.3 的 46px 会把它压成单行高度。 */
.tk-fields textarea.form-control,
.tk-widget-fields textarea.form-control {
    min-height: 104px !important;
    padding: 12px 14px;
    line-height: 1.65;
    resize: vertical;
}

/* ---- 15.5 下拉：去掉系统箭头，换一枚与图标字体同粗细的细线 chevron ------ */
.tk-fields select.form-control,
.tk-widget-fields select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    cursor: pointer;
}

.tk-fields select.form-control:focus,
.tk-widget-fields select.form-control:focus {
    background-color: var(--tk-card) !important;
}

/* ---- 15.6 复选 / 单选：胶囊可点区 + 18px 方框 ------------------------- */
.tk-widget-fields > div > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tk-widget-fields .form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 12px 0 10px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: var(--tk-card);
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.tk-widget-fields .form-check:hover {
    border-color: var(--tk-accent);
}

.tk-widget-fields .form-check-input {
    flex: 0 0 auto;
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    border: 1px solid var(--tk-line-strong) !important;
    border-radius: 5px !important;
    background-color: var(--tk-card) !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.tk-widget-fields .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

.tk-widget-fields .form-check-input:checked {
    border-color: var(--tk-accent) !important;
    background-color: var(--tk-accent) !important;
}

/* 勾：纯 CSS 画，不依赖图标字体 */
.tk-widget-fields .form-check-input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.tk-widget-fields .form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.tk-widget-fields .form-check-input:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.tk-widget-fields .form-check-label {
    margin: 0;
    color: var(--tk-sub);
    font-size: 0.84rem;
    cursor: pointer;
}

.tk-widget-fields .form-check:has(.form-check-input:checked) {
    border-color: var(--tk-accent);
    background: var(--tk-accent-soft);
}

.tk-widget-fields .form-check-input:checked ~ .form-check-label {
    color: var(--tk-accent-ink);
    font-weight: 600;
}

/* ---- 15.7 自选账号按钮：虚线边框，与"未选择"的语义一致 ------------------ */
.tk-fields .optional-card {
    min-height: 46px;
    border: 1px dashed #cfd6e0;
    border-radius: 12px;
    background-color: var(--tk-card) !important;
    color: var(--tk-sub);
    font-size: 0.84rem;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.tk-fields .optional-card:hover {
    border-color: var(--tk-accent);
    color: var(--tk-accent-ink);
}

/* ---- 15.8 数量组：与控件同一套高度与描边 ------------------------------- */
.tk-fields .qty-group {
    min-height: 46px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: var(--tk-card);
}

.tk-fields .qty-group button {
    width: 44px;
    color: var(--tk-sub);
}

.tk-fields .qty-group button:hover {
    color: var(--tk-accent-ink);
    background: var(--tk-accent-soft);
}

.tk-fields .qty-group .form-control {
    font-size: 0.92rem;
    color: var(--tk-ink) !important;
}

/* ---- 15.9 卡片层级：列表页 panel 与详情页 tk-card 收敛到同一档 ---------- */
.panel,
.tk-card {
    border-radius: 20px;
}

.tk-card {
    border-color: var(--tk-line);
    box-shadow: var(--tokyo-shadow-soft);
}

/* 字段区与卡头之间留出稳定的呼吸，避免每个字段块各自为政 */
.tk-fields {
    margin-top: 2px;
}

/* ---- 15.10 列表页栏目备注：原先是裸 <p> -------------------------------- */
.tokyo-current-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--tk-sub);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* display:inline-flex 会盖掉 [hidden] 的 display:none */
.tokyo-current-note[hidden] {
    display: none;
}

.tokyo-current-note::before {
    content: '';
    flex: 0 0 auto;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tk-accent);
}

/* ==========================================================================
   §16 宝贝详情正文：把商品描述里的手写内联色收敛回主题色系
   商品描述是从别处复制来的富文本，常带 <font color> / <span style="color:">
   / 红底白字块，单页能出现 5~6 种颜色，把详情区搞成了调色板。
   这里统一收敛：正文用墨色，强调交给字重与警示条。
   ========================================================================== */

.tk-details-body {
    color: var(--tk-ink);
    font-size: 0.88rem;
    line-height: 1.75;
}

.tk-details-body p {
    margin: 0 0 10px;
}

.tk-details-body p:last-child {
    margin-bottom: 0;
}

.tk-details-body h2,
.tk-details-body h3,
.tk-details-body h4 {
    margin: 20px 0 10px;
    color: var(--tk-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.tk-details-body h2:first-child,
.tk-details-body h3:first-child {
    margin-top: 0;
}

.tk-details-body ul,
.tk-details-body ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.tk-details-body li {
    margin: 4px 0;
}

.tk-details-body a {
    color: var(--tk-accent-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 内联色统一为墨色：!important 才能压过 HTML 的 style="color:..." */
.tk-details-body font[color],
.tk-details-body span[style*="color"],
.tk-details-body font[size] {
    color: inherit !important;
    font-size: inherit !important;
}

/* 但正文里的 <b>/<strong> 保留强调，只把颜色收回墨色 */
.tk-details-body font[color] b,
.tk-details-body font[color] strong {
    color: var(--tk-ink);
    font-weight: 700;
}

/* 描述里手写的「红底白字」提示 → 统一警示条 */
.tk-details-body font[color="#ffffff" i],
.tk-details-body font[color="#fff" i] {
    display: block;
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--tk-danger-soft) !important;
    color: var(--tk-danger) !important;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* 代码 / 终端输出类文本 */
.tk-details-body pre {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid var(--tk-line);
    border-radius: 12px;
    background: var(--tk-well);
    color: var(--tk-ink);
    font-size: 0.8rem;
    line-height: 1.65;
    overflow-x: auto;
}

.tk-details-body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(22, 24, 29, 0.06);
    color: var(--tk-ink);
    font-size: 0.88em;
}

.tk-details-body pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

/* ---- 16.2 教程引导卡：原本是支付宝蓝，与站点橙色主色撞色，改品牌橙 ------ */
.alipay-guide-card {
    color: #ffffff;
    background:
        radial-gradient(circle at 0 50%, transparent 0, transparent 6px, #ea580c 7px),
        radial-gradient(circle at 100% 50%, transparent 0, transparent 6px, #ea580c 7px),
        linear-gradient(135deg, #f97316 0%, #ea580c 48%, #c2410c 100%);
    border-color: rgba(234, 88, 12, 0.4);
}

.alipay-guide-card:hover,
.alipay-guide-card:focus {
    color: #ffffff;
    border-color: rgba(234, 88, 12, 0.55);
}

.alipay-guide-mark {
    color: #c2410c;
}

/* 18px 的「ALIPAY」角标钉在 0,0，32px 的教程图标也在左上（margin-top 4px），
   两者必然重叠、把图标压掉一半。这张卡已不是支付宝专属，角标没有信息量，
   直接隐藏（保留节点，避免后台粘贴的 HTML 结构不一致）。 */
.alipay-guide-mark {
    display: none;
}

.alipay-guide-ico {
    color: #ea580c;
}

.alipay-guide-go {
    color: #c2410c;
}

/* ---- 16.3 说明段落：行内 <br> 的分行节奏保持原样，只收紧块间距 ---------- */
.tk-details-body > * + * {
    margin-top: 0;
}

/* 带内联颜色的块级元素（商品描述里的 <p style="color:..."> 等）也一并收敛。
   :not([class]) 把 .warm-tip-line / .alipay-guide-card 这类主题组件排除在外。 */
.tk-details-body [style*="color"]:not([class]) {
    color: inherit !important;
}

/* ---- 15.12 跨页面同一规格：查询页 / 登录 / 弹窗里的基础输入框 ----------
   详情页做到 46 / 12px / #dfe3ea 之后，查询页还是 44 / 14px / #d9d9e0，
   两页来回走会"跳"。这里把基础款拉齐；特殊结构（.password-form、
   .qty-group、.tokyo-captcha-group）有更高特异性的规则，不受影响。 */
.form-control {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    background-color: var(--tk-card) !important;
    color: var(--tk-ink) !important;
    font-size: 0.88rem;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--tk-accent);
    box-shadow: 0 0 0 3px var(--tk-accent-soft);
}

.form-control::placeholder {
    color: var(--tk-faint);
}

/* ---- 15.11 窄屏：字段块与控件略收，触控尺寸不变 ------------------------ */
@media (max-width: 640px) {

    .tk-fields .tokyo-field,
    .tk-widget-fields > div {
        padding: 12px 14px;
    }

    .tk-details-body {
        font-size: 0.86rem;
    }

    .tk-widget-fields .form-check {
        min-height: 36px;
    }
}

/* ==========================================================================
   §17 详情页：起购门槛提示 + 说明区（spsm.html）
   --------------------------------------------------------------------------
   说明区原来和商品描述正文共用一套「圆点 + 浅底盒子」列表：7 条说明挤成
   68px 高的行，图标与文字基线不齐，读者扫不出重点。这里把 s05 拆成三层：
     · 养号建议 → 三列编号步骤（顶部细线分隔，不用卡片，避免卡片套卡片）
     · 商品说明 → 4 项事实卡（label/value 两行）+ 4 条注意事项（细线分隔）
     · 售后支持 → 一条浅底横条 + 两枚胶囊
   全部取 --tk-* 令牌，换主色只需改 :root，不依赖硬编码色值。
   ========================================================================== */

/* ---- 17.1 起购门槛：信息头徽章 + 数量字段下方说明 ---------------------- */
.tk-tags .tk-min-badge {
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
    font-weight: 600;
    letter-spacing: 0;
}

.tk-min-note {
    display: flex;
    align-items: flex-start;
    justify-self: start;
    gap: 7px;
    max-width: 100%;
    margin-top: 2px;
    padding: 9px 11px;
    border-radius: 9px;
    background: var(--tk-accent-soft);
    color: var(--tk-ink);
    font-size: 0.76rem;
    line-height: 1.6;
}

.tk-min-note > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--tk-accent);
    font-size: 0.78rem;
    opacity: 0.9;
}

.tk-min-note strong {
    color: var(--tk-accent-ink);
    font-weight: 700;
}

/* ---- 17.2 说明区骨架 --------------------------------------------------- */
.tk-guide {
    margin-top: 26px;
}

.tk-guide:first-of-type {
    margin-top: 18px;
}

.tk-guide + .tk-guide {
    margin-top: 30px;
}

.tk-guide-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--tk-line);
}

.tk-guide-head > i {
    flex: 0 0 auto;
    color: var(--tk-accent);
    font-size: 0.92rem;
}

.tk-guide-title {
    color: var(--tk-ink);
    font-size: 0.94rem;
    font-weight: 650;
    letter-spacing: 0.2px;
}

/* 角标（新号必看）：与信息头 badge 同一档尺寸，但压缩内边距避免抢标题 */
.tk-guide-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tk-accent-soft);
    color: var(--tk-accent-ink);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.tk-guide-chip i {
    font-size: 0.72rem;
    opacity: 0.9;
}

/* ---- 17.3 养号建议：编号步骤 ------------------------------------------- */
.tk-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 顶部细线 + 序号，做出「目录索引」的节奏，不用底色所以不会与上面的
   浅灰字段块、下面的白卡打三层底。 */
.tk-guide-steps > li {
    padding-top: 13px;
    border-top: 1px solid var(--tk-line);
    list-style: none;
}

.tk-guide-step-n {
    display: block;
    margin-bottom: 6px;
    color: var(--tk-sub);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-variant-numeric: tabular-nums;
}

.tk-guide-step-n::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 2px;
    margin-right: 7px;
    border-radius: 2px;
    background: var(--tk-accent);
    vertical-align: 3px;
}

.tk-guide-step-t {
    margin-bottom: 5px;
    color: var(--tk-ink);
    font-size: 0.86rem;
    font-weight: 650;
}

.tk-guide-step-d {
    margin: 0;
    color: var(--tk-sub);
    font-size: 0.82rem;
    line-height: 1.78;
}

.tk-guide-step-d strong {
    color: var(--tk-ink);
    font-weight: 600;
}

/* ---- 17.4 商品说明：事实卡 + 注意事项 ---------------------------------- */
.tk-guide-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tk-fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--tk-line);
    border-radius: 12px;
    background: var(--tk-card);
}

.tk-fact-k {
    color: var(--tk-sub);
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

.tk-fact-v {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--tk-ink);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.tk-fact-v i {
    flex: 0 0 auto;
    color: var(--tk-accent);
    font-size: 0.82rem;
}

.tk-guide-notes {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.tk-guide-notes > li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tk-line-soft);
    color: var(--tk-sub);
    font-size: 0.84rem;
    line-height: 1.75;
    list-style: none;
}

.tk-guide-notes > li:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.tk-guide-notes > li > i {
    flex: 0 0 auto;
    width: 14px;
    margin-top: 3px;
    color: var(--tk-faint);
    font-size: 0.8rem;
    text-align: center;
}

.tk-guide-notes strong {
    color: var(--tk-ink);
    font-weight: 600;
}

/* 邮箱示例 / QQ 号：等宽小胶囊，与正文区分但不抢眼 */
.tk-guide-code {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--tk-line);
    border-radius: 6px;
    background: var(--tk-well);
    color: var(--tk-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* ---- 17.5 售后支持条 + 页脚 -------------------------------------------- */
.tk-guide-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--tk-well);
}

.tk-guide-support-t {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tk-ink);
    font-size: 0.84rem;
    font-weight: 650;
}

.tk-guide-support-t > i {
    color: var(--tk-accent);
    font-size: 0.9rem;
}

.tk-guide-support-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 支持条内的胶囊＝白底（压在浅灰条上才有层次），角标态＝浅橙底（压在白卡上） */
.tk-guide-support .tk-guide-chip {
    margin-left: 0;
    padding: 4px 10px;
    border: 1px solid var(--tk-line);
    background: var(--tk-card);
    color: var(--tk-sub);
    font-size: 0.74rem;
    font-weight: 500;
}

.tk-guide-support .tk-guide-chip i {
    color: var(--tk-accent);
    font-size: 0.76rem;
}

.tk-guide-support .tk-guide-chip strong {
    color: var(--tk-ink);
    font-weight: 650;
}

.tk-guide-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--tk-line-soft);
    color: var(--tk-sub);
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    text-align: center;
}

.tk-guide-foot > i {
    margin-right: 5px;
    color: var(--tk-accent);
}

/* ---- 17.6 说明区窄屏 ---------------------------------------------------- */
@media (max-width: 991px) {
    .tk-guide-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tk-guide {
        margin-top: 22px;
    }

    /* 验证码组：§15.3 用 flex-wrap:nowrap 把图片当控件右半截（桌面正确），
       但 §12 的窄屏规则仍写着 .captcha-input{min-width:100%}，两者叠加后
       输入框按整行算宽、再并上 104px 图片，390px 屏上把整页撑出 53px 横向滚动。
       这里把 min-width 收回 0，图片略收一档，保持单行并避开右下角客服浮标。 */
    .tk-fields .tokyo-captcha-group .captcha-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .tk-fields .tokyo-captcha-group .captcha-img {
        width: 96px;
    }

    .tk-guide + .tk-guide {
        margin-top: 26px;
    }

    .tk-guide-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tk-guide-steps > li {
        padding-top: 11px;
    }

    .tk-guide-step-d {
        font-size: 0.8rem;
        line-height: 1.72;
    }

    .tk-guide-support {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }

    .tk-guide-notes > li {
        font-size: 0.82rem;
    }
}

/* 极窄屏也保持两列：事实卡的 value 最短（如「24 小时」），单列会让 4 张卡
   纵向拉出近 300px 的空白，反而更难扫读。 */
@media (max-width: 360px) {
    .tk-guide-facts {
        gap: 8px;
    }

    .tk-fact {
        padding: 10px 11px;
    }

    .tk-fact-v {
        font-size: 0.84rem;
    }
}

/* ==========================================================================
   §18 详情页 · 支付手续费提示（2026-10-22）

   背景：支付通道手续费（acg_pay.cost，cost_type 0=固定 / 1=比例）在下单时才
   并入 order.amount，商品页「应付金额」显示的是不含手续费的净额。买家看到
   100 元、进收银台变 101 元，是实打实的预期落差，所以在结算卡里补一层说明。

   结构（Item.html）：
     .tk-price-block
       ├─ .tk-price-row   标签（+ .tk-fee-chip）+ 金额
       └─ .tk-fee-note    说明行
   支付方式按钮由内核 JS 异步渲染，费率角标 .tk-pay-fee 由 Item.fee.js 追加。

   全部规则只在有手续费时才可能生效：没有手续费时 note/chip 保持 [hidden]，
   角标不生成，页面与改动前逐像素一致。
   ========================================================================== */

/* 金额块：桌面是 .tk-summary 网格里的一个行，窄屏是贴底栏的左侧 flex 项 */
.tk-price-block {
    min-width: 0;
    display: grid;
    gap: 6px;
}

/* 标签行：文字 + 「不含手续费」小标，窄屏也不换行挤成两行 */
.tk-price-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tk-fee-chip {
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #f6d4bb;
    background: var(--tk-accent-soft);
    color: var(--tk-accent-strong);
    font-size: 0.6rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}

/* [hidden] 必须显式写：上面的 display 会盖掉浏览器对 hidden 属性的默认处理 */
.tk-fee-chip[hidden] {
    display: none;
}

/* 说明行：浅灰正文 + 强调色图标，两行以内 */
.tk-fee-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: var(--tk-faint);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tk-fee-note[hidden] {
    display: none;
}

.tk-fee-note i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--tk-accent);
    font-size: 0.86em;
}

/* 支付方式图标加载失败时的矢量兜底（Item.enhance.js 插入）。
   站长清过 /assets/cache 后，旧图标路径会 404，浏览器会显示破图占位符；
   换成同尺寸的矢量图标，列表视觉不塌。 */
.tk-pay-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 6px;
    background: var(--tk-well);
    color: var(--tk-sub);
    font-size: 0.76rem;
    line-height: 1;
}

/* 支付方式按钮里的费率角标：靠右，不参与按钮文字的伸缩 */
.tk-summary .pay-list .pay {
    /* 原 justify-content: flex-start；改成两端对齐后名称贴左、角标贴右 */
    justify-content: flex-start;
}

.tk-pay-fee {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--tk-accent-soft);
    color: var(--tk-accent-strong);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.18s ease;
}

/* 支付方式名可能很长（「微信支付(推荐)」之类），窄屏两列卡片里必须能截断，
   否则会把右侧费率角标挤出卡片 */
.tk-summary .pay-list .pay > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tk-summary .pay-list .pay:hover .tk-pay-fee {
    background: #ffe3d1;
}

/* ---------------- 窄屏：贴底结算栏里只留小标，不拉高整条栏 ---------------- */
@media (max-width: 1024px) {
    .tk-price-block {
        flex: 1 1 auto;
        display: block;
        min-width: 0;
    }

    /* 说明行在 390px 宽的贴底栏里必然被截断，且会把栏高从 1 行顶到 2 行；
       窄屏改由「不含手续费」小标 + 支付面板里的角标承担说明职责 */
    .tk-fee-note {
        display: none !important;
    }

    .tk-fee-chip {
        padding: 1px 6px;
        font-size: 0.56rem;
    }

    /* 两列卡片里空间有限，角标只保留费率本身 */
    .tk-pay-fee {
        padding: 2px 6px;
        font-size: 0.62rem;
    }
}

/* ==========================================================================
   修复：duotone 图标重复渲染（一个图标显示成两个）
   --------------------------------------------------------------------------
   现象：<i class="fa-duotone fa-regular fa-cart-shopping"> 页面上并排出现
         两个购物车图标（一深一浅，浅的是副层）。

   成因：_.css 沿用了 Font Awesome Pro 的 duotone 双层结构：
           ::before  content: var(--fa)      —— 主层，1 个字形
           ::after   content: var(--fa--fa)  —— 主层+副层，2 个字形连写
         FA 官方字体靠字体内部的负进距（advance width = 0）让这两个字形
         叠在同一位置，形成「深色主层 + 浅色副层」的双色调效果。
         但本站实际使用的 _mcy_font_d 自定义字体没有做负进距，两个字形
         于是并排排列 —— 肉眼看到的就是两个相同的图标。

   修法：主层 ::before 回到正常文档流（占据一个字形宽度并撑开布局），
         副层 ::after 不再渲染。图标恢复单层清晰显示，占位宽度也与普通
         图标一致，不再额外挤占按钮/文字空间。

   注：全站未使用 .fa-stack 堆叠图标（已核对页面 HTML），因此 ::before
       改回 static 不会影响任何堆叠布局。
   ========================================================================== */
.fa-duotone::before,
.fa-duotone.fa-regular::before,
.fa-duotone.fa-solid::before,
.fa-duotone.fa-light::before,
.fa-duotone.fa-thin::before,
.fa-duotone.fa-brands::before {
    position: static !important;
}

.fa-duotone::after,
.fa-duotone.fa-regular::after,
.fa-duotone.fa-solid::after,
.fa-duotone.fa-light::after,
.fa-duotone.fa-thin::after,
.fa-duotone.fa-brands::after {
    content: none !important;
}
