:root {
    --dutyfree-ink: #12100d;
    --dutyfree-gold: #b58a43;
    --dutyfree-gold-light: #e2c27e;
    --dutyfree-cream: #f7f3e9;
}

html.dutyfree-age-locked,
html.dutyfree-age-locked body {
    overflow: hidden !important;
}

.dutyfree-age-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 80% 15%, rgba(181, 138, 67, .22), transparent 32%),
        linear-gradient(145deg, rgba(8, 7, 6, .96), rgba(24, 20, 14, .98));
    backdrop-filter: blur(12px);
}

.dutyfree-age-gate[hidden] { display: none; }

.dutyfree-age-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    padding: 34px 26px 28px;
    color: #fff;
    text-align: center;
    border: 1px solid rgba(226, 194, 126, .45);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(38, 31, 22, .96), rgba(15, 13, 10, .98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.dutyfree-age-mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    color: var(--dutyfree-ink);
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dutyfree-gold-light), var(--dutyfree-gold));
}

.dutyfree-age-eyebrow {
    margin: 0 0 10px;
    color: var(--dutyfree-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
}

.dutyfree-age-card h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dutyfree-age-card p:not(.dutyfree-age-eyebrow) {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.8;
    white-space: normal;
}

.dutyfree-age-card button {
    width: 100%;
    min-height: 48px;
    margin: 0 0 10px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dutyfree-age-confirm {
    color: var(--dutyfree-ink);
    border: 0;
    background: linear-gradient(135deg, var(--dutyfree-gold-light), var(--dutyfree-gold));
}

.dutyfree-age-leave {
    color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
}

.dutyfree-age-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .46);
    line-height: 1.6;
}

body {
    background: #f7f5f0;
}

.am-btn-primary,
.am-btn-secondary {
    border-color: var(--dutyfree-gold) !important;
    background-color: var(--dutyfree-gold) !important;
}

.goods-list .goods-item,
.goods-detail-container,
.cart-content,
.user-content-body {
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(30, 24, 14, .06);
}

.module-goods-grid-base .item[data-coding^="DF-"]::before { display: none; }

@media screen {
    .dutyfree-age-card { padding: 28px 20px 22px; }
    .goods-list { padding-inline: 8px; }
    .goods-list .goods-item { overflow: hidden; }
}

