: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-link: #0d74ce;
    --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;
}

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;
}

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;
}

.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: 100%;
    min-width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg,
    rgba(28, 32, 36, 0.9) 0%,
    rgba(28, 32, 36, 0.58) 38%,
    rgba(28, 32, 36, 0.18) 74%,
    rgba(28, 32, 36, 0) 100%);
}

.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 .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: 42px;
    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);
}

.tokyo-searchbox input {
    width: 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;
    min-height: 40px;
    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: 42px;
    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-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;
}

.tokyo-hero-meta {
    display: grid;
    gap: 14px;
    align-content: end;
    min-width: 280px;
}

.tokyo-meta-card {
    padding: 20px 22px;
    border: 1px solid var(--tokyo-border);
    border-radius: var(--tokyo-radius-lg);
    background: var(--tokyo-surface);
    box-shadow: var(--tokyo-shadow-soft);
}

.tokyo-meta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--tokyo-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tokyo-meta-card strong {
    color: var(--tokyo-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.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%;
    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: 38px;
    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 {
    font-size: 0.86rem;
}

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

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

.tokyo-catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.tokyo-result-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--tokyo-radius-pill);
    background: var(--tokyo-bg);
    color: var(--tokyo-muted-strong);
    font-size: 0.78rem;
    font-weight: 600;
}

.tokyo-current-meta {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.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.72);
    backdrop-filter: blur(3px);
    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: 14px 16px;
    border-bottom: 1px solid var(--tokyo-border);
    vertical-align: middle;
}

.tokyo-commodity-table tbody td.tokyo-commodity-main {
    padding-top: 13px;
    padding-bottom: 13px;
}

.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: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.tokyo-commodity-thumb {
    width: 42px;
    height: 42px;
    margin-top: 2px;
    border-radius: 14px;
    border: 1px solid var(--tokyo-border);
    background: center / cover no-repeat var(--tokyo-bg);
    flex: 0 0 42px;
}

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

.tokyo-commodity-name {
    display: block;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    color: var(--tokyo-text);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.36;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.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: rgba(13, 116, 206, 0.1);
    color: var(--tokyo-link);
}

.tokyo-pill.tokyo-pill-success {
    background: rgba(26, 162, 81, 0.1);
    color: #127b3c;
}

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

.tokyo-pill.tokyo-pill-mobile-price {
    background: linear-gradient(180deg, rgba(205, 165, 72, 0.18), rgba(205, 165, 72, 0.1));
    color: #9a6a12;
    border: 1px solid rgba(186, 145, 47, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 248, 229, 0.66);
}

.tokyo-pill.tokyo-pill-mobile-member {
    background: rgba(13, 116, 206, 0.08);
    color: var(--tokyo-link);
}

.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(13, 116, 206, 0.14);
    border-radius: var(--tokyo-radius-pill);
    background: rgba(13, 116, 206, 0.08);
    color: var(--tokyo-link);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(13, 116, 206, 0.08);
}

.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: 34px;
    padding: 0 12px;
    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 {
    --tokyo-item-cover-height: 360px;
    position: relative;
    height: var(--tokyo-item-cover-height);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--tokyo-border);
    border-radius: 26px;
    background: var(--tokyo-bg);
}

.tokyo-item-cover-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.item-cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.28s ease;
}

.tokyo-item-cover-trigger:hover .item-cover,
.tokyo-item-cover-trigger:focus-visible .item-cover {
    transform: scale(1.02);
}

.tokyo-item-cover-trigger:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.12);
    outline-offset: -2px;
}

.tokyo-item-cover-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--tokyo-radius-pill);
    background: rgba(255, 255, 255, 0.86);
    color: var(--tokyo-text);
    box-shadow: 0 10px 24px rgba(22, 25, 31, 0.12);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
}

.tokyo-image-layer {
    overflow: hidden;
    border: 1px solid rgba(214, 219, 228, 0.9) !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 24px 64px rgba(20, 24, 31, 0.24) !important;
}

.tokyo-image-layer .layui-layer-content {
    overflow: hidden !important;
    padding: 14px;
    background: transparent;
}

.tokyo-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: min(68vw, 640px);
    max-width: min(92vw, 1320px);
    max-height: min(88vh, 920px);
}

.tokyo-image-preview img {
    display: block;
    max-width: min(88vw, 1280px);
    max-height: min(82vh, 860px);
    width: auto;
    height: auto;
    border-radius: 22px;
    background: var(--tokyo-surface);
    object-fit: contain;
}

.tokyo-item-form-wrap {
    display: grid;
    gap: 16px;
    align-content: start;
    align-self: flex-start;
}

.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: rgba(13, 116, 206, 0.1);
    color: var(--tokyo-link);
}

.badge-soft-success {
    background: rgba(26, 162, 81, 0.1);
    color: #127b3c;
}

.badge-soft-info {
    background: rgba(71, 194, 255, 0.14);
    color: #0a76aa;
}

.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: 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;
}

.form-control:focus {
    border-color: #2547d0;
    box-shadow: 0 0 0 3px rgba(37, 71, 208, 0.12);
}

.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;
    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;
}

.tokyo-captcha-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(100%, 300px);
    max-width: 300px;
    min-height: 42px;
    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);
}

.tokyo-captcha-group .captcha-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    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: 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;
}

.tokyo-query-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tokyo-query-form .form-control {
    flex: 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: rgba(171, 100, 0, 0.12);
    color: #8c5200;
}

.status-paid,
.status-shipped {
    background: rgba(26, 162, 81, 0.1);
    color: #127b3c;
}

.status-waiting-shipment {
    background: rgba(13, 116, 206, 0.1);
    color: var(--tokyo-link);
}

.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: rgba(26, 162, 81, 0.1);
    color: #127b3c;
}

.a-badge-primary {
    background: rgba(13, 116, 206, 0.1);
    color: var(--tokyo-link);
}

.a-badge-warning,
.shipment-waiting {
    background: rgba(171, 100, 0, 0.12);
    color: #8c5200;
}

.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: 40px;
    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: 767.98px) {
    .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: rgba(10, 118, 170, 0.12);
    color: #0a76aa;
    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;
}

.tokyo-footer-copy {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.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: 34px;
        height: 34px;
        border: 1px solid var(--tokyo-border-strong);
        border-radius: var(--tokyo-radius-pill);
        background: var(--tokyo-bg);
        color: var(--tokyo-text);
        flex: 0 0 34px;
    }

    .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;
    }

    .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;
    }

    .tokyo-commodity-row td:nth-child(2),
    .tokyo-commodity-row td:nth-child(3),
    .tokyo-commodity-row td:nth-child(4),
    .tokyo-commodity-row td:nth-child(5) {
        display: none;
    }

    .tokyo-commodity-row {
        border-bottom: 1px solid var(--tokyo-border);
    }

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

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

    .tokyo-commodity-action {
        text-align: left;
        padding-top: 0;
    }

    .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;
    }

    .tokyo-commodity-main {
        padding: 4px 0;
    }

    .tokyo-commodity-name {
        white-space: normal;
        line-height: 1.35;
    }

    .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-cover-card,
    .tokyo-item-cover-trigger {
        min-height: 280px;
    }

    .tokyo-item-cover-card {
        height: auto;
        min-height: 280px;
        aspect-ratio: 1 / 1;
    }

    .item-cover {
        min-height: 280px;
    }

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

    .tokyo-image-layer {
        border-radius: 24px !important;
    }

    .tokyo-image-layer .layui-layer-content {
        padding: 10px;
    }

    .tokyo-image-preview {
        min-width: 0;
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .tokyo-image-preview img {
        max-width: calc(100vw - 44px);
        max-height: calc(100vh - 44px);
        border-radius: 18px;
    }

    .tokyo-item-cover-hint {
        right: 12px;
        bottom: 12px;
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .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: 42px;
        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: 42px;
        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;
    }
}

/* ========== Tokyo 商品购买弹窗 v2：桌面 + 移动端 ========== */
.tokyo-buy-layer {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 32px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tokyo-buy-layer .layui-layer-content {
    overflow: hidden !important;
    border-radius: 32px !important;
    background: transparent !important;
}

.tokyo-buy-layer iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 32px !important;
    background: transparent !important;
}

body.tokyo-buy-modal-page {
    min-height: 100vh;
    overflow: hidden;
    background: transparent !important;
}

body.tokyo-buy-modal-page .tokyo-nav-shell,
body.tokyo-buy-modal-page .tokyo-footer {
    display: none !important;
}

body.tokyo-buy-modal-page .tokyo-page-frame,
body.tokyo-buy-modal-page #pjax-container {
    min-height: 100vh;
}

body.tokyo-buy-modal-page .tokyo-main {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.tokyo-item-purchase-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tokyo-purchase-shell {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 0;
}

body.tokyo-buy-normal-page .tokyo-purchase-shell {
    width: min(1080px, calc(100% - 32px));
    padding: 20px 0 56px;
}

.tokyo-purchase-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(310px, 0.92fr) minmax(0, 1.18fr);
    gap: 34px;
    width: 100%;
    min-height: 650px;
    padding: 28px;
    border: 1px solid rgba(224, 225, 230, 0.92);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(9, 12, 18, 0.24), 0 4px 18px rgba(9, 12, 18, 0.08);
    color: var(--tokyo-text);
    overflow: hidden;
}

