/* ==========================================================================
   拾光集市 · 商城样式
   ========================================================================== */

:root {
    --cream: #f6f2e8;
    --cream-deep: #eee9dc;
    --paper: #fffdf8;
    --ink: #1f2b23;
    --ink-soft: #687166;
    --ink-faint: #8f968c;
    --green: #2c4636;
    --green-deep: #1e3127;
    --green-soft: #526b58;
    --sage: #dfe6d8;
    --sage-deep: #bfcbb7;
    --accent: #c36f4c;
    --accent-deep: #a75a3a;
    --accent-soft: #f2ded3;
    --gold: #b58a4f;
    --line: #e4ded0;
    --line-soft: #eee9dd;
    --danger: #b04b3e;
    --success: #47715a;
    --white: #ffffff;
    --shadow-sm: 0 6px 24px rgba(35, 48, 38, 0.06);
    --shadow-md: 0 18px 50px rgba(35, 48, 38, 0.10);
    --shadow-lg: 0 32px 80px rgba(25, 39, 29, 0.16);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --radius-pill: 999px;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --container: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    margin: 0;
    min-width: 320px;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.admin-menu-open {
    overflow: hidden;
}

::selection {
    background: var(--green);
    color: var(--cream);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
blockquote,
figure {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--green-deep);
    color: var(--cream);
    font-size: 13px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   按钮、标签、表单
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn--primary {
    background: var(--green);
    color: var(--cream);
    box-shadow: 0 8px 21px rgba(44, 70, 54, 0.17);
}

.btn--primary:hover {
    background: var(--green-deep);
}

.btn--dark {
    background: var(--ink);
    color: var(--cream);
}

.btn--dark:hover {
    background: #101a13;
}

.btn--cream {
    background: var(--cream);
    color: var(--green-deep);
}

.btn--cream:hover {
    background: var(--white);
}

.btn--outline {
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.5);
    color: var(--ink);
}

.btn--outline:hover {
    border-color: var(--green);
    background: var(--paper);
}

.btn--ghost {
    color: var(--ink-soft);
}

.btn--ghost:hover {
    background: var(--cream-deep);
    color: var(--ink);
}

.btn--danger {
    background: var(--danger);
    color: var(--white);
}

.btn--danger:hover {
    background: #913a30;
}

.btn--danger-ghost {
    border-color: #e2c7c2;
    color: var(--danger);
}

.btn--danger-ghost:hover {
    background: #f8e9e6;
}

.btn--sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 13px;
}

.btn--xs {
    min-height: 32px;
    padding: 6px 13px;
    font-size: 12px;
}

.btn--lg {
    min-height: 54px;
    padding: 15px 28px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: gap 0.25s var(--ease), color 0.25s ease;
}

.link-arrow .icon {
    width: 16px;
    height: 16px;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--accent-deep);
}

.mini-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(44, 70, 54, 0.3);
    text-underline-offset: 3px;
}

.mini-link:hover {
    color: var(--accent-deep);
    text-decoration-color: currentColor;
}

.mini-link--danger {
    color: var(--danger);
    text-decoration-color: rgba(176, 75, 62, 0.3);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
    background: var(--cream-deep);
    color: var(--green);
}

.icon-button--danger:hover {
    background: #f8e9e6;
    color: var(--danger);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--green);
}

.back-link .icon {
    width: 15px;
    height: 15px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.eyebrow--light {
    color: rgba(246, 242, 232, 0.66);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.pill--light {
    background: rgba(255, 253, 248, 0.9);
    color: var(--green);
}

.pill--accent {
    background: var(--accent);
    color: #fff8f2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    white-space: nowrap;
}

.badge.is-pending {
    background: #f7ead2;
    color: #95662b;
}

.badge.is-shipped {
    background: #dfe9ee;
    color: #3d677c;
}

.badge.is-completed,
.badge.is-paid {
    background: #e1ecdf;
    color: #3f6b4f;
}

.badge.is-cancelled,
.badge.is-unpaid {
    background: #f4e2dd;
    color: #a34e40;
}

.badge.is-refunded,
.badge.is-muted {
    background: #ebe8e1;
    color: #77766c;
}

.badge--plain {
    padding: 3px 8px;
    font-size: 10.5px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.avatar--sm {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.avatar--xs {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.avatar--lg {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

.avatar--admin {
    background: var(--green);
    color: var(--cream);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label,
.label-row label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.field label span {
    color: var(--accent);
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-hint {
    color: var(--ink-faint);
    font-size: 11.5px;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder,
textarea::placeholder {
    color: #a5a89e;
}

.input:hover {
    border-color: #cfc8b8;
}

.input:focus {
    border-color: var(--green-soft);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 70, 54, 0.09);
}

.input:disabled {
    background: var(--cream-deep);
    color: var(--ink-faint);
}

.textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}

.textarea--lg {
    min-height: 220px;
}

.input--file {
    padding: 9px 10px;
    font-size: 12.5px;
}

.input--file::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--sage);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.field__error {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
}

.field-hint {
    color: var(--ink-faint);
    font-size: 11.5px;
    line-height: 1.55;
}

.field-hint:last-child {
    margin-top: -2px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid--tight {
    gap: 14px;
}

.form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field--full {
    grid-column: 1 / -1;
}

.select-wrap {
    position: relative;
    min-width: 150px;
}

.select-wrap select {
    width: 100%;
    min-height: 48px;
    padding: 10px 38px 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    appearance: none;
    cursor: pointer;
}

.select-wrap select:focus {
    border-color: var(--green-soft);
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 70, 54, 0.09);
}

.select-wrap > .icon {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 15px;
    height: 15px;
    color: var(--ink-soft);
    transform: translateY(-50%);
    pointer-events: none;
}

.select-wrap--sm {
    min-width: 132px;
}

.select-wrap--sm select {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 12.5px;
    cursor: pointer;
}

.check-inline input {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    cursor: pointer;
}

.switch-row > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.switch-row strong {
    font-size: 13px;
}

.switch-row small {
    color: var(--ink-faint);
    font-size: 11.5px;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-row i {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: #d9d4c8;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}

.switch-row i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s var(--ease);
}

.switch-row input:checked + i {
    background: var(--green);
}

.switch-row input:checked + i::after {
    transform: translateX(18px);
}

.switch-row input:focus-visible + i {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.announcement {
    background: var(--green-deep);
    color: rgba(246, 242, 232, 0.76);
    font-size: 10.5px;
    letter-spacing: 0.13em;
    text-align: center;
}

.announcement__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 33px;
    padding: 6px 20px;
}

.announcement__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(246, 242, 232, 0.45);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(246, 242, 232, 0.9);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(35, 48, 38, 0.04);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    min-height: 78px;
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
}

.brand__mark svg {
    width: 36px;
    height: 36px;
}

/* 自定义 Logo：圆形裁切填满品牌圆标 */
.brand__mark img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
}

.brand__text strong {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand__text small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.2em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-width: 0;
}

.main-nav > a,
.nav-dropdown > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.main-nav > a::after,
.nav-dropdown > summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.main-nav > a:hover,
.nav-dropdown > summary:hover,
.main-nav > a.is-active {
    color: var(--green);
}

.main-nav > a:hover::after,
.nav-dropdown > summary:hover::after,
.main-nav > a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary .icon {
    width: 13px;
    height: 13px;
    transition: transform 0.25s ease;
}

.nav-dropdown[open] > summary .icon {
    transform: rotate(180deg);
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 470px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-md);
    transform: translateX(-50%);
    animation: dropdown-in 0.25s var(--ease);
}

.nav-dropdown__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.nav-dropdown__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.nav-dropdown__grid a {
    display: flex;
    flex-direction: column;
    padding: 11px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.nav-dropdown__grid a:hover {
    background: var(--cream);
}

.nav-dropdown__grid span {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.nav-dropdown__grid small {
    color: var(--ink-faint);
    font-size: 11px;
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translate(-50%, -5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.header-search {
    display: flex;
    align-items: center;
    width: 178px;
    height: 38px;
    padding: 0 5px 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 248, 0.5);
    transition: border-color 0.2s ease, width 0.3s var(--ease), background 0.2s ease;
}

.header-search:focus-within {
    width: 210px;
    border-color: var(--green-soft);
    background: var(--paper);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    outline: none;
}

.header-search input::-webkit-search-cancel-button {
    display: none;
}

.header-search button {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
}

.header-search button:hover {
    background: var(--cream-deep);
    color: var(--green);
}

.header-search .icon {
    width: 15px;
    height: 15px;
}

.header-account,
.header-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 3px;
    color: var(--ink-soft);
    font-size: 12.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header-account:hover,
.header-cart:hover {
    color: var(--green);
}

.header-account .icon,
.header-cart .icon {
    width: 18px;
    height: 18px;
}

.header-cart {
    position: relative;
    gap: 7px;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--white);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
}

.user-menu {
    position: relative;
}

.user-menu__summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.user-menu__summary::-webkit-details-marker {
    display: none;
}

.user-menu__summary > .icon {
    width: 13px;
    height: 13px;
}

.user-menu__name {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
    animation: dropdown-in 0.2s var(--ease);
}

.user-menu__head {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 5px;
}

.user-menu__head strong {
    font-family: var(--font-display);
    font-size: 16px;
}

.user-menu__head small {
    color: var(--ink-faint);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu__panel a,
.user-menu__panel button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--ink-soft);
    font-size: 12.5px;
    text-align: left;
}

.user-menu__panel a:hover,
.user-menu__panel button:hover {
    background: var(--cream);
    color: var(--green);
}

.user-menu__panel .icon {
    width: 15px;
    height: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .menu-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 50px rgba(30, 49, 39, 0.12);
}

.mobile-menu .container {
    padding-top: 18px;
    padding-bottom: 24px;
}

.mobile-search {
    display: flex;
    align-items: center;
    height: 46px;
    margin-bottom: 16px;
    padding: 0 7px 0 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--cream);
}

.mobile-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
}

.mobile-search button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
}

.mobile-menu nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px 16px;
}

.mobile-menu nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   提示条
   -------------------------------------------------------------------------- */

.flash-stack {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    margin-bottom: 4px;
}

.flash-stack--admin {
    margin-top: 0;
    margin-bottom: 22px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(44, 70, 54, 0.12);
    border-radius: 13px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: opacity 0.24s ease, transform 0.24s ease;
    animation: flash-in 0.3s var(--ease);
}

.flash.is-leaving {
    opacity: 0;
    transform: translateY(-5px);
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    flex: 0 0 auto;
}

.flash__icon .icon {
    width: 13px;
    height: 13px;
}

.flash--success .flash__icon {
    background: #e0ecdf;
    color: var(--success);
}

.flash--error {
    border-color: #e7cbc6;
    background: #fffaf8;
}

.flash--error .flash__icon {
    background: #f6e3df;
    color: var(--danger);
}

.flash--info .flash__icon {
    background: #e7ebdf;
}

.flash p {
    flex: 1;
    padding-top: 1px;
    color: var(--ink);
    font-size: 13px;
}

.flash__close {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-faint);
}

