/* ==========================================================================
   未央 · Weiyang
   专为手机端设计的东方美学商城模板
   ========================================================================== */

@font-face {
    font-family: 'LogoFont';
    src: url('fonts/logo-font.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --wy-bg: #f6f2ea;
    --wy-bg-deep: #ece4d7;
    --wy-surface: #fffdf9;
    --wy-surface-soft: #faf6ef;
    --wy-ink: #211c2b;
    --wy-ink-soft: #4d4658;
    --wy-muted: #938b9e;
    --wy-line: rgba(33, 28, 43, .09);
    --wy-line-strong: rgba(33, 28, 43, .16);
    --wy-primary: #5a4bb5;
    --wy-primary-deep: #3d3470;
    --wy-primary-soft: #efeafb;
    --wy-gold: #c8a15f;
    --wy-gold-deep: #a9823f;
    --wy-gold-soft: #f7edd9;
    --wy-cinnabar: #bd4f3e;
    --wy-midnight: #191527;
    --wy-radius: 20px;
    --wy-shadow: 0 10px 28px rgba(45, 35, 70, .08);
    --wy-appbar-h: 56px;
    --wy-tabbar-h: 62px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.wy-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #e8e0d2;
    color: var(--wy-ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.wy-lock {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

.wy-logo-font {
    font-family: 'LogoFont', 'Orbitron', sans-serif;
    font-style: normal;
}

.wy-shell {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: 100vh;
    margin: 0 auto;
    /* 底部留白放到 shell 的内边距里，背景才不会在页脚下方断成 body 的底色 */
    padding-bottom: calc(var(--wy-tabbar-h) + 22px + env(safe-area-inset-bottom));
    background: var(--wy-bg);
    /* 这里不能写 overflow-x:hidden：会生成滚动容器，导致页头 position:sticky 失效 */
}

.wy-page-goods .wy-shell {
    padding-bottom: 0;
}

@media (min-width: 560px) {
    .wy-shell {
        box-shadow: 0 0 70px rgba(40, 30, 60, .16);
    }
}



.wy-page-goods .wy-main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.wy-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f1ece3, #e7dfd2);
    color: rgba(90, 75, 181, .35);
    font-size: 26px;
}

/* ==========================================================================
   PJAX 进度条
   ========================================================================== */
.wy-pjax-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wy-gold), var(--wy-primary), var(--wy-gold));
    opacity: 0;
    pointer-events: none;
    transition: width .3s ease, opacity .25s ease;
}

.wy-pjax-bar.running {
    width: 82%;
    opacity: 1;
    transition: width 2.8s cubic-bezier(.08, .7, .2, 1), opacity .15s;
}

.wy-pjax-bar.done {
    width: 100%;
    opacity: 0;
    transition: width .2s ease, opacity .35s ease .1s;
}

/* ==========================================================================
   顶部应用栏
   ========================================================================== */
.wy-appbar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top);
    background: rgba(246, 242, 234, .88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: background .28s ease, box-shadow .28s ease, color .28s ease;
}

.wy-appbar.is-scrolled {
    background: rgba(255, 253, 249, .94);
    box-shadow: 0 6px 22px rgba(40, 30, 60, .07);
}

.wy-appbar--home {
    position: fixed;
    left: 50%;
    width: 100%;
    max-width: 560px;
    transform: translateX(-50%);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #f6efdf;
}

.wy-appbar--home.is-scrolled {
    background: rgba(23, 20, 37, .9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 22px rgba(10, 8, 20, .25);
}

.wy-appbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--wy-appbar-h);
    padding: 0 12px;
}

.wy-appbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    color: inherit;
    transition: background .2s ease;
}

.wy-appbar__btn:active {
    background: rgba(120, 105, 150, .12);
}

.wy-appbar__back {
    display: none;
    font-size: 24px;
}

.wy-appbar.is-sub .wy-appbar__back {
    display: inline-flex;
}

.wy-appbar__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.wy-appbar.is-sub .wy-appbar__brand {
    display: none;
}

.wy-appbar__logo {
    flex: 0 0 auto;
    max-height: 28px;
    max-width: 96px;
    object-fit: contain;
}

.wy-appbar__seal {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(200, 161, 95, .7);
    border-radius: 9px;
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 15px;
    font-weight: 700;
    background: rgba(200, 161, 95, .08);
}

.wy-appbar__brandtext {
    min-width: 0;
}

.wy-appbar__brandtext b {
    display: block;
    max-width: 136px;
    overflow: hidden;
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 西文字形视觉中心偏上，稍微下移与左侧 Logo 对齐 */
    transform: translateY(2px);
}

.wy-appbar__brandtext em {
    display: block;
    margin-top: 1px;
    color: var(--wy-muted);
    font-size: 7.5px;
    font-style: normal;
    letter-spacing: .22em;
}

.wy-appbar--home .wy-appbar__brandtext em {
    color: rgba(246, 239, 223, .5);
}

.wy-appbar__title {
    display: none;
    position: absolute;
    left: 50%;
    max-width: 56%;
    overflow: hidden;
    color: var(--wy-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
}

.wy-appbar.is-sub .wy-appbar__title {
    display: block;
}

.wy-appbar__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

/* ==========================================================================
   侧边抽屉
   ========================================================================== */
.wy-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.wy-drawer.is-open {
    visibility: visible;
    opacity: 1;
}

.wy-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 28, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.wy-drawer__panel {
    position: absolute;
    top: 0;
    /* 宽屏下让抽屉贴着居中的手机壳右边缘 */
    right: max(0px, calc((100vw - 560px) / 2));
    display: flex;
    flex-direction: column;
    width: min(86%, 370px);
    height: 100%;
    padding-top: env(safe-area-inset-top);
    background:
        linear-gradient(180deg, rgba(200, 161, 95, .06), transparent 28%),
        var(--wy-bg);
    box-shadow: -18px 0 48px rgba(20, 14, 34, .22);
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.22, .7, .25, 1);
}

.wy-drawer.is-open .wy-drawer__panel {
    transform: translateX(0);
}

.wy-drawer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
}

.wy-drawer__seal {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(150deg, var(--wy-midnight), #34294f);
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    box-shadow: 0 8px 18px rgba(25, 21, 39, .25);
}

.wy-drawer__logo {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 3px;
    border: 1px solid var(--wy-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(25, 21, 39, .12);
    object-fit: contain;
}

.wy-drawer__headtext {
    flex: 1;
    min-width: 0;
}

.wy-drawer__headtext b {
    display: block;
    overflow: hidden;
    font-size: 16px;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-drawer__headtext em {
    display: block;
    margin-top: 2px;
    color: var(--wy-muted);
    font-size: 10px;
    font-style: normal;
    letter-spacing: .12em;
}

.wy-drawer__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(33, 28, 43, .06);
    color: var(--wy-muted);
    font-size: 15px;
}

.wy-drawer__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 18px 14px;
    padding: 13px 14px;
    border: 1px solid rgba(200, 161, 95, .28);
    border-radius: 16px;
    background: linear-gradient(140deg, #fffdf9, #faf3e5);
}

.wy-drawer__user-main {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wy-drawer__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 17px;
}

.wy-drawer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-drawer__user-meta {
    min-width: 0;
}

.wy-drawer__user-meta b {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-drawer__user-meta em {
    display: block;
    margin-top: 1px;
    color: var(--wy-muted);
    font-size: 10px;
    font-style: normal;
}

.wy-drawer__logout {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--wy-muted);
    background: rgba(33, 28, 43, .05);
}

.wy-drawer__user-actions {
    display: flex;
    gap: 6px;
}

.wy-drawer__user-actions a {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--wy-primary);
    color: #fff;
    font-size: 11px;
}

.wy-drawer__user-actions a + a {
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
}

.wy-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 12px 12px;
    -webkit-overflow-scrolling: touch;
}

.wy-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 12px;
    border-radius: 12px;
    color: var(--wy-ink);
    font-size: 14px;
    text-align: left;
    transition: background .2s ease;
}

.wy-drawer__link:active {
    background: rgba(90, 75, 181, .06);
}

.wy-drawer__link-text {
    flex: 1;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    letter-spacing: .03em;
}