/* Mobile-first storefront shell */
.dutyfree-mobile-nav { display: none; }
.dutyfree-customer-float {
    position: fixed; right: 22px; bottom: 28px; z-index: 1090;
    width: 58px; height: 58px; padding: 0; color: #15110b;
    border: 0; border-radius: 50%; background: linear-gradient(145deg, #ecd394, #b58a43);
    box-shadow: 0 12px 30px rgba(40, 29, 13, .24); cursor: pointer;
}
.dutyfree-customer-float span { display: block; height: 16px; font-size: 18px; font-weight: 900; line-height: 9px; }
.dutyfree-customer-float em { display: block; font-size: 11px; font-style: normal; font-weight: 700; }
.dutyfree-customer-mask { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 8, 5, .48); backdrop-filter: blur(2px); }
.dutyfree-customer-panel {
    position: fixed; right: 22px; bottom: 98px; z-index: 1110; display: flex; flex-direction: column;
    width: min(390px, calc(100vw - 32px)); height: min(590px, calc(100vh - 130px)); overflow: hidden;
    border: 1px solid rgba(181, 138, 67, .28); border-radius: 22px; background: #f7f4ec;
    box-shadow: 0 25px 80px rgba(15, 12, 7, .28); opacity: 0; visibility: hidden;
    transform: translateY(18px) scale(.98); transition: .22s ease;
}
.dutyfree-customer-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.dutyfree-customer-panel > header { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 13px 16px; color: #fff; background: linear-gradient(135deg, #17130e, #34291b); }
.dutyfree-agent-avatar { display: grid; place-items: center; width: 44px; height: 44px; color: #17130e; font-weight: 800; border-radius: 50%; background: #d8b86f; }
.dutyfree-customer-panel header strong { display: block; color: #fff; font-size: 16px; }
.dutyfree-customer-panel header small { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: rgba(255,255,255,.65); }
.dutyfree-customer-panel header small i { width: 7px; height: 7px; border-radius: 50%; background: #54c67a; box-shadow: 0 0 0 3px rgba(84,198,122,.14); }
.dutyfree-customer-close { margin-left: auto; padding: 6px 8px; color: rgba(255,255,255,.75); font-size: 28px; border: 0; background: transparent; cursor: pointer; }
.dutyfree-chat-context { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #e5dccb; background: #fffaf0; }
.dutyfree-chat-context[hidden] { display: none; }
.dutyfree-chat-context span { flex: none; padding: 2px 7px; color: #80622c; font-size: 10px; border: 1px solid #d6bd82; border-radius: 10px; }
.dutyfree-chat-context strong { min-width: 0; overflow: hidden; color: #33291c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dutyfree-chat-body { flex: 1; overflow-y: auto; padding: 16px; }
.dutyfree-chat-time { margin-bottom: 12px; color: #aaa092; font-size: 11px; text-align: center; }
.dutyfree-chat-message { width: fit-content; max-width: 82%; margin: 8px 0; padding: 11px 13px; font-size: 14px; line-height: 1.6; border-radius: 4px 15px 15px 15px; background: #fff; box-shadow: 0 5px 18px rgba(30,22,12,.06); }
.dutyfree-chat-message.customer { margin-left: auto; color: #17130e; border-radius: 15px 4px 15px 15px; background: #ddc17d; }
.dutyfree-chat-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dutyfree-chat-quick button { padding: 6px 11px; color: #80622c; font-size: 12px; border: 1px solid #d6bd82; border-radius: 15px; background: transparent; }
.dutyfree-chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6dfd1; background: #fff; }
.dutyfree-chat-compose textarea { flex: 1; min-height: 40px; max-height: 90px; resize: none; padding: 10px 12px; border: 0; border-radius: 12px; outline: 0; background: #f4f1eb; }
.dutyfree-chat-compose button { height: 40px; padding: 0 16px; color: #17130e; font-weight: 700; border: 0; border-radius: 12px; background: #d2ad5a; }
.dutyfree-chat-compose button:disabled { opacity: .55; }
.dutyfree-chat-note { margin: 0; padding: 7px 12px 9px; color: #a09788; font-size: 10px; text-align: center; background: #fff; }
.dutyfree-product-consult-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 12px auto; padding: 15px 18px; border: 1px solid rgba(181,138,67,.24); border-radius: 14px; background: #fffaf0; box-shadow: 0 6px 20px rgba(30,24,14,.05); }
.dutyfree-product-consult-card strong, .dutyfree-product-consult-card span { display: block; }
.dutyfree-product-consult-card strong { color: #241d14; font-size: 15px; }
.dutyfree-product-consult-card span { margin-top: 3px; color: #8b8172; font-size: 12px; }
.dutyfree-product-consult { flex: none; min-height: 42px; padding: 0 19px; color: #17130e; font-weight: 800; border: 0; border-radius: 12px; background: linear-gradient(135deg,#e0c47d,#b88b3f); }
.dutyfree-product-detail { padding: 8px 2px 20px; }
.dutyfree-product-summary { margin: 12px 0; color: #655947; }
.dutyfree-product-summary strong { color: #a8792f; font-size: 20px; }
.dutyfree-spec-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; margin: 14px 0; border: 1px solid #eee6d8; border-radius: 12px; }
.dutyfree-spec-row { display: grid; grid-template-columns: 105px 1fr; min-width: 0; padding: 10px 12px; border-bottom: 1px solid #f0e9dd; }
.dutyfree-spec-row dt { color: #8d8170; font-weight: 400; }
.dutyfree-spec-row dd { margin: 0; color: #332a1f; }
.dutyfree-image-confirmed { color: #64806a; }

/* Registration */
.dutyfree-register-card { padding: 34px 34px 25px; }
.dutyfree-register-heading { margin-bottom: 28px; }
.dutyfree-register-heading > span { color: #a67c37; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.dutyfree-register-heading h1 { margin: 6px 0 5px; color: #18140f; font-size: 28px; }
.dutyfree-register-heading p { margin: 0; color: #898175; font-size: 13px; }
.dutyfree-register-card form label { display: block; margin-bottom: 8px; color: #393228; font-size: 13px; font-weight: 700; }
.dutyfree-register-card .am-form-group { margin-bottom: 20px; }
.dutyfree-input-wrap, .dutyfree-password-wrap { position: relative; display: flex; align-items: center; }
.dutyfree-input-prefix { position: absolute; left: 14px; z-index: 2; padding-right: 12px; color: #5c5142; font-weight: 700; border-right: 1px solid #d9d1c4; }
.dutyfree-register-card .dutyfree-input-wrap input { padding-left: 66px !important; }
.dutyfree-register-card input[type="tel"], .dutyfree-register-card input[type="password"] { height: 50px; border: 1px solid #ddd5c7; border-radius: 12px !important; background: #fbfaf7; box-shadow: none; }
.dutyfree-register-card input:focus { border-color: #b58a43 !important; background: #fff; box-shadow: 0 0 0 3px rgba(181,138,67,.1) !important; }
.dutyfree-password-toggle { position: absolute; right: 10px; padding: 7px; color: #9a7333; font-size: 12px; border: 0; background: transparent; }
.dutyfree-register-agreement { color: #8a8174; font-size: 12px; line-height: 1.8; }
.dutyfree-register-agreement label { display: inline-block !important; font-weight: 400 !important; }
.dutyfree-register-submit { height: 50px; margin-top: 20px; color: #17130e !important; font-weight: 800; border-radius: 12px !important; background: linear-gradient(135deg, #e0c47d, #b88b3f) !important; }
.dutyfree-register-login { margin-top: 20px; text-align: center; }
.dutyfree-register-login a { margin-left: 5px; color: #9a7131; font-weight: 700; }
.dutyfree-register-safe { margin-top: 19px; padding-top: 16px; color: #aaa194; font-size: 11px; text-align: center; border-top: 1px solid #eee8dd; }
.dutyfree-register-safe span { color: #6e9b72; }

@media screen {
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); background: #f4f1eb; }
    .am-container { width: 100% !important; max-width: 100% !important; padding-left: 12px; padding-right: 12px; }
    .am-hide-sm-only { display: none !important; }
    .am-show-sm-only { display: block !important; }
    .top-nav-items-center,
    .top-nav-items-favor,
    .top-nav-items-quick,
    .top-nav-items-cart,
    .top-nav-items-message { display: none !important; }
    .top-nav-right { right: 0; width: auto; }
    .top-nav-right .top-nav-items a span { display: none; }
    .header-top { position: sticky; top: 0; z-index: 1000; background: rgba(20,17,13,.96); backdrop-filter: blur(12px); }
    .top-nav-left-site-logo img, .header-nav-simple .logo img { display: none; }
    .top-nav-left-site-logo a::after, .header-nav-simple .logo a::after { content: "尊享免税"; color: #d2ad5a; font-size: 17px; font-weight: 900; letter-spacing: .06em; }
    .header-nav-simple .logo a::after { color: #211b13; }
    .shop-navigation { position: sticky; top: 45px; z-index: 990; min-height: 58px; margin-bottom: 0; padding: 8px 0; border: 0; background: #17130e; }
    .shop-navigation .am-container { display: flex; align-items: center; padding-left: 12px !important; padding-right: 12px !important; }
    .shop-navigation .navigation-search { display: flex !important; flex: 1; width: auto !important; margin: 0; }
    .shop-navigation .navigation-search .am-input-group { width: 100%; }
    .shop-navigation .navigation-search input { height: 40px; padding-left: 15px; color: #f7f3e9; border: 1px solid rgba(226,194,126,.25); border-radius: 12px 0 0 12px; background: rgba(255,255,255,.08); }
    .shop-navigation .navigation-search button { height: 40px; color: #17130e; border: 0; border-radius: 0 12px 12px 0; background: #cfad62; }
    .shop-navigation .am-topbar-toggle { display: flex !important; order: 2; margin: 0 0 0 8px; color: #d9bc79; border: 0; background: transparent; }
    #doc-topbar-collapse { position: absolute; top: 56px; right: 10px; left: 10px; display: none !important; width: auto; height: auto; margin-left: 0 !important; padding: 12px; border: 1px solid rgba(210,173,90,.25); border-radius: 14px; background: #211b13; box-shadow: 0 16px 35px rgba(0,0,0,.3); }
    #doc-topbar-collapse.am-in { display: block !important; }
    #doc-topbar-collapse a { color: #f4ead5 !important; }
    .slideall { padding: 0 10px !important; border: 0 !important; }
    .banner .am-slider, .banner .am-slider .am-slides li, .banner .am-slider .am-slides li img { height: 168px !important; border-radius: 16px; }
    .banner .am-slider .am-slides li { position: relative; background: radial-gradient(circle at 78% 22%,rgba(225,192,119,.35),transparent 28%),linear-gradient(135deg,#17130e,#382a19); }
    .banner .am-slider .am-slides li img { opacity: .12; filter: grayscale(1) sepia(.3); }
    .slideall { height: auto !important; margin-top: 7px !important; padding: 0 10px !important; }
    .banner-mixed { position: relative !important; top: auto !important; right: auto !important; z-index: auto !important; width: 100% !important; height: 37px !important; overflow: hidden; padding: 0 !important; }
    .banner-news { width: 100% !important; height: 35px !important; overflow: hidden; padding: 0 !important; }
    .banner-news-title { float: left; max-width: 72px; height: 30px; padding-right: 0; color: #333; line-height: 30px; }
    .banner-mixed .banner-news li { float: none !important; width: auto !important; height: 30px !important; padding: 0 10px !important; line-height: 30px !important; white-space: nowrap; }
    .banner-news li strong, .mod-vip { display: none !important; }
    .banner .am-slider .am-slides li > a::before { content: "全球免税烟草精选"; position: absolute; z-index: 2; top: 43px; left: 24px; color: #f5e8ca; font-size: 23px; font-weight: 900; letter-spacing: .04em; }
    .banner .am-slider .am-slides li > a::after { content: "正品渠道 · 成年消费者专享"; position: absolute; z-index: 2; top: 82px; left: 25px; color: #d2b570; font-size: 12px; letter-spacing: .08em; }
    .small-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 10px; }
    .small-nav .am-u-sm-3 { width: auto; margin: 0; padding: 8px 2px; border-radius: 12px; background: #fff; }
    .small-nav .nav-icon { max-width: 46px; max-height: 46px; padding: 9px; }
    .home-floor .items-nav-title { padding: 0 11px; }
    .home-floor .items-nav-title h2, .home-floor .items-nav-title strong { color: #211b13; font-size: 18px !important; }
    .floor.floor-flex { display: block; width: 100%; }
    .floor .aggregation-container { display: none !important; }
    .floor > .goods-list { display: block; width: 100% !important; padding: 0 10px !important; }
    .module-goods-grid-container > ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; }
    .module-goods-grid-container > ul::before, .module-goods-grid-container > ul::after { display: none; content: none; }
    .module-goods-grid-container > ul > li { float: none; width: 100% !important; margin: 0 !important; padding: 0; }
    .module-goods-grid-container .item { height: 100%; overflow: hidden; border: 0; border-radius: 15px !important; background: #fff; box-shadow: 0 5px 18px rgba(30,24,14,.07); }
    .module-goods-grid-container .item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
    .module-goods-grid-container .goods-title { min-height: 42px; margin: 2px 0 0; padding: 0 11px 11px; font-size: 14px !important; line-height: 1.5; }
    .module-goods-grid-container .price-content { padding: 9px 11px 0; }
    .module-goods-grid-container .price { margin: 0; padding: 0; color: #a8792f !important; font-size: 13px; font-weight: 800; }
    .module-goods-grid-container .price strong { font-size: 20px; }
    .module-goods-grid-container .price .unit { margin-left: 3px; color: #8b8173 !important; font-size: 11px; }
    .am-footer { display: none; }
    .dutyfree-mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1080; display: grid; grid-template-columns: repeat(4,1fr); height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(181,138,67,.18); background: rgba(255,255,255,.96); box-shadow: 0 -7px 25px rgba(35,27,16,.08); backdrop-filter: blur(14px); }
    .system-goods-detail .buy-nav { bottom: calc(62px + env(safe-area-inset-bottom)); }
    .system-goods-detail .theme-popover-mask { z-index: 1085; }
    .system-goods-detail .theme-popover { z-index: 1090; }
    .system-goods-detail { padding-bottom: 54px; }
    .dutyfree-mobile-nav a, .dutyfree-mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; color: #746b5e; border: 0; background: transparent; }
    .dutyfree-mobile-nav span { height: 23px; font-size: 21px; line-height: 23px; }
    .dutyfree-mobile-nav em { font-size: 11px; font-style: normal; }
    .dutyfree-mobile-nav .dutyfree-nav-chat { display: grid; place-items: center; width: 34px; color: #17130e; font-size: 14px; font-weight: 900; border-radius: 13px; background: #d4b264; }
    .dutyfree-customer-float { display: none; }
    .dutyfree-customer-panel { right: 0; bottom: 0; left: 0; width: 100%; height: min(78vh, 640px); border-radius: 22px 22px 0 0; transform: translateY(100%); }
    .dutyfree-customer-panel.is-open { transform: none; }
    .dutyfree-product-consult-card { margin: 10px 12px; padding: 13px 14px; }
    .dutyfree-product-consult-card span { max-width: 200px; }
    .dutyfree-product-consult { min-height: 40px; padding: 0 14px; }
    .dutyfree-spec-list { grid-template-columns: 1fr; }
    .user-register-container { min-height: calc(100vh - 120px); padding: 16px 12px 28px; background: linear-gradient(160deg,#17130e 0,#2b2115 34%,#f4f1eb 34%) !important; }
    .user-register-container .am-container { padding: 0; }
    .user-register-container .register-container { width: 100%; max-width: 440px; padding-top: 24px; }
    .user-register-container .register-top, .user-register-container .user-entrance-tabs { display: none; }
    .dutyfree-register-card { padding: 27px 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(14,10,5,.18); }
    .dutyfree-register-heading h1 { font-size: 25px; }
}

/* Force the same handset storefront shell on desktop browsers. */
@media (min-width: 641px) {
    html { min-height: 100%; background: #e9e4db; }
    body {
        width: 100%;
        max-width: 480px;
        min-height: 100vh;
        margin: 0 auto;
        overflow-x: hidden;
        box-shadow: 0 0 42px rgba(34, 27, 18, .16);
    }
    .header-top,
    .shop-navigation,
    .banner,
    .home-floor,
    .user-register-container { width: 100%; max-width: 480px; }
    .dutyfree-mobile-nav {
        right: auto;
        left: 50%;
        width: 480px;
        max-width: 100vw;
        transform: translateX(-50%);
    }
    .dutyfree-customer-panel {
        right: auto;
        left: 50%;
        width: 480px;
        max-width: 100vw;
        transform: translate(-50%, 100%);
    }
    .dutyfree-customer-panel.is-open { transform: translateX(-50%); }
    .mobile-navigation { display: none !important; }
}
