:root {
    --yy-ink: #171916;
    --yy-paper: #f4f4ef;
    --yy-white: #ffffff;
    --yy-line: #d9dbd1;
    --yy-muted: #686d65;
    --yy-lime: #d9ff57;
    --yy-coral: #ff6b4a;
    --yy-teal: #1b8f88;
    --yy-lilac: #e9e8ff;
    --yy-danger: #c83d34;
    --yy-shadow: 0 16px 40px rgba(23, 25, 22, 0.08);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html.theme-youyumao-html {
    min-height: 100%;
    background: var(--yy-paper);
}

body.theme-youyumao {
    min-height: 100vh;
    margin: 0;
    color: var(--yy-ink);
    background: var(--yy-paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.theme-youyumao a {
    color: inherit;
    text-decoration: none;
}

.theme-youyumao a:hover {
    color: inherit;
    text-decoration: none;
}

.theme-youyumao button,
.theme-youyumao input,
.theme-youyumao textarea,
.theme-youyumao select {
    font: inherit;
}

.theme-youyumao .container {
    max-width: 1240px;
}

.store-header {
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--yy-ink);
}

.store-header .navbar {
    min-height: 76px;
    padding: 8px 0;
}

.yy-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 230px;
    margin-right: 32px;
    padding: 0;
    color: var(--yy-white) !important;
}

.yy-brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid var(--yy-lime);
    border-radius: 4px;
    color: var(--yy-ink);
    background: var(--yy-lime);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.yy-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.yy-brand-copy strong {
    font-size: 18px;
    font-weight: 900;
}

.yy-brand-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}

.yy-main-nav {
    gap: 6px;
}

.yy-main-nav .nav-link {
    position: relative;
    padding: 10px 14px !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px;
    font-weight: 700;
}

.yy-main-nav .nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    content: "";
    background: transparent;
}

.yy-main-nav .nav-link:hover,
.yy-main-nav .nav-link.active {
    color: var(--yy-white) !important;
}

.yy-main-nav .nav-link.active::after {
    background: var(--yy-lime);
}

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

.yy-login-link,
.yy-account-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14px;
    font-weight: 700;
}

.yy-account-link.active,
.yy-account-link:hover,
.yy-login-link:hover {
    color: var(--yy-lime) !important;
}

.yy-register-button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--yy-lime);
    border-radius: 4px;
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
    font-size: 14px;
    font-weight: 800;
}

.yy-register-button:hover {
    border-color: var(--yy-white);
    background: var(--yy-white);
}

.yy-icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.yy-icon-button:hover {
    border-color: var(--yy-coral);
    color: var(--yy-coral);
}

.yy-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px;
    background: var(--yy-white);
}

.yy-menu-toggle i {
    color: var(--yy-ink);
    font-size: 19px;
}

.yy-notice {
    border-bottom: 1px solid #e3cfa8;
    color: #5c4a26;
    background: #f8ecd8;
}

.yy-notice .container {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

.yy-notice p {
    margin: 0;
}

.yy-flash-wrap {
    position: relative;
    z-index: 5;
    padding-top: 16px;
}

.yy-flash {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid;
    border-radius: 4px;
    font-weight: 700;
}

.yy-flash.is-success {
    border-color: #7bb84a;
    color: #244319;
    background: #ecfbdc;
}

.yy-flash.is-error {
    border-color: #da8b84;
    color: #6b1d17;
    background: #fff0ed;
}

.yy-store-intro {
    border-bottom: 1px solid var(--yy-line);
    background: var(--yy-white);
}

.yy-intro-grid {
    display: grid;
    min-height: 278px;
    grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.8fr);
    align-items: stretch;
}

.yy-intro-copy {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 50px 48px 48px 0;
    border-right: 1px solid var(--yy-line);
}

.yy-kicker,
.yy-section-index {
    margin: 0 0 12px;
    color: var(--yy-teal);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.yy-intro-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--yy-ink);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.16;
}

.yy-intro-copy h1 span {
    padding: 0 5px 2px;
    background: var(--yy-lime);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.yy-intro-lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--yy-muted);
    font-size: 16px;
}

.yy-intro-note {
    margin: 13px 0 0;
    color: var(--yy-ink);
    font-size: 12px;
    font-weight: 800;
}

.yy-intro-note span {
    color: var(--yy-muted);
    font-weight: 500;
}

.yy-intro-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.yy-intro-facts div {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 28px 18px;
    text-align: center;
}

.yy-intro-facts div + div {
    border-left: 1px solid var(--yy-line);
}

.yy-intro-facts strong {
    color: var(--yy-ink);
    font-size: 30px;
    font-weight: 900;
}

.yy-intro-facts span {
    color: var(--yy-muted);
    font-size: 12px;
    font-weight: 700;
}

.yy-trust-proof {
    border-bottom: 1px solid var(--yy-line);
    background: var(--yy-paper);
}

.yy-trust-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yy-trust-proof-item {
    display: grid;
    min-width: 0;
    min-height: 112px;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
}

.yy-trust-proof-item + .yy-trust-proof-item {
    border-left: 1px solid var(--yy-line);
}

.yy-trust-proof-item > i {
    color: var(--yy-teal);
    font-size: 21px;
    text-align: center;
}

.yy-trust-proof-item h2 {
    margin: 0;
    color: var(--yy-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.yy-trust-proof-item p {
    margin: 5px 0 0;
    color: var(--yy-muted);
    font-size: 12px;
    line-height: 1.6;
}

.yy-catalog {
    padding: 52px 0 72px;
}

.yy-catalog-heading,
.yy-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.yy-catalog-heading h2,
.yy-section-heading h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
}

.yy-search {
    display: grid;
    width: min(100%, 420px);
    min-height: 48px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--yy-ink);
    border-radius: 4px;
    background: var(--yy-white);
}

.yy-search > i {
    text-align: center;
}

.yy-search input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    color: var(--yy-ink);
    background: transparent;
}

.yy-search button {
    align-self: stretch;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid var(--yy-ink);
    color: var(--yy-ink);
    background: var(--yy-lime);
    font-weight: 900;
}

.yy-search button:hover {
    background: var(--yy-coral);
}

.yy-category-bar {
    display: flex;
    gap: 8px;
    margin: 28px 0 24px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.yy-category {
    min-height: 38px;
    padding: 7px 16px;
    flex: 0 0 auto;
    border: 1px solid var(--yy-line);
    border-radius: 4px;
    color: var(--yy-muted);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.yy-category:hover,
.yy-category.active {
    border-color: var(--yy-ink);
    color: var(--yy-white);
    background: var(--yy-ink);
}

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

.yy-product-card {
    display: grid;
    min-width: 0;
    min-height: 440px;
    grid-template-rows: 238px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--yy-line);
    border-radius: 8px;
    background: var(--yy-white);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.yy-product-card:hover {
    border-color: var(--yy-ink);
    box-shadow: var(--yy-shadow);
    transform: translateY(-3px);
}

.yy-product-card[hidden] {
    display: none;
}

.yy-product-media {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--yy-line);
    background: var(--yy-lilac);
}

.yy-product-card:nth-child(3n + 2) .yy-product-media {
    background: #e5f4ef;
}

.yy-product-card:nth-child(3n + 3) .yy-product-media {
    background: #fff0ea;
}

.yy-product-media::before,
.yy-product-media::after {
    position: absolute;
    content: "";
    background: rgba(23, 25, 22, 0.1);
}

.yy-product-media::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.yy-product-media::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
}

.yy-product-media img {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 142px;
    padding: 16px;
    object-fit: contain;
    border: 1px solid rgba(23, 25, 22, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.yy-delivery-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 5px 9px;
    border: 1px solid var(--yy-ink);
    border-radius: 3px;
    color: var(--yy-white);
    background: var(--yy-ink);
    font-size: 11px;
    font-weight: 900;
}

.yy-delivery-badge.is-auto {
    color: var(--yy-ink);
    background: var(--yy-lime);
}

.yy-product-body {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    flex-direction: column;
    padding: 20px;
}

.yy-product-copy h2 {
    min-height: 48px;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.yy-product-copy h2 a:hover {
    color: var(--yy-teal);
}

.yy-product-copy p {
    margin: 8px 0 0;
    color: var(--yy-muted);
    font-size: 12px;
}

.yy-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--yy-line);
}

.yy-price {
    display: inline-flex;
    align-items: baseline;
    color: var(--yy-ink);
}

.yy-price span {
    margin-right: 3px;
    font-size: 13px;
    font-weight: 800;
}