.wy-drawer__caret {
    color: var(--wy-muted);
    font-size: 13px;
    transition: transform .25s ease;
}

.wy-drawer__group.is-open .wy-drawer__caret {
    transform: rotate(180deg);
}

.wy-drawer__sub {
    max-height: 0;
    overflow: hidden;
    padding-left: 14px;
    transition: max-height .3s ease;
}

.wy-drawer__group.is-open .wy-drawer__sub {
    max-height: 420px;
}

.wy-drawer__sublink {
    display: block;
    padding: 9px 14px;
    border-left: 1px solid var(--wy-line-strong);
    color: var(--wy-ink-soft);
    font-size: 12.5px;
}

.wy-drawer__sublink:active {
    color: var(--wy-primary);
}

.wy-drawer__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 18px 14px;
}

.wy-drawer__quick a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--wy-line);
    border-radius: 12px;
    background: var(--wy-surface);
    color: var(--wy-ink-soft);
    font-size: 11.5px;
}

.wy-drawer__quick i {
    color: var(--wy-gold-deep);
    font-size: 14px;
}

.wy-drawer__foot {
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wy-line);
    color: var(--wy-muted);
    font-size: 10px;
}

.wy-drawer__foot a {
    display: block;
    margin-top: 3px;
    color: var(--wy-muted);
}

/* ==========================================================================
   全屏搜索
   ========================================================================== */
.wy-search-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    visibility: hidden;
    opacity: 0;
    transition: opacity .28s ease, visibility .28s ease;
}

.wy-search-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.wy-search-modal__mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 12%, rgba(200, 161, 95, .16), transparent 32%),
        linear-gradient(165deg, #171425, #241d3d 65%, #2b2247);
}

.wy-search-modal__stage {
    position: relative;
    z-index: 1;
    max-width: 560px;
    height: 100%;
    margin: 0 auto;
    padding: calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
    color: #f5efe2;
    overflow-y: auto;
    transform: translateY(12px);
    transition: transform .3s ease;
}

.wy-search-modal.is-open .wy-search-modal__stage {
    transform: translateY(0);
}

.wy-search-modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wy-search-modal__seal {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(200, 161, 95, .55);
    border-radius: 12px;
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 18px;
    font-weight: 700;
}

.wy-search-modal__headtext {
    flex: 1;
    min-width: 0;
}

.wy-search-modal__headtext b {
    display: block;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 17px;
    letter-spacing: .04em;
}

.wy-search-modal__headtext em {
    display: block;
    margin-top: 2px;
    color: rgba(245, 239, 226, .45);
    font-size: 8px;
    font-style: normal;
    letter-spacing: .24em;
}

.wy-search-modal__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: rgba(245, 239, 226, .7);
    font-size: 14px;
}

.wy-search-modal__form {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    margin-top: 28px;
    padding: 0 6px 0 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.wy-search-modal__form > i {
    color: var(--wy-gold);
    font-size: 16px;
}

.wy-search-modal__form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.wy-search-modal__form input::placeholder {
    color: rgba(245, 239, 226, .38);
}

.wy-search-modal__form button {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wy-gold), #b78c45);
    color: #241d2f;
    font-size: 13px;
    font-weight: 700;
}

.wy-search-modal__tabs {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.wy-search-modal__tabs button {
    padding: 7px 17px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(245, 239, 226, .6);
    font-size: 12px;
}

.wy-search-modal__tabs button.is-active {
    border-color: transparent;
    background: rgba(200, 161, 95, .18);
    color: var(--wy-gold);
}

.wy-search-modal__quick {
    margin-top: 34px;
}

.wy-search-modal__quick-title {
    color: rgba(245, 239, 226, .45);
    font-size: 10px;
    letter-spacing: .2em;
}

.wy-search-modal__quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.wy-search-modal__quick-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    color: rgba(245, 239, 226, .82);
    font-size: 12.5px;
}

.wy-search-modal__quick-links i {
    color: var(--wy-gold);
    font-size: 15px;
}

.wy-search-modal__hint {
    margin-top: 30px;
    color: rgba(245, 239, 226, .3);
    font-size: 10px;
    text-align: center;
    letter-spacing: .08em;
}

/* ==========================================================================
   底部标签栏
   ========================================================================== */
.wy-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    max-width: 560px;
    height: calc(var(--wy-tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    border-top: 1px solid var(--wy-line);
    background: rgba(255, 253, 249, .95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.wy-page-goods .wy-tabbar {
    display: none;
}

.wy-tabbar--four {
    grid-template-columns: repeat(4, 1fr);
}

.wy-tabbar--three {
    grid-template-columns: repeat(3, 1fr);
}

.wy-tabbar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--wy-muted);
    font-size: 10px;
    transition: color .2s ease;
}

.wy-tabbar__item i {
    font-size: 19px;
    line-height: 1;
}

.wy-tabbar__item.is-active {
    color: var(--wy-primary);
    font-weight: 600;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.wy-footer {
    position: relative;
    margin: 30px 14px 0;
    padding: 24px 20px 18px;
    overflow: hidden;
    border: 1px solid rgba(200, 161, 95, .24);
    border-radius: 22px;
    background:
        linear-gradient(155deg, #fffdf9, #f7f1e5);
}

.wy-footer::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 161, 95, .16), transparent 68%);
    pointer-events: none;
}

.wy-page-goods .wy-footer {
    display: none;
}

.wy-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wy-footer__seal {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(150deg, var(--wy-midnight), #34294f);
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 15px;
    font-weight: 700;
}

.wy-footer__logo {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--wy-line);
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.wy-footer__brandtext b {
    display: block;
    font-size: 14px;
    letter-spacing: .06em;
}

.wy-footer__slogan {
    margin-top: 12px;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.8;
}

.wy-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--wy-line-strong);
}

.wy-footer__links a {
    padding: 5px 11px;
    border: 1px solid var(--wy-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    color: var(--wy-ink-soft);
    font-size: 10.5px;
}

.wy-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-top: 16px;
    color: var(--wy-muted);
    font-size: 9.5px;
}

.wy-footer__bottom a {
    color: var(--wy-muted);
}

/* ==========================================================================
   通用组件
   ========================================================================== */
.wy-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wy-sec-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--wy-gold-deep);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .24em;
}

.wy-sec-kicker--light {
    color: rgba(200, 161, 95, .8);
}

.wy-sec-title {
    position: relative;
    padding-left: 11px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.25;
}

.wy-sec-title::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 4px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--wy-gold), var(--wy-primary));
}

.wy-sec-more {
    flex: 0 0 auto;
    color: var(--wy-muted);
    font-size: 11px;
    white-space: nowrap;
}

.wy-sec-count {
    color: var(--wy-muted);
    font-size: 11px;
}



.wy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.wy-btn--primary {
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    box-shadow: 0 8px 18px rgba(90, 75, 181, .24);
    color: #fff;
}

.wy-btn--soft {
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
}

.wy-btn--ghost {
    border-color: var(--wy-line-strong);
    color: var(--wy-ink-soft);
}

.wy-btn--muted {
    background: #eeebe5;
    color: var(--wy-muted);
}

.wy-btn--sm {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
}

.wy-btn--block {
    width: 100%;
}

.wy-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .02em;
}

.wy-badge--auto {
    background: rgba(23, 20, 37, .76);
    color: #f2d9a4;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wy-badge--manual {
    background: rgba(255, 253, 249, .82);
    color: var(--wy-ink-soft);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wy-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(200, 161, 95, .3);
    border-radius: 999px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 10.5px;
}

.wy-crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--wy-muted);
    font-size: 10.5px;
    white-space: nowrap;
}

.wy-crumbs a {
    color: var(--wy-muted);
}

.wy-crumbs i {
    font-size: 8px;
    color: rgba(147, 139, 158, .6);
}

.wy-empty {
    padding: 46px 24px;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    text-align: center;
}

.wy-goods-grid > .wy-empty {
    grid-column: 1 / -1;
}

.wy-empty--detail {
    margin: 18px 14px;
}

.wy-empty__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 25px;
}

.wy-empty h3 {
    margin-bottom: 5px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 18px;
    font-weight: 700;
}

