:root {
    --acg-page-bg: #eff8f5;
    --acg-primary: #168373;
    --acg-primary-hover: #0e6a5d;
    --acg-text-strong: #183631;
    --acg-text: #36524c;
    --acg-text-muted: #688079;
    --acg-border: #dbe9e3;
    --acg-surface-muted: #f1f7f4;
    --acg-danger: #df5864;
}
body {
    background: #eff8f5 url('/assets/user/images/brand/summer-landscape.png') center top / cover fixed no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    letter-spacing: 0;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(244, 251, 248, .52);
    pointer-events: none;
    z-index: -1;
}
.ui-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -2px;
}
.user-login-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.navbar-acg {
    background: rgba(231, 250, 248, .76);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    border-bottom-color: rgba(255, 255, 255, .55);
    box-shadow: 0 2px 14px rgba(20, 83, 82, .08);
    padding: 9px 0;
}
.navbar-acg .container, .store-shell { max-width: 1180px; }
.navbar-acg .navbar-brand { color: #168373; font-weight: 750; }
.navbar-acg .nav-link.active, .navbar-acg .nav-link:hover { color: #137363; background: #e8f5ef; }
.search-input { width: 240px; }
.search-input .input-group-text, .search-input .form-control { background: #f2f8f5; }
.store-shell { padding-top: 22px !important; padding-bottom: 36px !important; }
.store-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.store-heading h1 { font-size: 24px; line-height: 1.4; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.store-heading > span { color: #476a60; font-size: 13px; }
.notice-panel {
    background: rgba(219, 247, 249, .50);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
    border: 1px solid rgba(255, 255, 255, .52);
    border-top: 3px solid rgba(64, 174, 166, .70);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 91, 110, .08);
    margin-bottom: 16px;
}
.notice-hint { margin-left: 4px; color: #476a60; font-size: 12px; font-weight: 400; }
.notice-panel .panel-header {
    min-height: 46px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .10);
    border-bottom-color: rgba(255, 255, 255, .35);
}
.notice { padding: 14px 18px 18px; color: #18313b; font-size: 14px; font-weight: 600; line-height: 1.9; overflow-wrap: anywhere; }
.notice img, .notice video { max-width: 100%; height: auto; }
.notice a { color: #087864; text-decoration: underline; text-underline-offset: 3px; }
.notice table { display: block; max-width: 100%; overflow-x: auto; }
.catalog-panel {
    background: rgba(219, 247, 249, .50);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
    border: 1px solid rgba(255, 255, 255, .52);
    border-top: 3px solid rgba(64, 174, 166, .70);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(16, 91, 110, .08);
}
.catalog-panel .panel-header {
    padding: 13px 18px;
    background: rgba(255, 255, 255, .10);
    border-bottom-color: rgba(255, 255, 255, .38);
}
.catalog-panel .panel-body { padding: 14px 18px 18px; }
.panel-header .icon { background: #e6f3ec; color: #187763; }
.panel-title { font-size: 16px; font-weight: 700; }
.catalog-count { color: var(--acg-text-muted); font-size: 12px; }
.chip-list { gap: 8px; margin-bottom: 12px; }
.chip { font-weight: 500; padding: 8px 13px; }
.catalog-panel .chip-list .chip {
    color: #35564f;
    background: rgba(255, 255, 255, .50);
    border-color: rgba(255, 255, 255, .72);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(23, 89, 94, .08);
}
.catalog-panel .chip-list .chip:hover:not(.is-primary) {
    color: #473174;
    background: rgba(255, 255, 255, .70);
    border-color: rgba(142, 118, 212, .55);
}
.catalog-panel .chip-list .chip.is-primary {
    color: #2e1d61;
    background: rgba(161, 132, 231, .66);
    border-color: rgba(113, 88, 194, .45);
    box-shadow: 0 2px 9px rgba(93, 65, 157, .17);
}
.catalog-panel .catalog-tools { border-top-color: rgba(255, 255, 255, .45); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--acg-border); padding: 10px 0 12px; }
.catalog-context { font-size: 13px; color: var(--acg-text-muted); overflow-wrap: anywhere; min-width: 0; }
.item-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; min-height: 220px; }
.item-message { grid-column: 1 / -1; padding: 45px 16px; align-self: center; }
.item-message p { margin: 0 0 12px; }
.catalog-product { display: block; min-width: 0; }
.acg-card { position: relative; background: rgba(255, 255, 255, .96); box-shadow: 0 5px 14px rgba(31, 66, 49, .06); border-color: rgba(255, 255, 255, .72); }
.acg-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: contain; background: #f8fbf9; padding: 6px; }
.acg-card > .p-3 { padding: 12px !important; }
.goods-title { min-height: 42px; line-height: 1.5; font-size: 14px; font-weight: 650; margin-bottom: 10px; overflow-wrap: anywhere; }
.price { font-size: 23px; font-weight: 750; font-variant-numeric: tabular-nums; }
.badge-soft { font-weight: 500; font-size: 11px; min-height: 21px; padding: 3px 6px; }
.badge-soft-success { color: #25886b; background: #e8f6ed; border-color: transparent; }
.badge-soft-primary { color: #7873b1; background: #f0eefb; border-color: transparent; }
.stat-bottom { padding-top: 9px; border-top: 1px solid #eef2ef; margin-top: 9px; font-size: 11px; flex-wrap: wrap; }
.purchase-arrow { color: #168373; font-size: 14px; }
.soldout { opacity: .75; }
.soldout-ribbon { position: absolute; top: 12px; right: 12px; left: auto; background: #526760; color: white; padding: 4px 9px; border-radius: 4px; font-size: 12px; transform: none; width: auto; }
.panel { box-shadow: none; background: rgba(255,255,255,.96); }
.panel.product-panel, .panel.item-detail {
    background: rgba(219, 247, 249, .62);
    border-color: rgba(255, 255, 255, .64);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
}
.item-detail > .panel-header {
    background: rgba(255, 255, 255, .14);
    border-bottom-color: rgba(255, 255, 255, .44);
}
.product-panel > .panel-body { padding: 20px; }
.product-layout { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.product-layout > .col-12:first-child { align-items: flex-start; }
@media (min-width: 992px) {
    .product-layout > .product-media-column { width: 52%; }
    .product-layout > .product-purchase-column { width: 48%; }
    .product-summary .vstack {
        display: grid;
        grid-template-columns: 164px minmax(0, 1fr);
        gap: 10px 12px !important;
        align-items: end;
    }
    .product-summary .vstack > div { grid-column: 1 / -1; }
    .product-summary .vstack > .quantity-field { grid-column: 1; padding-bottom: 8px; }
    .product-summary .vstack > .cash-pay { grid-column: 2; }
}
.product-panel .product-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, .30);
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(29, 89, 76, .08);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.product-panel .item-cover {
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-summary {
    --purchase-accent: #0d756b;
    --purchase-accent-rgb: 13, 117, 107;
    min-width: 0;
}
.product-summary .price, .product-summary .price .unit { color: var(--purchase-accent); }
.product-summary .abacus { margin-bottom: 10px !important; }
.product-summary .abacus .price { font-size: 26px; }
.product-summary .vstack { row-gap: 10px !important; }
.product-summary .vstack > div > .form-label { font-size: 13px; line-height: 1.5; }
.product-summary .vstack > div > .form-control { height: 36px; min-height: 36px; font-size: 13px; }
.product-summary .wholesale-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid rgba(22, 131, 115, .32);
    border-radius: 8px;
    background: rgba(236, 250, 244, .56);
}
.product-summary .wholesale-panel[hidden] { display: none; }
.product-summary .wholesale-title {
    flex: 0 0 auto;
    margin: 0;
    color: var(--acg-primary-hover);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.product-summary .wholesale-tiers { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.product-summary .wholesale-tier {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-width: 100%;
    padding: 5px 12px;
    border: 1px solid rgba(22, 131, 115, .26);
    border-radius: 16px;
    background: rgba(235, 248, 242, .70);
    color: var(--acg-primary-hover);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.product-summary .wholesale-tier.is-active {
    border-color: rgba(22, 131, 115, .55);
    background: rgba(22, 131, 115, .14);
}
.product-summary .qty-group {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(64px, 1fr) 44px;
    gap: 0;
    width: 164px;
    max-width: 100%;
    height: 46px;
    padding: 0;
    align-items: center;
    overflow: hidden;
    background: rgba(237, 250, 246, .80);
    border: 1px solid rgba(var(--purchase-accent-rgb), .24);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .50), 0 2px 8px rgba(23, 99, 81, .04);
}
.product-summary .qty-group::before, .product-summary .qty-group::after {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(var(--purchase-accent-rgb), .18);
    pointer-events: none;
}
.product-summary .qty-group::before { left: 44px; }
.product-summary .qty-group::after { right: 44px; }
.product-summary .qty-group:focus-within {
    border-color: var(--purchase-accent);
    box-shadow: 0 0 0 2px rgba(var(--purchase-accent-rgb), .12);
}
.product-summary .qty-group > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--purchase-accent);
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .15s ease;
}
.product-summary .qty-group > button:focus-visible {
    outline: 2px solid var(--purchase-accent);
    outline-offset: -4px;
}
.product-summary .qty-group > button:active:not(:disabled) { background: rgba(var(--purchase-accent-rgb), .16); }
.product-summary .qty-group > button:disabled {
    color: #718b86;
    background: transparent;
    opacity: .55;
    cursor: not-allowed;
}
.product-summary .qty-group > input[type="number"] {
    width: 100%;
    height: 44px;
    margin: 0 !important;
    padding: 0 2px;
    color: var(--purchase-accent);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.product-title-row { margin-bottom: 6px; gap: 10px; }
.product-title-row h1 { min-width: 0; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; text-wrap: balance; font-weight: 700; margin: 0 0 8px; }
.product-breadcrumb { margin: 0 0 12px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.product-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.product-title-row .shared-button { flex: 0 0 36px; }
.product-summary .captcha-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 12px;
    width: 330px;
    max-width: 100%;
}
.product-summary .captcha-group > .captcha-input {
    min-width: 0;
    width: 100%;
    height: 44px;
    margin: 0 !important;
    border: 1px solid rgba(13, 117, 107, .28);
    border-radius: 8px !important;
}
.product-summary .captcha-group > .captcha-input:focus {
    border-color: #0d756b;
    outline: 2px solid rgba(13, 117, 107, .30);
    outline-offset: 2px;
    box-shadow: none;
}
.product-summary .captcha-group > .input-group-append {
    display: flex;
    align-items: center;
    width: 96px;
    height: 44px;
    margin: 0 !important;
}
.product-summary .captcha-group .captcha-img {
    display: block;
    width: 96px;
    height: 44px;
    padding: 0;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(13, 117, 107, .28);
    border-radius: 8px !important;
}
.product-summary .cash-pay {
    padding: 8px;
    background: rgba(240, 253, 249, .32);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .20), 0 4px 14px rgba(24, 104, 95, .05);
}
.product-summary .cash-pay > .form-label {
    gap: 8px;
    padding: 0 2px 6px;
    color: #7658ba;
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 6px !important;
    border-bottom: 1px dashed rgba(255, 255, 255, .65);
}
.product-summary .cash-pay > .form-label i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: rgba(149, 116, 231, .82);
    border-radius: 6px;
    font-size: 12px;
}
.product-summary .pay-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}
.product-summary .pay-list .pay {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    color: #47625b;
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.product-summary .pay-list .pay img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.product-summary .pay-list .pay span {
    min-width: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.product-summary .pay-list .pay:hover:not([aria-disabled="true"]) {
    color: #5b418b;
    background: rgba(225, 214, 249, .68);
    border-color: rgba(149, 116, 231, .40);
    box-shadow: 0 3px 10px rgba(107, 78, 159, .08);
}
.product-summary .pay-list .pay:hover span { color: inherit; }
.product-summary .pay-list .pay:active:not([aria-disabled="true"]) {
    background: rgba(213, 197, 246, .76);
    box-shadow: none;
}
.product-summary .pay-list .pay[aria-disabled="true"] {
    opacity: .55;
    cursor: wait;
    color: #688079;
    background: rgba(255, 255, 255, .60);
    border-color: rgba(13, 117, 107, .14);
    box-shadow: none;
}
.query-panel { max-width: 840px; margin: 20px auto; }
.query-controls { max-width: none; }
.query-panel .panel-body { padding: 24px; }
.store-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1180px; margin: auto; padding: 20px 12px 28px; font-size: 12px; }
.store-footer nav { display: flex; gap: 18px; }
:focus-visible { outline: 3px solid #38a78e; outline-offset: 3px; }
@media (max-width: 991.98px) {
    .product-summary .vstack > div > .form-control { height: 44px; min-height: 44px; font-size: 14px; }
    .product-summary .pay-list .pay { min-height: 44px; }
}
@media (hover: hover) and (pointer: fine) {
    .acg-card:hover { border-color: #8dcbb5; box-shadow: 0 8px 20px rgba(31, 66, 49, .09); }
    .product-panel .product-media:hover {
        transform: translateY(-4px);
        border-color: #83beac;
        box-shadow: 0 16px 30px rgba(29, 89, 76, .15);
    }
    .product-summary .qty-group > button:hover:not(:disabled) { background: rgba(var(--purchase-accent-rgb), .10); }
}
@media (prefers-reduced-motion: reduce) {
    .product-summary .pay-list .pay { transition: none; }
    .product-panel .product-media { transition: none; }
    .product-panel .product-media:hover { transform: none; }
    .product-summary .qty-group > button { transition: none; }
}
@media (max-width: 991.98px) {
    .item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .navbar-acg { padding: 12px 0; }
    .navbar-acg .container { padding-inline: clamp(16px, 4vw, 44px); column-gap: 8px; }
    .navbar-acg .navbar-brand { min-width: 0; margin-right: 0; }
    .navbar-acg .user-login-box, .navbar-acg .user-info-box {
        min-width: 0;
        margin-left: auto !important;
        margin-right: 0;
    }
    .navbar-acg .user-info-box { max-width: min(220px, calc(100vw - 184px)); }
    .navbar-acg .user-info-box .dropdown { width: 100%; min-width: 0; }
    .navbar-acg #userDropdown { width: 100%; min-width: 0; padding: 4px 0; }
    .navbar-acg #userDropdown > div { flex: 1 1 0; min-width: 0; overflow: hidden; }
    .navbar-acg #user-avatar { flex: 0 0 32px; }
    .navbar-acg #username, .navbar-acg #user-balance {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }
    .navbar-acg #username { text-overflow: ellipsis; }
    .navbar-acg .navbar-toggler { flex: 0 0 auto; margin-left: 8px; }
    .navbar-acg .navbar-brand { max-width: 50%; }
    .navbar-acg .navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 767.98px) {
    body { background-attachment: scroll; background-size: auto 100vh; }
    .store-shell { padding-top: 16px !important; }
    .store-heading h1 { font-size: 21px; }
    .store-heading { margin-bottom: 14px; }
    .notice-panel { margin-bottom: 16px; }
    .notice, .notice-panel .panel-header { padding-left: 14px; padding-right: 14px; }
    .notice { font-size: 13px; }
    .catalog-panel .panel-header, .catalog-panel .panel-body { padding: 12px; }
    .catalog-panel .panel-body { padding-bottom: 14px; }
    .catalog-tools { flex-wrap: wrap; gap: 10px; }
    .catalog-context:empty { display: none; }
    .chip-list { gap: 7px; }
    .chip { font-size: 12px; padding: 7px 9px; }
    .item-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .acg-card > .p-3 { padding: 10px !important; }
    .acg-thumb { height: auto; padding: 4px; }
    .goods-title { font-size: 13px; min-height: 40px; margin-bottom: 12px; }
    .price { font-size: 20px; }
    .tags { gap: 4px; }
    .badge-soft { font-size: 10px; padding: 3px 5px; }
    .stat-bottom { font-size: 10px; gap: 4px; }
    .product-panel > .panel-body { padding: 16px; }
    .product-title-row h1 { font-size: 20px; }
    .query-panel { margin-top: 0; }
    .query-panel .panel-body { padding: 16px; }
    .navbar-acg .navbar-toggler { padding: 4px 6px; }
    .navbar-acg .navbar-brand { max-width: 44%; margin-right: 0; font-size: 1.15rem; }
    .navbar-acg .brand-logo { width: 28px; height: 28px; }
}
@media (max-width: 575.98px) {
    .product-summary .cash-pay { padding: 10px; }
    .item-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .acg-card > .p-3 { padding: 14px !important; }
    .goods-title { font-size: 15px; min-height: 0; }
    .price { font-size: 23px; }
}
