/* HaoYong storefront theme
 * A compact, editorial shelf for fast-scanning digital goods.
 */
:root {
    --hy-ink: #15181d;
    --hy-ink-soft: #2b3139;
    --hy-muted: #6b737d;
    --hy-subtle: #9299a1;
    --hy-canvas: #f4f2ed;
    --hy-surface: #fffefa;
    --hy-surface-2: #eeece6;
    --hy-line: #dedbd2;
    --hy-accent: #ff684d;
    --hy-accent-dark: #db4e39;
    --hy-blue: #2667dc;
    --hy-mint: #bde9d9;
    --hy-lime: #d8ee6a;
    --hy-shadow: 0 18px 50px rgba(24, 28, 35, .08);
    --hy-radius: 18px;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body.hy-body,
body.hy-auth-body {
    margin: 0;
    min-width: 320px;
    color: var(--hy-ink);
    background: var(--hy-canvas);
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
}

body.hy-body::before,
body.hy-auth-body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .32;
    background-image: linear-gradient(rgba(21, 24, 29, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 24, 29, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

body.hy-body a,
body.hy-auth-body a {
    color: inherit;
    text-decoration: none;
}

.hy-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(222, 219, 210, .9);
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(16px);
}

.hy-header::after {
    display: block;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--hy-accent) 0 24%, var(--hy-lime) 24% 52%, var(--hy-blue) 52% 78%, var(--hy-mint) 78% 100%);
}

.hy-header-inner {
    display: flex;
    width: min(1180px, calc(100% - 36px));
    min-height: 72px;
    margin: 0 auto;
    align-items: center;
    gap: 22px;
}

.hy-brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.hy-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid var(--hy-ink);
    border-radius: 12px 12px 12px 4px;
    background: var(--hy-lime);
    box-shadow: 4px 4px 0 var(--hy-ink);
    font-size: 19px;
    line-height: 1;
}

.hy-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.hy-brand-name {
    font-size: 1.05rem;
}

.hy-brand-kicker {
    margin-top: 4px;
    color: var(--hy-muted);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hy-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hy-nav-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--hy-muted) !important;
    font-size: .88rem;
    font-weight: 700;
}

.hy-nav-link:hover,
.hy-nav-link.is-active {
    color: var(--hy-ink) !important;
    background: var(--hy-surface-2);
}

.hy-nav-link.is-active i {
    color: var(--hy-accent);
}

.hy-search {
    display: flex;
    min-width: 160px;
    max-width: 280px;
    margin-left: auto;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    background: var(--hy-surface);
}

.hy-search:focus-within {
    border-color: var(--hy-blue);
    box-shadow: 0 0 0 3px rgba(38, 103, 220, .12);
}

.hy-search i {
    color: var(--hy-muted);
}

.hy-search input {
    width: 100%;
    min-height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--hy-ink);
    background: transparent;
    font-size: .8rem;
}

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

.hy-header-actions .btn,
.hy-header-actions .lang-switch__btn {
    border-radius: 10px !important;
    font-size: .78rem;
    font-weight: 700;
}

.hy-header-actions .btn-primary {
    border-color: var(--hy-ink);
    background: var(--hy-ink);
    color: #fffefa !important;
}

.hy-header-actions .btn-primary:hover {
    border-color: var(--hy-accent);
    background: var(--hy-accent);
}

.hy-header .navbar-toggler {
    display: none;
    padding: 7px 9px;
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    background: var(--hy-surface);
}

.hy-header .navbar-toggler-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.hy-page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

/* 商品优先：公告和货架先进入视线，品牌 Hero 作为后续说明。 */
.hy-home {
    display: flex;
    flex-direction: column;
}

.hy-home .hy-notice {
    order: 1;
    margin-top: 0;
}

.hy-home .hy-catalog {
    order: 2;
}

.hy-home .hy-hero {
    order: 3;
    margin-top: 34px;
}

.hy-hero {
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    overflow: hidden;
    border: 1px solid var(--hy-line);
    border-radius: 24px;
    background: var(--hy-surface);
    box-shadow: var(--hy-shadow);
}

.hy-hero-copy {
    display: flex;
    min-width: 0;
    padding: 40px 44px;
    flex-direction: column;
    justify-content: center;
}