.wy-empty p {
    margin-bottom: 16px;
    color: var(--wy-muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.wy-empty p a {
    color: var(--wy-primary);
}

/* ==========================================================================
   首页 · 月夜主视觉
   ========================================================================== */
.wy-hero {
    position: relative;
    overflow: hidden;
    padding: calc(76px + env(safe-area-inset-top)) 20px 48px;
    border-radius: 0 0 34px 34px;
    background:
        radial-gradient(circle at 82% 18%, rgba(200, 161, 95, .18), transparent 34%),
        linear-gradient(158deg, #171425 0%, #241d3d 55%, #2e2449 100%);
    color: #f6efdf;
}

.wy-hero__lattice {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        repeating-linear-gradient(45deg, rgba(200, 161, 95, .07) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(-45deg, rgba(200, 161, 95, .07) 0 1px, transparent 1px 26px);
    -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 10%, transparent 78%);
    mask-image: radial-gradient(circle at 60% 40%, #000 10%, transparent 78%);
    pointer-events: none;
}

.wy-hero__moon {
    position: absolute;
    top: 72px;
    right: 6%;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 34%, #fff8e6 0%, #f3e2b9 38%, #d9bd82 68%, rgba(217, 189, 130, 0) 72%);
    box-shadow: 0 0 70px rgba(243, 226, 185, .35);
    opacity: .92;
    pointer-events: none;
}

.wy-hero__moon::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 30px;
    width: 34px;
    height: 26px;
    border-radius: 50%;
    background: rgba(25, 21, 39, .08);
    transform: rotate(-18deg);
}

.wy-hero__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 14% 22%, rgba(255, 250, 235, .8), transparent),
        radial-gradient(1px 1px at 38% 12%, rgba(255, 250, 235, .55), transparent),
        radial-gradient(1.5px 1.5px at 66% 30%, rgba(255, 250, 235, .6), transparent),
        radial-gradient(1px 1px at 86% 12%, rgba(255, 250, 235, .7), transparent),
        radial-gradient(1px 1px at 24% 58%, rgba(255, 250, 235, .35), transparent),
        radial-gradient(1.5px 1.5px at 74% 64%, rgba(255, 250, 235, .4), transparent);
    pointer-events: none;
}

.wy-hero__inner {
    position: relative;
    z-index: 2;
}

.wy-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wy-hero__seal {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(200, 161, 95, .65);
    border-radius: 10px;
    background: rgba(200, 161, 95, .1);
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.wy-hero__en {
    color: rgba(246, 239, 223, .48);
    font-size: 8px;
    letter-spacing: .26em;
}

.wy-hero__title {
    margin-top: 20px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: .06em;
}

.wy-hero__title span {
    display: block;
}

.wy-hero__title em {
    display: block;
    background: linear-gradient(100deg, #f0d9a8, var(--wy-gold) 55%, #e5c98f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.wy-hero__desc {
    max-width: 300px;
    margin-top: 14px;
    color: rgba(246, 239, 223, .62);
    font-size: 12.5px;
    line-height: 1.85;
}

.wy-hero__search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    padding: 0 6px 0 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(246, 239, 223, .55);
    font-size: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.wy-hero__search > i {
    color: var(--wy-gold);
    font-size: 14px;
}

.wy-hero__search > span {
    flex: 1;
    text-align: left;
}

.wy-hero__search > em {
    display: grid;
    place-items: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wy-gold), #b78c45);
    color: #241d2f;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.wy-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 20px;
    color: rgba(246, 239, 223, .5);
    font-size: 10px;
}

.wy-hero__badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wy-hero__badges i {
    color: var(--wy-gold);
    font-size: 10px;
}

.wy-hero__cloud {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 210px;
    height: 120px;
    opacity: .5;
    pointer-events: none;
}

.wy-hero__cloud span {
    position: absolute;
    border: 1px solid rgba(200, 161, 95, .18);
    border-radius: 50%;
}

.wy-hero__cloud span:nth-child(1) {
    right: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
}

.wy-hero__cloud span:nth-child(2) {
    right: 34px;
    bottom: 26px;
    width: 136px;
    height: 136px;
}

.wy-hero__cloud span:nth-child(3) {
    right: 68px;
    bottom: 52px;
    width: 72px;
    height: 72px;
}

/* 分类玉盘 */
.wy-home-top {
    position: relative;
    z-index: 5;
    margin: -26px 14px 0;
}

.wy-home-top > * + * {
    margin-top: 12px;
}

.wy-cats-wrap {
    position: relative;
    z-index: 5;
}

.wy-cats {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    padding: 15px 12px 13px;
    overflow-x: auto;
    border: 1px solid var(--wy-line);
    border-radius: 22px;
    background: var(--wy-surface);
    box-shadow: var(--wy-shadow);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* 分类较少时居中，超出一屏时仍从左侧开始滚动 */
@supports (justify-content: safe center) {
    .wy-cats {
        justify-content: safe center;
    }
}

.wy-cats::-webkit-scrollbar {
    display: none;
}

.wy-cats__item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 62px;
}

.wy-cats__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(200, 161, 95, .24);
    border-radius: 50%;
    background: linear-gradient(150deg, #fbf6ec, #f3ead9);
    color: var(--wy-gold-deep);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 700;
}

.wy-cats__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-cats__label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
}

.wy-cats__name {
    min-width: 0;
    overflow: hidden;
    color: var(--wy-ink-soft);
    font-size: 10.5px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-cats__count {
    flex: 0 0 auto;
    color: var(--wy-muted);
    font-size: 8.5px;
    font-style: normal;
}

.wy-home__body {
    padding: 18px 16px 0;
}

/* ==========================================================================
   公告
   ========================================================================== */
.wy-notice {
    position: relative;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid rgba(200, 161, 95, .28);
    border-radius: 18px;
    background: linear-gradient(140deg, #fffaf0, #f9eedb);
}

.wy-notice::after {
    content: '';
    position: absolute;
    top: -34px;
    right: -26px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 161, 95, .16), transparent 70%);
    pointer-events: none;
}

.wy-notice--catalog {
    margin: 10px 16px 2px;
}

.wy-notice__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wy-notice__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(200, 161, 95, .16);
    color: var(--wy-gold-deep);
    font-size: 12px;
}

.wy-notice__label {
    color: var(--wy-gold-deep);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

.wy-notice__content {
    margin-top: 8px;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.8;
}

.wy-notice__content p {
    margin: 0;
}

.wy-notice__content p + p {
    margin-top: 5px;
}

.wy-notice__content a {
    color: var(--wy-primary);
}

/* ==========================================================================
   商品卡片
   ========================================================================== */
.wy-goods-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--wy-line);
    border-radius: 18px;
    background: var(--wy-surface);
    box-shadow: 0 5px 16px rgba(45, 35, 70, .055);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wy-goods-card:active {
    border-color: rgba(90, 75, 181, .28);
    box-shadow: 0 8px 22px rgba(45, 35, 70, .1);
}

.wy-goods-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2eee7;
}

.wy-goods-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-goods-card__media .wy-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.wy-soldout {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(23, 20, 37, .54);
}

.wy-soldout span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(246, 239, 223, .5);
    border-radius: 50%;
    color: #f6efdf;
    font-size: 11px;
    letter-spacing: .12em;
}

.wy-goods-card__body {
    display: block;
    padding: 9px 11px 11px;
}

.wy-goods-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 37px;
    color: var(--wy-ink);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-goods-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 5px;
}

.wy-goods-card__price {
    color: var(--wy-cinnabar);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.wy-goods-card__original {
    color: var(--wy-muted);
    font-size: 9.5px;
    text-decoration: line-through;
}

.wy-goods-card__sold {
    margin-left: auto;
    color: var(--wy-muted);
    font-size: 9px;
    font-style: normal;
}

.wy-goods-card__stock {
    display: block;
    margin-top: 3px;
    color: var(--wy-muted);
    font-size: 9px;
}

/* 首页横向大卡 */
.wy-rail {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wy-rail::-webkit-scrollbar {
    display: none;
}

.wy-goods-card--rail {
    flex: 0 0 226px;
    scroll-snap-align: start;
}

.wy-goods-card--rail .wy-goods-card__title {
    font-size: 13px;
    min-height: 38px;
}

.wy-rail__hint {
    margin-top: -6px;
    color: var(--wy-muted);
    font-size: 9.5px;
    text-align: right;
}

.wy-rail__hint i {
    color: var(--wy-gold);
}

/* ==========================================================================
   热卖榜
   ========================================================================== */
.wy-rank {
    position: relative;
    padding: 14px 14px 6px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 8%, rgba(200, 161, 95, .18), transparent 32%),
        linear-gradient(158deg, #191527, #251e3c 62%, #2c2346);
    color: #f4eee2;
    box-shadow: 0 14px 30px rgba(25, 21, 39, .22);
}

.wy-rank::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(200, 161, 95, .045) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(200, 161, 95, .045) 0 1px, transparent 1px 24px);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
    pointer-events: none;
}