.flash__close:hover {
    background: var(--cream-deep);
    color: var(--ink);
}

.flash__close .icon {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 88px;
    background:
        radial-gradient(circle at 8% 8%, rgba(223, 230, 216, 0.55), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(242, 222, 211, 0.45), transparent 30%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    border-bottom: 1px solid rgba(228, 222, 208, 0.7);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 66px;
    align-items: center;
}

.hero-copy {
    max-width: 600px;
    padding-bottom: 8px;
}

.hero h1 {
    margin-top: 20px;
    font-family: var(--font-display);
    font-size: clamp(42px, 5.3vw, 72px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.hero-highlight {
    position: relative;
    display: inline-block;
    color: var(--green);
}

.hero-highlight::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: 6%;
    left: -4px;
    height: 14%;
    border-radius: 40%;
    background: var(--accent-soft);
    z-index: -1;
    transform: rotate(-1.5deg);
}

.hero-lead {
    max-width: 470px;
    margin-top: 24px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 38px;
    margin-top: 46px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats dt {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}

.hero-stats dd {
    color: var(--ink-faint);
    font-size: 11.5px;
    letter-spacing: 0.02em;
}

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

.hero-visual__glow {
    position: absolute;
    top: 8%;
    right: 2%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sage);
    filter: blur(4px);
    opacity: 0.8;
}

.hero-arch {
    position: absolute;
    top: 0;
    right: 7%;
    width: 74%;
    height: 96%;
    overflow: hidden;
    border-radius: 260px 260px 26px 26px;
    background: var(--sage);
    box-shadow: var(--shadow-lg);
}

.hero-arch::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 49, 39, 0.45), transparent 36%);
    pointer-events: none;
}

.hero-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.hero-arch:hover img {
    transform: scale(1.03);
}

.hero-arch__caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--cream);
}

.hero-arch__caption span {
    font-size: 9.5px;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.hero-arch__caption strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}

.hero-float {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-float--rating {
    top: 22%;
    left: 0;
    display: grid;
    gap: 2px;
    width: 158px;
    padding: 14px 16px;
    border-radius: 16px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--gold);
}

.rating-stars .icon {
    width: 11px;
    height: 11px;
    fill: currentColor;
    stroke: currentColor;
}

.hero-float--rating strong {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.1;
}

.hero-float--rating span {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.hero-float--product {
    right: 1%;
    bottom: 11%;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 270px;
    padding: 9px 12px 9px 9px;
    border-radius: 16px;
    transition: transform 0.25s var(--ease);
}

.hero-float--product:hover {
    transform: translateY(-3px);
}

.hero-float--product img {
    width: 58px;
    height: 58px;
    border-radius: 11px;
    object-fit: cover;
}

.hero-float--product > span {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.hero-float--product small {
    color: var(--ink-faint);
    font-size: 9px;
}

.hero-float--product strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-float--product em {
    color: var(--accent-deep);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.hero-float--product > .icon {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.hero-float--shipping {
    right: 23%;
    bottom: 2%;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--green);
    font-size: 10.5px;
    font-weight: 600;
}

.hero-float--shipping .icon {
    width: 14px;
    height: 14px;
}

.hero-stamp {
    position: absolute;
    right: 1%;
    top: 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(44, 70, 54, 0.25);
    border-radius: 50%;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    line-height: 1.5;
    transform: rotate(9deg);
}

.hero-stamp::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(44, 70, 54, 0.2);
    border-radius: 50%;
}

.hero-stamp span:nth-child(3) {
    margin-top: 2px;
    font-size: 11px;
}

.section {
    padding: 90px 0;
}

.section--categories {
    padding-top: 82px;
}

.section--featured {
    padding-top: 72px;
    background: linear-gradient(to bottom, transparent, rgba(255, 253, 248, 0.6) 18%, transparent);
}

.section--new {
    padding-top: 40px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.section-head h2 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-sub {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.category-card {
    position: relative;
    display: block;
    min-height: 245px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sage);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.category-card__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(30, 49, 39, 0.78), rgba(30, 49, 39, 0.02) 65%);
}

.category-card__number {
    position: absolute;
    top: 18px;
    left: 20px;
    color: rgba(255, 253, 248, 0.72);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.category-card__content {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--cream);
}

.category-card__content strong {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.3;
}

.category-card__content small {
    display: -webkit-box;
    overflow: hidden;
    max-width: 90%;
    margin-top: 3px;
    color: rgba(246, 242, 232, 0.68);
    font-size: 11.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.category-card__content em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    color: rgba(246, 242, 232, 0.92);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.04em;
}

.category-card__content .icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s var(--ease);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card:hover .category-card__content .icon {
    transform: translateX(4px);
}

.product-grid {
    display: grid;
    gap: 28px 22px;
}

.product-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    min-width: 0;
}

.product-card__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sage);
    aspect-ratio: 1 / 1;
}

.product-card__image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    pointer-events: none;
}