.hy-eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
    color: var(--hy-accent-dark);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hy-eyebrow::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hy-accent);
    content: "";
}

.hy-hero h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.hy-hero p {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--hy-muted);
    font-size: 1rem;
}

.hy-hero-actions {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 10px;
}

.hy-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid var(--hy-ink);
    border-radius: 11px;
    background: var(--hy-ink);
    color: #fff !important;
    font-size: .82rem;
    font-weight: 800;
}

.hy-btn:hover {
    border-color: var(--hy-accent);
    background: var(--hy-accent);
}

.hy-btn--quiet {
    border-color: var(--hy-line);
    background: transparent;
    color: var(--hy-ink) !important;
}

.hy-btn--quiet:hover {
    border-color: var(--hy-ink);
    background: var(--hy-surface-2);
}

.hy-hero-stats {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 22px;
}

.hy-stat {
    display: flex;
    flex-direction: column;
}

.hy-stat strong {
    font-size: 1.14rem;
    line-height: 1.1;
}

.hy-stat span {
    margin-top: 3px;
    color: var(--hy-subtle);
    font-size: .7rem;
}

.hy-hero-visual {
    position: relative;
    display: grid;
    min-height: 300px;
    padding: 28px;
    place-items: center;
    background: var(--hy-ink);
    isolation: isolate;
}

.hy-hero-visual::before,
.hy-hero-visual::after {
    position: absolute;
    content: "";
    z-index: -1;
    border: 1px solid rgba(255, 254, 250, .18);
    transform: rotate(-12deg);
}

.hy-hero-visual::before {
    width: 240px;
    height: 240px;
    border-radius: 42px;
}

.hy-hero-visual::after {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    transform: rotate(24deg);
}

.hy-signal-card {
    width: min(100%, 320px);
    padding: 23px;
    border: 1px solid rgba(255, 254, 250, .22);
    border-radius: 17px;
    background: #242a33;
    box-shadow: 10px 10px 0 rgba(216, 238, 106, .88);
    color: #fffefa;
}

.hy-signal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 254, 250, .64);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hy-signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hy-mint);
    box-shadow: 0 0 0 4px rgba(189, 233, 217, .14);
}

.hy-signal-card h2 {
    margin: 25px 0 6px;
    font-size: 1.75rem;
    letter-spacing: 0;
}

.hy-signal-card p {
    margin: 0;
    color: rgba(255, 254, 250, .68);
    font-size: .8rem;
}

.hy-signal-line {
    display: grid;
    margin-top: 24px;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.hy-signal-line span {
    height: 7px;
    border-radius: 99px;
    background: var(--hy-accent);
}

.hy-signal-line span:nth-child(2) { background: var(--hy-lime); }
.hy-signal-line span:nth-child(3) { background: var(--hy-blue); }
.hy-signal-line span:nth-child(4) { background: var(--hy-mint); }

.hy-notice {
    display: flex;
    margin-top: 20px;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 17px;
    border: 1px solid #e8d7b1;
    border-radius: 13px;
    background: #fff6de;
    color: #6c562b;
}

.hy-notice-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: #f2c451;
    color: #3e2d08;
}

.hy-notice-body {
    min-width: 0;
    flex: 1;
    font-size: .82rem;
}

.hy-notice-title {
    margin-bottom: 2px;
    color: #3e2d08;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hy-notice-body p {
    margin: 0;
}

.hy-catalog {
    margin-top: 28px;
}

.hy-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.hy-section-kicker {
    margin: 0 0 6px;
    color: var(--hy-accent-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hy-section-head h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 0;
}

.hy-section-head p {
    margin: 7px 0 0;
    color: var(--hy-muted);
    font-size: .82rem;
}

.hy-section-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hy-muted);
    font-size: .73rem;
    white-space: nowrap;
}

.hy-section-note i {
    color: var(--hy-blue);
}

.hy-category-bar {
    display: flex;
    margin-top: 20px;
    padding: 5px;
    overflow-x: auto;
    gap: 5px;
    border: 1px solid var(--hy-line);
    border-radius: 14px;
    background: rgba(255, 254, 250, .72);
    scrollbar-width: thin;
}

.hy-category-bar::-webkit-scrollbar {
    height: 4px;
}

.hy-category-bar::-webkit-scrollbar-thumb {
    background: var(--hy-line);
    border-radius: 99px;
}