.wy-rank__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 2px 4px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.wy-rank__head-title {
    color: #f0e4c8;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 14px;
    letter-spacing: .14em;
}

.wy-rank__head-en {
    color: rgba(240, 228, 200, .45);
    font-size: 8px;
    letter-spacing: .28em;
}

.wy-rank__list {
    position: relative;
    z-index: 1;
}

.wy-rank__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.wy-rank__item:last-child {
    border-bottom: 0;
}

.wy-rank__num {
    flex: 0 0 auto;
    width: 24px;
    color: rgba(240, 228, 200, .45);
    font-family: 'LogoFont', "Noto Serif SC", serif;
    font-size: 16px;
    font-style: italic;
    text-align: center;
}

.wy-rank__item:nth-child(1) .wy-rank__num,
.wy-rank__item:nth-child(2) .wy-rank__num,
.wy-rank__item:nth-child(3) .wy-rank__num {
    color: var(--wy-gold);
}

.wy-rank__thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.wy-rank__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-rank__body {
    flex: 1;
    min-width: 0;
}

.wy-rank__name {
    display: block;
    overflow: hidden;
    color: #f4eee2;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-rank__meta {
    display: block;
    margin-top: 2px;
    color: rgba(244, 238, 226, .46);
    font-size: 9.5px;
}

.wy-rank__price {
    flex: 0 0 auto;
    color: #efca8c;
    font-size: 13.5px;
    font-weight: 600;
}

/* ==========================================================================
   未央志
   ========================================================================== */
.wy-journal__lead {
    display: block;
    overflow: hidden;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    box-shadow: 0 6px 18px rgba(45, 35, 70, .05);
}

.wy-journal__lead-media {
    display: block;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #f2eee7;
}

.wy-journal__lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-journal__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2342, #3a2f5c);
    color: var(--wy-gold);
    font-size: 30px;
}

.wy-journal__lead-body {
    display: block;
    padding: 13px 15px 15px;
}

.wy-journal__cat {
    color: var(--wy-gold-deep);
    font-size: 9px;
    letter-spacing: .12em;
}

.wy-journal__lead-title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-journal__meta {
    display: block;
    margin-top: 5px;
    color: var(--wy-muted);
    font-size: 9.5px;
}

.wy-journal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--wy-line);
    border-radius: 16px;
    background: var(--wy-surface);
}

.wy-journal__item-body {
    flex: 1;
    min-width: 0;
}

.wy-journal__item-cat {
    display: block;
    color: var(--wy-gold-deep);
    font-size: 8.5px;
    letter-spacing: .1em;
}

.wy-journal__item-title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-journal__item-thumb {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 18px;
}

.wy-journal__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   商品列表页
   ========================================================================== */
.wy-list-page {
    padding: 12px 0 10px;
}

.wy-blog-list-page {
    padding-bottom: 10px;
}

.wy-list-head {
    padding: 17px 16px 4px;
}

.wy-list-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
}

.wy-list-head__title {
    margin-top: 2px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.25;
}

.wy-list-head__count {
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: var(--wy-muted);
    font-size: 10.5px;
}

.wy-list-head__count b {
    margin: 0 2px;
    color: var(--wy-cinnabar);
    font-size: 16px;
}

.wy-list-head__sub {
    margin-top: 8px;
    color: var(--wy-muted);
    font-size: 11px;
    line-height: 1.7;
}

.wy-filter {
    position: sticky;
    top: calc(var(--wy-appbar-h) + env(safe-area-inset-top));
    z-index: 40;
    padding: 8px 0 8px;
    background: linear-gradient(180deg, var(--wy-bg) 82%, rgba(246, 242, 234, 0));
}

.wy-filter--grid {
    position: static;
}

.wy-filter__cats {
    display: flex;
    gap: 7px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* 平铺模式：换行展示，筛选区不吸顶，避免占满屏幕 */
.wy-filter__cats--grid {
    flex-wrap: wrap;
    row-gap: 8px;
    overflow-x: visible;
    padding-bottom: 10px;
}

.wy-filter__cats::-webkit-scrollbar {
    display: none;
}

.wy-filter__cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--wy-line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .86);
    color: var(--wy-ink-soft);
    font-size: 12px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.wy-filter__cat-img {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.wy-filter__cat-ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 9px;
}

.wy-filter__cat.is-active .wy-filter__cat-ico {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.wy-filter__cat em {
    color: var(--wy-muted);
    font-size: 9px;
    font-style: normal;
}

.wy-filter__cat.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    box-shadow: 0 6px 15px rgba(90, 75, 181, .26);
    color: #fff;
}

.wy-filter__cat.is-active em {
    color: rgba(255, 255, 255, .7);
}

.wy-filter__sort {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wy-filter__sort::-webkit-scrollbar {
    display: none;
}

.wy-filter__sort-link {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 253, 249, .55);
    color: var(--wy-muted);
    font-size: 11px;
}

.wy-filter__sort-link.is-active {
    border-color: rgba(90, 75, 181, .16);
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-weight: 600;
}

.wy-goods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 6px 16px 0;
}

.wy-loadmore {
    margin: 20px 16px 0;
}

.wy-loadmore__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    border: 1px solid rgba(200, 161, 95, .35);
    border-radius: 999px;
    background: linear-gradient(140deg, #fffdf9, #f8efdd);
    color: var(--wy-gold-deep);
    font-size: 12.5px;
    letter-spacing: .06em;
}

.wy-loadmore__btn.is-loading {
    opacity: .7;
}

.wy-loadmore.is-done {
    color: var(--wy-muted);
    font-size: 10px;
    text-align: center;
    letter-spacing: .16em;
}

/* ==========================================================================
   分页
   ========================================================================== */
.wy-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 16px 0;
}

.wy-pager__btn,
.wy-pager__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--wy-line);
    border-radius: 11px;
    background: var(--wy-surface);
    color: var(--wy-ink-soft);
    font-size: 12px;
}

.wy-pager__num.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    color: #fff;
}

.wy-pager__btn.is-disabled {
    opacity: .4;
}

/* ==========================================================================
   商品详情
   ========================================================================== */
.wy-detail {
    padding-bottom: 8px;
}

.wy-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px 0;
    background: var(--wy-bg);
}

.wy-gallery__main {
    position: relative;
    width: clamp(160px, 46vw, 200px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--wy-line);
    border-radius: 16px;
    background: #f2eee7;
    box-shadow: 0 5px 16px rgba(45, 35, 70, .05);
}

.wy-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-gallery__count {
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(23, 20, 37, .55);
    color: #f6efdf;
    font-size: 10px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wy-gallery__thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px 12px;
    overflow-x: auto;
    background: var(--wy-bg);
    scrollbar-width: none;
}

.wy-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.wy-gallery__thumb {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f2eee7;
    opacity: .72;
    transition: border-color .2s ease, opacity .2s ease;
}

.wy-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-gallery__thumb.active {
    border-color: var(--wy-primary);
    opacity: 1;
}

.wy-no-image--detail {
    height: 100%;
    font-size: 40px;
}

.wy-detail-card {
    margin: 12px 14px 0;
    padding: 16px;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    box-shadow: 0 4px 14px rgba(45, 35, 70, .04);
}

.wy-detail-card--form {
    padding: 14px 16px 16px;
}

.wy-detail-card--content {
    padding: 16px 16px 6px;
}