.quick-add {
    position: absolute;
    right: 13px;
    bottom: 13px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card:hover .quick-add,
.product-card:focus-within .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.quick-add button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    box-shadow: 0 8px 18px rgba(30, 49, 39, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.quick-add button:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.quick-add .icon {
    width: 18px;
    height: 18px;
}

.product-card__soldout {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(30, 49, 39, 0.7);
    color: var(--cream);
    font-size: 10px;
    backdrop-filter: blur(4px);
}

.product-card__body {
    padding: 14px 3px 0;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.product-card__meta span:first-child {
    color: var(--green-soft);
}

.product-card h3 {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.product-card h3 a {
    transition: color 0.2s ease;
}

.product-card:hover h3 a {
    color: var(--accent-deep);
}

.product-card__subtitle {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 11.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.price strong {
    color: var(--green);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.price del {
    color: var(--ink-faint);
    font-size: 11px;
}

.product-card__arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-card__arrow .icon {
    width: 14px;
    height: 14px;
}

.product-card__arrow:hover {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.story-section {
    margin: 20px 0;
    padding: 96px 0;
    background: var(--green-deep);
    color: var(--cream);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: center;
    gap: 88px;
}

.story-visual {
    position: relative;
    min-height: 520px;
}

.story-photo {
    overflow: hidden;
    border-radius: 180px 180px 22px 22px;
    background: var(--green-soft);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-photo--tall {
    width: 60%;
    height: 470px;
    margin-left: 8%;
}

.story-photo--small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    height: 260px;
    border: 8px solid var(--green-deep);
    border-radius: 120px 120px 20px 20px;
}

.story-badge {
    position: absolute;
    top: 21%;
    right: 3%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--green);
    box-shadow: var(--shadow-md);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.story-badge .icon {
    width: 18px;
    height: 18px;
}

.story-copy h2 {
    margin-top: 17px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.story-copy > p {
    max-width: 510px;
    margin-top: 22px;
    color: rgba(246, 242, 232, 0.66);
    font-size: 13.5px;
    line-height: 1.95;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 28px 0 32px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(246, 242, 232, 0.84);
    font-size: 13px;
}

.check-list .icon {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    color: #b9cbb7;
}

.values-section {
    padding: 30px 0 42px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 3px 18px;
    border-right: 1px solid var(--line);
}

.value-item:last-child {
    border-right: 0;
}

.value-item__icon {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    flex: 0 0 auto;
}

.value-item__icon .icon {
    width: 17px;
    height: 17px;
}

.value-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}

.value-item p {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 10.5px;
    line-height: 1.55;
}

.quote-section {
    padding: 72px 0 94px;
    text-align: center;
}

.quote-inner {
    position: relative;
    padding: 0 24px;
}

.quote-inner blockquote {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.quote-sign {
    display: block;
    margin-top: 20px;
    color: var(--ink-faint);
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

.quote-deco {
    position: absolute;
    top: -20px;
    left: 50%;
    color: var(--sage-deep);
    transform: translateX(-50%);
}

.quote-deco .icon {
    width: 26px;
    height: 26px;
}

/* --------------------------------------------------------------------------
   商品列表
   -------------------------------------------------------------------------- */

.page-hero {
    padding: 46px 0 42px;
    background: linear-gradient(to bottom, rgba(255, 253, 248, 0.58), transparent);
    border-bottom: 1px solid var(--line-soft);
}

.page-hero--compact {
    padding: 32px 0 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: var(--ink-faint);
    font-size: 10.5px;
    letter-spacing: 0.02em;
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb span:last-child {
    color: var(--ink-soft);
}

.page-hero__grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.page-hero h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.page-hero__grid p {
    max-width: 560px;
    margin-top: 11px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.page-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    color: var(--ink-faint);
    font-size: 12px;
    white-space: nowrap;
}

.page-hero__meta strong {
    color: var(--ink);
    font-size: 16px;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px 5px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 10.5px;
}

.search-chip a {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cream-deep);
}

.search-chip .icon {
    width: 11px;
    height: 11px;
}

.catalog {
    padding: 30px 0 90px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 248, 0.45);
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip span {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.chip:hover {
    border-color: var(--green-soft);
    color: var(--green);
}

.chip.is-active {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.chip.is-active span {
    color: rgba(246, 242, 232, 0.6);
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.sort-form > label {
    color: var(--ink-faint);
    font-size: 11px;
}

.sort-form .select-wrap {
    min-width: 150px;
}

.sort-form .select-wrap select {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: 12px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 74px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.45);
    text-align: center;
}

.empty-state--large {
    padding: 100px 24px;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
}

.empty-state__icon .icon {
    width: 26px;
    height: 26px;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 600;
}

.empty-state p {
    max-width: 360px;
    margin: 8px 0 22px;
    color: var(--ink-soft);
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 52px;
}

.pagination__page,
.pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: 12.5px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination__page:hover,
.pagination__arrow:hover {
    border-color: var(--line);
    background: var(--paper);
    color: var(--green);
}

.pagination__page.is-current {
    background: var(--green);
    color: var(--cream);
}

.pagination__arrow {
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.5);
}

.pagination__arrow .icon {
    width: 15px;
    height: 15px;
}

.pagination__arrow.is-disabled {
    opacity: 0.35;
}

.pagination__ellipsis {
    padding: 0 3px;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   商品详情
   -------------------------------------------------------------------------- */

.product-breadcrumb {
    margin: 26px 0 18px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 64px;
    padding-bottom: 72px;
}

.product-gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sage);
    box-shadow: var(--shadow-sm);
}

.product-gallery__main img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-gallery__badge {
    position: absolute;
    top: 17px;
    left: 17px;
}

.product-gallery__index {
    position: absolute;
    right: 19px;
    bottom: 16px;
    color: rgba(255, 253, 248, 0.8);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
}

.product-gallery__notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.product-gallery__notes div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.45);
}

.product-gallery__notes span {
    color: var(--ink-faint);
    font-size: 9.5px;
    letter-spacing: 0.05em;
}

.product-gallery__notes strong {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
}

.product-info {
    padding-top: 10px;
}

.product-info__category {
    display: inline-block;
    color: var(--accent-deep);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.product-info h1 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.product-info__subtitle {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.product-info__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: var(--ink-faint);
    font-size: 11px;
}

.product-info__rating strong {
    color: var(--ink);
    font-size: 12px;
}

.product-info__rating .rating-stars .icon {
    width: 12px;
    height: 12px;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 25px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-price strong {
    color: var(--green);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.product-price del {
    color: var(--ink-faint);
    font-size: 14px;
}

.product-price__save {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 10px;
    font-weight: 700;
}

.product-info__desc {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.9;
}

.stock-meter {
    margin-top: 21px;
}

.stock-meter__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-faint);
    font-size: 10.5px;
}

.stock-meter__label span:first-child {
    color: var(--ink-soft);
}

.stock-meter__bar {
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--cream-deep);
}

.stock-meter__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, var(--sage-deep), var(--green-soft));
}

.product-buy {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    margin-top: 24px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
}

.qty-stepper button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
}

.qty-stepper button:hover {
    background: var(--cream-deep);
    color: var(--green);
}

.qty-stepper button .icon {
    width: 14px;
    height: 14px;
}

.qty-stepper input {
    width: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

.qty-stepper--sm {
    min-height: 38px;
    width: 108px;
}

.qty-stepper--sm button {
    width: 28px;
    height: 28px;
    margin: 0 2px;
}

.qty-stepper--sm input {
    width: 32px;
    font-size: 12.5px;
}

.soldout-box {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.soldout-box strong {
    font-family: var(--font-display);
    font-size: 20px;
}

.soldout-box p {
    margin: 4px 0 14px;
    color: var(--ink-soft);
    font-size: 12px;
}

.product-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 25px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-perks li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.product-perks .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--green-soft);
}

.product-perks span {
    display: flex;
    flex-direction: column;
}

.product-perks strong {
    font-size: 10.5px;
    font-weight: 600;
}

.product-perks small {
    color: var(--ink-faint);
    font-size: 9px;
    line-height: 1.5;
}

.product-accordions {
    margin-top: 16px;
}

.product-accordions details {
    border-bottom: 1px solid var(--line);
}

.product-accordions summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 2px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.product-accordions summary::-webkit-details-marker {
    display: none;
}

.product-accordions summary .icon {
    width: 14px;
    height: 14px;
    color: var(--ink-faint);
    transition: transform 0.25s ease;
}

.product-accordions details[open] summary .icon {
    transform: rotate(45deg);
}

.product-accordions p {
    padding: 0 2px 16px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.85;
}

.product-story {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 50px;
    margin: 20px 0 0;
    padding: 52px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-story__head h2 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.35;
}

.product-story__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
}

.prose p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 2;
}

.prose p:last-child {
    margin-bottom: 0;
}

.product-story__aside {
    position: relative;
    align-self: start;
    padding: 24px 22px;
    border-left: 1px solid var(--line);
}

.product-story__mark {
    position: absolute;
    top: 0;
    left: 15px;
    color: var(--sage-deep);
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1;
}

.product-story__aside p {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.8;
}

.product-story__aside span:last-child {
    display: block;
    margin-top: 15px;
    color: var(--ink-faint);
    font-size: 10.5px;
}

.related-section {
    padding: 54px 0 84px;
}

.related-section--cart {
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   购物车
   -------------------------------------------------------------------------- */

.cart-section {
    padding: 30px 0 90px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.cart-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.cart-list__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 142px 82px 38px;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(238, 233, 220, 0.38);
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 142px 82px 38px;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft);
}

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

.cart-item__product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cart-item__image {
    width: 86px;
    height: 86px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--sage);
    flex: 0 0 auto;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    min-width: 0;
}

.cart-item__category {
    color: var(--ink-faint);
    font-size: 9.5px;
    letter-spacing: 0.04em;
}

.cart-item__info h2 {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.cart-item__info p {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 10.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline-alert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 10px;
}

.inline-alert .icon {
    width: 12px;
    height: 12px;
}

.cart-item__price,
.cart-item__total {
    font-size: 13px;
}

.cart-item__total {
    color: var(--green);
    font-weight: 700;
}

.cart-item__qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cart-qty-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.cart-item__remove form {
    display: flex;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.summary-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.shipping-progress {
    margin-top: 17px;
    padding: 12px 13px;
    border-radius: 11px;
    background: var(--cream);
}

.shipping-progress__text {
    color: var(--ink-soft);
    font-size: 10.5px;
}

.shipping-progress__text strong {
    color: var(--green);
}

.shipping-progress__text .icon {
    width: 12px;
    height: 12px;
    vertical-align: -2px;
}

.shipping-progress__bar {
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 10px;
    background: #e5dfd1;
}

.shipping-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, var(--accent), var(--gold));
    transition: width 0.5s var(--ease);
}

.summary-lines {
    display: grid;
    gap: 9px;
    margin: 19px 0 20px;
}

.summary-lines > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 12px;
}

.summary-lines dt {
    color: var(--ink-soft);
}

.summary-lines dd {
    color: var(--ink);
}

.summary-lines__total {
    margin-top: 5px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.summary-lines__total dt {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.summary-lines__total dd {
    color: var(--green);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.summary-note {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: 9.5px;
    line-height: 1.55;
}

.summary-note .icon {
    width: 12px;
    height: 12px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.summary-payments {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-faint);
    font-size: 9px;
}

.summary-payments span:not(:first-child) {
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--cream);
    font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   结算
   -------------------------------------------------------------------------- */

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.checkout-steps > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-faint);
    font-size: 11px;
}

.checkout-steps i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    font-size: 9px;
    font-style: normal;
}

.checkout-steps .is-done {
    color: var(--green);
}

.checkout-steps .is-done i {
    border-color: var(--sage-deep);
    background: var(--sage);
    color: var(--green);
}

.checkout-steps .is-current {
    color: var(--ink);
    font-weight: 600;
}