.hy-category-bar .switch-category {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--hy-muted);
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.hy-category-bar .switch-category:hover {
    color: var(--hy-ink);
    background: var(--hy-surface-2);
}

.hy-category-bar .switch-category.is-primary {
    border-color: var(--hy-ink);
    background: var(--hy-ink);
    color: #fffefa;
}

.hy-category-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
}

.hy-product-grid {
    display: grid !important;
    margin-top: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hy-product-grid > a {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hy-product-grid .item-message {
    grid-column: 1 / -1;
    padding: 40px 16px;
    border: 1px dashed var(--hy-line);
    border-radius: 14px;
    color: var(--hy-muted);
    text-align: center;
}

.hy-product-grid .acg-card {
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-radius);
    background: var(--hy-surface);
    box-shadow: 0 5px 18px rgba(24, 28, 35, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hy-product-grid .acg-card:hover {
    border-color: var(--hy-ink);
    box-shadow: 0 15px 30px rgba(24, 28, 35, .12);
    transform: translateY(-4px);
}

.hy-product-grid .acg-thumb {
    width: 100%;
    aspect-ratio: 1.24 / 1;
    height: auto;
    border-bottom: 1px solid var(--hy-line);
    background-color: var(--hy-surface-2);
}

.hy-product-grid .acg-card > .p-3 {
    display: flex;
    min-height: 166px;
    padding: 15px 15px 14px !important;
    flex-direction: column;
}

.hy-product-grid .tags {
    display: flex;
    min-height: 23px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.hy-product-grid .badge-soft,
.hy-product-grid .acg-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    background: var(--hy-surface-2);
    color: var(--hy-muted);
    font-size: .65rem;
    font-weight: 750;
}

.hy-product-grid .badge-soft-success {
    border-color: #b6ded1;
    background: #e8f7f0;
    color: #2a7560;
}

.hy-product-grid .badge-soft-primary {
    border-color: #b7c9f3;
    background: #edf3ff;
    color: #2b5ebd;
}

.hy-product-grid .goods-title {
    min-height: 2.85em;
    margin: 0;
    color: var(--hy-ink-soft);
    font-size: .91rem;
    font-weight: 780;
    line-height: 1.42;
}

.hy-product-grid .stat-row {
    margin-top: auto;
}

.hy-product-grid .price {
    color: var(--hy-accent-dark);
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: 0;
}

.hy-product-grid .price .unit {
    margin-right: 2px;
    font-size: .78rem;
    font-weight: 800;
}

.hy-product-grid .stat-bottom {
    color: var(--hy-subtle);
    font-size: .7rem;
}

.hy-product-grid .soldout-ribbon {
    position: absolute;
    top: 12px;
    right: -31px;
    width: 115px;
    padding: 4px 0;
    transform: rotate(35deg);
    background: var(--hy-ink);
    color: #fffefa;
    font-size: .65rem;
    font-weight: 800;
    text-align: center;
}

.hy-product-grid .acg-card.soldout {
    opacity: .58;
    filter: saturate(.55);
}

.hy-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 38px;
    border-top: 1px solid var(--hy-line);
    color: var(--hy-subtle);
    font-size: .73rem;
}

.hy-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.hy-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hy-footer-links a:hover {
    color: var(--hy-ink);
}

/* 商品详情 */
.hy-breadcrumb {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 8px;
    color: var(--hy-subtle);
    font-size: .76rem;
}

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

.hy-detail-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto;
    gap: 22px;
}

.hy-detail-content,
.hy-buy-panel,
.hy-query-panel,
.hy-query-note,
.hy-empty-panel {
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-radius);
    background: var(--hy-surface);
    box-shadow: 0 6px 22px rgba(24, 28, 35, .045);
}

.hy-detail-content {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
}

.hy-detail-layout > .hy-description {
    grid-column: 1;
    grid-row: 2;
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-radius);
    background: var(--hy-surface);
    box-shadow: 0 6px 22px rgba(24, 28, 35, .045);
}

.hy-detail-intro {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-bottom: 1px solid var(--hy-line);
}

.hy-detail-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--hy-line);
    border-radius: 14px;
    background: var(--hy-surface-2);
}