.wy-detail-card__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.detail-price {
    color: var(--wy-cinnabar);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.detail-price-original {
    color: var(--wy-muted);
    font-size: 11px;
    text-decoration: line-through;
}

.wy-detail-card__sold {
    flex: 0 0 auto;
    color: var(--wy-muted);
    font-size: 10px;
}

.detail-name {
    margin-top: 9px;
    color: var(--wy-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .01em;
}

.wy-detail-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.wy-detail-card__badges .wy-badge--auto {
    background: rgba(90, 75, 181, .09);
    color: var(--wy-primary);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.wy-detail-card__badges .wy-badge--manual {
    background: rgba(200, 161, 95, .14);
    color: var(--wy-gold-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.wy-detail-card__cat {
    padding: 3px 8px;
    border: 1px solid var(--wy-line);
    border-radius: 999px;
    color: var(--wy-muted);
    font-size: 9px;
}

.detail-intro {
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wy-surface-soft);
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.8;
}

.detail-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--wy-muted);
    font-size: 10.5px;
}

.detail-stat-item strong {
    margin-left: 2px;
    color: var(--wy-ink);
    font-size: 12px;
    font-weight: 600;
}

.detail-stat-sep {
    width: 1px;
    height: 10px;
    background: var(--wy-line-strong);
}

.wy-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--wy-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

.wy-card-title i {
    color: var(--wy-gold-deep);
    font-size: 13px;
}

/* 规格 */
.spec-section {
    display: block;
}

.spec-group + .spec-group {
    margin-top: 14px;
}

.spec-group-label {
    margin-bottom: 9px;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    font-weight: 600;
}

.spec-group-label i {
    margin-right: 3px;
    color: var(--wy-gold-deep);
    font-size: 11px;
}

.spec-group-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.spec-tag {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 8px;
}

.spec-btn {
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 11px;
    background: var(--wy-surface);
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.2;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.spec-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    box-shadow: 0 6px 14px rgba(90, 75, 181, .22);
    color: #fff;
}

.spec-btn.disabled,
.spec-btn:disabled {
    border-style: dashed;
    background: #f5f1ea;
    color: var(--wy-muted);
    opacity: .55;
    text-decoration: line-through;
}

/* 数量 */
.detail-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--wy-line-strong);
}

.detail-qty-label {
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    font-weight: 600;
}

.detail-qty-label i {
    margin-right: 3px;
    color: var(--wy-gold-deep);
    font-size: 11px;
}

.detail-qty-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.detail-qty-selector {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--wy-line-strong);
    border-radius: 11px;
    background: var(--wy-surface);
}

.detail-qty-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--wy-surface-soft);
    color: var(--wy-ink-soft);
    font-size: 16px;
    line-height: 1;
}

.detail-qty-btn:active {
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
}

.detail-qty-input {
    width: 42px;
    height: 34px;
    border: 0;
    background: var(--wy-surface);
    color: var(--wy-ink);
    font-size: 13px;
    text-align: center;
    -moz-appearance: textfield;
}

.detail-qty-input::-webkit-outer-spin-button,
.detail-qty-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.detail-stock-info {
    color: var(--wy-muted);
    font-size: 9.5px;
}

.detail-min-buy {
    width: 100%;
    color: var(--wy-cinnabar);
    font-size: 9.5px;
    text-align: right;
}

/* 附加表单 */
.detail-form-field {
    margin-top: 13px;
}

.detail-form-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    font-weight: 600;
}

.detail-form-field-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface-soft);
    color: var(--wy-ink);
    font-size: 13px;
}

.detail-form-field-input:focus {
    border-color: rgba(90, 75, 181, .5);
    background: var(--wy-surface);
}

/* 优惠券 */
.detail-coupon-input-row {
    display: flex;
    gap: 8px;
}

.detail-coupon-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface-soft);
    font-size: 12.5px;
}

.detail-coupon-btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.detail-coupon-btn--primary {
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    color: #fff;
}

.detail-coupon-guest-tip {
    margin-top: 9px;
    color: var(--wy-muted);
    font-size: 10px;
}

.detail-coupon-guest-tip a {
    color: var(--wy-primary);
}

.detail-coupon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.detail-coupon-choose {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 999px;
    color: var(--wy-ink-soft);
    font-size: 10.5px;
}

.detail-coupon-goget {
    border-color: rgba(200, 161, 95, .4);
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
}

.detail-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 10.5px;
}

/* 支付方式 */
.detail-payment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-payment-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface);
    color: var(--wy-ink-soft);
    font-size: 11px;
    text-align: left;
}

.detail-payment-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.detail-payment-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-payment-item > i {
    display: none;
    color: var(--wy-primary);
    font-size: 13px;
}

.detail-payment-item.active {
    border-color: rgba(90, 75, 181, .55);
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-weight: 600;
}

.detail-payment-item.active > i {
    display: block;
}

.detail-payment-item.is-disabled {
    opacity: .42;
}

/* 商品数据 */
.detail-meta-tab-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--wy-line);
}

.detail-meta-tab-btn {
    position: relative;
    padding: 4px 2px 10px;
    color: var(--wy-muted);
    font-size: 12px;
}

.detail-meta-tab-btn.active {
    color: var(--wy-primary);
    font-weight: 600;
}

.detail-meta-tab-btn.active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--wy-gold), var(--wy-primary));
}

.detail-meta-tab-pane {
    display: none;
}

.detail-meta-tab-pane.active {
    display: block;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--wy-line);
    font-size: 11.5px;
}

.detail-meta-row:last-child {
    border-bottom: 0;
}

.detail-meta-label {
    color: var(--wy-muted);
}

.detail-meta-value {
    color: var(--wy-ink);
    text-align: right;
}

/* 标签 */
.wy-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 12px 14px 0;
    padding: 13px 16px;
    border: 1px solid var(--wy-line);
    border-radius: 16px;
    background: var(--wy-surface);
}

.wy-detail-tags > i {
    margin-right: 2px;
    color: var(--wy-muted);
    font-size: 11px;
}

/* 底部购买条 */
.wy-buybar {
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 24px);
    max-width: 536px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 22px;
    background: rgba(255, 253, 249, .92);
    box-shadow: 0 16px 40px rgba(25, 20, 40, .18);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.wy-buybar__home {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 48px;
    height: 50px;
    border-radius: 16px;
    background: var(--wy-surface-soft);
    color: var(--wy-muted);
    font-size: 9px;
}

.wy-buybar__home i {
    color: var(--wy-ink);
    font-size: 17px;
    line-height: 1;
}

.wy-buybar__btn {
    display: flex;
    flex: 1;
    align-items: stretch;
    gap: 0;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #241d3b 0%, #43356d 55%, #5a4bb5 100%);
    box-shadow: 0 10px 22px rgba(55, 42, 96, .3);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
}

.wy-buybar__amount {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.wy-buybar__amount em {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

.wy-buybar__amount strong {
    overflow: hidden;
    color: #f3d59b;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-buybar__sep {
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .22);
}

.wy-buybar__go {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    white-space: nowrap;
}

.wy-buybar__btn:disabled,
.wy-buybar__btn.is-loading {
    opacity: .7;
}

.detail-actions {
    display: none;
}

/* 已选规格入口 */
.wy-sku-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px dashed rgba(90, 75, 181, .32);
    border-radius: 12px;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 11.5px;
    text-align: left;
}

.wy-sku-entry__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    font-weight: 600;
}

.wy-sku-entry__meta {
    max-width: 56%;
    margin-left: auto;
    overflow: hidden;
    color: var(--wy-muted);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-sku-entry__arrow {
    flex: 0 0 auto;
    color: var(--wy-muted);
    font-size: 12px;
}

/* 购买抽屉 */
.wy-sku-drawer {
    position: fixed;
    inset: 0;
    z-index: 150;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.wy-sku-drawer.is-open {
    visibility: visible;
    opacity: 1;
}

.wy-sku-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 28, .52);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.wy-sku-drawer__sheet {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    border-radius: 24px 24px 0 0;
    background: var(--wy-bg);
    box-shadow: 0 -20px 50px rgba(15, 10, 28, .28);
    transform: translate(-50%, 104%);
    transition: transform .34s cubic-bezier(.22, .7, .25, 1);
}

.wy-sku-drawer.is-open .wy-sku-drawer__sheet {
    transform: translate(-50%, 0);
}

.wy-sku-drawer__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid var(--wy-line);
    border-radius: 24px 24px 0 0;
    background: var(--wy-surface);
}