.checkout-steps .is-current i {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.checkout-steps > span:not(:last-child)::after {
    content: "";
    width: 36px;
    height: 1px;
    margin-left: 4px;
    background: var(--line);
}

.checkout-section {
    padding: 26px 0 86px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 30px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 16px;
}

.panel {
    padding: 25px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.panel--compact {
    padding: 20px 21px;
}

.panel h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.panel__head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.panel__head--simple {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.panel__number {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 9px;
    flex: 0 0 auto;
}

.panel__head p {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 11.5px;
}

.panel__note {
    margin-top: 14px;
    color: var(--ink-faint);
    font-size: 10.5px;
}

.payment-options {
    display: grid;
    gap: 9px;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option:hover {
    border-color: var(--sage-deep);
}

.payment-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(223, 230, 216, 0.3);
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--green);
    flex: 0 0 auto;
}

.payment-option__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.payment-option__text strong {
    font-size: 12.5px;
}

.payment-option__text small {
    color: var(--ink-faint);
    font-size: 10px;
    line-height: 1.55;
}

.payment-option__check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent;
    flex: 0 0 auto;
}

.payment-option__check .icon {
    width: 12px;
    height: 12px;
}

.payment-option:has(input:checked) .payment-option__check {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.checkout-back {
    padding: 4px 2px;
}

.checkout-aside {
    position: sticky;
    top: 100px;
}

.summary-card--checkout {
    padding: 22px;
}

.checkout-items {
    display: grid;
    gap: 11px;
    max-height: 330px;
    overflow-y: auto;
    margin-bottom: 18px;
    padding-right: 3px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-item__image {
    position: relative;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sage);
    flex: 0 0 auto;
}

.checkout-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item__image span {
    position: absolute;
    top: -1px;
    right: -1px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 0 10px 0 7px;
    background: var(--green);
    color: var(--cream);
    font-size: 9px;
    font-weight: 700;
}

.checkout-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.checkout-item__info strong {
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item__info small {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.checkout-item__price {
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   我的订单
   -------------------------------------------------------------------------- */

.orders-section {
    padding: 26px 0 90px;
}

.order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.order-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.order-tab span {
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--cream-deep);
    color: var(--ink-faint);
    font-size: 9px;
}

.order-tab:hover {
    background: var(--cream-deep);
    color: var(--green);
}

.order-tab.is-active {
    background: var(--green);
    color: var(--cream);
}

.order-tab.is-active span {
    background: rgba(246, 242, 232, 0.18);
    color: var(--cream);
}

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

.order-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(238, 233, 220, 0.3);
}

.order-card__head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.order-card__no {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.03em;
}

.order-card__date {
    color: var(--ink-faint);
    font-size: 10px;
}

.order-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 150px;
    align-items: center;
    gap: 20px;
    padding: 17px 20px;
}

.order-card__items {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.order-thumbs {
    display: flex;
    flex: 0 0 auto;
}

.order-thumbs img,
.order-thumbs__more {
    width: 49px;
    height: 49px;
    border: 2px solid var(--paper);
    border-radius: 10px;
    object-fit: cover;
    background: var(--sage);
}

.order-thumbs img + img,
.order-thumbs__more {
    margin-left: -10px;
}

.order-thumbs__more {
    display: grid;
    place-items: center;
    background: var(--cream-deep);
    color: var(--ink-soft);
    font-size: 10px;
    font-style: normal;
}

.order-card__names {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.order-card__names strong {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card__names small {
    color: var(--ink-faint);
    font-size: 10px;
}

.order-card__total {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.order-card__total small {
    color: var(--ink-faint);
    font-size: 9px;
}

.order-card__total strong {
    color: var(--green);
    font-size: 17px;
    font-weight: 700;
}

.order-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.order-card__hint {
    color: var(--ink-faint);
    font-size: 9.5px;
    text-align: right;
}

.order-detail-section {
    padding: 28px 0 90px;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.order-detail-main,
.order-detail-aside {
    display: grid;
    gap: 16px;
}

.order-progress {
    display: flex;
    align-items: flex-start;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.order-progress__step {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 120px;
    text-align: center;
}

.order-progress__step > span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    margin-bottom: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 9px;
}

.order-progress__step > span .icon {
    width: 14px;
    height: 14px;
}

.order-progress__step strong {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}

.order-progress__step small {
    color: var(--ink-faint);
    font-size: 9px;
    line-height: 1.45;
}

.order-progress__step.is-done > span {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.order-progress__step.is-current > span {
    box-shadow: 0 0 0 4px rgba(44, 70, 54, 0.12);
}

.order-progress__step.is-done strong {
    color: var(--green);
}

.order-progress__line {
    flex: 1;
    height: 1px;
    margin-top: 15px;
    background: var(--line);
}

.order-progress__line.is-done {
    background: var(--green-soft);
}

.order-cancelled {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #e6d0cb;
    border-radius: var(--radius);
    background: #fcf1ee;
    color: var(--danger);
}

.order-cancelled .icon {
    width: 21px;
    height: 21px;
    margin-top: 2px;
}

.order-cancelled strong {
    display: block;
    font-size: 13px;
}

.order-cancelled p {
    margin-top: 2px;
    color: #8a6259;
    font-size: 11.5px;
}

.order-no {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.03em;
}

.order-items {
    display: grid;
}

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

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

.order-item__image {
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--sage);
    flex: 0 0 auto;
}

.order-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.order-item__info strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.order-item__info small {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.order-item__qty {
    min-width: 40px;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: center;
}

.order-item__total {
    min-width: 78px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.summary-lines--order {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid var(--line-soft);
}

.detail-list {
    display: grid;
    gap: 13px;
    margin-top: 15px;
}

.detail-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    font-size: 11.5px;
}

.detail-list dt {
    flex: 0 0 auto;
    color: var(--ink-faint);
}

.detail-list dd {
    color: var(--ink);
    text-align: right;
}

.detail-list--compact {
    gap: 9px;
    margin-top: 12px;
}

.order-note {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.8;
}

.order-help {
    background: var(--green-deep);
    color: var(--cream);
    border-color: var(--green-deep);
}

.order-help__icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    margin-bottom: 11px;
    border-radius: 50%;
    background: rgba(246, 242, 232, 0.12);
    color: var(--cream);
}

.order-help__icon .icon {
    width: 15px;
    height: 15px;
}

.order-help h2 {
    color: var(--cream);
    font-size: 18px;
}

.order-help p {
    margin-top: 5px;
    color: rgba(246, 242, 232, 0.6);
    font-size: 11px;
    line-height: 1.7;
}

.order-help .link-arrow {
    margin-top: 13px;
    color: var(--cream);
    font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   下单成功
   -------------------------------------------------------------------------- */

.success-section {
    padding: 46px 0 90px;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 230, 216, 0.7), transparent 35%);
}

.success-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 54px 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    animation: success-pop 0.6s var(--ease);
}

.success-mark .icon {
    width: 31px;
    height: 31px;
    stroke-width: 1.8;
}

.success-mark__ring {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(44, 70, 54, 0.2);
    border-radius: 50%;
    animation: success-ring 2.6s ease-out infinite;
}

@keyframes success-pop {
    0% { opacity: 0; transform: scale(0.65); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes success-ring {
    0% { opacity: 0.8; transform: scale(0.95); }
    70%, 100% { opacity: 0; transform: scale(1.28); }
}

.success-card h1 {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.success-lead {
    max-width: 460px;
    margin: 10px auto 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.success-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--line);
}

.success-meta div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 10px;
    background: var(--cream);
}

.success-meta span {
    color: var(--ink-faint);
    font-size: 9px;
}

.success-meta strong {
    overflow-wrap: anywhere;
    font-size: 11.5px;
    font-weight: 600;
}

.success-meta div:first-child strong {
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.success-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 28px;
    padding: 20px 0 4px;
    border-top: 1px solid var(--line);
}

.success-steps > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ink-faint);
}

.success-steps > div > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
    font-family: var(--font-mono);
    font-size: 9px;
}

.success-steps > div > span .icon {
    width: 13px;
    height: 13px;
}

.success-steps strong {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
}

.success-steps small {
    font-size: 9px;
}

.success-steps .is-done > span {
    border-color: var(--green);
    background: var(--green);
    color: var(--cream);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.success-summary {
    max-width: 780px;
    margin: 20px auto 0;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.62);
}

.success-summary h2 {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.success-items {
    display: grid;
    gap: 10px;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 11px;
}

.success-item img {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--sage);
}

.success-item div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.success-item strong {
    font-size: 11.5px;
    font-weight: 600;
}

.success-item small {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.success-item > span {
    color: var(--ink-soft);
    font-size: 11.5px;
}

.success-summary__line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 9px;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.success-summary__line--total {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */

.page-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 10%, rgba(223, 230, 216, 0.65), transparent 30%),
        radial-gradient(circle at 95% 90%, rgba(242, 222, 211, 0.5), transparent 28%),
        var(--cream);
}

.page-auth .auth-main {
    flex: 1;
}

.page-auth .auth-footer {
    margin-top: auto;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
    padding: 23px 0;
}

.auth-header__link {
    color: var(--ink-soft);
    font-size: 11.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-header__link:hover {
    color: var(--green);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: min(1120px, calc(100% - 64px));
    margin: 6px auto 40px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    overflow: hidden;
    padding: 38px;
    background: var(--green-deep);
    color: var(--cream);
    isolation: isolate;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(20, 14, 8, 0.85), rgba(20, 14, 8, 0.1) 66%);
}

.auth-visual__image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.auth-visual__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.auth-visual--warm {
    background: color-mix(in srgb, var(--accent-deep) 55%, var(--green-deep));
}

.auth-visual--admin {
    background: #17251d;
}

.auth-visual__copy {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.auth-visual__copy blockquote {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 500;
    line-height: 1.5;
}

.auth-visual__copy p {
    margin-top: 14px;
    color: rgba(246, 242, 232, 0.62);
    font-size: 12px;
    line-height: 1.85;
}

.auth-visual__sign {
    display: block;
    margin-top: 22px;
    color: rgba(246, 242, 232, 0.5);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.auth-visual__stamp {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(246, 242, 232, 0.25);
    border-radius: 50%;
    color: rgba(246, 242, 232, 0.62);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    line-height: 1.5;
    text-align: center;
    transform: rotate(8deg);
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px clamp(34px, 5vw, 70px);
}

.auth-card__head h1 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.auth-card__head p {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 12px;
}

.auth-form {
    margin-top: 26px;
}

.auth-form .field {
    margin-bottom: 16px;
}

.auth-form .btn {
    margin-top: 6px;
}

.auth-form .field-hint {
    margin: -3px 0 14px;
}

.auth-switch {
    margin-top: 22px;
    color: var(--ink-faint);
    font-size: 11.5px;
    text-align: center;
}

.auth-switch a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch .icon {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
}

.demo-box {
    margin-top: 23px;
    padding: 13px 14px;
    border: 1px dashed color-mix(in srgb, var(--ink-faint) 45%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--cream) 55%, transparent);
}

.demo-box__head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 10.5px;
}

.demo-box__head .icon {
    width: 13px;
    height: 13px;
}

.demo-box__head .mini-link {
    margin-left: auto;
    font-size: 10px;
}

.demo-box p {
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: 10px;
    line-height: 1.55;
}

.demo-box--admin {
    border-color: color-mix(in srgb, var(--green) 25%, transparent);
}

.admin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-kicker .icon {
    width: 14px;
    height: 14px;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
    padding: 6px 0 30px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   错误页
   -------------------------------------------------------------------------- */

.error-section {
    padding: 80px 0 120px;
}

.error-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 44px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.error-code {
    display: block;
    color: var(--sage-deep);
    font-family: var(--font-display);
    font-size: clamp(70px, 13vw, 120px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;
}

.error-card h1 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 31px;
    font-weight: 600;
}

.error-card > p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 13px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.error-debug {
    max-height: 180px;
    overflow: auto;
    margin-top: 18px;
    padding: 12px;
    border-radius: 8px;
    background: var(--cream);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
    text-align: left;
    white-space: pre-wrap;
}

.error-note {
    display: block;
    margin-top: 20px;
    color: var(--ink-faint);
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
    padding: 66px 0 24px;
    background: var(--green-deep);
    color: var(--cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.8fr 0.9fr 1fr;
    gap: 52px;
    padding-bottom: 44px;
}

.brand--footer {
    color: var(--cream);
}

.brand--footer .brand__mark {
    background: rgba(246, 242, 232, 0.12);
    color: var(--cream);
}

.brand--footer .brand__text small {
    color: rgba(246, 242, 232, 0.42);
}

.footer-brand > p {
    margin-top: 18px;
    color: rgba(246, 242, 232, 0.55);
    font-size: 13px;
    line-height: 1.9;
}

.footer-note {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 9px;
    border: 1px solid rgba(246, 242, 232, 0.16);
    border-radius: var(--radius-pill);
    color: rgba(246, 242, 232, 0.48);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 6px;
    color: rgba(246, 242, 232, 0.42);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.footer-column a,
.footer-column > span {
    color: rgba(246, 242, 232, 0.7);
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--cream);
}

.footer-contact p {
    color: rgba(246, 242, 232, 0.52);
    font-size: 12.5px;
    line-height: 1.8;
}

.footer-mail {
    margin-top: 4px;
    color: var(--cream) !important;
    font-family: var(--font-mono);
    font-size: 13px !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(246, 242, 232, 0.1);
    color: rgba(246, 242, 232, 0.34);
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

/* 页脚 ICP 备案行 */
.footer-beian {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(246, 242, 232, 0.55);
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

.footer-beian a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: var(--cream);
}

.footer-beian img {
    display: block;
    flex: none;
}

/* --------------------------------------------------------------------------
   管理后台
   -------------------------------------------------------------------------- */

.admin-body {
    background: #f2efe7;
    color: var(--ink);
    font-size: 13px;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    width: 258px;
    overflow-y: auto;
    padding: 26px 18px 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(82, 107, 88, 0.3), transparent 30%),
        var(--green-deep);
    color: var(--cream);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 8px 24px;
}

.admin-brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(246, 242, 232, 0.18);
    border-radius: 50%;
    color: var(--cream);
}

.admin-brand__mark svg {
    width: 28px;
    height: 28px;
}

/* 自定义 Logo：圆形裁切填满后台品牌圆标 */
.admin-brand__mark img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.admin-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-brand strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.admin-brand small {
    margin-top: 3px;
    color: rgba(246, 242, 232, 0.4);
    font-size: 8px;
    letter-spacing: 0.19em;
}

.admin-sidebar__label {
    margin: 4px 12px 9px;
    color: rgba(246, 242, 232, 0.62);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.admin-nav {
    display: grid;
    gap: 3px;
}

.admin-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(246, 242, 232, 0.6);
    font-size: 12.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover {
    background: rgba(246, 242, 232, 0.06);
    color: var(--cream);
}

.admin-nav a.is-active {
    background: rgba(246, 242, 232, 0.11);
    color: var(--cream);
}

.admin-nav a.is-active::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -18px;
    width: 3px;
    height: 19px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
    transform: translateY(-50%);
}

.admin-nav .icon {
    width: 17px;
    height: 17px;
    opacity: 0.8;
}

.admin-nav__dot {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--accent);
}

.admin-sidebar__card {
    margin: auto 4px 18px;
    padding: 17px 15px;
    border: 1px solid rgba(246, 242, 232, 0.12);
    border-radius: 14px;
    background: rgba(246, 242, 232, 0.04);
}

.admin-sidebar__card-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: rgba(246, 242, 232, 0.08);
    color: #c7d4c3;
}

.admin-sidebar__card-icon .icon {
    width: 15px;
    height: 15px;
}

.admin-sidebar__card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
}

.admin-sidebar__card p {
    margin-top: 3px;
    color: rgba(246, 242, 232, 0.38);
    font-size: 9.5px;
    line-height: 1.7;
}

.admin-sidebar__footer {
    display: grid;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(246, 242, 232, 0.1);
}

.admin-sidebar__footer a,
.admin-sidebar__footer button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: rgba(246, 242, 232, 0.44);
    font-size: 10.5px;
    text-align: left;
}