.yy-price strong {
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
}

.yy-product-action {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid var(--yy-ink);
    border-radius: 4px;
    color: var(--yy-white) !important;
    background: var(--yy-ink);
}

.yy-product-action:hover {
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
}

.yy-search-empty,
.yy-empty-state {
    padding: 54px 24px;
    border: 1px solid var(--yy-line);
    border-radius: 8px;
    text-align: center;
    background: var(--yy-white);
}

.yy-empty-state span {
    color: var(--yy-coral);
    font-size: 12px;
    font-weight: 900;
}

.yy-empty-state h3 {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 900;
}

.yy-empty-state p {
    margin: 0 0 14px;
    color: var(--yy-muted);
}

.yy-empty-state a,
.yy-section-heading > a {
    color: var(--yy-teal);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--yy-white);
    background: var(--yy-ink);
}

.yy-contact-band {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(39, 57, 45, 0.14);
    background: #f7f4ec;
}

.yy-contact-art {
    position: absolute;
    inset: 0;
    opacity: 0.58;
    background-image: url('/uploads/brand/youyumao-contact-support-v1.png');
    background-position: center right;
    background-size: cover;
    pointer-events: none;
}

.yy-contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 52px;
    min-height: 310px;
    padding-top: 38px;
    padding-bottom: 38px;
}

.yy-contact-copy {
    max-width: 540px;
}

.yy-contact-kicker {
    margin: 0 0 9px;
    color: var(--yy-coral);
    font-size: 13px;
    font-weight: 900;
}

.yy-contact-copy h2 {
    margin: 0;
    color: var(--yy-ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
}

.yy-contact-summary {
    margin: 10px 0 23px;
    color: var(--yy-muted);
    font-size: 15px;
}

.yy-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.yy-contact-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 34px;
    align-items: center;
    min-width: 220px;
    padding: 11px 10px 11px 13px;
    border: 1px solid rgba(39, 57, 45, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.yy-contact-item > i {
    color: var(--yy-teal);
    font-size: 21px;
}

.yy-contact-item span,
.yy-contact-item strong {
    display: block;
}

.yy-contact-item span {
    color: var(--yy-muted);
    font-size: 11px;
    font-weight: 700;
}

.yy-contact-item strong {
    color: var(--yy-ink);
    font-size: 15px;
    font-weight: 900;
}

.yy-contact-copy-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    color: var(--yy-ink);
    background: transparent;
}

.yy-contact-copy-button:hover,
.yy-contact-copy-button:focus-visible {
    color: var(--yy-white);
    background: var(--yy-coral);
    outline: none;
}

.yy-contact-qr {
    width: 190px;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(39, 57, 45, 0.2);
    border-radius: 6px;
    background: var(--yy-white);
    box-shadow: 0 10px 20px rgba(39, 57, 45, 0.12);
}

.yy-contact-qr img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 58%;
}

.yy-contact-qr figcaption {
    padding: 8px 2px 1px;
    color: var(--yy-ink);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

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

.store-footer-inner {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.store-footer-inner strong {
    font-size: 21px;
    font-weight: 900;
}

.store-footer-inner p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.store-footer nav {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.store-footer nav a:hover {
    color: var(--yy-lime);
}

.store-footer-custom {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.yy-primary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid var(--yy-ink);
    border-radius: 4px;
    color: var(--yy-white) !important;
    background: var(--yy-ink);
    font-weight: 900;
}

.yy-primary-button:hover,
.yy-primary-button:focus {
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
    box-shadow: none;
}

/* Authentication */
.yy-auth-shell {
    min-height: calc(100vh - 226px);
    padding: 64px 0 80px;
}

.yy-auth-layout {
    display: grid;
    max-width: 1040px;
    min-height: 590px;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    margin: 0 auto;
    border: 1px solid var(--yy-ink);
    border-radius: 8px;
    overflow: hidden;
    background: var(--yy-white);
    box-shadow: var(--yy-shadow);
}

.yy-auth-intro {
    padding: 58px 54px;
    color: var(--yy-white);
    background: var(--yy-ink);
}

.yy-auth-intro .yy-kicker {
    color: var(--yy-lime);
}

.yy-auth-intro h1 {
    max-width: 500px;
    margin: 0;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
}

.yy-auth-intro > p:not(.yy-kicker) {
    max-width: 500px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.64);
}

.yy-auth-intro dl {
    margin: 58px 0 0;
}

.yy-auth-intro dl div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.yy-auth-intro dt {
    color: var(--yy-coral);
    font-size: 12px;
}

.yy-auth-intro dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.yy-auth-form-wrap {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 48px;
}

.yy-form-heading > span {
    color: var(--yy-teal);
    font-size: 12px;
    font-weight: 900;
}

.yy-form-heading h2 {
    margin: 5px 0 26px;
    font-size: 28px;
    font-weight: 900;
}

.yy-auth-form {
    display: grid;
    gap: 18px;
}

.yy-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.yy-field input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--yy-line);
    border-radius: 4px;
    outline: 0;
    color: var(--yy-ink);
    background: var(--yy-paper);
}

.yy-field input:focus {
    border-color: var(--yy-teal);
    background: var(--yy-white);
    box-shadow: 0 0 0 3px rgba(27, 143, 136, 0.12);
}

.yy-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--yy-muted);
    font-size: 13px;
}

.yy-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--yy-teal);
}

.yy-auth-switch {
    margin: 22px 0 0;
    color: var(--yy-muted);
    font-size: 13px;
    text-align: center;
}

.yy-auth-switch a {
    color: var(--yy-teal);
    font-weight: 900;
}

/* Account */
.yy-account-shell {
    min-height: calc(100vh - 226px);
    padding: 58px 0 80px;
}

.yy-account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--yy-ink);
}

.yy-account-heading h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
}

.yy-account-heading > div > p:last-child {
    margin: 10px 0 0;
    color: var(--yy-muted);
}

.yy-account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 1px solid var(--yy-line);
    border-bottom: 1px solid var(--yy-line);
    border-left: 1px solid var(--yy-line);
    background: var(--yy-white);
}

.yy-account-stats div {
    display: flex;
    min-height: 118px;
    justify-content: center;
    flex-direction: column;
    padding: 22px 28px;
}

.yy-account-stats div + div {
    border-left: 1px solid var(--yy-line);
}

.yy-account-stats span {
    color: var(--yy-muted);
    font-size: 12px;
    font-weight: 700;
}

.yy-account-stats strong {
    margin-top: 4px;
    font-size: 31px;
    font-weight: 900;
}

.yy-orders-section {
    padding-top: 54px;
}

.yy-order-list {
    margin-top: 22px;
    border-top: 1px solid var(--yy-ink);
}

.yy-order-row {
    display: grid;
    min-height: 130px;
    grid-template-columns: minmax(260px, 1.6fr) minmax(90px, 0.5fr) minmax(130px, 0.7fr) 100px 96px;
    align-items: center;
    gap: 22px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--yy-line);
}

.yy-order-number {
    color: var(--yy-teal);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.yy-order-primary h3 {
    margin: 5px 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 900;
}

.yy-order-primary time {
    color: var(--yy-muted);
    font-size: 12px;
}

.yy-order-meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.yy-order-meta span {
    color: var(--yy-muted);
    font-size: 11px;
}

.yy-order-meta strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.yy-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 900;
}