.hy-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hy-detail-copy h1 {
    margin: 6px 0 12px;
    font-size: clamp(1.35rem, 2.7vw, 2.1rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.18;
}

.hy-detail-kicker {
    color: var(--hy-accent-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hy-detail-copy p {
    margin: 0;
    color: var(--hy-muted);
    font-size: .86rem;
}

.hy-detail-badges {
    display: flex;
    margin-top: 17px;
    flex-wrap: wrap;
    gap: 7px;
}

.hy-detail-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--hy-line);
    border-radius: 7px;
    background: var(--hy-surface-2);
    color: var(--hy-muted);
    font-size: .69rem;
    font-weight: 750;
}

.hy-detail-badge--live {
    border-color: #b6ded1;
    background: #e8f7f0;
    color: #2a7560;
}

.hy-description {
    padding: 24px 25px 30px;
    color: var(--hy-ink-soft);
}

.hy-description h2,
.hy-description h3,
.hy-description h4 {
    margin: 23px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hy-line);
    font-size: 1.08rem;
    font-weight: 830;
}

.hy-description h2:first-child,
.hy-description h3:first-child {
    margin-top: 0;
}

.hy-description p,
.hy-description li {
    color: var(--hy-muted);
    font-size: .86rem;
}

.hy-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.hy-description blockquote {
    margin: 15px 0;
    padding: 13px 15px;
    border-left: 4px solid var(--hy-accent);
    border-radius: 0 10px 10px 0;
    background: #fff6de;
    color: #6c562b;
}

.hy-buy-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 94px;
    padding: 22px;
}

.hy-buy-panel h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 820;
    line-height: 1.3;
}

.hy-buy-meta {
    display: flex;
    margin: 12px 0 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.hy-buy-meta .badge-soft {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid var(--hy-line);
    border-radius: 6px;
    background: var(--hy-surface-2);
    color: var(--hy-muted);
    font-size: .64rem;
    font-weight: 750;
}

.hy-buy-panel .abacus {
    margin-bottom: 17px !important;
}

.hy-buy-panel .abacus .price {
    color: var(--hy-accent-dark);
    font-size: 1.72rem;
    font-weight: 850;
    letter-spacing: 0;
}

.hy-buy-panel .abacus .unit {
    margin-right: 3px;
    font-size: .98rem;
}

.hy-buy-form {
    gap: 15px !important;
}

.hy-buy-form .form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--hy-ink-soft);
    font-size: .74rem;
    font-weight: 800;
}

.hy-buy-form .form-control,
.hy-buy-form .input-group .form-control,
.hy-buy-form select {
    min-height: 43px;
    border: 1px solid var(--hy-line);
    border-radius: 10px !important;
    background: #fff;
    color: var(--hy-ink);
    box-shadow: none;
}

.hy-buy-form .form-control:focus {
    border-color: var(--hy-blue);
    box-shadow: 0 0 0 3px rgba(38, 103, 220, .12);
}

.hy-buy-form .input-group {
    min-width: 0;
}

.hy-buy-form .captcha-input {
    min-width: 0;
}