.admin-sidebar__footer a:hover,
.admin-sidebar__footer button:hover {
    background: rgba(246, 242, 232, 0.05);
    color: var(--cream);
}

.admin-sidebar__footer .icon {
    width: 14px;
    height: 14px;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(18, 30, 23, 0.45);
    backdrop-filter: blur(2px);
}

.admin-main {
    min-height: 100vh;
    margin-left: 258px;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 83px;
    padding: 14px 34px;
    border-bottom: 1px solid #e5dfd2;
    background: rgba(246, 242, 232, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-menu-toggle {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.admin-menu-toggle .icon {
    width: 18px;
    height: 18px;
}

.admin-topbar__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar__title span {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.18em;
}

.admin-topbar__title h1 {
    overflow: hidden;
    max-width: 560px;
    margin-top: 1px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.admin-date {
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 5px 4px 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 248, 0.55);
}

.admin-user > span:last-child {
    display: flex;
    flex-direction: column;
    padding-right: 7px;
    line-height: 1.2;
}

.admin-user strong {
    font-size: 10.5px;
    font-weight: 600;
}

.admin-user small {
    color: var(--ink-faint);
    font-size: 8px;
}

.admin-content {
    padding: 28px 34px 50px;
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-page-head__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-page-head h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.admin-page-head p {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.admin-page-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

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

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 156px;
    overflow: hidden;
    padding: 19px 20px;
    border: 1px solid #e5dfd2;
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(35, 48, 38, 0.025);
}

.stat-card__icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    margin-bottom: 13px;
    border-radius: 9px;
    background: var(--cream);
    color: var(--green);
}

.stat-card__icon .icon {
    width: 16px;
    height: 16px;
}

.stat-card__label {
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.stat-card__value {
    margin-top: 3px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.stat-card__value small {
    color: var(--ink-faint);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
}

.stat-card__hint {
    margin-top: 5px;
    color: var(--ink-faint);
    font-size: 9.5px;
}

.stat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 7px;
    color: var(--green);
    font-size: 9.5px;
    font-weight: 600;
}

.stat-card__link .icon {
    width: 12px;
    height: 12px;
}

.stat-card__deco {
    position: absolute;
    top: 3px;
    right: 17px;
    color: rgba(246, 242, 232, 0.05);
    font-family: var(--font-display);
    font-size: 110px;
    line-height: 1;
    pointer-events: none;
}

.stat-card--dark {
    border-color: var(--green-deep);
    background: var(--green-deep);
}

.stat-card--dark .stat-card__icon {
    background: rgba(246, 242, 232, 0.1);
    color: #c7d4c3;
}

.stat-card--dark .stat-card__label,
.stat-card--dark .stat-card__hint {
    color: rgba(246, 242, 232, 0.5);
}

.stat-card--dark .stat-card__value {
    color: var(--cream);
}

.admin-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.admin-grid--chart {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
}

.admin-grid--wide {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
}

.admin-card {
    min-width: 0;
    padding: 21px 22px;
    border: 1px solid #e5dfd2;
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(35, 48, 38, 0.025);
}

.admin-card + .admin-card {
    margin-top: 0;
}

.admin-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.admin-card__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    letter-spacing: 0.13em;
}

.admin-card__head h3,
.admin-card > h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.admin-card__meta {
    color: var(--ink-faint);
    font-size: 9.5px;
    white-space: nowrap;
}

.admin-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--green);
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-card__link .icon {
    width: 12px;
    height: 12px;
}

.chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-faint);
    font-size: 9px;
}

.chart-legend__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 11px;
    height: 210px;
    padding: 10px 2px 0;
}

.bar-chart__col {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.bar-chart__value {
    height: 18px;
    color: var(--ink-faint);
    font-size: 8px;
    white-space: nowrap;
}

.bar-chart__track {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 34px;
    flex: 1;
    overflow: hidden;
    border-radius: 7px 7px 2px 2px;
    background: rgba(238, 233, 220, 0.65);
}

.bar-chart__bar {
    display: block;
    width: 100%;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(to top, var(--green), #6f8c72);
    transition: height 0.5s var(--ease);
}

.bar-chart__col:nth-child(7) .bar-chart__bar {
    background: linear-gradient(to top, var(--accent), #d79373);
}

.bar-chart__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 8.5px;
    line-height: 1.35;
}

.bar-chart__label small {
    color: var(--ink-faint);
    font-size: 7.5px;
}

.chart-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-faint);
    font-size: 9.5px;
}

.chart-card__footer strong {
    color: var(--ink);
}

.mini-product-list {
    display: grid;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
}

.mini-product:last-child {
    border-bottom: 0;
}

.mini-product:hover strong {
    color: var(--accent-deep);
}

.mini-product img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--sage);
    flex: 0 0 auto;
}

.mini-product > span:not(.mini-product__rank) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.mini-product strong {
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.mini-product small {
    overflow: hidden;
    color: var(--ink-faint);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-product em {
    color: var(--green);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.mini-product em.is-danger {
    color: var(--danger);
}

.mini-product__rank {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 7.5px;
    flex: 0 0 auto;
}

.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px 20px;
    text-align: center;
    color: var(--ink-faint);
}

.admin-empty > .icon {
    width: 29px;
    height: 29px;
    margin-bottom: 10px;
    color: var(--sage-deep);
}

.admin-empty h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.admin-empty p {
    margin: 3px 0 14px;
    font-size: 10.5px;
}

.admin-empty--sm {
    padding: 26px 12px;
}

.admin-empty--sm > .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
}

.admin-empty--sm p {
    margin-bottom: 0;
}

.mini-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #e5dfd2;
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.6);
}

.mini-stat span {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.mini-stat strong {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
}

.text-danger {
    color: var(--danger) !important;
}

/* 后台筛选与表格 */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.filter-form__search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(280px, 100%);
}

.filter-form__search > .icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--ink-faint);
    pointer-events: none;
}

.filter-form__search input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-size: 11.5px;
    outline: none;
}

.filter-form__search input:focus {
    border-color: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(44, 70, 54, 0.07);
}

.filter-summary {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 9.5px;
}

.filter-summary strong {
    color: var(--ink);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    white-space: nowrap;
}

.data-table th {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 2px;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 2px;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
    vertical-align: middle;
}

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

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(246, 242, 232, 0.5);
}

.data-table td strong {
    color: var(--ink);
    font-weight: 600;
}

.data-table--compact td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.table-link {
    color: var(--ink);
    font-weight: 600;
}

.table-link:hover {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.table-sub {
    display: block;
    margin-top: 1px;
    color: var(--ink-faint);
    font-size: 8.5px;
    font-weight: 400;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 9px;
}

.table-product img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--sage);
    flex: 0 0 auto;
}

.table-product > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.table-person {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-person > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.table-person small {
    color: var(--ink-faint);
    font-size: 8px;
}

.stock-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--cream);
    color: var(--ink-soft);
    font-size: 9.5px;
    font-weight: 600;
}

.stock-tag.is-low {
    background: #f8e7e3;
    color: var(--danger);
}

.table-actions {
    text-align: right !important;
}

.table-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
}

.table-action-group form {
    display: flex;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-faint);
    font-size: 9.5px;
}

.table-footer .pagination {
    margin-top: 0;
}

.table-footer .pagination__page,
.table-footer .pagination__arrow {
    min-width: 30px;
    height: 30px;
    font-size: 10.5px;
}

/* 后台订单操作 */
.order-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid #e5dfd2;
    border-radius: 15px;
    background: var(--paper);
}

.order-action-bar__summary {
    display: flex;
    align-items: center;
    gap: 30px;
}

.order-action-bar__summary > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.order-action-bar__summary span {
    color: var(--ink-faint);
    font-size: 8.5px;
}