.wy-sku-drawer__thumb {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    overflow: hidden;
    border-radius: 14px;
    background: #f2eee7;
}

.wy-sku-drawer__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-sku-drawer__info {
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}

.wy-sku-drawer__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--wy-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-sku-drawer__sub {
    display: block;
    margin-top: 4px;
    color: var(--wy-muted);
    font-size: 9.5px;
}

.wy-sku-drawer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wy-surface-soft);
    color: var(--wy-muted);
    font-size: 13px;
}

.wy-sku-drawer__body {
    flex: 1;
    min-height: 0;
    padding: 10px 14px 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.wy-sku-drawer__body .wy-detail-card {
    margin: 10px 0 0;
}

.wy-sku-drawer__body .wy-detail-card:first-child {
    margin-top: 0;
}

.wy-sku-drawer__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wy-line);
    background: rgba(255, 253, 249, .97);
    box-shadow: 0 -8px 20px rgba(40, 30, 60, .06);
}

.wy-sku-drawer__price {
    flex: 0 0 auto;
    line-height: 1.15;
}

.wy-sku-drawer__price span {
    display: block;
    color: var(--wy-muted);
    font-size: 9px;
}

.wy-sku-drawer__price strong {
    color: var(--wy-cinnabar);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.wy-sku-drawer__confirm {
    flex: 1;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    box-shadow: 0 9px 20px rgba(90, 75, 181, .3);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .08em;
}

.wy-sku-drawer__confirm:disabled {
    opacity: .65;
}

/* ==========================================================================
   富文本
   ========================================================================== */
.wy-rich-text {
    color: var(--wy-ink-soft);
    font-size: 13.5px;
    line-height: 1.92;
    word-break: break-word;
}

.wy-rich-text > *:first-child {
    margin-top: 0;
}

.wy-rich-text p {
    margin: 0 0 13px;
}

.wy-rich-text h1,
.wy-rich-text h2,
.wy-rich-text h3,
.wy-rich-text h4 {
    margin: 22px 0 11px;
    color: var(--wy-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    line-height: 1.45;
}

.wy-rich-text h1 {
    font-size: 21px;
}

.wy-rich-text h2 {
    font-size: 18px;
}

.wy-rich-text h3 {
    font-size: 16px;
}

.wy-rich-text h4 {
    font-size: 14px;
}

.wy-rich-text a {
    color: var(--wy-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wy-rich-text img {
    height: auto;
    max-width: 100%;
    margin: 14px auto;
    border-radius: 14px;
}

.wy-rich-text ul,
.wy-rich-text ol {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: disc;
}

.wy-rich-text ol {
    list-style: decimal;
}

.wy-rich-text li {
    margin-bottom: 5px;
}

.wy-rich-text blockquote {
    margin: 15px 0;
    padding: 12px 15px;
    border-left: 3px solid var(--wy-gold);
    border-radius: 0 12px 12px 0;
    background: var(--wy-gold-soft);
    color: var(--wy-ink-soft);
}

.wy-rich-text blockquote p:last-child {
    margin-bottom: 0;
}

.wy-rich-text table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 12px;
}

.wy-rich-text th,
.wy-rich-text td {
    padding: 8px 10px;
    border: 1px solid var(--wy-line-strong);
    text-align: left;
}

.wy-rich-text th {
    background: var(--wy-surface-soft);
    color: var(--wy-ink);
    font-weight: 600;
}

.wy-rich-text pre {
    margin: 15px 0;
    padding: 14px;
    overflow-x: auto;
    border-radius: 12px;
    background: #1d1929;
    color: #f0e8da;
    font-size: 12px;
    line-height: 1.7;
}

.wy-rich-text code {
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(90, 75, 181, .08);
    color: var(--wy-primary);
    font-size: .92em;
}

.wy-rich-text pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.wy-rich-text hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px dashed var(--wy-line-strong);
}

/* ==========================================================================
   文章列表
   ========================================================================== */
.wy-tabs {
    display: flex;
    gap: 7px;
    padding: 10px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wy-tabs::-webkit-scrollbar {
    display: none;
}

.wy-tabs__item {
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--wy-line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .82);
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    white-space: nowrap;
}

.wy-tabs__item em {
    margin-left: 2px;
    color: var(--wy-muted);
    font-size: 9px;
    font-style: normal;
}

.wy-tabs__item.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    color: #fff;
}

.wy-tabs__item.is-active em {
    color: rgba(255, 255, 255, .7);
}

.wy-tabs--sub {
    padding-top: 6px;
}

.wy-tabs--sub .wy-tabs__item {
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 10.5px;
}

.wy-article-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px 0;
}

.wy-article-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--wy-line);
    border-radius: 16px;
    background: var(--wy-surface);
    box-shadow: 0 4px 13px rgba(45, 35, 70, .04);
}

.wy-article-card__media {
    display: block;
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2eee7;
}

.wy-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-article-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2342, #3a2f5c);
    color: var(--wy-gold);
    font-size: 24px;
}

.wy-article-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1px 0;
}

.wy-article-card__cat {
    color: var(--wy-gold-deep);
    font-size: 8.5px;
    letter-spacing: .12em;
}

.wy-article-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--wy-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-article-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--wy-muted);
    font-size: 10.5px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-article-card__meta {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 5px;
    color: var(--wy-muted);
    font-size: 9px;
}

.wy-article-card__meta i {
    margin-right: 3px;
    font-size: 9px;
}

/* ==========================================================================
   文章详情
   ========================================================================== */
.wy-article-page {
    padding: 14px 14px 0;
}

.wy-article-page .wy-crumbs {
    margin: 0 2px 12px;
}

.wy-article {
    padding: 20px 18px 16px;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    box-shadow: 0 5px 18px rgba(45, 35, 70, .05);
}

.wy-article__cat {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 9px;
    letter-spacing: .1em;
}

.wy-article__title {
    margin-top: 11px;
    color: var(--wy-ink);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.48;
    letter-spacing: .02em;
}

.wy-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-top: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--wy-line-strong);
    color: var(--wy-muted);
    font-size: 9.5px;
}

.wy-article__meta i {
    margin-right: 3px;
}

.wy-article .wy-rich-text {
    margin-top: 17px;
}

.wy-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed var(--wy-line-strong);
}

.wy-article__tags > i {
    margin-right: 2px;
    color: var(--wy-muted);
    font-size: 10px;
}

.wy-post-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.wy-post-nav__item {
    display: block;
    padding: 11px 14px;
    border: 1px solid var(--wy-line);
    border-radius: 14px;
    background: var(--wy-surface);
}

.wy-post-nav__item.is-disabled {
    opacity: .45;
}

.wy-post-nav__item--next {
    text-align: right;
}

.wy-post-nav__label {
    display: block;
    color: var(--wy-gold-deep);
    font-size: 9px;
    letter-spacing: .1em;
}

.wy-post-nav__title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--wy-ink);
    font-size: 11.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* ==========================================================================
   评论
   ========================================================================== */
.wy-comments-card {
    margin-top: 12px;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    padding: 16px 16px 10px;
}

.comment-section {
    display: block;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-header-left {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.comment-title {
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
}

.comment-count {
    color: var(--wy-cinnabar);
    font-size: 11px;
    font-weight: 600;
}

.comment-sort {
    display: flex;
    gap: 4px;
    padding: 2px;
    border-radius: 999px;
    background: var(--wy-surface-soft);
}

.comment-sort-btn {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--wy-muted);
    font-size: 9.5px;
    cursor: pointer;
}

.comment-sort-btn.active {
    background: var(--wy-surface);
    box-shadow: 0 2px 6px rgba(45, 35, 70, .08);
    color: var(--wy-primary);
    font-weight: 600;
}

.comment-form-box {
    margin-bottom: 14px;
}

.comment-form-wrapper {
    display: flex;
    gap: 9px;
}

.comment-form-avatar,
.comment-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 13px;
}

.comment-form-avatar img,
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-body {
    flex: 1;
    min-width: 0;
}

.comment-textarea {
    display: block;
    width: 100%;
    min-height: 74px;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface-soft);
    color: var(--wy-ink);
    font-size: 12px;
    line-height: 1.7;
}