.yy-status.is-completed { border-color: #438d4d; color: #25662f; background: #e9f8e8; }
.yy-status.is-waiting { border-color: #b58e21; color: #795c0c; background: #fff4c9; }
.yy-status.is-pending,
.yy-status.is-processing { border-color: #3a8b87; color: #176d68; background: #e2f5f3; }
.yy-status.is-failed { border-color: #b94e45; color: #8a2720; background: #ffebe8; }
.yy-status.is-expired { border-color: #898d87; color: #5d615b; background: #eceeea; }

.yy-order-actions a {
    color: var(--yy-teal);
    font-size: 13px;
    font-weight: 900;
}

.yy-pagination {
    margin-top: 24px;
}

/* Existing purchase, bill, search and detail templates */
.theme-youyumao .main-container {
    min-height: calc(100vh - 226px);
    padding: 44px 0 64px;
}

.theme-youyumao .good-card > .row > [class*="col-"],
.theme-youyumao .order-card > .row > [class*="col-"] {
    width: 100%;
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.theme-youyumao .good-card .card,
.theme-youyumao .order-card > .row > [class*="col-"] > .card,
.theme-youyumao .page-wrapper .card {
    overflow: hidden;
    border: 1px solid var(--yy-line) !important;
    border-radius: 8px !important;
    background: var(--yy-white);
    box-shadow: none;
}

.yy-buy-page .good-card > .row:first-child > div > .card {
    margin-top: 0 !important;
    border-color: var(--yy-ink) !important;
}

.yy-buy-page .good-card > .row:first-child > div > .card > .row > .col-md-4 {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
    border-right: 1px solid var(--yy-line);
    background: var(--yy-lilac);
}

.yy-buy-page .good-card > .row:first-child img.card-img-top {
    width: 190px;
    height: 190px;
    padding: 20px !important;
    object-fit: contain;
    border: 1px solid rgba(23, 25, 22, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.yy-buy-page .card-body {
    padding: 36px !important;
}

.yy-buy-page .lunar-buy-kicker,
.theme-youyumao .lunar-form-section {
    margin: 0 0 8px;
    color: var(--yy-teal);
    font-size: 12px;
    font-weight: 900;
}

.yy-buy-page .card-title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.yy-buy-page .lunar-price-lg {
    margin: 14px 0 20px;
}

.yy-buy-page .lunar-price-lg strong {
    font-size: 34px;
}

.theme-youyumao .form-control {
    min-height: 44px;
    border: 1px solid var(--yy-line);
    border-radius: 4px;
    color: var(--yy-ink);
    background: var(--yy-paper);
}

.theme-youyumao .form-control:focus {
    border-color: var(--yy-teal);
    background: var(--yy-white);
    box-shadow: 0 0 0 3px rgba(27, 143, 136, 0.12);
}

.theme-youyumao .form-control[readonly] {
    color: #4f554d;
    background: #e9ebe4;
}

.theme-youyumao .col-form-label {
    color: var(--yy-ink);
    font-size: 12px;
    font-weight: 800;
}

.yy-field-note {
    display: block;
    margin-top: 6px;
    color: var(--yy-teal);
    font-size: 11px;
    font-weight: 700;
}

.theme-youyumao .form-check-input:checked {
    border-color: var(--yy-teal);
    background-color: var(--yy-teal);
}

.theme-youyumao .nav-pills {
    gap: 7px;
}

.theme-youyumao .nav-pills .nav-link {
    border: 1px solid var(--yy-line);
    border-radius: 4px;
    color: var(--yy-muted);
    font-size: 13px;
    font-weight: 800;
}

.theme-youyumao .nav-pills .nav-link.active {
    border-color: var(--yy-ink);
    color: var(--yy-white);
    background: var(--yy-ink);
}

.theme-youyumao .badge {
    border-radius: 3px;
}

.theme-youyumao .modal-content {
    border: 1px solid var(--yy-ink);
    border-radius: 8px;
}

.theme-youyumao .modal-header,
.theme-youyumao .modal-footer {
    border-color: var(--yy-line);
}

.theme-youyumao textarea.form-control {
    resize: vertical;
}

.theme-youyumao .order-summary {
    max-width: 720px;
    margin: 0 auto;
}

.theme-youyumao .order-summary > div > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--yy-line);
}

.theme-youyumao .order-summary label {
    color: var(--yy-muted);
    font-size: 12px;
}

.theme-youyumao .pay-now .btn-dark {
    min-height: 46px;
    padding: 10px 22px;
    border-color: var(--yy-ink);
    border-radius: 4px;
    color: var(--yy-ink);
    background: var(--yy-lime);
    font-weight: 900;
}

@media (max-width: 991.98px) {
    .store-header .navbar-collapse {
        padding: 12px 0 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .yy-main-nav {
        padding: 8px 0;
    }

    .yy-main-nav .nav-link {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .yy-main-nav .nav-link::after {
        right: auto;
        left: 0;
        width: 34px;
    }

    .yy-account-nav {
        justify-content: flex-start;
        margin-left: 0;
    }

    .yy-intro-grid {
        grid-template-columns: 1fr;
    }

    .yy-intro-copy {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid var(--yy-line);
    }

    .yy-intro-facts {
        min-height: 110px;
    }

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

    .yy-auth-layout {
        grid-template-columns: 1fr;
    }

    .yy-auth-intro {
        padding: 40px;
    }

    .yy-auth-intro dl {
        margin-top: 30px;
    }

    .yy-order-row {
        grid-template-columns: minmax(240px, 1.6fr) 90px 100px 92px;
    }

    .yy-order-row .yy-order-meta:nth-of-type(2) {
        display: none;
    }

    .yy-buy-page .good-card > .row:first-child > div > .card > .row > .col-md-4 {
        min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .theme-youyumao .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .store-header .navbar {
        min-height: 68px;
    }

    .yy-brand {
        min-width: 0;
        margin-right: 0;
    }

    .yy-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .yy-brand-copy small {
        display: none;
    }

    .yy-intro-grid {
        min-height: 0;
    }

    .yy-intro-copy {
        padding: 36px 0 32px;
    }

    .yy-intro-copy h1 {
        font-size: 34px;
    }

    .yy-intro-lead {
        margin-top: 16px;
        font-size: 14px;
    }

    .yy-intro-note {
        font-size: 11px;
    }

    .yy-intro-facts strong {
        font-size: 23px;
    }

    .yy-intro-facts div {
        padding: 20px 8px;
    }

    .yy-trust-proof-grid {
        grid-template-columns: 1fr;
    }

    .yy-trust-proof-item {
        min-height: 82px;
        padding: 18px 0;
    }

    .yy-trust-proof-item + .yy-trust-proof-item {
        border-top: 1px solid var(--yy-line);
        border-left: 0;
    }

    .yy-catalog {
        padding: 36px 0 50px;
    }

    .yy-catalog-heading,
    .yy-section-heading,
    .yy-account-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .yy-catalog-heading h2,
    .yy-section-heading h2 {
        font-size: 24px;
    }

    .yy-search {
        width: 100%;
    }

    .yy-category-bar {
        margin-top: 22px;
    }

    .yy-product-grid {
        grid-template-columns: 1fr;
    }

    .yy-product-card {
        min-height: 390px;
        grid-template-rows: 210px minmax(0, 1fr);
    }

    .store-footer-inner {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 34px 0;
    }

    .yy-contact-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .yy-contact-art {
        background-position: 64% center;
        opacity: 0.34;
    }

    .yy-contact-copy h2 {
        font-size: 25px;
    }

    .yy-contact-details {
        display: grid;
        grid-template-columns: 1fr;
    }

    .yy-contact-item {
        min-width: 0;
    }

    .yy-contact-qr {
        width: min(190px, 100%);
    }

    .store-footer nav {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .yy-auth-shell,
    .yy-account-shell {
        padding: 30px 0 50px;
    }

    .yy-auth-layout {
        min-height: 0;
    }

    .yy-auth-intro,
    .yy-auth-form-wrap {
        padding: 32px 24px;
    }

    .yy-auth-intro h1 {
        font-size: 29px;
    }

    .yy-account-heading h1 {
        font-size: 29px;
    }

    .yy-account-heading .yy-primary-button {
        width: 100%;
    }

    .yy-account-stats div {
        min-height: 92px;
        padding: 16px 12px;
    }

    .yy-account-stats strong {
        font-size: 25px;
    }

    .yy-order-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 16px;
        padding: 20px 0;
    }

    .yy-order-primary {
        grid-column: 1 / -1;
    }

    .yy-order-meta {
        display: none;
    }

    .yy-order-actions {
        text-align: right;
    }

    .theme-youyumao .main-container {
        padding: 28px 0 46px;
    }

    .theme-youyumao .good-card .card,
    .theme-youyumao .order-card > .row > [class*="col-"] > .card {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .yy-buy-page .good-card > .row:first-child > div > .card > .row > .col-md-4 {
        min-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--yy-line);
    }

    .yy-buy-page .good-card > .row:first-child img.card-img-top {
        width: 150px;
        height: 150px;
    }

    .yy-buy-page .card-body {
        padding: 24px !important;
    }

    .theme-youyumao .order-summary > div > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yy-product-card {
        transition: none;
    }
}

/* YY2: verdant paper retail refinement */
:root {
    --yy-ink: #173d35;
    --yy-paper: #f5f4ed;
    --yy-white: #fffefa;
    --yy-line: #d9ddd3;
    --yy-muted: #66736b;
    --yy-lime: #e8b160;
    --yy-coral: #cf6847;
    --yy-teal: #2d7669;
    --yy-lilac: #e5ebe4;
    --yy-shadow: 0 18px 44px rgba(23, 61, 53, 0.11);
}

body.theme-youyumao {
    background: var(--yy-paper);
}

.store-header {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    background: var(--yy-ink);
}

.yy-brand-mark {
    border-color: var(--yy-coral);
    color: var(--yy-white);
    background: var(--yy-coral);
}

.yy-main-nav .nav-link.active::after {
    background: var(--yy-coral);
}

.yy-account-link.active,
.yy-account-link:hover,
.yy-login-link:hover {
    color: var(--yy-lime) !important;
}

.yy-register-button {
    border-color: var(--yy-coral);
    color: var(--yy-white) !important;
    background: var(--yy-coral);
}

.yy-register-button:hover {
    border-color: var(--yy-lime);
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
}

.yy-store-intro {
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    background: var(--yy-paper);
}

.yy-store-intro::before,
.yy-store-intro::after {
    position: absolute;
    z-index: 0;
    display: block;
    content: "";
    pointer-events: none;
}

.yy-store-intro::before {
    top: 0;
    right: 0;
    width: min(31vw, 460px);
    height: 100%;
    border-left: 1px solid rgba(23, 61, 53, 0.12);
    background: #dce8e1;
}

.yy-store-intro::after {
    right: min(15vw, 235px);
    bottom: -20px;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(23, 61, 53, 0.15);
    background: #e8b160;
    transform: rotate(10deg);
}

.yy-intro-grid {
    position: relative;
    z-index: 1;
    min-height: 332px;
    grid-template-columns: minmax(0, 1.72fr) minmax(350px, 0.8fr);
}

.yy-intro-copy {
    position: relative;
    z-index: 1;
    padding: 62px 64px 58px 0;
    border-right: 0;
}

.yy-intro-copy::after {
    position: absolute;
    right: 42px;
    bottom: 35px;
    width: 124px;
    height: 1px;
    content: "";
    background: var(--yy-coral);
}

.yy-kicker,
.yy-section-index {
    color: var(--yy-coral);
}

.yy-intro-copy h1 {
    max-width: 670px;
    font-size: 48px;
    line-height: 1.12;
}

.yy-intro-copy h1 span {
    padding: 0;
    color: var(--yy-teal);
    background: transparent;
}

.yy-intro-lead {
    max-width: 560px;
    color: #52645b;
}

.yy-intro-facts {
    position: relative;
    z-index: 1;
    margin: 28px 0;
    border: 1px solid rgba(23, 61, 53, 0.18);
    background: var(--yy-ink);
    box-shadow: 6px 6px 0 rgba(232, 177, 96, 0.85), 0 24px 44px rgba(23, 61, 53, 0.1);
}

.yy-intro-facts div {
    padding: 24px 14px;
}

.yy-intro-facts div + div {
    border-left-color: rgba(255, 255, 255, 0.18);
}

.yy-intro-facts strong {
    color: var(--yy-white);
    font-size: 29px;
}

.yy-intro-facts span {
    color: rgba(255, 255, 255, 0.68);
}

.yy-catalog {
    padding-top: 62px;
}

.yy-search {
    border-color: #b7c7bd;
    border-radius: 6px;
    box-shadow: 0 6px 0 rgba(23, 61, 53, 0.08);
}

.yy-search button {
    border-left-color: #b7c7bd;
    color: var(--yy-white);
    background: var(--yy-teal);
}

.yy-search button:hover {
    background: var(--yy-coral);
}

.yy-category {
    border-color: #c9d2c9;
    border-radius: 999px;
    background: #edf0e8;
}

.yy-category:hover,
.yy-category.active {
    border-color: var(--yy-teal);
    color: var(--yy-white);
    background: var(--yy-teal);
}

.yy-product-grid {
    gap: 22px;
}

.yy-product-card {
    min-height: 454px;
    grid-template-rows: 246px minmax(0, 1fr);
    border-color: #d1d9d0;
    border-radius: 6px;
    background: var(--yy-white);
    box-shadow: 0 6px 0 rgba(23, 61, 53, 0.06);
}

.yy-product-card:hover {
    border-color: var(--yy-teal);
    box-shadow: 0 18px 42px rgba(23, 61, 53, 0.16);
    transform: translateY(-5px);
}

.yy-product-media {
    border-bottom: 0;
    background: #dce8e1;
}

.yy-product-card:nth-child(3n + 2) .yy-product-media {
    background: #f7e9e2;
}

.yy-product-card:nth-child(3n + 3) .yy-product-media {
    background: #ecebdc;
}

.yy-product-media::before {
    top: auto;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 1px solid rgba(23, 61, 53, 0.14);
    background: transparent;
}

.yy-product-media::after {
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    width: 42px;
    height: 42px;
    background: var(--yy-coral);
}

.yy-product-card:nth-child(3n + 2) .yy-product-media::after {
    background: var(--yy-lime);
}

.yy-product-media img {
    width: 164px;
    height: 164px;
    padding: 18px;
    border: 1px solid rgba(23, 61, 53, 0.14);
    border-radius: 6px;
    background: rgba(255, 254, 250, 0.92);
    box-shadow: 5px 5px 0 rgba(23, 61, 53, 0.1), 0 14px 26px rgba(23, 61, 53, 0.1);
}

.yy-delivery-badge {
    top: 16px;
    left: 16px;
    border-color: var(--yy-teal);
    border-radius: 999px;
    background: var(--yy-teal);
}

.yy-delivery-badge.is-auto {
    border-color: var(--yy-lime);
    background: var(--yy-lime);
}

.yy-delivery-badge.is-sold-out {
    border-color: #8b1e3f;
    color: var(--yy-white);
    background: #8b1e3f;
}

.yy-product-body {
    padding: 22px;
}

.yy-product-copy h2 {
    min-height: 50px;
    font-size: 17px;
    line-height: 1.42;
}

.yy-product-copy h2 a:hover {
    color: var(--yy-coral);
}

.yy-product-copy p {
    color: #718076;
}

.yy-product-footer {
    border-top-color: #e1e4dd;
}

.yy-price {
    color: var(--yy-teal);
}

.yy-price strong {
    font-size: 29px;
}

.yy-product-action {
    border-color: var(--yy-coral);
    border-radius: 50%;
    color: var(--yy-white) !important;
    background: var(--yy-coral);
}

.yy-product-action:hover {
    border-color: var(--yy-lime);
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
}

.yy-product-action[aria-disabled="true"] {
    border-color: #c6cdc4;
    color: #829084 !important;
    background: #eef1ec;
    cursor: not-allowed;
}

.store-footer {
    border-top: 0;
    background: var(--yy-ink);
}

.yy-primary-button,
.theme-youyumao .pay-now .btn-dark {
    border-color: var(--yy-coral);
    border-radius: 5px;
    color: var(--yy-white) !important;
    background: var(--yy-coral);
    box-shadow: 5px 5px 0 rgba(23, 61, 53, 0.17);
}

.yy-primary-button:hover,
.yy-primary-button:focus,
.theme-youyumao .pay-now .btn-dark:hover {
    border-color: var(--yy-lime);
    color: var(--yy-ink) !important;
    background: var(--yy-lime);
}

.theme-youyumao .main-container {
    background: var(--yy-paper);
}

.yy-buy-page .good-card > .row:first-child > div > .card {
    border-color: #b8c9be !important;
    box-shadow: var(--yy-shadow);
}

.yy-buy-page .good-card > .row:first-child > div > .card > .row > .col-md-4 {
    border-right-color: rgba(255, 255, 255, 0.16);
    background: var(--yy-ink);
}

.yy-buy-page .good-card > .row:first-child img.card-img-top {
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--yy-white);
    box-shadow: 6px 6px 0 var(--yy-coral), 0 18px 34px rgba(23, 61, 53, 0.18);
}

.yy-buy-page .card-body {
    background: var(--yy-white);
}

.yy-buy-page .lunar-buy-kicker,
.theme-youyumao .lunar-form-section,
.yy-field-note {
    color: var(--yy-coral);
}

.theme-youyumao .form-control {
    border-color: #c8d3c9;
    border-radius: 5px;
    background: #f7f8f3;
}

.theme-youyumao .form-control:focus {
    border-color: var(--yy-teal);
    box-shadow: 0 0 0 3px rgba(45, 118, 105, 0.14);
}

.theme-youyumao .nav-pills .nav-link.active {
    border-color: var(--yy-teal);
    background: var(--yy-teal);
}

@media (max-width: 991.98px) {
    .yy-intro-copy {
        padding-right: 0;
    }

    .yy-intro-facts {
        margin: 22px 0 32px;
        box-shadow: 7px 7px 0 #e8b160;
    }
}

@media (max-width: 767.98px) {
    .yy-store-intro::before {
        width: 42vw;
    }

    .yy-store-intro::after {
        right: 20px;
        width: 68px;
        height: 68px;
    }

    .yy-intro-copy {
        padding-top: 44px;
        padding-bottom: 42px;
    }

    .yy-intro-copy::after {
        right: 0;
        bottom: 25px;
        width: 78px;
    }

    .yy-intro-copy h1 {
        max-width: 340px;
        font-size: 35px;
    }

    .yy-intro-facts {
        margin-top: 0;
        margin-bottom: 26px;
    }

    .yy-intro-facts div {
        padding: 19px 8px;
    }

    .yy-product-grid {
        gap: 16px;
    }

    .yy-product-card {
        min-height: 398px;
        grid-template-rows: 202px minmax(0, 1fr);
    }

    .yy-product-media img {
        width: 142px;
        height: 142px;
    }

    .yy-buy-page .good-card > .row:first-child > div > .card > .row > .col-md-4 {
        background: var(--yy-ink);
    }
}

/* Keep the mobile hero in document flow; the desktop fact panel must not cover its copy. */
@media (max-width: 767.98px) {
    .yy-store-intro::before,
    .yy-store-intro::after {
        display: none;
    }

    .yy-intro-grid {
        display: block;
        min-height: 0;
    }

    .yy-intro-copy {
        min-height: 224px;
        padding: 42px 0 34px;
        background: var(--yy-paper);
    }

    .yy-intro-copy h1 {
        max-width: 100%;
        color: var(--yy-ink);
    }

    .yy-intro-copy::after {
        right: 0;
        bottom: 22px;
    }

    .yy-intro-facts {
        min-height: 112px;
        margin: 0 0 28px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        box-shadow: 6px 6px 0 #e8b160;
    }
}

/* YY3: cross-page consistency refinement */

.theme-youyumao a:focus-visible,
.theme-youyumao button:focus-visible,
.theme-youyumao .btn:focus-visible,
.theme-youyumao input:focus-visible,
.theme-youyumao textarea:focus-visible,
.theme-youyumao select:focus-visible {
    outline: 2px solid var(--yy-teal);
    outline-offset: 2px;
}

.yy-notice .fa {
    color: var(--yy-coral);
}

/* Badges: map Bootstrap contextual colors onto the YOUYUMAO palette */
.theme-youyumao .badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    white-space: normal;
    text-align: left;
}

.theme-youyumao .badge.bg-success { border-color: #9cc3b4; color: #176d68; background: #e2f5f3; }
.theme-youyumao .badge.bg-warning { border-color: #e0c48f; color: #7a5a14; background: #faf0dc; }
.theme-youyumao .badge.bg-danger { border-color: #dfa49b; color: #8a2720; background: #fbe9e5; }
.theme-youyumao .badge.bg-info { border-color: #9cc3b4; color: #176d68; background: #e2f5f3; }
.theme-youyumao .badge.bg-primary { border-color: #b7c7bd; color: #173d35; background: #e5ebe4; }
.theme-youyumao .badge.bg-secondary { border-color: #c9cfc6; color: #5d615b; background: #eceeea; }
.theme-youyumao .badge.bg-dark { border-color: #173d35; color: #fffefa; background: #173d35; }

/* Buttons: unify Bootstrap variants with the store's button language */
.theme-youyumao .btn {
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.theme-youyumao .btn-primary {
    min-height: 44px;
    padding: 9px 20px;
    border: 1px solid var(--yy-coral);
    color: #fffefa;
    background: var(--yy-coral);
}

.theme-youyumao .btn-primary:hover,
.theme-youyumao .btn-primary:focus,
.theme-youyumao .btn-primary:not(:disabled):not(.disabled):active {
    border-color: var(--yy-lime);
    color: var(--yy-ink);
    background: var(--yy-lime);
    box-shadow: none;
}

.theme-youyumao .btn-dark {
    min-height: 44px;
    padding: 9px 20px;
    border: 1px solid var(--yy-ink);
    color: #fffefa;
    background: var(--yy-ink);
}

.theme-youyumao .btn-dark:hover,
.theme-youyumao .btn-dark:focus {
    border-color: var(--yy-lime);
    color: var(--yy-ink);
    background: var(--yy-lime);
}

.theme-youyumao .btn-outline-primary {
    min-height: 44px;
    padding: 9px 20px;
    border: 1px solid var(--yy-teal);
    color: var(--yy-teal);
    background: transparent;
}

.theme-youyumao .btn-outline-primary:hover,
.theme-youyumao .btn-outline-primary:focus {
    border-color: var(--yy-teal);
    color: #fffefa;
    background: var(--yy-teal);
}

.theme-youyumao .btn-outline-dark {
    min-height: 44px;
    padding: 9px 20px;
    border: 1px solid var(--yy-ink);
    color: var(--yy-ink);
    background: transparent;
}

.theme-youyumao .btn-outline-dark:hover,
.theme-youyumao .btn-outline-dark:focus {
    border-color: var(--yy-ink);
    color: #fffefa;
    background: var(--yy-ink);
}

.theme-youyumao .btn-secondary {
    min-height: 40px;
    padding: 7px 16px;
    border: 1px solid var(--yy-line);
    color: var(--yy-ink);
    background: var(--yy-paper);
}

.theme-youyumao .btn-secondary:hover,
.theme-youyumao .btn-secondary:focus {
    border-color: var(--yy-ink);
    color: var(--yy-ink);
    background: var(--yy-white);
}

/* Text helpers that otherwise leak stock Bootstrap colors */
.theme-youyumao .text-primary { color: var(--yy-teal) !important; }
.theme-youyumao .text-warning { color: #8a6420 !important; }

/* Shared card and form polish on stock pages (buy, bill, search, qrpay, error) */
.theme-youyumao .main-container .card-title {
    font-weight: 900;
}

.theme-youyumao .card-header {
    border-bottom: 1px solid var(--yy-line);
    background: transparent;
}

.theme-youyumao .card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.theme-youyumao .form-control-sm {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
}

.yy-buy-page .buy-form .form-group.row > [class*="col-"],
.theme-youyumao .buy-form .form-group.row > [class*="col-"] {
    margin-bottom: 14px;
}

.yy-buy-page .buy-form .form-group.row:last-child > [class*="col-"] {
    margin-bottom: 0;
}

.yy-buy-page .card-body h6 {
    margin: 10px 0 0;
}

.yy-buy-page .lunar-buy-note {
    margin: 6px 0 0;
    color: var(--yy-muted);
    font-size: 13px;
}

.yy-buy-page .badge.position-absolute {
    margin: 14px;
}

.yy-buy-page .sale .badge {
    margin: 3px 6px 3px 0;
}

#imageCode {
    height: 44px;
    width: auto;
    border: 1px solid var(--yy-line);
    border-radius: 5px;
    background: var(--yy-white);
    cursor: pointer;
}

/* Payment method radios as selectable pills */
.theme-youyumao .buy-form fieldset .form-check-inline {
    margin-right: 10px;
    margin-bottom: 8px;
    padding-left: 0;
}

.theme-youyumao .buy-form fieldset .form-check-label {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #c8d3c9;
    border-radius: 999px;
    color: var(--yy-muted);
    background: #f7f8f3;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.theme-youyumao .buy-form fieldset .form-check-label:hover {
    border-color: var(--yy-teal);
    color: var(--yy-ink);
}

.theme-youyumao .buy-form fieldset .form-check-label:has(.form-check-input:checked) {
    border-color: var(--yy-teal);
    color: var(--yy-ink);
    background: #e2f5f3;
    box-shadow: 0 0 0 3px rgba(45, 118, 105, 0.12);
}

.theme-youyumao .buy-form fieldset .form-check-input {
    margin: 0;
}

/* Order number readability on bill and order detail */
.theme-youyumao .order-summary h5 small,
.theme-youyumao .order-card h5 small {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Delivery content reads like an artifact, not a form input */
.theme-youyumao .card-info textarea.form-control {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    background: #f7f8f3;
}

/* Error and QR pay callouts */
.theme-youyumao .err-message {
    margin: 18px 0;
    border: 1px solid #dfa49b;
    border-radius: 6px;
    color: #6b1d17;
    background: #fbe9e5;
}

.theme-youyumao .err-message h5 {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.theme-youyumao .main-container img[src^="data:image"] {
    padding: 14px;
    border: 1px solid var(--yy-line);
    border-radius: 8px;
    background: var(--yy-white);
}

/* Pagination on member order list */
.theme-youyumao .pagination {
    gap: 6px;
}

.theme-youyumao .page-link {
    border: 1px solid var(--yy-line);
    border-radius: 5px;
    color: var(--yy-ink);
    background: var(--yy-white);
    font-weight: 700;
}

.theme-youyumao .page-link:hover {
    border-color: var(--yy-teal);
    color: var(--yy-teal);
    background: #e2f5f3;
}

.theme-youyumao .page-item.active .page-link {
    border-color: var(--yy-teal);
    color: #fffefa;
    background: var(--yy-teal);
}

.theme-youyumao .page-item.disabled .page-link {
    color: #a8aea4;
    background: #eceeea;
}

@media (prefers-reduced-motion: reduce) {
    .theme-youyumao .btn,
    .theme-youyumao .buy-form fieldset .form-check-label {
        transition: none;
    }
}

/* ==================== YY4: Morandi gallery refinement (2026-07-25) ==================== */
:root {
    --yy-ink: #25281f;
    --yy-paper: #efe9da;
    --yy-white: #fbf8f0;
    --yy-line: #d5cdb8;
    --yy-muted: #716f60;
    --yy-lime: #c2a367;
    --yy-coral: #b96e52;
    --yy-teal: #5f8577;
    --yy-lilac: #e3dcc9;
    --yy-gold: #a98a56;
    --yy-shadow: 0 2px 5px rgba(37, 40, 31, 0.08), 0 20px 44px rgba(37, 40, 31, 0.10);
}

html.theme-youyumao-html::after {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    content: "";
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 260px 260px;
}

.yy-intro-copy h1,
.yy-catalog-heading h2,
.yy-section-heading h2,
.yy-contact-copy h2 {
    font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.yy-kicker,
.yy-section-index,
.yy-contact-kicker {
    color: var(--yy-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.yy-intro-copy::after {
    width: 164px;
    background: var(--yy-gold);
}

.yy-catalog-heading h2::after,
.yy-section-heading h2::after {
    display: block;
    width: 56px;
    height: 1px;
    margin-top: 12px;
    content: "";
    background: var(--yy-gold);
}

.yy-store-intro::before {
    border-left-color: rgba(37, 40, 31, 0.10);
    background: #e2ddc9;
}

.yy-store-intro::after {
    width: 96px;
    height: 96px;
    border: 1px solid rgba(169, 138, 86, 0.55);
    background: #d8c49a;
}

.yy-intro-facts {
    border: 1px solid rgba(169, 138, 86, 0.5);
    box-shadow: 0 0 0 1px rgba(169, 138, 86, 0.28), 0 22px 42px rgba(37, 40, 31, 0.16);
}

.yy-catalog {
    padding: 72px 0 88px;
}

.yy-product-grid {
    gap: 26px;
}

.yy-product-card {
    grid-template-rows: auto minmax(0, 1fr);
    border-color: #cfc6ae;
    background: var(--yy-white);
    box-shadow: 0 1px 2px rgba(37, 40, 31, 0.06), 0 12px 28px rgba(37, 40, 31, 0.07);
}

.yy-product-card:hover {
    border-color: rgba(169, 138, 86, 0.75);
    box-shadow: 0 3px 8px rgba(37, 40, 31, 0.10), 0 28px 54px rgba(37, 40, 31, 0.16);
    transform: translateY(-4px);
}

.yy-product-media {
    aspect-ratio: 3 / 2;
    background: #dcddcd;
}

.yy-product-card:nth-child(3n + 2) .yy-product-media {
    background: #e6d6ca;
}

.yy-product-card:nth-child(3n + 3) .yy-product-media {
    background: #d9d4c0;
}

.yy-product-media::before {
    z-index: 2;
    border-color: rgba(37, 40, 31, 0.12);
}

.yy-product-media::after {
    z-index: 2;
    background: var(--yy-coral);
}

.yy-product-card:nth-child(3n + 2) .yy-product-media::after {
    background: var(--yy-lime);
}

.yy-product-card:nth-child(3n + 3) .yy-product-media::after {
    background: var(--yy-teal);
}

.yy-product-media img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.yy-search {
    border-color: #b3a98f;
    background: var(--yy-white);
    box-shadow: 0 2px 0 rgba(37, 40, 31, 0.05);
}

.yy-search button {
    border-left-color: #b3a98f;
}

.yy-category {
    border-color: #cdc4ab;
    color: #716f60;
    background: #e7e0cd;
}

.yy-category:hover,
.yy-category.active {
    border-color: var(--yy-ink);
    color: #f2ecdc;
    background: var(--yy-ink);
}

.yy-brand-mark {
    font-family: "Songti SC", "STSong", serif;
}

.yy-primary-button,
.theme-youyumao .pay-now .btn-dark {
    box-shadow: 0 2px 5px rgba(37, 40, 31, 0.14), 0 12px 26px rgba(185, 110, 82, 0.28);
}

/* Unified redemption workspace */
.yy-redeem-main {
    min-height: calc(100vh - 76px);
}

.yy-redeem-head {
    padding: 54px 0 36px;
    border-bottom: 1px solid var(--yy-line);
    background: var(--yy-ink);
    color: var(--yy-white);
}

.yy-redeem-kicker {
    color: var(--yy-lime);
    font-size: 11px;
    font-weight: 800;
}

.yy-redeem-head h1 {
    margin: 8px 0 6px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 38px;
    font-weight: 700;
}

.yy-redeem-head p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
}

.yy-redeem-workspace {
    padding: 40px 0 80px;
}

.yy-redeem-workspace .container {
    max-width: 860px;
}

.yy-redeem-panel {
    padding: 28px;
    border: 1px solid var(--yy-line);
    border-radius: 6px;
    background: var(--yy-white);
    box-shadow: var(--yy-shadow);
}

.yy-redeem-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.yy-redeem-panel-head > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid var(--yy-ink);
    color: var(--yy-ink);
    font-weight: 900;
}

.yy-redeem-panel-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.yy-redeem-panel-head p {
    margin: 0;
    color: var(--yy-muted);
}

.yy-redeem-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.yy-redeem-panel label > span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.yy-redeem-field-wide {
    display: block;
    margin-bottom: 18px;
}

.yy-redeem-field-wide small {
    display: block;
    margin-top: 7px;
    color: var(--yy-muted);
}

.yy-redeem-session-box .form-control {
    min-height: 150px;
    resize: vertical;
}

/* 两个大按钮：排在粘贴框上方，先点按钮再粘贴，步骤清晰不遮挡 */
.yy-redeem-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.yy-redeem-links a {
    flex: 1 1 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #28a99f, var(--yy-teal));
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(27, 143, 136, .35);
    white-space: nowrap;
    cursor: pointer;
}

.yy-redeem-links a:hover {
    background: linear-gradient(135deg, var(--yy-teal), #146a66);
    transform: translateY(-1px);
}

.yy-redeem-links a:last-child {
    background: linear-gradient(135deg, #4a5060, #2b2f3a);
    box-shadow: 0 4px 14px rgba(43, 47, 58, .35);
}

.yy-redeem-links a:last-child:hover {
    background: linear-gradient(135deg, #2b2f3a, #171a22);
}


.yy-redeem-panel .form-control {
    min-height: 46px;
    border: 1px solid #b9b29e;
    border-radius: 4px;
    color: var(--yy-ink);
    background: #fffefa;
}

.yy-redeem-panel textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.yy-redeem-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.yy-redeem-primary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid var(--yy-ink);
    border-radius: 4px;
    color: var(--yy-white);
    background: var(--yy-ink);
    font-weight: 800;
}

.yy-redeem-primary:hover {
    border-color: var(--yy-teal);
    color: var(--yy-white);
    background: var(--yy-teal);
}

.yy-redeem-alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 4px;
}

.yy-redeem-alert.is-error {
    border-color: #dfa49b;
    color: #6b1d17;
    background: #fbe9e5;
}

.yy-redeem-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--yy-line);
    background: #e5dfcd;
}

.yy-redeem-session span {
    display: block;
    color: var(--yy-muted);
    font-size: 11px;
    font-weight: 800;
}

.yy-redeem-session strong {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.yy-redeem-reset {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--yy-ink);
    border-radius: 4px;
    color: var(--yy-ink);
    background: transparent;
}

.yy-redeem-verified {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 14px;
    color: #245e52;
    background: #dcece6;
    font-weight: 700;
}

.yy-redeem-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.yy-redeem-consent input {
    margin-top: 5px;
}

.yy-redeem-consent span {
    margin: 0 !important;
    font-weight: 600 !important;
}

.yy-redeem-result dl {
    margin: 0;
}

.yy-redeem-result dl > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    padding: 12px 0;
    border-top: 1px solid var(--yy-line);
}

.yy-redeem-result dt {
    color: var(--yy-muted);
}

.yy-redeem-result dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.yy-redeem-progress {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #d6c57e;
    background: #fff9dc;
}

.yy-redeem-progress-track {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8dfb4;
}

.yy-redeem-progress-track span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 35%;
    border-radius: inherit;
    background: var(--yy-teal);
    animation: yy-redeem-progress 1.6s ease-in-out infinite;
}

.yy-redeem-progress p {
    margin: 10px 0 0;
    color: var(--yy-muted);
    font-size: 12px;
}

@keyframes yy-redeem-progress {
    0% { transform: translateX(0); }
    100% { transform: translateX(385%); }
}

.yy-redeem-result pre {
    margin-top: 18px;
    padding: 16px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid var(--yy-line);
    background: #f4f0e5;
}

.yy-redeem-auto-status {
    margin: 8px 0 0;
    color: var(--yy-muted);
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .yy-redeem-head {
        padding: 36px 0 28px;
    }

    .yy-redeem-head h1 {
        font-size: 30px;
    }

    .yy-redeem-workspace {
        padding: 24px 0 56px;
    }

    .yy-redeem-panel {
        padding: 20px;
    }

    .yy-redeem-fields {
        grid-template-columns: 1fr;
    }
}

/* ==================== YY5: Figma design-system refinement (2026-08-12) ==================== */
/* 设计源: Figma 97yun-storefront-v5b (Asher's team, 教育档)。
   令牌与设计评审一致: 调色板升级为深松绿 ink + 暖金 lime + 珊瑚 coral,
   新增 CTA 渐变珊瑚与提示块三色; 尺寸体系 4/8/12/16/20/24/26/32/48,
   圆角 卡片6/按钮5/表单4/胶囊999。 */

:root {
    --yy-ink: #173d35;
    --yy-paper: #f5f4ed;
    --yy-white: #fffefa;
    --yy-line: #d9ddd3;
    --yy-muted: #66736b;
    --yy-lime: #e8b160;
    --yy-coral: #cf6847;
    --yy-coral-cta: #ff6b4a;
    --yy-coral-cta-deep: #e8482f;
    --yy-teal: #2d7669;
    --yy-lilac: #e5ebe4;
    --yy-gold: #e8b160;
    --yy-danger: #c83d34;
    --yy-notice-bg: #fffbe6;
    --yy-notice-line: #ffe58f;
    --yy-notice-border: #faad14;
    --yy-shadow: 0 16px 40px rgba(23, 25, 22, 0.08);
}

/* 商品网格: 间距 18 -> 26px */
.yy-product-grid {
    gap: 26px;
}

/* 商品卡: 圆角 8 -> 6px, 无边框 + 柔和投影 */
.yy-product-card {
    border-color: transparent;
    border-radius: 6px;
    box-shadow: var(--yy-shadow);
}

.yy-product-card:hover {
    transform: translateY(-4px);
}

/* 商品价格: 墨色 -> 珊瑚 */
.yy-price {
    color: var(--yy-coral);
}

/* 分类胶囊: 圆角 4 -> 999px */
.yy-category {
    border-radius: 999px;
}

/* 主按钮: 墨底 -> 珊瑚渐变 CTA */
.yy-primary-button {
    border-color: transparent;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--yy-coral-cta), var(--yy-coral-cta-deep));
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.28);
}

.yy-primary-button:hover,
.yy-primary-button:focus {
    background: linear-gradient(135deg, var(--yy-coral-cta-deep), var(--yy-coral-cta-deep));
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.32);
}

/* 购买页: 商品标题宋体 */
.yy-buy-page .card-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-weight: 700;
    letter-spacing: 0.015em;
}

/* 购买页卡片: 圆角 6px + 柔和投影 */
.yy-buy-page .card {
    border-radius: 6px;
    box-shadow: var(--yy-shadow);
}

/* 表单控件: 聚焦环对齐新 teal */
.theme-youyumao .form-control:focus {
    border-color: var(--yy-teal);
    box-shadow: 0 0 0 3px rgba(45, 118, 105, 0.14);
}

/* 兑换页: 刷新状态按钮 墨底 -> 珊瑚渐变(与设计系统一致) */
.yy-redeem-primary {
    border-color: transparent;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--yy-coral-cta), var(--yy-coral-cta-deep));
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.28);
}

.yy-redeem-primary:hover,
.yy-redeem-primary:focus {
    background: linear-gradient(135deg, var(--yy-coral-cta-deep), var(--yy-coral-cta-deep));
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.32);
}

/* 兑换状态详情: 标签灰、值墨色, 等宽数字更易读 */
.yy-redeem-result dl {
    margin: 14px 0 4px;
}

.yy-redeem-result dl > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--yy-line);
}

.yy-redeem-result dl > div:last-child {
    border-bottom: none;
}

.yy-redeem-result dl dt {
    color: var(--yy-muted);
    font-size: 13px;
    font-weight: 600;
}

.yy-redeem-result dl dd {
    margin: 0;
    color: var(--yy-ink);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.yy-redeem-result dl dd code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==================== YY6: 兑换页视觉打磨 (2026-08-13) ==================== */
/* 目标：让客户一眼看懂三步流程。圆角与投影统一、步骤序号可视化、
   状态与提示做成区块、手机端按钮整行铺满。仅视觉层，不涉及业务逻辑。 */

/* 卡片：更大圆角 + 双层柔和投影 */
.yy-redeem-panel {
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(23, 25, 22, .04), 0 14px 36px rgba(23, 25, 22, .07);
}

/* 顶部流程条与卡片圆角呼应 */
.yy-redeem-session {
    border-radius: 12px;
}

.yy-redeem-reset {
    border-radius: 9px;
    transition: background .18s ease, color .18s ease;
}

.yy-redeem-reset:hover {
    color: var(--yy-white);
    background: var(--yy-ink);
}

/* 大号步骤序号 01 / 02 / 03 */
.yy-redeem-panel-head > span {
    border-radius: 12px;
    background: var(--yy-paper);
    font-size: 15px;
}

/* 状态条：圆角 + 左侧强调边 */
.yy-redeem-verified {
    padding: 13px 16px;
    border-radius: 12px;
    border-left: 4px solid #2f8d78;
    font-size: 15px;
}

.yy-redeem-verified i {
    font-size: 17px;
}

/* 三步流程的圆形序号徽章 */
.yy-step-num {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .24);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

/* 第 3 步：粘贴说明行 */
.yy-redeem-step3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
    color: var(--yy-ink);
    font-size: 14px;
    font-weight: 700;
}

.yy-redeem-step3 .yy-step-num {
    color: var(--yy-white);
    background: var(--yy-ink);
}

/* 步骤按钮：圆角与卡片呼应 + 按压反馈 */
.yy-redeem-links a {
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.yy-redeem-links a:active {
    transform: translateY(1px);
}

/* 输入框：圆角统一 + 聚焦高亮 */
.yy-redeem-panel .form-control {
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.yy-redeem-panel textarea.form-control {
    padding: 13px 15px;
    font-size: 13px;
    line-height: 1.75;
}

.yy-redeem-panel .form-control:focus {
    border-color: var(--yy-teal);
    box-shadow: 0 0 0 3px rgba(27, 143, 136, .15);
}

/* 提示条：虚线暖色块，补齐页面留白 */
.yy-redeem-tip {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 22px 0 0;
    padding: 14px 16px;
    border: 1px dashed #cfc9b0;
    border-radius: 12px;
    background: #faf8ef;
    color: var(--yy-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.yy-redeem-tip i {
    margin-top: 3px;
    color: var(--yy-coral);
    font-size: 16px;
}

.yy-redeem-tip strong {
    color: var(--yy-ink);
}

/* 确认勾选：独立区块，避免与提交按钮糊在一起 */
.yy-redeem-consent {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--yy-paper);
}

/* 主按钮：悬停微抬 */
.yy-redeem-primary {
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.yy-redeem-primary:hover {
    transform: translateY(-1px);
}

/* 手机端：按钮整行铺满，减少误触 */
@media (max-width: 575.98px) {
    .yy-redeem-links {
        gap: 9px;
    }

    .yy-redeem-links a {
        flex: 1 1 100%;
        padding: 13px 16px;
        font-size: 15px;
    }

    .yy-redeem-primary {
        width: 100%;
        justify-content: center;
    }

    .yy-redeem-step3 {
        align-items: flex-start;
        line-height: 1.6;
    }

    .yy-redeem-tip {
        font-size: 13px;
    }
}

/* ==================== YY7: 首页与商品页美化 (2026-08-13) ==================== */
/* 目标：商品卡片高度统一、缺货不抢眼、商品说明有层次不再是一堵字墙。
   与 YY6 兑换页同一套语言（圆角、层次投影、teal 聚焦）。纯视觉层。 */

/* ---------- 首页：商品卡片 ---------- */

/* 标题统一两行，超出省略 —— 卡片高度一致，网格才齐整 */
.yy-product-copy h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    min-height: 0;
}

/* 卡片圆角与投影向兑换页看齐 */
.yy-product-card {
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(23, 61, 53, .05), 0 10px 26px rgba(23, 61, 53, .07);
}

.yy-product-card:hover {
    box-shadow: 0 18px 42px rgba(23, 61, 53, .16);
}

.yy-product-media {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

/* 缺货商品弱化：图片去色、整卡降透明，让在售商品先被看到 */
.yy-product-card:has(.yy-delivery-badge.is-sold-out) {
    opacity: .78;
}

.yy-product-card:has(.yy-delivery-badge.is-sold-out) .yy-product-media img {
    filter: grayscale(.6);
}

.yy-product-card:has(.yy-delivery-badge.is-sold-out):hover {
    opacity: 1;
    transform: none;
}

/* ---------- 商品页：主卡片 ---------- */

.yy-buy-page .good-card > .row:first-child > div > .card,
.yy-buy-page .card.mt-3.mb-3 {
    border-radius: 12px;
    overflow: hidden;
}

/* 封面图放大：原 p-5(3rem) 留白过多，图片显得小 */
.yy-buy-page .good-card > .row:first-child img.card-img-top.p-5 {
    padding: 1.6rem !important;
}

/* 表单输入框：圆角与聚焦态与兑换页统一 */
.yy-buy-page .buy-form .form-control {
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.yy-buy-page .buy-form .form-control:focus {
    border-color: var(--yy-teal);
    box-shadow: 0 0 0 3px rgba(27, 143, 136, .15);
}

/* ---------- 商品页：商品说明排版 ---------- */
/* 只命中说明卡（.card.mt-3.mb-3），不影响左侧购买表单卡 */

.yy-buy-page .card.mt-3.mb-3 > .card-body {
    padding: 26px 30px 30px;
    color: #3d4239;
    font-size: 14.5px;
    line-height: 1.85;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body h1 {
    margin: 30px 0 14px;
    padding-left: 13px;
    border-left: 4px solid var(--yy-coral);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body h2 {
    margin: 26px 0 12px;
    padding-left: 13px;
    border-left: 4px solid var(--yy-teal);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body h3 {
    margin: 22px 0 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body h4,
.yy-buy-page .card.mt-3.mb-3 > .card-body h5 {
    margin: 18px 0 8px;
    font-size: 15.5px;
    font-weight: 800;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body > *:first-child {
    margin-top: 0;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body p {
    margin: 0 0 11px;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body ul,
.yy-buy-page .card.mt-3.mb-3 > .card-body ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.yy-buy-page .card.mt-3.mb-3 > .card-body li {
    margin-bottom: 5px;
}

/* 说明里的分隔线更轻 */
.yy-buy-page .card.mt-3.mb-3 > .card-body hr {
    margin: 24px 0;
    border-top: 1px dashed var(--yy-line);
    opacity: 1;
}

/* 说明里的自助提交大按钮：与站内 CTA 一致 */
.yy-buy-page .card.mt-3.mb-3 > .card-body a[style*="background"] {
    border-radius: 10px !important;
}

/* ---------- 手机端 ---------- */
@media (max-width: 767.98px) {
    .yy-buy-page .card.mt-3.mb-3 > .card-body {
        padding: 20px 18px 24px;
        font-size: 14px;
    }

    .yy-buy-page .card.mt-3.mb-3 > .card-body h1 {
        font-size: 21px;
    }

    .yy-buy-page .card.mt-3.mb-3 > .card-body h2 {
        font-size: 18px;
    }

    .yy-buy-page .card.mt-3.mb-3 > .card-body h3 {
        font-size: 16px;
    }
}

/* ==================== YY8: 订单查询页与订单详情页 (2026-08-14) ==================== */
/* 与兑换页同一套语言：深绿页头、珊瑚 CTA、圆角卡片。失败订单给客户友好提示。 */

/* ---------- 通用页头（订单查询 / 订单详情共用） ---------- */
.yy-page-head {
    padding: 52px 0 34px;
    border-bottom: 1px solid var(--yy-line);
    background: var(--yy-ink);
    color: var(--yy-white);
}

.yy-page-head .container {
    max-width: 860px;
}

.yy-page-kicker {
    color: var(--yy-lime);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.yy-page-head h1 {
    margin: 8px 0 6px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 34px;
    font-weight: 700;
}

.yy-page-head p {
    margin: 0;
    color: rgba(255, 255, 255, .66);
}

/* ---------- 卡片统一 ---------- */
.yy-order-card {
    border-radius: 12px;
    border-color: #d1d9d0;
    box-shadow: 0 1px 2px rgba(23, 61, 53, .05), 0 10px 26px rgba(23, 61, 53, .07);
}

/* ---------- 查询页：tab 胶囊化 ---------- */
.yy-order-page .nav-pills .nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--yy-ink);
    font-weight: 700;
}

.yy-order-page .nav-pills .nav-link.active {
    background: var(--yy-teal);
    color: var(--yy-white);
}

.yy-order-page .buy-form .form-control {
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.yy-order-page .buy-form .form-control:focus {
    border-color: var(--yy-teal);
    box-shadow: 0 0 0 3px rgba(27, 143, 136, .15);
}

/* ---------- CTA 按钮（复用兑换页珊瑚渐变，调整间距） ---------- */
.yy-order-page .yy-redeem-primary,
.yy-orderinfo-page .yy-redeem-primary {
    margin-top: 14px;
}

.yy-order-page .yy-order-submit,
.yy-orderinfo-page .yy-order-submit {
    min-height: 44px;
    padding: 9px 22px;
}

.yy-orderinfo-page .yy-order-redeem {
    margin-left: 8px;
}

/* ---------- 详情页：失败订单友好提示 ---------- */
.yy-order-failed {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e9c3b8;
    border-radius: 12px;
    background: #fdf3ef;
    color: var(--yy-ink);
}

.yy-order-failed i {
    margin-top: 2px;
    color: var(--yy-coral);
    font-size: 20px;
}

.yy-order-failed strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.yy-order-failed span {
    display: block;
    color: #7a6a5f;
    font-size: 13.5px;
    line-height: 1.7;
}

/* 技术原因折叠区：默认收起，需要时才展开 */
.yy-order-details {
    margin: 14px 0;
}

.yy-order-details summary {
    cursor: pointer;
    color: var(--yy-muted);
    font-size: 12.5px;
    user-select: none;
}

.yy-order-details summary:hover {
    color: var(--yy-teal);
}

.yy-order-details pre {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px dashed var(--yy-line);
    border-radius: 10px;
    background: var(--yy-paper);
    color: var(--yy-muted);
    font-size: 12.5px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 联系客服条 */
.yy-order-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #cfc9b0;
    border-radius: 12px;
    background: #faf8ef;
}

.yy-order-contact > span {
    color: var(--yy-muted);
    font-size: 13px;
    font-weight: 700;
}

.yy-order-contact .yy-contact-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--yy-teal);
    border-radius: 999px;
    color: var(--yy-white);
    background: var(--yy-teal);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.yy-order-contact .yy-contact-copy-button:hover {
    background: #15716c;
    transform: translateY(-1px);
}

/* ---------- 手机端 ---------- */
@media (max-width: 575.98px) {
    .yy-page-head {
        padding: 36px 0 26px;
    }

    .yy-page-head h1 {
        font-size: 28px;
    }

    .yy-orderinfo-page .yy-order-redeem {
        margin-left: 0;
        margin-top: 10px;
    }
}