.hy-buy-form .hy-captcha-wrap {
    display: flex;
    width: 96px;
    min-width: 96px;
    min-height: 43px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hy-buy-form .captcha-img {
    display: block;
    width: 100%;
    height: 43px;
    min-height: 43px;
    padding: 0;
    border: 1px solid var(--hy-line);
    border-radius: 10px !important;
    background: var(--hy-surface-2);
    cursor: pointer;
    object-fit: cover;
}

.hy-buy-form .captcha-img:hover {
    border-color: var(--hy-blue);
}

.hy-buy-form .sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hy-buy-form .sku {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid var(--hy-line);
    border-radius: 8px;
    background: var(--hy-surface);
    color: var(--hy-muted);
    font-size: .75rem;
    font-weight: 720;
}

.hy-buy-form .sku:hover,
.hy-buy-form .sku.is-primary {
    border-color: var(--hy-ink);
    background: var(--hy-ink);
    color: #fffefa;
}

.hy-buy-form .badge-money {
    color: var(--hy-accent-dark);
    font-size: .66rem;
}

.hy-buy-form .sku.is-primary .badge-money {
    color: var(--hy-lime);
}

.hy-buy-form .qty-group {
    overflow: hidden;
    border: 1px solid var(--hy-line);
    border-radius: 10px;
}

.hy-buy-form .qty-group .form-control,
.hy-buy-form .qty-group button {
    min-height: 43px;
    border: 0;
    border-radius: 0 !important;
}

.hy-buy-form .qty-group button {
    width: 43px;
    background: var(--hy-surface-2);
    color: var(--hy-ink);
    font-weight: 850;
}

.hy-buy-form .qty-group button:hover {
    background: var(--hy-lime);
}

.hy-buy-form .optional-card {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 1px dashed var(--hy-line);
    border-radius: 10px;
    background: transparent;
    color: var(--hy-muted);
    text-align: left;
}

.hy-buy-form .optional-card:hover {
    border-color: var(--hy-ink);
    color: var(--hy-ink);
}

.hy-buy-form .cash-pay {
    margin-top: 3px;
    padding: 14px !important;
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    background: var(--hy-surface-2);
}

.hy-buy-form .cash-pay > label {
    margin-bottom: 9px;
}

.hy-buy-form .pay-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hy-buy-form .pay-list .pay {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--hy-line);
    border-radius: 9px;
    background: var(--hy-surface);
    color: var(--hy-ink-soft);
    font-size: .72rem;
    font-weight: 760;
    cursor: pointer;
}

.hy-buy-form .pay-list .pay:hover {
    border-color: var(--hy-accent);
    background: #fff6de;
}

.hy-buy-form .pay img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.hy-share {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hy-line);
    border-radius: 9px;
    background: var(--hy-surface);
    color: var(--hy-muted);
    cursor: pointer;
}

.hy-share:hover {
    border-color: var(--hy-blue);
    color: var(--hy-blue);
}

/* 查询页 */
.hy-query-hero {
    display: flex;
    min-height: 180px;
    padding: 28px 32px;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    background: var(--hy-ink);
    color: #fffefa;
}

.hy-query-hero .hy-eyebrow {
    margin-bottom: 11px;
    color: var(--hy-lime);
}

.hy-query-hero .hy-eyebrow::before {
    background: var(--hy-lime);
}

.hy-query-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: 0;
}

.hy-query-hero p {
    max-width: 620px;
    margin: 9px 0 0;
    color: rgba(255, 254, 250, .68);
    font-size: .84rem;
}

.hy-query-panel {
    margin-top: 18px;
    padding: 24px;
}

.hy-query-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.hy-query-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--hy-ink-soft);
    font-size: .74rem;
    font-weight: 800;
}

.hy-query-form .query-field {
    min-width: 0;
    flex: 1;
}

.hy-query-form input {
    width: 100%;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    outline: 0;
    background: #fff;
}

.hy-query-form input:focus {
    border-color: var(--hy-blue);
    box-shadow: 0 0 0 3px rgba(38, 103, 220, .12);
}

.hy-query-form button {
    min-height: 45px;
    border: 1px solid var(--hy-ink);
    border-radius: 10px;
    background: var(--hy-ink);
    color: #fffefa;
    font-size: .78rem;
    font-weight: 800;
}

.hy-query-form button:hover {
    border-color: var(--hy-accent);
    background: var(--hy-accent);
}

.hy-query-note {
    display: grid;
    margin-top: 18px;
    padding: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hy-query-note-item {
    padding: 13px;
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    background: var(--hy-surface-2);
}

.hy-query-note-item strong {
    display: block;
    font-size: .8rem;
}

.hy-query-note-item span {
    display: block;
    margin-top: 4px;
    color: var(--hy-muted);
    font-size: .72rem;
}

.hy-results {
    margin-top: 18px;
}

.hy-results .panel {
    border: 1px solid var(--hy-line);
    border-radius: var(--hy-radius);
    background: var(--hy-surface);
}

.hy-results .panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hy-line);
}

.hy-results .panel-body {
    padding: 20px;
}

.hy-results .order-item {
    margin-bottom: 13px;
    padding: 17px;
    border: 1px solid var(--hy-line);
    border-radius: 13px;
    background: #fff;
}

.hy-results .order-item:last-child {
    margin-bottom: 0;
}

.hy-results .order-header,
.hy-results .goods-section {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.hy-results .order-header {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--hy-line);
}

.hy-results .order-basic {
    display: flex;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--hy-muted);
    font-size: .7rem;
}