body.tokyo-buy-normal-page .tokyo-purchase-card {
    box-shadow: var(--tokyo-shadow-elevated);
}

.tokyo-purchase-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(224, 225, 230, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #1f2328;
    box-shadow: 0 6px 16px rgba(20, 24, 31, 0.08);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tokyo-purchase-close:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 24, 31, 0.12);
}

.tokyo-purchase-media-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 594px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5f6f8 0%, #fbfbfc 100%);
    overflow: hidden;
}

.tokyo-purchase-cover-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 48px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.tokyo-purchase-cover {
    display: block;
    width: min(72%, 330px);
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 22px 28px rgba(18, 22, 28, 0.08));
}

.tokyo-purchase-content {
    min-width: 0;
    padding: 6px 10px 0 0;
}

.tokyo-purchase-title {
    margin: 0;
    max-width: 100%;
    color: #05070a;
    font-size: clamp(1.42rem, 2.15vw, 1.92rem);
    font-weight: 860;
    line-height: 1.25;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tokyo-purchase-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.tokyo-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tokyo-status-pill-success {
    border: 1px solid rgba(45, 196, 111, 0.16);
    background: rgba(50, 213, 131, 0.16);
    color: #15803d;
}

.tokyo-status-pill-stock {
    border-color: rgba(33, 114, 254, 0.14);
    background: rgba(33, 114, 254, 0.10);
    color: #1d4ed8;
}

.tokyo-purchase-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.tokyo-purchase-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
}