.order-action-bar__summary strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.order-action-bar__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-action-bar__actions form {
    display: flex;
}

.admin-grid--order-detail {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
    align-items: start;
    margin-top: 0;
}

.admin-detail-main,
.admin-detail-aside {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-order-items {
    display: grid;
}

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

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

.admin-order-item img {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--sage);
    flex: 0 0 auto;
}

.admin-order-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.admin-order-item__info strong {
    font-size: 11.5px;
    font-weight: 600;
}

.admin-order-item__info small {
    color: var(--ink-faint);
    font-size: 8.5px;
}

.admin-order-item__qty {
    color: var(--ink-faint);
    font-size: 10px;
}

.admin-order-item__total {
    min-width: 70px;
    color: var(--ink);
    font-size: 11.5px;
    text-align: right;
}

.admin-note {
    padding: 13px 15px;
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: var(--cream);
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.8;
}

.admin-timeline {
    display: grid;
    gap: 0;
}

.admin-timeline li {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 17px 0;
}

.admin-timeline li:last-child {
    padding-bottom: 0;
}

.admin-timeline li::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: -1px;
    left: 4px;
    width: 1px;
    background: var(--line);
}

.admin-timeline li:last-child::before {
    display: none;
}

.admin-timeline li > span {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--sage-deep);
    box-shadow: 0 0 0 1px var(--sage-deep);
    flex: 0 0 auto;
}

.admin-timeline li.is-done > span {
    background: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.admin-timeline li.is-cancelled > span {
    background: var(--danger);
    box-shadow: 0 0 0 1px var(--danger);
}

.admin-timeline li.is-pending > span {
    background: transparent;
    box-shadow: 0 0 0 1px var(--ink-faint);
}

.admin-timeline div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.admin-timeline strong {
    font-size: 10.5px;
    font-weight: 600;
}

.admin-timeline small {
    color: var(--ink-faint);
    font-size: 8.5px;
}

.customer-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.customer-summary > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.customer-summary strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.customer-summary small {
    overflow: hidden;
    color: var(--ink-faint);
    font-size: 8.5px;
    text-overflow: ellipsis;
}

.customer-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.customer-hero > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.customer-hero strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.customer-hero small {
    color: var(--ink-faint);
    font-size: 9.5px;
}

.customer-hero__meta {
    margin-top: 2px;
    color: var(--green);
    font-size: 9px;
    font-weight: 600;
}

.admin-grid--user-detail {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
    align-items: start;
    margin-top: 0;
}

.user-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.user-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 10px;
    background: var(--cream);
}

.user-metrics span {
    color: var(--ink-faint);
    font-size: 8.5px;
}

.user-metrics strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0 2px;
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.form-actions {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding-top: 4px;
}

/* 后台商品编辑 */
.form-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #e6cbc5;
    border-radius: 11px;
    background: #fcf1ee;
    color: var(--danger);
    font-size: 11.5px;
}

.form-alert .icon {
    width: 16px;
    height: 16px;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 15px;
    align-items: start;
}

.editor-main,
.editor-aside {
    display: grid;
    gap: 15px;
    min-width: 0;
}

.editor-aside {
    position: sticky;
    top: 100px;
}

.editor-layout .admin-card {
    padding: 22px;
}

.editor-aside .btn {
    margin-top: 8px;
}

.editor-aside .admin-card {
    padding: 19px;
}

.image-editor {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.image-editor__preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--sage);
}

.image-editor__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-editor__preview span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(30, 49, 39, 0.68);
    color: var(--cream);
    font-size: 7.5px;
    letter-spacing: 0.07em;
}

.image-editor__fields {
    display: grid;
    gap: 14px;
}

.editor-meta {
    display: grid;
    gap: 2px;
    margin-top: 15px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-faint);
    font-size: 8.5px;
}

.danger-zone {
    border-color: #ead6d1;
    background: #fffaf8;
}

.danger-zone h3 {
    color: var(--danger);
}