.hy-results .order-no {
    color: var(--hy-ink);
    font-weight: 800;
}

.hy-results .status-badge,
.hy-results .shipment-badge,
.hy-results .goods-sku {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 760;
}

.hy-results .status-paid,
.hy-results .shipment-paid {
    background: #e8f7f0;
    color: #2a7560;
}

.hy-results .status-pending,
.hy-results .shipment-waiting {
    background: #fff6de;
    color: #876b25;
}

.hy-results .order-amount {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.hy-results .amount-label {
    color: var(--hy-muted);
    font-size: .68rem;
}

.hy-results .amount-value {
    margin-top: 3px;
    color: var(--hy-accent-dark);
    font-size: 1.3rem;
    font-weight: 850;
}

.hy-results .goods-section {
    margin-top: 15px;
    align-items: center;
    justify-content: flex-start;
}

.hy-results .goods-thumb {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px;
    background: var(--hy-surface-2);
}

.hy-results .goods-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hy-results .goods-name {
    margin: 0 0 6px;
    font-size: .86rem;
}

.hy-results .goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hy-results .goods-sku {
    border: 1px solid var(--hy-line);
    background: var(--hy-surface-2);
    color: var(--hy-muted);
}

.hy-results .card-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--hy-line);
}

.hy-results .card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hy-results .card-display {
    margin-top: 9px;
    padding: 13px;
    border: 1px dashed #b6ded1;
    border-radius: 9px;
    background: #e8f7f0;
    color: #2a7560;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.hy-empty-panel {
    margin-top: 18px;
    padding: 44px 20px;
    color: var(--hy-muted);
    text-align: center;
}

/* 认证页 */
.hy-auth-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.hy-auth-header {
    display: flex;
    width: min(1180px, calc(100% - 36px));
    min-height: 74px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.hy-auth-main {
    display: flex;
    width: min(1040px, calc(100% - 36px));
    margin: 28px auto 0;
    flex: 1;
    align-items: center;
}

.hy-auth-layout {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr);
    overflow: hidden;
    border: 1px solid var(--hy-line);
    border-radius: 24px;
    background: var(--hy-surface);
    box-shadow: var(--hy-shadow);
}

.hy-auth-aside {
    position: relative;
    display: flex;
    min-height: 500px;
    padding: 38px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    background: var(--hy-ink);
    color: #fffefa;
}

.hy-auth-aside::after {
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 254, 250, .2);
    border-radius: 50%;
    content: "";
}

.hy-auth-aside h1 {
    max-width: 320px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: 0;
    line-height: 1.03;
}

.hy-auth-aside p {
    max-width: 300px;
    margin: 16px 0 0;
    color: rgba(255, 254, 250, .66);
    font-size: .86rem;
}

.hy-benefit-list {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.hy-benefit-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 254, 250, .82);
    font-size: .76rem;
}

.hy-benefit-list i {
    color: var(--hy-lime);
}

.hy-auth-aside-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 254, 250, .56);
    font-size: .68rem;
}

.hy-auth-aside-foot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hy-accent);
}

.hy-auth-card {
    padding: 38px 44px;
}

.hy-auth-card h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 0;
}

.hy-auth-card > p {
    margin: 7px 0 21px;
    color: var(--hy-muted);
    font-size: .8rem;
}

.hy-auth-tabs {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 10px;
    background: var(--hy-surface-2);
}

.hy-auth-tabs a {
    display: inline-flex;
    min-height: 33px;
    align-items: center;
    padding: 0 13px;
    border-radius: 7px;
    color: var(--hy-muted);
    font-size: .76rem;
    font-weight: 800;
}

.hy-auth-tabs a.is-active,
.hy-auth-tabs a:hover {
    background: var(--hy-surface);
    color: var(--hy-ink);
    box-shadow: 0 2px 6px rgba(24, 28, 35, .08);
}

.hy-auth-card .form-floating {
    margin-bottom: 15px !important;
}

.hy-auth-card .form-control {
    min-height: 49px;
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hy-ink);
}

.hy-auth-card .form-control:focus {
    border-color: var(--hy-blue);
    box-shadow: 0 0 0 3px rgba(38, 103, 220, .12);
}

.hy-auth-card .form-floating label {
    color: var(--hy-muted);
}