.tokyo-purchase-price {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.tokyo-purchase-label,
.tokyo-purchase-small-label {
    display: inline-block;
    color: var(--tokyo-muted);
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: -0.03em;
}

.tokyo-purchase-small-label {
    margin-bottom: 8px;
    color: #14171c;
    font-size: 0.88rem;
    font-weight: 800;
}

.tokyo-purchase-price .price {
    color: #05070a;
    font-size: clamp(2rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.tokyo-purchase-price .price .unit {
    margin-right: 2px;
    color: #05070a;
    font-size: 0.68em;
    font-weight: 850;
}

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

.tokyo-purchase-qty-control {
    display: inline-grid;
    grid-template-columns: 44px 56px 44px;
    height: 44px;
    border: 1px solid var(--tokyo-border);
    border-radius: 14px;
    background: #f5f6f8;
    overflow: hidden;
}

.tokyo-purchase-qty-control button,
.tokyo-purchase-qty-control .form-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #05070a;
    font-size: 0.96rem;
    font-weight: 780;
    text-align: center;
    box-shadow: none !important;
}

.tokyo-purchase-qty-control button {
    cursor: pointer;
}

.tokyo-purchase-qty-control button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.tokyo-purchase-qty-control input::-webkit-outer-spin-button,
.tokyo-purchase-qty-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tokyo-purchase-hidden-options,
.tokyo-purchase-hidden-captcha {
    display: none !important;
}

.tokyo-purchase-contact-field .form-control {
    min-height: 42px;
    border: 1px solid var(--tokyo-border);
    border-radius: 14px;
    background: #fff;
    color: var(--tokyo-text);
    box-shadow: none;
}

.tokyo-purchase-desc {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.tokyo-purchase-desc h2 {
    margin: 0;
    color: #05070a;
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.tokyo-purchase-desc-body {
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.72;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.tokyo-purchase-desc-body p {
    margin: 0 0 8px;
}

.tokyo-purchase-desc-body p:last-child {
    margin-bottom: 0;
}

.tokyo-purchase-paybox.cash-pay {
    display: grid;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tokyo-purchase-pay-list.pay-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tokyo-pay-option.pay {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 74px;
    padding: 12px 8px 10px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: 14px;
    background: #ffffff;
    color: #22272f;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.tokyo-pay-option.pay:hover {
    transform: translateY(-1px);
    border-color: #a7abb2;
    box-shadow: 0 8px 18px rgba(15, 18, 24, 0.07);
}

.tokyo-pay-option.pay.is-selected {
    border-color: #05070a;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #05070a;
}

.tokyo-pay-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #05070a;
    color: #ffffff;
    font-size: 0.62rem;
}

.tokyo-pay-option.is-selected .tokyo-pay-check {
    display: inline-flex;
}

.tokyo-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #05070a;
    font-size: 1.3rem;
}

.tokyo-pay-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tokyo-pay-option.is-alipay .tokyo-pay-icon { color: #1677ff; }
.tokyo-pay-option.is-wechat .tokyo-pay-icon { color: #07c160; }
.tokyo-pay-option.is-usdt .tokyo-pay-icon { color: #26a17b; }

.tokyo-pay-name {
    color: #1f2328;
    font-size: 0.86rem;
    font-weight: 720;
    line-height: 1.1;
    text-align: center;
}

.tokyo-purchase-submit-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border: 1px solid #05070a;
    border-radius: 16px;
    background: #05070a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    box-shadow: 0 8px 20px rgba(5, 7, 10, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tokyo-purchase-submit-pay:hover {
    transform: translateY(-1px);
    background: #11151b;
    box-shadow: 0 12px 24px rgba(5, 7, 10, 0.22);
}

.tokyo-purchase-submit-pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.tokyo-purchase-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: max-content;
    margin: 0 auto;
    padding: 4px 8px;
    color: #11151b;
    font-size: 0.86rem;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.tokyo-purchase-guide:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tokyo-purchase-optional-card {
    border: 0;
    background: transparent;
}

@media (max-width: 991.98px) {
    .tokyo-purchase-card {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
        padding: 22px;
    }

    .tokyo-purchase-media-panel {
        min-height: 290px;
    }

    .tokyo-purchase-cover-trigger {
        min-height: 290px;
        padding: 28px;
    }

    .tokyo-purchase-cover {
        width: min(52%, 260px);
        max-height: 250px;
    }

    .tokyo-purchase-content {
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .tokyo-buy-layer,
    .tokyo-buy-layer .layui-layer-content,
    .tokyo-buy-layer iframe {
        border-radius: 28px !important;
    }

    body.tokyo-buy-modal-page {
        overflow: auto;
        background: #ffffff !important;
    }

    body.tokyo-buy-modal-page .tokyo-main {
        display: block;
        min-height: 100vh;
        overflow: auto;
    }

    .tokyo-purchase-shell,
    body.tokyo-buy-normal-page .tokyo-purchase-shell {
        width: 100%;
        padding: 0;
    }

    .tokyo-purchase-card {
        display: block;
        min-height: 100vh;
        padding: 18px 18px 26px;
        border: 0;
        border-radius: 28px;
        box-shadow: none;
        overflow-y: auto;
    }

    .tokyo-purchase-card::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 999px;
        background: #d7d9de;
    }

    .tokyo-purchase-close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        background: rgba(245, 246, 248, 0.92);
        box-shadow: none;
    }

    .tokyo-purchase-media-panel {
        min-height: 154px;
        margin: 4px 0 24px;
        background: transparent;
    }

    .tokyo-purchase-cover-trigger {
        min-height: 154px;
        padding: 0;
    }

    .tokyo-purchase-cover {
        width: 132px;
        max-height: 132px;
        border-radius: 26px;
    }

    .tokyo-purchase-title {
        font-size: 1.22rem;
        line-height: 1.35;
        letter-spacing: -0.04em;
    }

    .tokyo-purchase-badges {
        margin-top: 12px;
        gap: 8px;
    }

    .tokyo-status-pill {
        min-height: 23px;
        padding: 0 9px;
        font-size: 0.74rem;
    }

    .tokyo-purchase-form {
        gap: 18px;
        margin-top: 22px;
    }

    .tokyo-purchase-topline {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
    }

    .tokyo-purchase-price .price {
        font-size: 2rem;
    }

    .tokyo-purchase-qty-field {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 12px;
    }

    .tokyo-purchase-qty-field .tokyo-purchase-small-label {
        margin-bottom: 0;
    }

    .tokyo-purchase-qty-control {
        grid-template-columns: 42px 52px 42px;
        width: 136px;
        height: 40px;
        border-radius: 14px;
    }

    .tokyo-purchase-qty-control button,
    .tokyo-purchase-qty-control .form-control {
        height: 40px;
        min-height: 40px;
    }

    .tokyo-purchase-desc-body {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.82rem;
        line-height: 1.72;
    }

    .tokyo-purchase-desc::after {
        content: "⌄";
        display: block;
        margin: 3px auto 0;
        color: #555b64;
        font-size: 1rem;
        line-height: 1;
    }

    .tokyo-purchase-pay-list.pay-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tokyo-pay-option.pay {
        min-height: 66px;
        padding: 10px 4px 8px;
        border-radius: 12px;
    }

    .tokyo-pay-icon,
    .tokyo-pay-icon img {
        width: 24px;
        height: 24px;
        font-size: 1.12rem;
    }

    .tokyo-pay-name {
        font-size: 0.76rem;
    }

    .tokyo-purchase-submit-pay {
        min-height: 48px;
        border-radius: 15px;
    }
}

@media (max-width: 380px) {
    .tokyo-purchase-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tokyo-purchase-pay-list.pay-list {
        gap: 6px;
    }

    .tokyo-pay-name {
        font-size: 0.72rem;
    }
}
.tokyo-purchase-pay-list.pay-list .tokyo-pay-option.pay img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    .tokyo-purchase-pay-list.pay-list .tokyo-pay-option.pay img {
        width: 24px;
        height: 24px;
    }
}

/* ========== Tokyo AJAX 购买弹窗 v4：不再 iframe，避免高度压扁 ========== */
.tokyo-ajax-buy-layer {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 32px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tokyo-ajax-buy-layer .layui-layer-content {
    overflow: visible !important;
    background: transparent !important;
}

.tokyo-ajax-buy-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.15fr);
    gap: 34px;
    width: 100%;
    min-height: 620px;
    padding: 28px;
    border: 1px solid rgba(224, 225, 230, 0.92);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(9, 12, 18, 0.24), 0 4px 18px rgba(9, 12, 18, 0.08);
    color: var(--tokyo-text);
    overflow: hidden;
}

.tokyo-ajax-buy-modal.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.tokyo-ajax-buy-loading,
.tokyo-ajax-buy-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    color: var(--tokyo-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.tokyo-ajax-buy-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(224, 225, 230, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #1f2328;
    box-shadow: 0 6px 16px rgba(20, 24, 31, 0.08);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tokyo-ajax-buy-close:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 24, 31, 0.12);
}

.tokyo-ajax-buy-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 564px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f5f6f8 0%, #fbfbfc 100%);
    overflow: hidden;
}

.tokyo-ajax-buy-cover-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 48px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.tokyo-ajax-buy-cover {
    display: block;
    width: min(72%, 330px);
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 22px 28px rgba(18, 22, 28, 0.08));
}

.tokyo-ajax-buy-content {
    min-width: 0;
    padding: 6px 10px 0 0;
}

.tokyo-ajax-buy-title {
    margin: 0;
    max-width: 100%;
    color: #05070a;
    font-size: clamp(1.38rem, 2.05vw, 1.86rem);
    font-weight: 860;
    line-height: 1.25;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tokyo-ajax-buy-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.tokyo-ajax-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(45, 196, 111, 0.16);
    border-radius: 999px;
    background: rgba(50, 213, 131, 0.16);
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.tokyo-ajax-status-pill-stock,
.tokyo-ajax-status-pill.item-stock {
    border-color: rgba(33, 114, 254, 0.14);
    background: rgba(33, 114, 254, 0.10);
    color: #1d4ed8;
}

.tokyo-ajax-buy-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.tokyo-ajax-buy-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
}

.tokyo-ajax-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.tokyo-ajax-label,
.tokyo-ajax-small-label {
    display: inline-block;
    color: var(--tokyo-muted);
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: -0.03em;
}

.tokyo-ajax-small-label {
    margin-bottom: 8px;
    color: #14171c;
    font-size: 0.88rem;
    font-weight: 800;
}

.tokyo-ajax-price {
    color: #05070a;
    font-size: clamp(2rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.tokyo-ajax-price .unit {
    margin-right: 2px;
    color: #05070a;
    font-size: 0.68em;
    font-weight: 850;
}

.tokyo-ajax-qty-wrap {
    display: grid;
    gap: 8px;
}

.tokyo-ajax-qty-control {
    display: inline-grid;
    grid-template-columns: 44px 56px 44px;
    height: 44px;
    border: 1px solid var(--tokyo-border);
    border-radius: 14px;
    background: #f5f6f8;
    overflow: hidden;
}

.tokyo-ajax-qty-control button,
.tokyo-ajax-qty-control input {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #05070a;
    font-size: 0.96rem;
    font-weight: 780;
    text-align: center;
    box-shadow: none !important;
    outline: none;
}

.tokyo-ajax-qty-control button {
    cursor: pointer;
}

.tokyo-ajax-qty-control button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.tokyo-ajax-qty-control input::-webkit-outer-spin-button,
.tokyo-ajax-qty-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tokyo-ajax-contact-field input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--tokyo-border);
    border-radius: 14px;
    background: #fff;
    color: var(--tokyo-text);
    font-size: 0.88rem;
    box-shadow: none;
    outline: none;
}

.tokyo-ajax-desc {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.tokyo-ajax-desc h2 {
    margin: 0;
    color: #05070a;
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.tokyo-ajax-desc-body {
    max-height: 190px;
    overflow: auto;
    padding-right: 6px;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.72;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.tokyo-ajax-desc-body p,
.tokyo-ajax-desc-body div {
    margin-top: 0;
}

.tokyo-ajax-paybox {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.tokyo-ajax-pay-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tokyo-ajax-pay-option {
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 74px;
    padding: 12px 8px 10px;
    border: 1px solid var(--tokyo-border-strong);
    border-radius: 14px;
    background: #ffffff;
    color: #22272f;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.tokyo-ajax-pay-option:hover {
    transform: translateY(-1px);
    border-color: #a7abb2;
    box-shadow: 0 8px 18px rgba(15, 18, 24, 0.07);
}

.tokyo-ajax-pay-option.is-selected {
    border-color: #05070a;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #05070a;
}

.tokyo-ajax-pay-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #05070a;
    color: #ffffff;
    font-size: 0.62rem;
}

.tokyo-ajax-pay-option.is-selected .tokyo-ajax-pay-check {
    display: inline-flex;
}

.tokyo-ajax-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #05070a;
    font-size: 1.3rem;
}

.tokyo-ajax-pay-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tokyo-ajax-pay-option.is-alipay .tokyo-ajax-pay-icon { color: #1677ff; }
.tokyo-ajax-pay-option.is-wechat .tokyo-ajax-pay-icon { color: #07c160; }
.tokyo-ajax-pay-option.is-usdt .tokyo-ajax-pay-icon { color: #26a17b; }

.tokyo-ajax-pay-name {
    color: #1f2328;
    font-size: 0.86rem;
    font-weight: 720;
    line-height: 1.1;
    text-align: center;
}

.tokyo-ajax-pay-empty {
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px dashed var(--tokyo-border-strong);
    border-radius: 14px;
    color: var(--tokyo-muted);
    text-align: center;
    font-weight: 700;
}

.tokyo-ajax-submit-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border: 1px solid #05070a;
    border-radius: 16px;
    background: #05070a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    box-shadow: 0 8px 20px rgba(5, 7, 10, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tokyo-ajax-submit-pay:hover {
    transform: translateY(-1px);
    background: #11151b;
    box-shadow: 0 12px 24px rgba(5, 7, 10, 0.22);
}

.tokyo-ajax-submit-pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.tokyo-ajax-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: max-content;
    margin: -4px auto 0;
    padding: 4px 8px;
    color: #11151b;
    font-size: 0.86rem;
    font-weight: 780;
    letter-spacing: -0.03em;
}

.tokyo-ajax-guide:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 991.98px) {
    .tokyo-ajax-buy-modal {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
        padding: 22px;
    }

    .tokyo-ajax-buy-media {
        min-height: 290px;
    }

    .tokyo-ajax-buy-cover-trigger {
        min-height: 290px;
        padding: 28px;
    }

    .tokyo-ajax-buy-cover {
        width: min(52%, 260px);
        max-height: 250px;
    }

    .tokyo-ajax-buy-content {
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .tokyo-ajax-buy-layer {
        top: auto !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }

    .tokyo-ajax-buy-layer .layui-layer-content {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .tokyo-ajax-buy-modal {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 100%;
        padding: 18px 18px 26px;
        border: 0;
        border-radius: 28px 28px 0 0;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tokyo-ajax-buy-modal::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 999px;
        background: #d7d9de;
    }

    .tokyo-ajax-buy-close {
        top: 14px;
        right: 14px;
        width: 34px;
        height: 34px;
        background: rgba(245, 246, 248, 0.92);
        box-shadow: none;
    }

    .tokyo-ajax-buy-media {
        min-height: 154px;
        margin: 4px 0 24px;
        background: transparent;
    }

    .tokyo-ajax-buy-cover-trigger {
        min-height: 154px;
        padding: 0;
    }

    .tokyo-ajax-buy-cover {
        width: 132px;
        max-height: 132px;
        border-radius: 26px;
    }

    .tokyo-ajax-buy-title {
        font-size: 1.22rem;
        line-height: 1.35;
        letter-spacing: -0.04em;
    }

    .tokyo-ajax-buy-badges {
        margin-top: 12px;
        gap: 8px;
    }

    .tokyo-ajax-status-pill {
        min-height: 23px;
        padding: 0 9px;
        font-size: 0.74rem;
    }

    .tokyo-ajax-buy-form {
        gap: 18px;
        margin-top: 22px;
    }

    .tokyo-ajax-buy-topline {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
    }

    .tokyo-ajax-price {
        font-size: 2rem;
    }

    .tokyo-ajax-qty-wrap {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 12px;
    }

    .tokyo-ajax-qty-wrap .tokyo-ajax-small-label {
        margin-bottom: 0;
    }

    .tokyo-ajax-qty-control {
        grid-template-columns: 42px 52px 42px;
        width: 136px;
        height: 40px;
        border-radius: 14px;
    }

    .tokyo-ajax-qty-control button,
    .tokyo-ajax-qty-control input {
        height: 40px;
        min-height: 40px;
    }

    .tokyo-ajax-desc-body {
        max-height: 118px;
        font-size: 0.82rem;
        line-height: 1.72;
    }

    .tokyo-ajax-pay-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tokyo-ajax-pay-option {
        min-height: 66px;
        padding: 10px 4px 8px;
        border-radius: 12px;
    }

    .tokyo-ajax-pay-icon,
    .tokyo-ajax-pay-icon img {
        width: 24px;
        height: 24px;
        font-size: 1.12rem;
    }

    .tokyo-ajax-pay-name {
        font-size: 0.76rem;
    }

    .tokyo-ajax-submit-pay {
        min-height: 48px;
        border-radius: 15px;
    }
}

@media (max-width: 380px) {
    .tokyo-ajax-buy-modal {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tokyo-ajax-pay-list {
        gap: 6px;
    }

    .tokyo-ajax-pay-name {
        font-size: 0.72rem;
    }
}

/* ========== Tokyo AJAX 购买弹窗 v5：还原确认稿布局，修正右侧信息散乱 ========== */
.tokyo-ajax-buy-layer {
    border-radius: 30px !important;
}

.tokyo-ajax-buy-layer .layui-layer-content {
    overflow: visible !important;
}

.tokyo-ajax-buy-modal {
    width: min(1080px, calc(100vw - 42px));
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(460px, 1.08fr);
    gap: 34px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.98);
    overflow: visible;
}

.tokyo-ajax-buy-media {
    min-height: 500px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f6f7f9 0%, #fbfbfc 100%);
}

.tokyo-ajax-buy-cover-trigger {
    min-height: 500px;
    padding: 42px;
}

.tokyo-ajax-buy-cover {
    width: min(68%, 320px);
    max-height: 360px;
}

.tokyo-ajax-buy-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 4px 0 0;
}

.tokyo-ajax-buy-title {
    font-size: clamp(1.34rem, 1.55vw, 1.72rem);
    line-height: 1.25;
    font-weight: 860;
    letter-spacing: -0.045em;
}

.tokyo-ajax-buy-badges {
    margin-top: 12px;
}

.tokyo-ajax-buy-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 22px;
}

.tokyo-ajax-buy-topline {
    display: block;
}

.tokyo-ajax-price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.tokyo-ajax-price-wrap {
    display: contents;
}

.tokyo-ajax-price {
    color: #05070a;
    font-size: clamp(1.88rem, 2.2vw, 2.22rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.tokyo-ajax-qty-line,
.tokyo-ajax-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.tokyo-ajax-qty-line .tokyo-ajax-small-label,
.tokyo-ajax-qty-wrap .tokyo-ajax-small-label {
    margin: 0;
}

.tokyo-ajax-qty-control {
    grid-template-columns: 44px 54px 44px;
    width: 142px;
    height: 42px;
    border-radius: 14px;
    background: #f4f5f7;
}

.tokyo-ajax-qty-control button,
.tokyo-ajax-qty-control input {
    height: 42px;
    min-height: 42px;
}

.tokyo-ajax-desc {
    gap: 9px;
    padding-top: 2px;
}

.tokyo-ajax-desc-body {
    max-height: 156px;
    overflow: auto;
    padding-right: 6px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.tokyo-ajax-desc-body:empty::before {
    content: "暂无商品描述。";
    color: var(--tokyo-muted);
}

.tokyo-ajax-paybox {
    gap: 10px;
}

.tokyo-ajax-pay-list {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
}

.tokyo-ajax-pay-option {
    min-height: 68px;
    border-radius: 14px;
}

.tokyo-ajax-submit-pay {
    min-height: 48px;
    border-radius: 15px;
}

.tokyo-ajax-guide {
    margin-top: -5px;
}

@media (min-width: 768px) and (max-width: 1180px) {
    .tokyo-ajax-buy-modal {
        width: calc(100vw - 56px);
        grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
        gap: 26px;
    }
}

@media (max-width: 991.98px) {
    .tokyo-ajax-buy-modal {
        grid-template-columns: 1fr;
        width: min(720px, calc(100vw - 32px));
        gap: 20px;
        padding: 22px;
        overflow: auto;
    }

    .tokyo-ajax-buy-media,
    .tokyo-ajax-buy-cover-trigger {
        min-height: 260px;
    }

    .tokyo-ajax-buy-cover {
        width: min(42%, 220px);
        max-height: 220px;
    }
}

@media (max-width: 767.98px) {
    .tokyo-ajax-buy-layer {
        top: auto !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 92vh !important;
        border-radius: 28px 28px 0 0 !important;
    }

    .tokyo-ajax-buy-layer .layui-layer-content {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .tokyo-ajax-buy-modal {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 18px 18px max(26px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 28px 28px 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tokyo-ajax-buy-modal::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 999px;
        background: #d7d9de;
    }

    .tokyo-ajax-buy-media {
        min-height: 140px;
        margin: 2px 0 22px;
        background: transparent;
    }

    .tokyo-ajax-buy-cover-trigger {
        min-height: 140px;
        padding: 0;
    }

    .tokyo-ajax-buy-cover {
        width: 124px;
        max-height: 124px;
        border-radius: 25px;
    }

    .tokyo-ajax-buy-title {
        font-size: 1.18rem;
        line-height: 1.34;
    }

    .tokyo-ajax-buy-form {
        gap: 16px;
        margin-top: 20px;
    }

    .tokyo-ajax-price-line {
        gap: 10px;
    }

    .tokyo-ajax-price {
        font-size: 1.88rem;
    }

    .tokyo-ajax-qty-line,
    .tokyo-ajax-qty-wrap {
        display: inline-flex;
        gap: 12px;
    }

    .tokyo-ajax-desc-body {
        max-height: 112px;
        font-size: 0.82rem;
        line-height: 1.72;
    }

    .tokyo-ajax-pay-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tokyo-ajax-pay-option {
        min-height: 64px;
        padding: 9px 4px 8px;
        border-radius: 12px;
    }

    .tokyo-ajax-pay-name {
        font-size: 0.74rem;
    }
}


/* v7: 商品列表长标题完整展示 */
@media (min-width: 768px) {
    .tokyo-commodity-table tbody tr {
        height: auto;
    }

    .tokyo-commodity-table tbody td {
        height: auto;
    }

    .tokyo-commodity-name {
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
}

@media (max-width: 767.98px) {
    .tokyo-commodity-anchor {
        align-items: flex-start;
    }

    .tokyo-commodity-name {
        white-space: normal;
        line-height: 1.38;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
/* ===== Tokyo 卡密弹窗美化 ===== */
.tokyo-treasure-modal {
    padding: 18px;
    height: 100%;
    box-sizing: border-box;
    background: #ffffff;
}

.tokyo-treasure-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tokyo-treasure-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.tokyo-treasure-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.tokyo-treasure-copy {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tokyo-treasure-copy:hover {
    opacity: 0.86;
}

.tokyo-treasure-secret {
    margin: 0;
    height: 340px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    line-height: 1.75;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tokyo-treasure-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== Tokyo 订单查询页卡密展示优化 ===== */
.card-display {
    padding: 16px 18px;
    border: 1px solid var(--tokyo-border);
    border-radius: 14px;
    background: #f8fafc;
    color: #111827;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 260px;
    overflow: auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .tokyo-treasure-modal {
        padding: 14px;
    }

    .tokyo-treasure-top {
        flex-direction: column;
    }

    .tokyo-treasure-copy {
        width: 100%;
    }

    .tokyo-treasure-secret {
        height: calc(100vh - 220px);
        font-size: 12px;
    }

    .card-display {
        max-height: 320px;
        font-size: 12px;
    }
}
/* ===== Tokyo 卡密弹窗底部按钮优化 ===== */
.tokyo-treasure-layer {
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(224, 225, 230, 0.95) !important;
    background: #ffffff !important;
    box-shadow: 0 24px 64px rgba(20, 24, 31, 0.22) !important;
}

.tokyo-treasure-layer .layui-layer-title {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 44px 0 18px !important;
    border-bottom: 1px solid #eef0f4 !important;
    background: rgba(248, 249, 252, 0.96) !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.tokyo-treasure-layer .layui-layer-content {
    overflow: hidden !important;
    background: #ffffff !important;
}

.tokyo-treasure-layer .layui-layer-btn {
    padding: 14px 18px 18px !important;
    text-align: center !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.tokyo-treasure-layer .layui-layer-btn a {
    text-decoration: none !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 240px !important;
    height: 44px !important;
    line-height: 44px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16) !important;
    transition: all .2s ease !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2) !important;
}

/* 手机端：底部按钮铺满 */
@media (max-width: 768px) {
    .tokyo-treasure-layer .layui-layer-btn {
        padding: 12px 14px 16px !important;
    }

    .tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0 {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================
   Tokyo 购买弹窗：笔记本 / 桌面端优化
   让弹窗更小、更居中、更精致
   ========================= */

@media (min-width: 768px) {

    body .layui-layer.tokyo-ajax-buy-layer,
    body .tokyo-ajax-buy-layer {
        width: min(860px, calc(100vw - 72px)) !important;
        max-height: calc(100vh - 80px) !important;
        top: 50% !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 26px !important;
        overflow: hidden !important;
        box-shadow: 0 26px 70px rgba(15, 23, 42, .24) !important;
    }

    body .tokyo-ajax-buy-layer .layui-layer-content {
        width: 100% !important;
        max-height: calc(100vh - 80px) !important;
        overflow: hidden !important;
        border-radius: 26px !important;
    }

    body .tokyo-ajax-buy-modal {
        width: 100% !important;
        min-height: 0 !important;
        max-height: calc(100vh - 80px) !important;
        padding: 24px !important;
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
        gap: 28px !important;
        align-items: stretch !important;
        border-radius: 26px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body .tokyo-ajax-buy-media {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 22px !important;
    }

    body .tokyo-ajax-buy-cover-trigger {
        min-height: 0 !important;
        height: 100% !important;
        padding: 0 !important;
        border-radius: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .tokyo-ajax-buy-cover {
        width: min(68%, 210px) !important;
        max-width: 210px !important;
        max-height: 210px !important;
        object-fit: contain !important;
    }

    body .tokyo-ajax-buy-content {
        min-width: 0 !important;
        max-height: calc(100vh - 128px) !important;
        overflow-y: auto !important;
        padding: 4px 4px 0 0 !important;
    }

    body .tokyo-ajax-buy-title {
        font-size: 24px !important;
        line-height: 1.22 !important;
        letter-spacing: -0.04em !important;
    }

    body .tokyo-ajax-buy-badges {
        margin-top: 10px !important;
    }

    body .tokyo-ajax-buy-form {
        gap: 13px !important;
        margin-top: 18px !important;
    }

    body .tokyo-ajax-price {
        font-size: 31px !important;
    }

    body .tokyo-ajax-qty-control {
        width: 132px !important;
        height: 38px !important;
        grid-template-columns: 40px 52px 40px !important;
        border-radius: 13px !important;
    }

    body .tokyo-ajax-qty-control button,
    body .tokyo-ajax-qty-control input {
        height: 38px !important;
        min-height: 38px !important;
    }

    body .tokyo-ajax-desc-body {
        max-height: 118px !important;
        font-size: 13px !important;
        line-height: 1.62 !important;
        overflow-y: auto !important;
    }

    body .tokyo-ajax-pay-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body .tokyo-ajax-pay-option {
        min-height: 58px !important;
        border-radius: 14px !important;
    }

    body .tokyo-ajax-submit-pay {
        min-height: 46px !important;
        border-radius: 14px !important;
    }

    body .tokyo-ajax-guide {
        margin-top: -2px !important;
    }

    body .tokyo-ajax-buy-close {
        top: 18px !important;
        right: 18px !important;
        width: 34px !important;
        height: 34px !important;
    }
}

/* =========================
   Tokyo 购买弹窗：电脑端恢复正常显示 + 居中
   解决弹窗高度被压扁、内容显示不全
   ========================= */

@media (min-width: 768px) {

    body .layui-layer.tokyo-ajax-buy-layer,
    body .tokyo-ajax-buy-layer {
        width: min(880px, calc(100vw - 72px)) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 72px) !important;

        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;

        border-radius: 26px !important;
        overflow: visible !important;
        box-shadow: 0 26px 72px rgba(15, 23, 42, .24) !important;
    }

    body .tokyo-ajax-buy-layer .layui-layer-content {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 72px) !important;
        overflow: visible !important;
        border-radius: 26px !important;
    }

    body .tokyo-ajax-buy-modal {
        width: 100% !important;
        height: auto !important;
        min-height: 460px !important;
        max-height: calc(100vh - 72px) !important;

        display: grid !important;
        grid-template-columns: 320px minmax(0, 1fr) !important;
        gap: 28px !important;
        align-items: stretch !important;

        padding: 24px !important;
        box-sizing: border-box !important;
        border-radius: 26px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    body .tokyo-ajax-buy-media {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 22px !important;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
        overflow: hidden !important;
    }

    body .tokyo-ajax-buy-cover-trigger {
        width: 100% !important;
        height: 100% !important;
        min-height: 410px !important;
        padding: 0 !important;
        border-radius: 22px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .tokyo-ajax-buy-cover {
        width: 210px !important;
        height: 210px !important;
        max-width: 210px !important;
        max-height: 210px !important;
        object-fit: contain !important;
    }

    body .tokyo-ajax-buy-content {
        min-width: 0 !important;
        height: auto !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        padding: 2px 4px 0 0 !important;
        box-sizing: border-box !important;
    }

    body .tokyo-ajax-buy-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-right: 42px !important;
    }

    body .tokyo-ajax-price {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }

    body .tokyo-ajax-desc-body {
        max-height: 130px !important;
        overflow-y: auto !important;
        font-size: 13px !important;
        line-height: 1.65 !important;
        padding-right: 4px !important;
    }

    body .tokyo-ajax-pay-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body .tokyo-ajax-pay-option {
        min-height: 58px !important;
        border-radius: 14px !important;
    }

    body .tokyo-ajax-submit-pay {
        min-height: 46px !important;
        border-radius: 14px !important;
    }

    body .tokyo-ajax-buy-close {
        top: 18px !important;
        right: 18px !important;
        width: 34px !important;
        height: 34px !important;
    }
}

/* 笔记本小屏电脑 */
@media (min-width: 768px) and (max-width: 1180px) {

    body .layui-layer.tokyo-ajax-buy-layer,
    body .tokyo-ajax-buy-layer {
        width: min(820px, calc(100vw - 56px)) !important;
    }

    body .tokyo-ajax-buy-modal {
        grid-template-columns: 290px minmax(0, 1fr) !important;
        gap: 24px !important;
        padding: 22px !important;
        min-height: 430px !important;
    }

    body .tokyo-ajax-buy-cover-trigger {
        min-height: 380px !important;
    }

    body .tokyo-ajax-buy-cover {
        width: 190px !important;
        height: 190px !important;
        max-width: 190px !important;
        max-height: 190px !important;
    }

    body .tokyo-ajax-buy-title {
        font-size: 22px !important;
    }

    body .tokyo-ajax-price {
        font-size: 30px !important;
    }

    body .tokyo-ajax-desc-body {
        max-height: 110px !important;
    }
}

.fb-wiki-page {
    min-height: calc(100vh - 90px);
    padding: 34px 0 60px;
    background:
        radial-gradient(circle at 20% 10%, rgba(37, 99, 235, .08), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .08), transparent 30%),
        #f7f8fb;
}

.fb-wiki-shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
}

.fb-wiki-sidebar {
    position: sticky;
    top: 94px;
    height: fit-content;
}

.fb-side-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    backdrop-filter: blur(18px);
}

.fb-side-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
    color: #0f172a;
    font-weight: 800;
}

.fb-side-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s ease;
}

.fb-side-card a:hover,
.fb-side-card a.active {
    background: #eef4ff;
    color: #2563eb;
}

.fb-side-card a i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fb-tips p {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid #e5e7eb;
    color: #64748b;
    line-height: 1.7;
    font-size: 13px;
}

.fb-tips b {
    color: #0f172a;
}

.fb-service-card p {
    color: #64748b;
    margin: 0 0 14px;
    font-size: 13px;
}

.fb-service-btn {
    height: 42px !important;
    justify-content: center;
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
}

.fb-wiki-main {
    min-width: 0;
}

.fb-wiki-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: center;
    padding: 54px 46px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(236, 244, 255, .96)),
        #fff;
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 22px 60px rgba(37, 99, 235, .10);
}

.fb-hero-copy span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.fb-hero-copy h1 {
    margin: 20px 0 14px;
    font-size: 42px;
    line-height: 1.15;
    color: #0f172a;
    font-weight: 900;
}

.fb-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
}

.fb-warning {
    margin-top: 26px;
    max-width: 600px;
    padding: 16px 18px;
    border-radius: 14px;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 14px;
    line-height: 1.7;
}

.fb-hero-visual {
    position: relative;
    min-height: 260px;
}

.fb-logo-circle {
    position: absolute;
    right: 55px;
    top: 35px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    font-size: 120px;
    font-weight: 900;
    box-shadow: 0 22px 60px rgba(37, 99, 235, .35);
}

.fb-float-card {
    position: absolute;
    width: 120px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(37, 99, 235, .10);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .12);
}

.card-a { right: 235px; top: 20px; transform: rotate(15deg); }
.card-b { right: 255px; top: 150px; transform: rotate(-10deg); }
.card-c { right: 20px; top: 190px; transform: rotate(9deg); }

.fb-search-card {
    margin: 26px 0;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px 0 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 14px 42px rgba(15, 23, 42, .05);
}

.fb-search-card i {
    color: #94a3b8;
    font-size: 18px;
}

.fb-search-card input {
    flex: 1;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
}

.fb-search-card button {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #020617;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.fb-section {
    margin-bottom: 26px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

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

.fb-section-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #0f172a;
    font-weight: 900;
}

.fb-section-head h2 i {
    color: #2563eb;
}

.fb-section-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.fb-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fb-info-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .09);
    transition: all .18s ease;
}

.fb-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    border-color: rgba(37, 99, 235, .25);
}

.fb-info-card h3 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.fb-info-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.fb-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #2563eb;
    background: #eaf2ff;
}

.fb-icon.red { color: #ef4444; background: #fee2e2; }
.fb-icon.orange { color: #f97316; background: #ffedd5; }
.fb-icon.green { color: #059669; background: #d1fae5; }
.fb-icon.dark { color: #334155; background: #e2e8f0; }
.fb-icon.blue { color: #2563eb; background: #dbeafe; }
.fb-icon.pink { color: #db2777; background: #fce7f3; }
.fb-icon.purple { color: #7c3aed; background: #ede9fe; }
.fb-icon.yellow { color: #ca8a04; background: #fef9c3; }
.fb-icon.cyan { color: #0891b2; background: #cffafe; }
.fb-icon.rose { color: #e11d48; background: #ffe4e6; }
.fb-icon.violet { color: #8b5cf6; background: #f3e8ff; }
.fb-icon.sky { color: #0284c7; background: #e0f2fe; }
.fb-icon.gray { color: #475569; background: #f1f5f9; }

.fb-card-hit {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 16px 34px rgba(15, 23, 42, .08);
}

@media (max-width: 1180px) {
    .fb-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .fb-wiki-shell {
        width: min(100% - 28px, 760px);
        grid-template-columns: 1fr;
    }

    .fb-wiki-sidebar {
        position: static;
        display: none;
    }

    .fb-wiki-hero {
        grid-template-columns: 1fr;
        padding: 34px 24px;
        min-height: auto;
    }

    .fb-hero-visual {
        display: none;
    }

    .fb-hero-copy h1 {
        font-size: 32px;
    }

    .fb-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-search-card {
        height: auto;
        padding: 14px;
        flex-wrap: wrap;
    }

    .fb-search-card input {
        min-width: 180px;
    }

    .fb-search-card button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .fb-wiki-page {
        padding-top: 20px;
    }

    .fb-card-grid {
        grid-template-columns: 1fr;
    }

    .fb-section {
        padding: 18px;
    }

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

    .fb-hero-copy h1 {
        font-size: 28px;
    }
}
.tutorial-page {
    min-height: calc(100vh - 80px);
    padding: 34px 0 58px;
    background:
        radial-gradient(circle at 15% 8%, rgba(37, 99, 235, .08), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(147, 197, 253, .12), transparent 28%),
        #f7f9fd;
}

.tutorial-shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.tutorial-hero {
    min-height: 300px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: center;
    padding: 46px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #edf5ff);
    border: 1px solid rgba(37, 99, 235, .10);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.tutorial-kicker {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #2563eb;
    background: #eaf2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.tutorial-hero h1 {
    margin: 18px 0 10px;
    color: #0f172a;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 900;
}

.tutorial-hero p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.tutorial-search {
    max-width: 620px;
    height: 56px;
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 0 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 12px 34px rgba(37, 99, 235, .08);
}

.tutorial-search i {
    color: #94a3b8;
    font-size: 18px;
}

.tutorial-search input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
}

.tutorial-search button {
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #2563eb;
    font-weight: 800;
    cursor: pointer;
}

.tutorial-hero-visual {
    position: relative;
    height: 220px;
}

.tutorial-visual-card {
    position: absolute;
    right: 72px;
    top: 34px;
    width: 180px;
    height: 130px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 38px;
    font-weight: 900;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 22px 50px rgba(37, 99, 235, .16);
}

.tutorial-visual-dot {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.tutorial-hero-visual {
    position: relative;
    height: 240px;
}

.tutorial-visual-card {
    position: absolute;
    right: 108px;
    top: 54px;
    width: 178px;
    height: 128px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 38px;
    font-weight: 900;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 22px 50px rgba(37, 99, 235, .16);
}

.tutorial-visual-dot {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

.tutorial-visual-dot img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* 左上 Facebook */
.dot-a {
    right: 310px;
    top: 44px;
}

/* 左下 Instagram */
.dot-b {
    right: 292px;
    top: 150px;
}

/* 右上 TikTok */
.dot-c {
    right: 26px;
    top: 88px;
}

/* 右下 Telegram */
.dot-d {
    right: 54px;
    top: 170px;
}

/* 中下 Gmail */
.dot-e {
    right: 205px;
    top: 198px;
}

/* 上方 WhatsApp */
.dot-f {
    right: 180px;
    top: -2px;
}

/* 中右 Discord */
.dot-g {
    right: 18px;
    top: 22px;
}

.tutorial-block {
    margin-top: 24px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .055);
}

.tutorial-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.tutorial-block-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.tutorial-block-head p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.tutorial-platform-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.tutorial-platform-card {
    min-height: 128px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    text-decoration: none;
    transition: all .18s ease;
}

.tutorial-platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    border-color: rgba(37, 99, 235, .24);
}

.platform-logo,
.article-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.platform-logo.fb,
.article-icon.fb { background: #1877f2; }
.platform-logo.ig,
.article-icon.ig { background: linear-gradient(135deg, #f97316, #db2777, #7c3aed); }
.platform-logo.x,
.article-icon.x { background: #020617; }
.platform-logo.tk,
.article-icon.tk { background: #111827; }
.platform-logo.tg,
.article-icon.tg { background: #0ea5e9; }
.platform-logo.wa,
.article-icon.wa { background: #22c55e; }
.platform-logo.apple,
.article-icon.apple { background: #111827; }
.platform-logo.gmail,
.article-icon.gmail { background: #ef4444; }
.platform-logo.outlook,
.article-icon.outlook { background: #2563eb; }
.platform-logo.discord,
.article-icon.discord { background: #5865f2; }

.tutorial-platform-card strong {
    display: block;
    margin-top: 14px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.tutorial-platform-card em {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
}

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

.tutorial-article-card {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    text-decoration: none;
    transition: all .18s ease;
}

.tutorial-article-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.tutorial-article-card strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.tutorial-article-card p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.tutorial-article-card em {
    padding: 7px 10px;
    border-radius: 999px;
    color: #2563eb;
    background: #eaf2ff;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.tutorial-empty {
    display: none;
    margin-top: 16px;
    padding: 18px;
    border-radius: 16px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}

@media (max-width: 1180px) {
    .tutorial-platform-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .tutorial-shell {
        width: min(100% - 28px, 760px);
    }

    .tutorial-hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .tutorial-hero-visual {
        display: none;
    }

    .tutorial-hero h1 {
        font-size: 34px;
    }

    .tutorial-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tutorial-page {
        padding-top: 20px;
    }

    .tutorial-hero h1 {
        font-size: 30px;
    }

    .tutorial-search {
        height: auto;
        flex-wrap: wrap;
        padding: 12px;
    }

    .tutorial-search input {
        min-width: 200px;
        height: 42px;
    }

    .tutorial-search button {
        width: 100%;
    }

    .tutorial-platform-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-article-card {
        grid-template-columns: 42px 1fr;
    }

    .tutorial-article-card em {
        grid-column: 2;
        width: fit-content;
    }
}

.platform-logo,
.article-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.platform-logo img,
.article-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.tutorial-visual-dot img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
/* =========================================================
   教程中心移动端适配
   适用于 /user/index/tutorial
   ========================================================= */

/* 平板：先把整体压窄 */
@media (max-width: 1024px) {
    .tutorial-page {
        padding: 22px 0 48px !important;
        overflow-x: hidden !important;
    }

    .tutorial-shell {
        width: calc(100% - 24px) !important;
        max-width: 760px !important;
    }

    .tutorial-hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 32px 26px !important;
        border-radius: 24px !important;
        gap: 18px !important;
    }

    .tutorial-hero-visual {
        display: none !important;
    }

    .tutorial-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* 手机端核心适配 */
@media (max-width: 767px) {
    .tutorial-page {
        padding: 16px 0 40px !important;
        background: #f7f9fd !important;
        overflow-x: hidden !important;
    }

    .tutorial-shell {
        width: calc(100% - 16px) !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    /* 顶部横幅 */
    .tutorial-hero {
        display: block !important;
        min-height: auto !important;
        padding: 24px 18px !important;
        border-radius: 22px !important;
        box-shadow: 0 14px 36px rgba(15, 23, 42, .06) !important;
    }

    .tutorial-kicker {
        font-size: 10px !important;
        padding: 6px 10px !important;
    }

    .tutorial-hero h1 {
        margin: 14px 0 8px !important;
        font-size: 30px !important;
        line-height: 1.18 !important;
        letter-spacing: -0.04em !important;
    }

    .tutorial-hero p {
        font-size: 14px !important;
        line-height: 1.7 !important;
        max-width: 100% !important;
    }

    .tutorial-hero-visual {
        display: none !important;
    }

    /* 搜索框 */
    .tutorial-search {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-top: 18px !important;
        padding: 10px !important;
        display: grid !important;
        grid-template-columns: 28px 1fr !important;
        gap: 8px !important;
        border-radius: 16px !important;
    }

    .tutorial-search i {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 42px !important;
    }

    .tutorial-search input {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    .tutorial-search button {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: 42px !important;
        margin-top: 2px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
    }

    /* 内容块 */
    .tutorial-block {
        margin-top: 16px !important;
        padding: 16px !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .05) !important;
    }

    .tutorial-block-head {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .tutorial-block-head h2 {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    .tutorial-block-head p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: right !important;
    }

    /* 平台卡片：手机两列 */
    .tutorial-platform-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .tutorial-platform-card {
        min-height: 112px !important;
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }

    .platform-logo,
    .article-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        flex: 0 0 40px !important;
    }

    .platform-logo img,
    .article-icon img {
        width: 27px !important;
        height: 27px !important;
        object-fit: contain !important;
    }

    .tutorial-platform-card strong {
        margin-top: 10px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
    }

    .tutorial-platform-card em {
        margin-top: 5px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    /* 推荐教程列表 */
    .tutorial-list {
        gap: 10px !important;
    }

    .tutorial-article-card {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: flex-start !important;
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .tutorial-article-card strong {
        font-size: 14px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .tutorial-article-card p {
        margin-top: 4px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

    .tutorial-article-card em {
        grid-column: 2 !important;
        width: fit-content !important;
        margin-top: -2px !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    .tutorial-empty {
        padding: 14px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
    }
}

/* 小屏手机：比如 360 / 375 宽度 */
@media (max-width: 420px) {
    .tutorial-shell {
        width: calc(100% - 12px) !important;
    }

    .tutorial-hero {
        padding: 22px 16px !important;
        border-radius: 20px !important;
    }

    .tutorial-hero h1 {
        font-size: 28px !important;
    }

    .tutorial-block {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .tutorial-platform-grid {
        gap: 8px !important;
    }

    .tutorial-platform-card {
        min-height: 106px !important;
        padding: 12px 10px !important;
    }

    .tutorial-platform-card strong {
        font-size: 13px !important;
    }

    .tutorial-platform-card em {
        font-size: 11px !important;
    }
}

/* =========================================================
   教程详情页优化
   ========================================================= */

.tutorial-detail-page {
    min-height: calc(100vh - 76px);
    padding: 34px 0 72px;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .08), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(147, 197, 253, .12), transparent 30%),
        #f7f9fd;
}

.tutorial-detail-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.tutorial-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #2563eb;
    background: rgba(37, 99, 235, .08);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.tutorial-detail-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.tutorial-detail-head {
    padding: 42px 46px 30px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.tutorial-detail-platform {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    color: #2563eb;
    background: #eaf2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tutorial-detail-head h1 {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.tutorial-detail-head p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.tutorial-detail-content {
    padding: 38px 46px 46px;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.tutorial-detail-content h1 {
    margin: 0 0 22px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 900;
}

.tutorial-detail-content h2 {
    margin: 34px 0 14px;
    padding-top: 8px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 900;
}

.tutorial-detail-content h3 {
    margin: 24px 0 10px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 900;
}

.tutorial-detail-content p {
    margin: 10px 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.tutorial-detail-content ul,
.tutorial-detail-content ol {
    margin: 14px 0 20px;
    padding-left: 24px;
    color: #475569;
}

.tutorial-detail-content li {
    margin: 7px 0;
    line-height: 1.8;
}

.tutorial-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto 28px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}

.tutorial-detail-content blockquote,
.tutorial-detail-content .article-notice {
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #b45309;
    line-height: 1.8;
}

.tutorial-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    overflow: hidden;
    border-radius: 14px;
}

.tutorial-detail-content th,
.tutorial-detail-content td {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    text-align: left;
}

.tutorial-detail-content th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

@media (max-width: 768px) {
    .tutorial-detail-page {
        padding: 18px 0 48px;
    }

    .tutorial-detail-shell {
        width: calc(100% - 18px);
    }

    .tutorial-detail-card {
        border-radius: 22px;
    }

    .tutorial-detail-head {
        padding: 28px 20px 22px;
    }

    .tutorial-detail-head h1 {
        font-size: 28px;
    }

    .tutorial-detail-head p {
        font-size: 14px;
    }

    .tutorial-detail-content {
        padding: 26px 20px 32px;
        font-size: 15px;
    }

    .tutorial-detail-content h1 {
        font-size: 25px;
    }

    .tutorial-detail-content h2 {
        font-size: 21px;
    }

    .tutorial-detail-content p,
    .tutorial-detail-content li {
        font-size: 15px;
    }
}

/* 教程中心：平台选中态 */
.tutorial-platform-card.is-active {
    border-color: rgba(37, 99, 235, .42) !important;
    background: linear-gradient(135deg, #ffffff, #f0f6ff) !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .12) !important;
}

/* 教程中心：分页 */
.tutorial-pagination {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #64748b;
    font-size: 14px;
}

.tutorial-page-btn {
    min-width: 86px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eaf2ff;
    font-weight: 800;
    cursor: pointer;
}

.tutorial-page-btn:hover {
    background: #dbeafe;
}

.tutorial-page-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.tutorial-page-info {
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 560px) {
    .tutorial-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .tutorial-page-btn {
        width: 100%;
    }
}
/* 教程中心：平台卡片右上角教程数量 */
.tutorial-platform-card {
    position: relative;
}

.tutorial-platform-count {
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #eaf2ff;
    border: 1px solid rgba(37, 99, 235, .18);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.tutorial-platform-card.is-active .tutorial-platform-count {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 560px) {
    .tutorial-platform-count {
        top: 12px;
        right: 12px;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        font-size: 11px;
    }
}
/* 教程详情页：正文列表优化 */
.tutorial-detail-content ul {
    margin: 16px 0 22px;
    padding: 18px 22px 18px 42px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
}

.tutorial-detail-content ul li {
    margin: 8px 0;
    color: #475569;
    line-height: 1.8;
}

.tutorial-detail-content ul li::marker {
    color: #2563eb;
}

/* 教程详情页：蓝色项目符号检查列表 */
.tutorial-detail-content .tutorial-check-list {
    margin: 16px 0 22px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
    list-style: none;
}

.tutorial-detail-content .tutorial-check-list li {
    position: relative;
    margin: 9px 0;
    padding-left: 22px;
    color: #475569;
    line-height: 1.8;
}

.tutorial-detail-content .tutorial-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

/* =========================================================
   Tokyo 顶部导航背景统一优化
   让顶部区域和教程页浅蓝背景融合
   ========================================================= */

body.tokyo-theme {
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .08), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(147, 197, 253, .14), transparent 32%),
        #f7f9fd !important;
}

.tokyo-page-frame {
    background: transparent !important;
}

.tokyo-nav-shell {
    background: transparent !important;
    box-shadow: none !important;
}

.tokyo-nav {
    background: rgba(255, 255, 255, .82) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.tokyo-nav-link:hover,
.tokyo-nav-link.is-active {
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
}



/* 选中时图标更明显 */
.tokyo-category-link.is-active .tokyo-category-icon {
    border-color: rgba(37, 99, 235, .35) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

/* 选中时右侧数量标签变蓝 */
.tokyo-category-link.is-active .tokyo-category-count {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* 顶部导航：选中高亮加强 */
.tokyo-nav-link.is-active {
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12) !important;
    font-weight: 800 !important;
}

.tokyo-nav-link.is-active i {
    color: #2563eb !important;
}
/* 教程详情页：顶部简介不再过早换行 */
.tutorial-detail-head p {
    max-width: 100% !important;
    width: 100% !important;
}
.tutorial-detail-head {
    padding-left: 52px !important;
    padding-right: 52px !important;
}

/* =========================================================
   教程详情页：整体阅读体验优化
   ========================================================= */

/* 详情页整体宽度，截图教程更舒服 */
.tutorial-detail-shell {
    width: min(1120px, calc(100% - 48px)) !important;
}

/* 内容卡片更轻一点 */
.tutorial-detail-card {
    border-radius: 30px !important;
    border: 1px solid rgba(15, 23, 42, .07) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .09) !important;
}

/* 顶部标题区不要太空 */
.tutorial-detail-head {
    padding: 42px 56px 34px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%) !important;
}

/* 平台标签 */
.tutorial-detail-platform {
    margin-bottom: 18px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: #eaf2ff !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
}

/* 标题更稳重 */
.tutorial-detail-head h1 {
    margin: 0 0 14px !important;
    color: #0f172a !important;
    font-size: 38px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
}

/* 简介不要太早换行 */
.tutorial-detail-head p {
    max-width: 100% !important;
    width: 100% !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
}

/* 正文区域 */
.tutorial-detail-content {
    padding: 44px 56px 56px !important;
    color: #334155 !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
}

/* 步骤标题更明显 */
.tutorial-detail-content h2 {
    position: relative;
    margin: 42px 0 18px !important;
    padding-left: 16px !important;
    color: #0f172a !important;
    font-size: 25px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
}

/* 标题左侧蓝色竖条 */
.tutorial-detail-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .24em;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: #2563eb;
}

/* 正文段落 */
.tutorial-detail-content p {
    margin: 12px 0 !important;
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
}

/* 教程截图显示更清楚 */
.tutorial-detail-content img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 22px auto 34px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    background: #f8fafc !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10) !important;
}

/* 提示框更柔和 */
.tutorial-detail-content .article-notice,
.tutorial-detail-content blockquote {
    margin: 24px 0 34px !important;
    padding: 18px 20px !important;
    border-radius: 18px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #b45309 !important;
    line-height: 1.85 !important;
}

/* 绿色检查列表 */
.tutorial-detail-content .tutorial-check-list {
    margin: 18px 0 26px !important;
    padding: 18px 22px !important;
    border-radius: 18px !important;
    background: #f0fdf4 !important;
    border: 1px solid rgba(34, 197, 94, .18) !important;
    list-style: none !important;
}

.tutorial-detail-content .tutorial-check-list li {
    position: relative !important;
    margin: 9px 0 !important;
    padding-left: 24px !important;
    color: #475569 !important;
    line-height: 1.8 !important;
}

.tutorial-detail-content .tutorial-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .tutorial-detail-shell {
        width: calc(100% - 18px) !important;
    }

    .tutorial-detail-head {
        padding: 28px 22px 24px !important;
    }

    .tutorial-detail-head h1 {
        font-size: 28px !important;
    }

    .tutorial-detail-content {
        padding: 30px 22px 38px !important;
    }

    .tutorial-detail-content h2 {
        font-size: 21px !important;
        margin-top: 34px !important;
    }

    .tutorial-detail-content p,
    .tutorial-detail-content li {
        font-size: 15px !important;
    }
}

/* =========================================================
   教程详情页：最终细节优化
   ========================================================= */

/* 详情页再宽一点，截图教程更舒服 */
.tutorial-detail-shell {
    width: min(1180px, calc(100% - 48px)) !important;
}

/* 顶部标题区域稍微压缩，减少空白 */
.tutorial-detail-head {
    padding: 40px 56px 30px !important;
}

/* 正文顶部不要离标题区太远 */
.tutorial-detail-content {
    padding: 36px 56px 58px !important;
}

/* 提示框不要和标题区拉得太开 */
.tutorial-detail-content .article-notice,
.tutorial-detail-content blockquote {
    margin-top: 10px !important;
    margin-bottom: 36px !important;
}

/* 步骤标题和上方内容间距更自然 */
.tutorial-detail-content h2 {
    margin-top: 38px !important;
    margin-bottom: 18px !important;
}

/* 第一段标题不要离提示框太远 */
.tutorial-detail-content .article-notice + h2,
.tutorial-detail-content blockquote + h2 {
    margin-top: 34px !important;
}

/* 截图显示更大一点 */
.tutorial-detail-content img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto 38px !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .11) !important;
}

/* 图片下方不要太挤 */
.tutorial-detail-content img + h2 {
    margin-top: 48px !important;
}

/* 返回按钮和正文卡片对齐更舒服 */
.tutorial-detail-back {
    margin-bottom: 16px !important;
}

/* 手机端保持紧凑 */
@media (max-width: 768px) {
    .tutorial-detail-shell {
        width: calc(100% - 18px) !important;
    }

    .tutorial-detail-head {
        padding: 28px 22px 22px !important;
    }

    .tutorial-detail-content {
        padding: 28px 22px 38px !important;
    }

    .tutorial-detail-content img {
        margin: 20px auto 30px !important;
        border-radius: 16px !important;
    }
}

/* =========================================================
   教程详情页：细节微调
   ========================================================= */

/* 正文链接更明显 */
.tutorial-detail-content a {
    color: #2563eb !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed rgba(37, 99, 235, .45);
}

.tutorial-detail-content a:hover {
    color: #1d4ed8 !important;
    border-bottom-color: #1d4ed8;
}

/* 正文段落更易读 */
.tutorial-detail-content p {
    margin: 10px 0 12px !important;
    line-height: 1.85 !important;
}

/* 标题之间距离稍微紧凑一点 */
.tutorial-detail-content h2 {
    margin-top: 34px !important;
    margin-bottom: 16px !important;
}

/* 提示框下方不要空太大 */
.tutorial-detail-content .article-notice,
.tutorial-detail-content blockquote {
    margin-bottom: 30px !important;
}

/* 图片和文字之间更紧凑 */
.tutorial-detail-content img {
    margin-top: 18px !important;
    margin-bottom: 34px !important;
}

/* 第一张图不要离上方文字太远 */
.tutorial-detail-content p + img {
    margin-top: 16px !important;
}

/* 教程详情页：标题区再紧凑一点 */
.tutorial-detail-head {
    padding-top: 34px !important;
    padding-bottom: 26px !important;
}



.tutorial-detail-content .article-notice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: #f59e0b;
}

/* 教程详情页：截图展示增强 */
.tutorial-detail-content img {
    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .12) !important;
}

/* 教程详情页：正文超链接颜色调淡 */
.tutorial-detail-content a {
    color: #3b82f6 !important;
    font-weight: 700 !important;
    border-bottom: 1px dashed rgba(59, 130, 246, .35) !important;
}

.tutorial-detail-content a:hover {
    color: #2563eb !important;
    border-bottom-color: rgba(37, 99, 235, .55) !important;
}

/* ===== 发货弹窗优化版：桌面 + 手机端 ===== */

.tokyo-treasure-layer {
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    background: #ffffff !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24) !important;
}

.tokyo-treasure-layer .layui-layer-title {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 50px 0 20px !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.tokyo-treasure-layer .layui-layer-setwin {
    top: 16px !important;
    right: 18px !important;
}

.tokyo-treasure-layer .layui-layer-content {
    overflow: visible !important;
    background: #ffffff !important;
}

.tokyo-treasure-modal {
    padding: 20px 22px 10px;
    box-sizing: border-box;
    background: #ffffff;
}

.tokyo-treasure-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.tokyo-treasure-title {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 4px;
}

.tokyo-treasure-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}

.tokyo-treasure-copy {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 17px;
    min-width: 90px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    transition: all .2s ease;
}

.tokyo-treasure-copy:hover {
    background: #000000;
    transform: translateY(-1px);
}

.tokyo-treasure-copy.is-copied {
    background: #16a34a;
}

.tokyo-treasure-secret {
    display: block;
    margin: 0;
    min-height: 190px;
    max-height: 310px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 17px 18px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 17px;
    background: #f8fafc;
    color: #111827;
    font-size: 13.5px;
    line-height: 1.9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.tokyo-treasure-tip {
    margin-top: 10px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.7;
}

.tokyo-treasure-layer .layui-layer-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 15px 18px 18px !important;
    text-align: center !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.tokyo-treasure-layer .layui-layer-btn a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    height: 42px !important;
    line-height: 42px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0 {
    border: 0 !important;
    background: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14) !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn1 {
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #111827 !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn1:hover {
    background: #f8fafc !important;
    color: #111827 !important;
    transform: translateY(-1px);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .tokyo-treasure-layer {
        width: 92vw !important;
        max-width: 92vw !important;
        border-radius: 20px !important;
    }

    .tokyo-treasure-layer .layui-layer-title {
        height: 46px !important;
        line-height: 46px !important;
        padding-left: 16px !important;
        font-size: 13px !important;
    }

    .tokyo-treasure-modal {
        padding: 16px 14px 8px;
    }

    .tokyo-treasure-top {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .tokyo-treasure-title {
        font-size: 17px;
    }

    .tokyo-treasure-desc {
        font-size: 12.5px;
    }

    .tokyo-treasure-copy {
        width: 100%;
        height: 42px;
        padding: 0 16px;
    }

    .tokyo-treasure-secret {
        min-height: 180px;
        max-height: calc(100vh - 360px);
        padding: 14px;
        border-radius: 14px;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .tokyo-treasure-tip {
        font-size: 12px;
        line-height: 1.6;
    }

    .tokyo-treasure-layer .layui-layer-btn {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px 14px 16px !important;
    }

    .tokyo-treasure-layer .layui-layer-btn a {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        line-height: 42px !important;
    }
}
/* ===== 发货弹窗按钮颜色优化 ===== */

/* 右上角：复制全部，改成轻量蓝灰按钮 */

.tokyo-treasure-copy {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(30, 41, 59, .22) !important;
}

.tokyo-treasure-copy:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(30, 41, 59, .28) !important;
}

.tokyo-treasure-copy.is-copied {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #ffffff !important;
    border: 0 !important;
}

/* 底部第一个按钮：查看完整订单，作为主按钮 */
.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, #ff6a55, #ff8a72) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 26px rgba(255, 106, 85, .24) !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0:hover {
    background: linear-gradient(135deg, #ff5a43, #ff765f) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(255, 106, 85, .30) !important;
    transform: translateY(-1px);
}

/* 底部第二个按钮：下载 TXT，作为辅助按钮 */
.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn1 {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .08) !important;
}

.tokyo-treasure-layer .layui-layer-btn .layui-layer-btn1:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
    transform: translateY(-1px);
}

/* 手机端按钮保持清晰 */
@media (max-width: 768px) {
    .tokyo-treasure-copy {
        width: 100% !important;
        height: 42px !important;
    }

    .tokyo-treasure-layer .layui-layer-btn .layui-layer-btn0,
    .tokyo-treasure-layer .layui-layer-btn .layui-layer-btn1 {
        width: 100% !important;
        height: 42px !important;
    }
}