.danger-zone p {
    margin: 5px 0 12px;
    color: var(--ink-faint);
    font-size: 9.5px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 20px;
    }

    .header-search {
        width: 150px;
    }

    .header-search:focus-within {
        width: 178px;
    }

    .hero-grid {
        gap: 38px;
    }

    .hero h1 {
        font-size: clamp(40px, 5vw, 62px);
    }

    .hero-arch {
        right: 4%;
        width: 78%;
    }

    .product-detail {
        gap: 42px;
    }

    .product-buy {
        grid-template-columns: 106px 1fr;
    }

    .product-buy .btn--dark {
        grid-column: 1 / -1;
    }

    .story-grid {
        gap: 54px;
    }

    .footer-grid {
        gap: 34px;
    }
}

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s var(--ease);
    }

    .admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-toggle {
        display: grid;
    }

    .admin-grid--chart,
    .admin-grid--wide,
    .admin-grid--order-detail,
    .admin-grid--user-detail {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

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

    .stat-card {
        min-height: 143px;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(var(--container), calc(100% - 44px));
    }

    .hero {
        padding-top: 46px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .hero-copy {
        max-width: 680px;
    }

    .hero-visual {
        width: min(540px, 100%);
        min-height: 520px;
        margin: 0 auto;
    }

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

    .product-grid--four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .story-visual {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .hero-stats {
        max-width: 520px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .value-item:nth-child(2) {
        border-right: 0;
    }

    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .product-gallery {
        max-width: 620px;
    }

    .product-story {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .product-story__body {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    .cart-layout,
    .checkout-layout,
    .order-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-summary,
    .checkout-aside {
        position: static;
    }

    .checkout-aside {
        order: -1;
    }

    .summary-card {
        max-width: 600px;
    }

    .order-detail-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-aside > .btn {
        grid-column: 1 / -1;
    }

    .auth-container {
        width: min(940px, calc(100% - 44px));
    }

    .auth-shell {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
        min-height: 590px;
    }

    .auth-visual {
        padding: 29px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 9px 22px;
        padding-top: 8px;
        border-top: 1px solid rgba(246, 242, 232, 0.1);
    }

    .footer-contact h3 {
        width: 100%;
        margin-bottom: 0;
    }

    .footer-contact p {
        margin: 0;
    }

    .admin-content {
        padding: 26px 24px 44px;
    }

    .admin-topbar {
        padding: 13px 24px;
    }

    .admin-grid--chart,
    .admin-grid--wide,
    .admin-grid--order-detail,
    .admin-grid--user-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-aside > .admin-card:first-child {
        grid-row: span 2;
    }
}

@media (max-width: 820px) {
    .header-actions {
        gap: 7px;
        justify-content: flex-end;
    }

    .header-search {
        display: none;
    }

    /* 移动端：用户头像排到汉堡按钮右侧（最右上角） */
    .header-actions .menu-toggle {
        order: 1;
    }
    .header-actions .user-menu,
    .header-actions .header-account {
        order: 2;
    }

    .user-menu__name {
        display: none;
    }

    .header-account span,
    .header-cart > span:not(.cart-badge) {
        display: none;
    }

    .header-cart {
        width: 36px;
        justify-content: center;
    }

    .cart-badge {
        position: absolute;
        top: -1px;
        right: -3px;
    }

    .order-card__body {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .order-card__actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid var(--line-soft);
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-visual {
        min-height: 290px;
        padding: 25px;
    }

    .auth-visual__copy blockquote {
        font-size: 27px;
    }

    .auth-visual__copy p {
        display: none;
    }

    .auth-visual__sign {
        margin-top: 10px;
    }

    .auth-visual__stamp {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
        font-size: 7px;
    }

    .auth-card {
        padding: 34px clamp(22px, 6vw, 46px) 38px;
    }

    .success-card {
        padding: 38px 30px 34px;
    }

    .success-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-aside {
        order: -1;
    }

    .summary-card {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .admin-topbar__title h1 {
        max-width: 330px;
        font-size: 17px;
    }

    .admin-date {
        display: none;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .announcement__inner {
        gap: 10px;
        font-size: 9px;
    }

    .announcement__inner span:last-child {
        display: none;
    }

    .header-inner {
        min-height: 66px;
        gap: 10px;
    }

    .brand__mark {
        width: 33px;
        height: 33px;
    }

    .brand__mark svg {
        width: 31px;
        height: 31px;
    }

    .brand__text strong {
        font-size: 18px;
    }

    .brand__text small {
        display: none;
    }

    .hero {
        padding: 38px 0 52px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.18;
    }

    .hero-lead {
        margin-top: 17px;
        font-size: 13.5px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-top: 24px;
    }

    .hero-stats {
        gap: 21px;
        margin-top: 31px;
        padding-top: 19px;
    }

    .hero-stats dt {
        font-size: 21px;
    }

    .hero-stats dd {
        font-size: 9.5px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-arch {
        right: 0;
        width: 83%;
    }

    .hero-visual__glow {
        right: 0;
    }

    .hero-float--rating {
        top: 18%;
        left: 0;
        width: 135px;
        padding: 10px 12px;
    }

    .hero-float--product,
    .hero-float--shipping {
        display: none;
    }

    .hero-stamp {
        display: none;
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 24px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .category-card {
        min-height: 190px;
    }

    .product-grid {
        gap: 22px 12px;
    }

    .product-grid--four,
    .product-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card__media {
        border-radius: 14px;
    }

    .product-card__body {
        padding-top: 10px;
    }

    .product-card h3 {
        font-size: 15.5px;
    }

    .product-card__subtitle {
        display: none;
    }

    .product-card__meta {
        font-size: 9px;
    }

    .product-card__meta span:last-child {
        display: none;
    }

    .price strong {
        font-size: 15px;
    }

    .price del {
        font-size: 9.5px;
    }

    .product-card__arrow {
        display: none;
    }

    .quick-add {
        right: 8px;
        bottom: 8px;
        opacity: 1;
        transform: none;
    }

    .quick-add button {
        width: 34px;
        height: 34px;
    }

    .story-section {
        padding: 64px 0;
    }

    .story-visual {
        min-height: 380px;
    }

    .story-photo--tall {
        width: 67%;
        height: 350px;
        margin-left: 0;
    }

    .story-photo--small {
        height: 190px;
        border-width: 5px;
    }

    .story-copy h2 {
        font-size: 30px;
    }

    .story-copy > p {
        font-size: 12.5px;
    }

    .values-section {
        padding: 16px 0 26px;
    }

    .values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 6px 0;
    }

    .value-item {
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .quote-section {
        padding: 44px 0 60px;
    }

    .quote-inner blockquote {
        font-size: 23px;
    }

    .page-hero {
        padding: 28px 0 26px;
    }

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

    .page-hero__grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .page-hero__meta {
        padding-bottom: 0;
    }

    .breadcrumb {
        margin-bottom: 17px;
        font-size: 9.5px;
    }

    .catalog {
        padding: 20px 0 62px;
    }

    .filter-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .filter-chips {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex: 0 0 auto;
    }

    .sort-form {
        width: 100%;
        justify-content: flex-end;
    }

    .sort-form .select-wrap {
        min-width: 140px;
    }

    .empty-state {
        padding: 54px 20px;
    }

    .empty-state--large {
        padding: 68px 20px;
    }

    .empty-state h2 {
        font-size: 23px;
    }

    .pagination {
        margin-top: 32px;
    }

    .product-breadcrumb {
        margin-top: 17px;
    }

    .product-detail {
        padding-bottom: 50px;
    }

    .product-gallery__notes {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .product-gallery__notes div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .product-info__subtitle {
        font-size: 12.5px;
    }

    .product-price strong {
        font-size: 28px;
    }

    /* 移动端购买区：数量 + 加入购物车 + 立即购买 同一行 */
    .product-buy {
        grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        margin-top: 20px;
    }

    .product-buy .qty-stepper {
        width: auto;
        min-height: 46px;
    }

    .product-buy .qty-stepper button {
        width: 30px;
        height: 30px;
        margin: 0 2px;
    }

    .product-buy .qty-stepper input {
        width: 22px;
        font-size: 13px;
    }

    .product-buy .btn--lg {
        min-height: 46px;
        padding: 0 12px;
        font-size: 13.5px;
    }

    .product-buy .btn--dark {
        grid-column: auto;
    }

    .product-perks {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-perks li {
        align-items: center;
    }

    .product-story {
        padding: 35px 0;
    }

    .product-story__head h2 {
        font-size: 27px;
    }

    .product-story__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .product-story__aside {
        padding: 17px 18px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .related-section {
        padding: 36px 0 56px;
    }

    .cart-section,
    .orders-section,
    .checkout-section,
    .order-detail-section {
        padding: 20px 0 60px;
    }

    .cart-list__head {
        display: none;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 10px;
        padding: 14px;
    }

    .cart-item__product {
        grid-column: 1 / -1;
    }

    .cart-item__image {
        width: 70px;
        height: 70px;
    }

    .cart-item__price {
        display: none;
    }

    .cart-item__qty {
        grid-column: 1;
        grid-row: 2;
    }

    .cart-item__total {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .cart-item__remove {
        position: absolute;
        right: 13px;
        bottom: 15px;
    }

    .cart-item {
        position: relative;
    }

    .cart-item__total {
        padding-right: 28px;
    }

    .cart-actions {
        margin-top: 13px;
    }

    .summary-card {
        padding: 20px;
    }

    .checkout-steps {
        gap: 7px;
    }

    .checkout-steps > span {
        font-size: 9.5px;
    }

    .checkout-steps > span:not(:last-child)::after {
        width: 15px;
    }

    .panel {
        padding: 20px 17px;
    }

    .panel__head {
        margin-bottom: 17px;
    }

    .form-grid,
    .form-grid--three {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .payment-option {
        padding: 12px;
        align-items: flex-start;
    }

    .payment-option__icon {
        width: 33px;
        height: 33px;
    }

    .order-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 11px;
        scrollbar-width: none;
    }

    .order-tabs::-webkit-scrollbar {
        display: none;
    }

    .order-tab {
        flex: 0 0 auto;
        padding: 7px 11px;
    }

    .order-card__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 11px 14px;
    }

    .order-card__body {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 13px 14px;
    }

    .order-card__items {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .order-thumbs img,
    .order-thumbs__more {
        width: 42px;
        height: 42px;
    }

    .order-card__actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .order-progress {
        padding: 18px 12px;
    }

    .order-progress__step {
        width: 84px;
    }

    .order-progress__step strong {
        font-size: 9.5px;
    }

    .order-progress__step small {
        font-size: 8px;
    }

    .order-progress__line {
        margin-top: 14px;
    }

    .order-detail-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-item {
        gap: 9px;
    }

    .order-item__image {
        width: 52px;
        height: 52px;
    }

    .order-item__info strong {
        font-size: 13px;
    }

    .order-item__qty {
        display: none;
    }

    .order-item__total {
        min-width: 62px;
        font-size: 11px;
    }

    .success-section {
        padding: 26px 0 60px;
    }

    .success-card {
        padding: 30px 18px 28px;
        border-radius: 22px;
    }

    .success-card h1 {
        font-size: 28px;
    }

    .success-meta {
        grid-template-columns: 1fr 1fr;
    }

    .success-steps {
        gap: 2px;
    }

    .success-steps strong {
        font-size: 9px;
    }

    .success-steps small {
        font-size: 7.5px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-summary {
        padding: 18px 16px;
    }

    .auth-header {
        width: calc(100% - 32px);
        padding: 17px 0;
    }

    .auth-container {
        width: calc(100% - 32px);
        margin-bottom: 24px;
    }

    .auth-shell {
        border-radius: 22px;
    }

    .auth-visual {
        min-height: 235px;
        padding: 20px;
    }

    .auth-visual__copy blockquote {
        font-size: 23px;
    }

    .auth-visual__copy p,
    .auth-visual__stamp {
        display: none;
    }

    .auth-card {
        padding: 27px 19px 30px;
    }

    .auth-card__head h1 {
        font-size: 30px;
    }

    .auth-form {
        margin-top: 20px;
    }

    .auth-footer {
        width: calc(100% - 32px);
        font-size: 8.5px;
    }

    .error-section {
        padding: 44px 0 70px;
    }

    .error-card {
        padding: 30px 18px;
    }

    .error-card h1 {
        font-size: 25px;
    }

    .error-actions {
        flex-direction: column;
    }

    .site-footer {
        padding: 38px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 14px;
        padding-bottom: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand > p {
        margin-top: 10px;
        font-size: 13.5px;
    }

    .footer-column h3 {
        font-size: 12px;
    }

    .footer-column a,
    .footer-column > span {
        font-size: 14px;
    }

    .footer-contact p {
        font-size: 13px;
    }

    .footer-mail {
        font-size: 13.5px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 12px;
    }

    .footer-beian {
        font-size: 13px;
        white-space: nowrap;
    }

    .footer-note {
        display: none;
    }

    /* 导航列并排，链接横向流式排列，压缩页脚高度 */
    .footer-column {
        flex-flow: row wrap;
        gap: 8px 16px;
    }

    .footer-column h3 {
        width: 100%;
        margin-bottom: 0;
    }

    .footer-column a,
    .footer-column > span {
        font-size: 12px;
    }

    .footer-contact {
        grid-column: 1 / -1;
        flex-flow: row wrap;
        align-items: center;
        gap: 8px 16px;
        border-top: 1px solid rgba(246, 242, 232, 0.1);
        padding-top: 18px;
    }

    .footer-contact h3 {
        width: 100%;
    }

    .footer-contact p {
        width: 100%;
        margin: 0;
    }

    .footer-bottom {
        justify-content: center;
        padding-top: 14px;
    }

    .admin-content {
        padding: 20px 14px 36px;
    }

    .admin-topbar {
        min-height: 68px;
        padding: 10px 14px;
    }

    .admin-topbar__title h1 {
        max-width: 190px;
        font-size: 15px;
    }

    .admin-topbar__right {
        gap: 8px;
    }

    .admin-user > span:last-child {
        display: none;
    }

    .admin-user {
        padding: 3px;
        border: 0;
        background: none;
    }

    .admin-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 18px;
    }

    .admin-page-head h2 {
        font-size: 26px;
    }

    .admin-page-head__actions {
        flex-wrap: wrap;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        min-height: 130px;
        padding: 14px;
        border-radius: 13px;
    }

    .stat-card__value {
        font-size: 27px;
    }

    .stat-card__icon {
        width: 27px;
        height: 27px;
        margin-bottom: 9px;
    }

    .admin-card {
        padding: 16px 14px;
        border-radius: 13px;
    }

    .admin-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .mini-stat-row {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .mini-stat {
        padding: 10px 11px;
    }

    .bar-chart {
        gap: 5px;
        height: 175px;
    }

    .bar-chart__value {
        font-size: 7px;
    }

    .filter-form {
        gap: 7px;
    }

    .filter-form__search {
        width: 100%;
    }

    .filter-summary {
        width: 100%;
        margin-left: 0;
    }

    .table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-action-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 13px;
    }

    .order-action-bar__summary {
        width: 100%;
        gap: 20px;
    }

    .order-action-bar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .editor-layout {
        gap: 10px;
    }

    .editor-layout .admin-card {
        padding: 16px 14px;
    }

    .editor-aside {
        grid-template-columns: 1fr;
    }

    .image-editor {
        grid-template-columns: 1fr;
    }

    .image-editor__preview {
        width: 150px;
    }
}

@media (min-width: 1081px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (hover: none) {
    .quick-add {
        opacity: 1;
        transform: none;
    }

    .order-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* ============================================================
   外观系统：皮肤（CSS 变量覆盖）+ 布局方案 + 切换菜单
   ============================================================ */

/* ---- 皮肤：墨石蓝 ---- */
html[data-skin="inkstone"] {
    --cream: #eef1f5;
    --cream-deep: #e2e7ee;
    --paper: #fcfdff;
    --ink: #1b2430;
    --ink-soft: #5d6b7c;
    --ink-faint: #8b96a5;
    --green: #27415e;
    --green-deep: #1a2d44;
    --green-soft: #46608a;
    --sage: #dbe4f0;
    --sage-deep: #b9c9dd;
    --accent: #4c7fb0;
    --accent-deep: #3a6a99;
    --accent-soft: #ddebf7;
    --gold: #7d94b5;
    --line: #dfe4ec;
    --line-soft: #e9edf4;
}
html[data-skin="inkstone"] .site-header,
html[data-skin="inkstone"] .announcement,
html[data-skin="inkstone"] .admin-sidebar {
    background: var(--green-deep);
}

/* ---- 皮肤：蜜柚暖 ---- */
html[data-skin="honey"] {
    --cream: #fdf3e7;
    --cream-deep: #f7e9d5;
    --paper: #fffdf9;
    --ink: #3d2b1d;
    --ink-soft: #7d6650;
    --ink-faint: #a5907a;
    --green: #a5652e;
    --green-deep: #7d4a1e;
    --green-soft: #c08a52;
    --sage: #f6e3ca;
    --sage-deep: #e7c89e;
    --accent: #d26d3a;
    --accent-deep: #b05a2a;
    --accent-soft: #fbe3d1;
    --gold: #d3a260;
    --line: #f0e2ca;
    --line-soft: #f6ecd9;
}
/* 蜜柚暖：头部保持暖奶油浅色，公告条用浅焦糖底+深棕字，整体轻盈友好 */
html[data-skin="honey"] .site-header {
    background: rgba(253, 243, 231, 0.92);
}
html[data-skin="honey"] .site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(125, 74, 30, 0.06);
}
html[data-skin="honey"] .announcement {
    background: var(--sage);
    color: var(--green-deep);
}
html[data-skin="honey"] .announcement__dot {
    background: rgba(125, 74, 30, 0.4);
}
html[data-skin="honey"] .admin-sidebar {
    background: var(--green-deep);
}

/* ---- 皮肤：赤霞红（红白电商） ---- */
html[data-skin="red"] {
    --cream: #fafafa;
    --cream-deep: #f0f0f0;
    --paper: #ffffff;
    --ink: #1f1f1f;
    --ink-soft: #555555;
    --ink-faint: #8c8c8c;
    --green: #d2232a;
    --green-deep: #9d1616;
    --green-soft: #e8555a;
    --sage: #fdecec;
    --sage-deep: #f8d3d3;
    --accent: #d2232a;
    --accent-deep: #9d1616;
    --accent-soft: #fdecec;
    --gold: #f5a623;
    --line: #e8e8e8;
    --line-soft: #f2f2f2;
    --danger: #d03050;
    --success: #2e9e5b;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --font-display: var(--font-sans);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
}
/* 赤霞红：头部/公告条保持纯白，靠红色点缀区分层级，整体干净明快 */
html[data-skin="red"] .site-header {
    background: rgba(255, 255, 255, 0.95);
}
html[data-skin="red"] .site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}
html[data-skin="red"] .announcement {
    background: var(--paper);
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line-soft);
}
html[data-skin="red"] .announcement__dot {
    background: var(--green);
}
html[data-skin="red"] .hero {
    background: var(--paper);
}
html[data-skin="red"] .hero::before {
    border-bottom-color: var(--line-soft);
}
html[data-skin="red"] .admin-sidebar {
    background: linear-gradient(180deg, #a01919 0%, #8a1214 100%);
}
/* 大块深红区柔和化：高光 + 暖红透光 + 斜向渐变，避免纯色生硬 */
html[data-skin="red"] .story-section {
    background:
        radial-gradient(120% 90% at 85% 8%, rgba(255, 255, 255, 0.09), transparent 46%),
        radial-gradient(100% 80% at 8% 92%, rgba(232, 85, 90, 0.30), transparent 52%),
        linear-gradient(165deg, #a81b1e 0%, #9d1616 52%, #8a1214 100%);
}
html[data-skin="red"] .site-footer {
    background:
        radial-gradient(120% 100% at 12% 0%, rgba(255, 255, 255, 0.07), transparent 42%),
        radial-gradient(90% 90% at 90% 100%, rgba(232, 85, 90, 0.24), transparent 55%),
        linear-gradient(180deg, #9d1616 0%, #8a1214 100%);
}
html[data-skin="red"] .hero-arch::after {
    background: linear-gradient(to top, rgba(157, 22, 22, 0.42), transparent 36%);
}
html[data-skin="red"] .category-card__shade {
    background: linear-gradient(to top, rgba(31, 31, 31, 0.72), rgba(31, 31, 31, 0.02) 65%);
}

/* ---- 布局方案 ---- */

/* 聚焦：窄容器、卡片紧凑、商品网格 4 列、隐藏装饰 */
body[data-layout="focus"] {
    --container: 1080px;
}
body[data-layout="focus"] .product-grid {
    gap: 14px;
}
body[data-layout="focus"] .product-card {
    border-radius: 12px;
    box-shadow: none;
}
body[data-layout="focus"] .product-card__badge,
body[data-layout="focus"] .product-card__sales {
    display: none;
}
body[data-layout="focus"] .hero {
    padding-block: 28px;
    min-height: 300px;
}
body[data-layout="focus"] .section {
    padding-block: 36px;
}

/* 画廊：大图大卡、2 列、圆角更大、突出图片 */
body[data-layout="gallery"] {
    --container: 1360px;
}
body[data-layout="gallery"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
@media (min-width: 900px) {
    body[data-layout="gallery"] .product-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
body[data-layout="gallery"] .product-card {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}
body[data-layout="gallery"] .product-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 24px 24px 0 0;
}
body[data-layout="gallery"] .product-card__body {
    padding: 20px 24px 8px;
}
body[data-layout="gallery"] .product-card__name {
    font-size: 20px;
}
body[data-layout="gallery"] .hero {
    border-radius: 34px;
}

/* --------------------------------------------------------------------------
   后台：店铺内容管理（分类 / 导航 / 内容块）
   -------------------------------------------------------------------------- */

.admin-card__desc {
    margin-top: 4px;
    color: var(--ink-faint);
    font-size: 11.5px;
    line-height: 1.6;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.field-label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.block-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-list__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px dashed #e5dfd2;
    border-radius: 12px;
    background: rgba(246, 242, 232, 0.45);
}

.table-muted {
    color: var(--ink-faint);
}

.data-table code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--sage);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 10px;
}

.mobile-menu__label {
    display: block;
    margin: 10px 0 2px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   新人红包 / 代金券 / 个人中心
   -------------------------------------------------------------------------- */

/* 后台设置：勾选行 */
.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}
.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

/* 后台设置：外观主题选项 */
.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.theme-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    cursor: pointer;
    font-size: 13.5px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-option:hover {
    border-color: var(--green);
}
.theme-option:has(input:checked) {
    border-color: var(--green);
    background: var(--accent-soft);
    font-weight: 600;
}
.theme-option input[type="radio"] {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
}

/* 结算页：代金券选项 */
.payment-option__icon--coupon {
    color: #fff;
    background: linear-gradient(145deg, #e23c3c, #c01f26);
    font-family: var(--font-mono);
    font-weight: 700;
}
.coupon-empty {
    padding: 14px 4px;
    color: var(--ink-faint);
    font-size: 13px;
}
.summary-lines__discount dd {
    color: var(--green);
}

/* 红包领取弹窗 */
.redpacket-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(31, 31, 31, 0.58);
    backdrop-filter: blur(4px);
    animation: redpacket-fade 0.25s ease;
}
@keyframes redpacket-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.redpacket {
    position: relative;
    width: min(320px, 86vw);
    animation: redpacket-pop 0.45s cubic-bezier(0.18, 1.25, 0.4, 1);
}

@keyframes redpacket-pop {
    from { transform: scale(0.6) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.redpacket__art {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 50px rgba(160, 20, 20, 0.4));
}
.redpacket__body {
    position: absolute;
    inset: 70% 12% 4% 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    text-align: center;
    color: #fff;
}
/* 圆标上方区域：金额 */
.redpacket__top {
    position: absolute;
    top: 28%;
    left: 12%;
    right: 12%;
    text-align: center;
    color: #fff;
}
.redpacket__amount {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 8px rgba(140, 15, 15, 0.45);
}
.redpacket__amount strong {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.redpacket__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.95;
}
.redpacket__hint {
    font-size: 10.5px;
    opacity: 0.85;
}
.redpacket__claim {
    margin-top: 4px;
    padding: 8px 36px;
    border-radius: 999px;
    background: #ffe9b8;
    color: #b01318;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 18px rgba(120, 8, 10, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.redpacket__claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(120, 8, 10, 0.45);
    color: #b01318;
}
.redpacket__dismiss {
    margin-top: 2px;
    padding: 4px 10px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 个人中心 */
.account-section {
    padding: 20px 0 72px;
}
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    align-items: start;
}
.account-grid > * {
    min-width: 0;
}
.account-side {
    display: grid;
    gap: 16px;
}
.account-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
}
.account-user__info {
    flex: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
}
.account-user__info strong {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-user__info small {
    color: var(--ink-faint);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}
.account-nav a:hover,
.account-nav a.is-current {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.account-nav form {
    margin: 0;
}
.account-nav .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--ink-faint);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.account-nav .logout-btn:hover {
    background: rgba(210, 35, 42, 0.08);
    color: #d2232a;
}
.account-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.account-coupons__balance {
    color: var(--ink-faint);
    font-size: 12.5px;
    margin-left: auto;
    align-self: center;
}
.account-coupons__balance strong {
    color: var(--accent);
    font-size: 15px;
}
.account-orders .panel__head .mini-link {
    margin-left: auto;
    align-self: center;
}
.coupon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.coupon-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(226, 60, 60, 0.08), transparent 46%),
        var(--paper);
    overflow: hidden;
}
.coupon-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e23c3c, #c01f26);
}
.coupon-card--used {
    opacity: 0.55;
    filter: grayscale(0.6);
}
.coupon-card--used::before {
    background: var(--ink-faint);
}
.coupon-card__value {
    display: flex;
    align-items: baseline;
    color: #d2232a;
    font-family: var(--font-mono);
}
.coupon-card__value small {
    font-size: 13px;
}
.coupon-card__value strong {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.coupon-card__info {
    flex: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
}
.coupon-card__info strong {
    font-size: 14px;
}
.coupon-card__info small {
    color: var(--ink-faint);
    font-size: 11.5px;
}
.coupon-card__status {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
}
.coupon-card--used .coupon-card__status {
    background: var(--line-soft);
    color: var(--ink-faint);
}
.account-orders .account-order-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.account-order-stats a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.account-order-stats a:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.account-order-stats strong {
    font-size: 22px;
    color: var(--accent);
    font-family: var(--font-mono);
}
.account-order-stats span {
    color: var(--ink-faint);
    font-size: 12px;
}

@media (max-width: 760px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    .account-order-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .redpacket__body {
        inset: 63% 10% 6% 10%;
    }
}