.comment-textarea:focus {
    border-color: rgba(90, 75, 181, .45);
    background: var(--wy-surface);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 7px;
}

.comment-char-count {
    margin-right: auto;
    color: var(--wy-muted);
    font-size: 9px;
}

.comment-submit-btn,
.comment-cancel-btn {
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 10.5px;
}

.comment-submit-btn {
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    color: #fff;
    font-weight: 600;
}

.comment-submit-btn:disabled {
    opacity: .6;
}

.comment-cancel-btn {
    background: var(--wy-surface-soft);
    color: var(--wy-muted);
}

.comment-login-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px;
    border-radius: 12px;
    background: var(--wy-surface-soft);
    color: var(--wy-muted);
    font-size: 11px;
}

.comment-login-tip i {
    color: var(--wy-gold-deep);
    font-size: 16px;
}

.comment-login-btn {
    margin-left: auto;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--wy-primary);
    color: #fff;
    font-size: 10px;
}

.comment-list {
    min-height: 40px;
}

.comment-loading,
.comment-empty {
    padding: 22px 0;
    color: var(--wy-muted);
    font-size: 11px;
    text-align: center;
}

.comment-item {
    display: flex;
    gap: 9px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--wy-line);
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.comment-author {
    color: var(--wy-ink);
    font-size: 11.5px;
    font-weight: 600;
}

.comment-reply-to {
    color: var(--wy-muted);
    font-size: 9.5px;
}

.comment-reply-to b {
    color: var(--wy-primary);
    font-weight: 500;
}

.comment-time {
    margin-left: auto;
    color: var(--wy-muted);
    font-size: 9px;
}

.comment-content {
    color: var(--wy-ink-soft);
    font-size: 12px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 13px;
    margin-top: 5px;
}

.comment-action-btn {
    color: var(--wy-muted);
    font-size: 9.5px;
}

.comment-action-btn i {
    margin-right: 2px;
}

.comment-replies {
    margin-top: 9px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--wy-surface-soft);
}

.comment-item--reply {
    padding: 9px 0;
}

.comment-item--reply .comment-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.comment-item--reply .comment-author {
    font-size: 10.5px;
}

.comment-item--reply .comment-content {
    font-size: 11px;
}

.comment-load-more-replies {
    padding: 6px 0;
}

.comment-load-replies-btn {
    color: var(--wy-primary);
    font-size: 9.5px;
}

.comment-reply-form {
    margin-top: 9px;
}

.comment-reply-textarea {
    min-height: 58px;
}

.comment-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 14px 0 4px;
}

.comment-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid var(--wy-line);
    border-radius: 9px;
    color: var(--wy-ink-soft);
    font-size: 10.5px;
}

.comment-page-btn.active {
    border-color: transparent;
    background: var(--wy-primary);
    color: #fff;
}

.comment-page-dots {
    color: var(--wy-muted);
    font-size: 10px;
}

/* 文章侧栏 */
.wy-blog-side {
    margin: 12px -14px 0;
}

.wy-side-widget {
    margin: 12px 14px 0;
    padding: 15px 16px;
    border: 1px solid var(--wy-line);
    border-radius: 18px;
    background: var(--wy-surface);
}

.wy-side-widget__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .05em;
}

.wy-side-widget__mark {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--wy-gold), var(--wy-primary));
}

.wy-side-widget__empty {
    color: var(--wy-muted);
    font-size: 10.5px;
}

.wy-side-posts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wy-side-post {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wy-side-post__img {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 14px;
}

.wy-side-post__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wy-side-post__body {
    flex: 1;
    min-width: 0;
}

.wy-side-post__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-side-post__date {
    display: block;
    margin-top: 2px;
    color: var(--wy-muted);
    font-size: 8.5px;
}

.wy-cat-group + .wy-cat-group {
    border-top: 1px dashed var(--wy-line);
}

.wy-cat-parent-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wy-cat-parent {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 0;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
}

.wy-cat-parent.is-active {
    color: var(--wy-primary);
    font-weight: 600;
}

.wy-cat-ico {
    color: var(--wy-gold-deep);
    font-size: 11px;
}

.wy-cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-cat-count {
    flex: 0 0 auto;
    color: var(--wy-muted);
    font-size: 9px;
}

.wy-cat-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--wy-muted);
    font-size: 11px;
    cursor: pointer;
}

.wy-cat-arrow i {
    transition: transform .25s ease;
}

.wy-cat-arrow.is-open i {
    transform: rotate(180deg);
}

.wy-cat-children {
    padding-left: 18px;
}

.wy-cat-child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--wy-muted);
    font-size: 10.5px;
}

.wy-cat-child.is-active {
    color: var(--wy-primary);
}

.wy-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wy-side-tag {
    padding: 4px 10px;
    border: 1px solid var(--wy-line);
    border-radius: 999px;
    color: var(--wy-ink-soft);
    font-size: 10px;
}

.wy-side-tag span {
    margin-left: 2px;
    color: var(--wy-muted);
    font-size: 8.5px;
}

/* ==========================================================================
   搜索页
   ========================================================================== */
.wy-search-page {
    padding-bottom: 10px;
}

.wy-search-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 18px 22px;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 84% 10%, rgba(200, 161, 95, .22), transparent 34%),
        linear-gradient(158deg, #191527, #251e3d 62%, #2d2449);
    color: #f6efdf;
}

.wy-search-hero__glow {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 161, 95, .2), transparent 68%);
    pointer-events: none;
}

.wy-search-hero__title {
    position: relative;
    margin-top: 4px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .04em;
}

.wy-search-hero__sub {
    position: relative;
    margin-top: 7px;
    color: rgba(246, 239, 223, .55);
    font-size: 11.5px;
}

.wy-search-hero__sub strong {
    color: var(--wy-gold);
}

.wy-search-hero__sub em {
    color: var(--wy-gold);
    font-style: normal;
}

.wy-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    margin-top: 17px;
    padding: 0 5px 0 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.wy-search-form > i {
    color: var(--wy-gold);
    font-size: 14px;
}

.wy-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12.5px;
}

.wy-search-form input::placeholder {
    color: rgba(246, 239, 223, .4);
}

.wy-search-form button {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 17px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--wy-gold), #b78c45);
    color: #241d2f;
    font-size: 12px;
    font-weight: 700;
}

.wy-search-tabs {
    position: relative;
    display: flex;
    gap: 7px;
    margin-top: 14px;
}

.wy-search-tabs a {
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(246, 239, 223, .6);
    font-size: 11px;
}

.wy-search-tabs a.is-active {
    border-color: transparent;
    background: rgba(200, 161, 95, .2);
    color: var(--wy-gold);
}

.wy-search-page .wy-section {
    margin: 20px 16px 0;
}

.wy-search-page .wy-goods-grid,
.wy-search-page .wy-article-list {
    padding: 0;
}

.wy-search-page > .wy-empty {
    margin: 16px;
}

/* ==========================================================================
   领券中心
   ========================================================================== */
.wy-coupon-page {
    padding-bottom: 10px;
}

.wy-list-head--coupon {
    padding-bottom: 8px;
}

.wy-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 14px 0;
}

.wy-coupon-card {
    position: relative;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(200, 161, 95, .28);
    border-radius: 18px;
    background: var(--wy-surface);
    box-shadow: 0 5px 16px rgba(45, 35, 70, .05);
}

.wy-coupon-card::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 112px;
    border-left: 1px dashed rgba(200, 161, 95, .45);
}