.hy-auth-card .form-check {
    color: var(--hy-muted);
    font-size: .75rem;
}

.hy-auth-card .form-check-input {
    border-color: var(--hy-line);
}

.hy-auth-card .form-check-input:checked {
    border-color: var(--hy-ink);
    background-color: var(--hy-ink);
}

.hy-auth-card .hy-submit {
    width: 100%;
    min-height: 47px;
    margin-top: 8px;
    border: 1px solid var(--hy-ink);
    border-radius: 10px;
    background: var(--hy-ink);
    color: #fffefa;
    font-size: .82rem;
    font-weight: 800;
}

.hy-auth-card .hy-submit:hover {
    border-color: var(--hy-accent);
    background: var(--hy-accent);
}

.hy-auth-card .text-link {
    color: var(--hy-blue);
    font-weight: 750;
}

.hy-auth-card .text-link:hover {
    color: var(--hy-accent-dark);
}

.hy-auth-footer {
    width: min(1040px, calc(100% - 36px));
    margin: 0 auto;
    padding: 22px 0 28px;
    color: var(--hy-subtle);
    font-size: .7rem;
    text-align: center;
}

.hy-auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 9px;
}

.hy-auth-code-row .btn {
    min-height: 49px;
    border: 1px solid var(--hy-line);
    border-radius: 10px;
    color: var(--hy-ink-soft);
    font-size: .72rem;
    font-weight: 750;
}

.hy-auth-code-row .btn:hover {
    border-color: var(--hy-ink);
    background: var(--hy-surface-2);
}

/* 维护页 */
.hy-closed {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
}

.hy-closed-card {
    max-width: 560px;
    padding: 38px;
    border: 1px solid var(--hy-line);
    border-radius: 20px;
    background: var(--hy-surface);
    box-shadow: var(--hy-shadow);
    text-align: center;
}

.hy-closed-card h1 {
    margin: 14px 0 8px;
    font-size: 2rem;
    letter-spacing: 0;
}

.hy-closed-card p {
    margin: 0;
    color: var(--hy-muted);
}

@media (max-width: 1100px) {
    .hy-header-inner,
    .hy-page,
    .hy-footer,
    .hy-auth-header,
    .hy-auth-main,
    .hy-auth-footer {
        width: min(100% - 28px, 960px);
    }

    .hy-nav {
        display: none;
    }

    .hy-header .navbar-toggler {
        display: inline-flex;
        margin-left: 0;
    }

    .hy-header .navbar-collapse {
        position: absolute;
        top: 75px;
        right: 14px;
        left: 14px;
        padding: 12px;
        border: 1px solid var(--hy-line);
        border-radius: 14px;
        background: var(--hy-surface);
        box-shadow: var(--hy-shadow);
    }

    .hy-header .navbar-collapse.show {
        display: block;
    }

    .hy-header .navbar-collapse .hy-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hy-header .navbar-collapse .hy-nav-link {
        justify-content: flex-start;
    }

    .hy-header .navbar-collapse .hy-search-mobile {
        display: flex;
        margin-top: 8px;
    }

    .hy-search {
        max-width: 230px;
    }

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

@media (max-width: 820px) {
    .hy-header-inner {
        gap: 10px;
    }

    .hy-header-actions .user-login-box .btn-primary {
        display: none;
    }

    .hy-search {
        max-width: 190px;
    }

    .hy-hero {
        grid-template-columns: 1fr;
    }

    .hy-hero-visual {
        min-height: 230px;
    }

    .hy-detail-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .hy-detail-content {
        grid-column: 1;
        grid-row: 1;
    }

    .hy-buy-panel {
        grid-column: 1;
        grid-row: 2;
    }

    .hy-detail-layout > .hy-description {
        grid-column: 1;
        grid-row: 3;
    }

    .hy-buy-panel {
        position: static;
    }

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

    .hy-auth-aside {
        min-height: auto;
        padding: 28px;
    }

    .hy-auth-aside-foot {
        margin-top: 28px;
    }
}

@media (max-width: 640px) {
    .hy-header-inner,
    .hy-page,
    .hy-footer,
    .hy-auth-header,
    .hy-auth-main,
    .hy-auth-footer {
        width: min(100% - 22px, 560px);
    }

    .hy-brand-kicker,
    .hy-header .hy-search,
    .hy-header-actions .lang-switch,
    .hy-header-actions .user-login-box .btn-outline-secondary {
        display: none !important;
    }

    .hy-hero-copy {
        padding: 29px 24px;
    }

    .hy-hero h1 {
        font-size: 2.25rem;
    }

    .hy-hero p {
        font-size: .88rem;
    }

    .hy-hero-stats {
        gap: 15px;
    }

    .hy-section-head {
        display: block;
    }

    .hy-section-note {
        margin-top: 12px;
    }

    .hy-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hy-product-grid .acg-card > .p-3 {
        min-height: 154px;
        padding: 12px !important;
    }

    .hy-product-grid .goods-title {
        font-size: .8rem;
    }

    .hy-product-grid .price {
        font-size: 1.08rem;
    }

    .hy-detail-intro {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .hy-detail-cover {
        width: 96px;
        max-width: none;
    }

    .hy-detail-copy h1 {
        margin-top: 0;
        font-size: 1.35rem;
    }

    .hy-detail-copy p {
        font-size: .78rem;
    }

    .hy-detail-badges {
        margin-top: 11px;
    }

    .hy-description {
        padding: 20px 17px 25px;
    }

    .hy-buy-panel {
        padding: 18px 15px;
    }

    .hy-buy-form .hy-captcha-wrap {
        width: 88px;
        min-width: 88px;
    }

    .hy-query-form {
        display: block;
    }

    .hy-query-form button {
        width: 100%;
        margin-top: 10px;
    }

    .hy-query-note {
        grid-template-columns: 1fr;
    }

    .hy-results .order-header {
        display: block;
    }

    .hy-results .order-amount {
        margin-top: 12px;
        align-items: flex-start;
    }

    .hy-auth-main {
        margin-top: 14px;
    }

    .hy-auth-card {
        padding: 28px 20px;
    }

    .hy-auth-aside {
        padding: 25px 20px;
    }

    .hy-auth-aside h1 {
        font-size: 2.25rem;
    }

    .hy-footer-row {
        display: block;
    }

    .hy-footer-links {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Header overrides for the shared ACG utility stylesheet. */
.hy-menu {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.hy-search-mobile {
    display: none;
}

.hy-menu-toggle {
    flex: 0 0 auto;
}

.hy-menu-toggle i {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.hy-header-actions .lang-switch__btn {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--hy-muted);
}

.hy-header-actions .lang-switch__btn:hover,
.hy-header-actions .lang-switch.show .lang-switch__btn {
    border-color: var(--hy-line);
    background: var(--hy-surface-2);
    color: var(--hy-ink);
}

.hy-header-actions .user-info-box .dropdown-toggle {
    padding: 3px 5px;
    color: var(--hy-ink);
}

.hy-header-actions .user-info-box .dropdown-toggle::after {
    margin-left: 4px;
}

.hy-header-actions .user-info-box .dropdown-toggle:hover {
    background: var(--hy-surface-2);
}

.hy-header-actions .dropdown-menu {
    min-width: 170px;
    padding: 7px;
    border: 1px solid var(--hy-line);
    border-radius: 12px;
    box-shadow: var(--hy-shadow);
}

.hy-header-actions .dropdown-item {
    border-radius: 8px;
    color: var(--hy-ink-soft);
    font-size: .76rem;
}

.hy-header-actions .dropdown-item:hover,
.hy-header-actions .dropdown-item:focus {
    background: var(--hy-surface-2);
    color: var(--hy-ink);
}

.hy-auth-card .divider {
    color: var(--hy-subtle);
}

.hy-auth-card .divider::before,
.hy-auth-card .divider::after {
    background: var(--hy-line);
}

@media (max-width: 1100px) {
    .hy-menu {
        position: absolute;
        top: 75px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 12px;
        border: 1px solid var(--hy-line);
        border-radius: 14px;
        background: var(--hy-surface);
        box-shadow: var(--hy-shadow);
    }

    .hy-menu.is-open {
        display: block;
    }

    .hy-menu .hy-nav {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .hy-menu .hy-nav-link {
        justify-content: flex-start;
    }

    .hy-search-mobile {
        display: flex;
        max-width: none;
        margin-top: 8px;
    }
}