.wy-coupon-card__left {
    display: flex;
    flex: 0 0 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 16px 8px;
    background:
        radial-gradient(circle at 20% 16%, rgba(200, 161, 95, .22), transparent 48%),
        linear-gradient(150deg, #211c31, #33294f);
    color: #f4e8cf;
    text-align: center;
}

.wy-coupon-card__value {
    color: var(--wy-gold);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

.wy-coupon-card__caption {
    color: rgba(244, 232, 207, .6);
    font-size: 8.5px;
    line-height: 1.4;
}

.wy-coupon-card__type {
    margin-top: 2px;
    padding: 2px 8px;
    border: 1px solid rgba(200, 161, 95, .35);
    border-radius: 999px;
    color: var(--wy-gold);
    font-size: 8px;
}

.wy-coupon-card__right {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 13px 13px 12px 15px;
}

.wy-coupon-card__title {
    overflow: hidden;
    color: var(--wy-ink);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wy-coupon-card__desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: var(--wy-muted);
    font-size: 9.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wy-coupon-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
    margin-top: 5px;
    color: var(--wy-muted);
    font-size: 8.5px;
}

.wy-coupon-card__code b {
    color: var(--wy-ink-soft);
    font-weight: 600;
    letter-spacing: .03em;
}

.wy-coupon-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
}

/* ==========================================================================
   标签页
   ========================================================================== */
.wy-tag-page {
    padding: 14px 14px 0;
}

.wy-tag-page .wy-crumbs {
    margin: 0 2px 12px;
}

.wy-tag-hero {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(200, 161, 95, .28);
    border-radius: 20px;
    background: linear-gradient(150deg, #fffdf9, #f8efdd);
}

.wy-tag-hero__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(150deg, #211c31, #352a52);
    color: var(--wy-gold);
    font-size: 20px;
}

.wy-tag-hero__title {
    margin-top: 2px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.wy-tag-hero__meta {
    margin-top: 3px;
    color: var(--wy-muted);
    font-size: 10.5px;
}

.wy-tag-hero__meta strong {
    color: var(--wy-cinnabar);
    font-size: 13px;
}

.wy-tag-page .wy-tabs {
    padding: 12px 0 4px;
}

.wy-tag-page .wy-goods-grid {
    padding: 8px 0 0;
}

.wy-tag-page .wy-article-list {
    padding: 8px 0 0;
}

.wy-tag-page .wy-pager {
    margin-right: 0;
    margin-left: 0;
}

/* ==========================================================================
   单页 / 404 / 密码
   ========================================================================== */
.wy-doc-page {
    padding: 14px 14px 0;
}

.wy-doc-page .wy-crumbs {
    margin: 0 2px 12px;
}

.wy-doc {
    padding: 20px 18px 14px;
    border: 1px solid var(--wy-line);
    border-radius: 20px;
    background: var(--wy-surface);
    box-shadow: 0 5px 18px rgba(45, 35, 70, .05);
}

.wy-doc__head {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--wy-line-strong);
}

.wy-doc__title {
    margin-top: 4px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.42;
}

.wy-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    color: var(--wy-muted);
    font-size: 9.5px;
}

.wy-doc__meta i {
    margin-right: 3px;
}

.wy-doc .wy-rich-text {
    margin-top: 16px;
}

.wy-404 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72vh;
    padding: 40px 28px;
    text-align: center;
    overflow: hidden;
}

.wy-404__moon {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 36%, #fff8e6, #f1dfb3 40%, rgba(200, 161, 95, .06) 68%, transparent 70%);
    opacity: .5;
    transform: translateX(-50%);
    pointer-events: none;
}

.wy-404__code {
    position: relative;
    color: var(--wy-primary);
    font-family: 'LogoFont', "Noto Serif SC", serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-shadow: 0 12px 30px rgba(90, 75, 181, .18);
}

.wy-404__title {
    position: relative;
    margin-top: 12px;
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 20px;
    font-weight: 700;
}

.wy-404__desc {
    position: relative;
    margin-top: 8px;
    color: var(--wy-muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.wy-404__reason {
    color: var(--wy-cinnabar);
}

.wy-404__actions {
    position: relative;
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.wy-password {
    margin: 14px;
    padding: 34px 22px;
    border: 1px solid var(--wy-line);
    border-radius: 22px;
    background: var(--wy-surface);
    text-align: center;
}

.wy-password__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--wy-primary-soft);
    color: var(--wy-primary);
    font-size: 23px;
}

.wy-password__title {
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 20px;
    font-weight: 700;
}

.wy-password__desc {
    margin-top: 6px;
    color: var(--wy-muted);
    font-size: 11px;
}

.wy-password__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wy-password__input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface-soft);
    font-size: 13px;
    text-align: center;
}

.wy-password__error {
    margin-top: 12px;
    color: var(--wy-cinnabar);
    font-size: 11px;
}

/* ==========================================================================
   详情页弹层：收货地址 / 优惠券选择（由 main.js 动态生成）
   ========================================================================== */
.detail-addr-layer {
    max-height: 460px;
    padding: 16px 16px 18px;
    overflow: auto;
}

.detail-addr-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.detail-addr-item {
    display: flex;
    gap: 9px;
    padding: 12px 13px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 12px;
    background: var(--wy-surface);
    cursor: pointer;
}

.detail-addr-item.is-active {
    border-color: rgba(90, 75, 181, .55);
    background: var(--wy-primary-soft);
}

.detail-addr-item input {
    margin-top: 4px;
    accent-color: var(--wy-primary);
}

.detail-addr-item-body {
    flex: 1;
    min-width: 0;
}

.detail-addr-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.detail-addr-item-head strong {
    color: var(--wy-ink);
    font-size: 13px;
}

.detail-addr-item-mobile {
    color: var(--wy-muted);
    font-size: 11.5px;
}

.detail-addr-item-default {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--wy-gold-soft);
    color: var(--wy-gold-deep);
    font-size: 9px;
}

.detail-addr-item-text {
    margin-top: 4px;
    color: var(--wy-ink-soft);
    font-size: 11.5px;
    line-height: 1.6;
}

.detail-addr-manage {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    color: var(--wy-primary);
    font-size: 11.5px;
}

.detail-addr-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-addr-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-addr-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-addr-field > label {
    color: var(--wy-ink-soft);
    font-size: 11.5px;
}

.detail-addr-input,
.detail-addr-select,
.detail-addr-textarea {
    width: 100%;
    padding: 0 11px;
    height: 40px;
    border: 1px solid var(--wy-line-strong);
    border-radius: 10px;
    background: var(--wy-surface-soft);
    color: var(--wy-ink);
    font-size: 13px;
}

.detail-addr-textarea {
    height: auto;
    padding: 9px 11px;
    resize: vertical;
    line-height: 1.6;
}

.detail-addr-input:focus,
.detail-addr-select:focus,
.detail-addr-textarea:focus {
    border-color: rgba(90, 75, 181, .5);
    background: var(--wy-surface);
}

.detail-addr-cascade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.detail-addr-tip {
    color: var(--wy-muted);
    font-size: 11px;
}

.detail-addr-tip i {
    margin-right: 4px;
    color: var(--wy-gold-deep);
}

.detail-addr-tip a {
    color: var(--wy-primary);
}

.detail-coupon-btn--ghost {
    border: 1px solid var(--wy-line-strong);
    background: var(--wy-surface-soft);
    color: var(--wy-ink-soft);
}

.detail-coupon-picker {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 520px;
    padding: 14px 16px 18px;
    overflow: auto;
}

.detail-coupon-pick-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--wy-line);
    border-radius: 12px;
    background: var(--wy-surface);
}

.detail-coupon-pick-value {
    flex: 0 0 auto;
    color: var(--wy-cinnabar);
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: 17px;
    font-weight: 700;
}

.detail-coupon-pick-main {
    flex: 1;
    min-width: 0;
}

.detail-coupon-pick-title {
    overflow: hidden;
    color: var(--wy-ink);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-coupon-pick-meta {
    margin-top: 2px;
    color: var(--wy-muted);
    font-size: 9.5px;
}

.detail-coupon-pick-btn {
    flex: 0 0 auto;
    height: 29px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5ccc, var(--wy-primary));
    color: #fff;
    font-size: 10.5px;
}

/* Layui 弹层按钮 / 图片查看器层级 */
.viewer-container {
    z-index: 9999;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--wy-primary) !important;
    background-color: var(--wy-primary) !important;
}

/* ==========================================================================
   杂项
   ========================================================================== */
.wy-page-goods .wy-pjax-bar {
    z-index: 999;
}

/* iOS：输入框字号低于 16px 时聚焦会自动放大页面，这里只针对 iOS 提高字号 */
@supports (-webkit-touch-callout: none) {
    .wy-body input[type="text"],
    .wy-body input[type="search"],
    .wy-body input[type="number"],
    .wy-body input[type="tel"],
    .wy-body input[type="email"],
    .wy-body input[type="password"],
    .wy-body textarea,
    .wy-body select {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
