:root {
    --dream-ink: #262b32;
    --dream-muted: #6b7280;
    --dream-line: #e3e6eb;
    --dream-blue: #2563b8;
    --dream-surface: #f6f7f9;
    --dream-green: #13835c;
    --dream-pink: #f052a5;
    --dream-orange: #ff781f;
}
* { box-sizing: border-box; }
body.dream-business { background-color: var(--dream-surface); background-position: center top; background-size: cover; background-attachment: fixed; background-repeat: no-repeat; color: var(--dream-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
body.dream-no-background { background-image: linear-gradient(135deg, #eef4fb, #fff6fa) !important; }
p { font-size: 14px; letter-spacing: 0; }
h1, h2, h3, h4, h5 { font-family: inherit; letter-spacing: 0; }
a { color: var(--dream-blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--dream-blue); outline-offset: 3px; }
.dream-business .container { max-width: 1320px; }
.dream-business .navbar { background: #fff !important; border-bottom: 1px solid var(--dream-line); padding: 14px 0; box-shadow: none; }
.dream-business .navbar > .container { gap: 12px; }
.dream-business .navbar-brand { font-size: 18px; margin: 0; }
.dream-business .navbar-brand span { color: var(--dream-ink) !important; font-weight: 600 !important; }
.dream-business .navbar-brand img { border-radius: 6px !important; box-shadow: none !important; }
.dream-business .navbar .row { margin: 0; align-items: center; flex-wrap: wrap; }
.dream-business .nav-link { color: #535c68; font-size: 14px; font-weight: 500 !important; }
.dream-business .nav-link:hover { color: var(--dream-blue); }
.dream-shop { padding: 28px 0 48px; }
.dream-shop-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
.dream-sidebar { position: sticky; top: 24px; min-width: 0; padding: 14px; max-height: calc(100vh - 48px); overflow: auto; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.75); border-radius: 8px; box-shadow: 0 8px 28px rgba(40,48,63,.1); backdrop-filter: blur(12px); }
.dream-sidebar h2, .dream-notice h2, .dream-catalog-header h2, .pay-content h2, .dream-description-heading { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; }
.dream-sidebar h2 { padding: 10px 8px 18px; color: var(--dream-muted); }
.dream-sidebar h2 i { margin-right: 6px; }
.dream-category-tree, .dream-category-children { list-style: none; margin: 0; padding: 0; }
.dream-category-node { min-width: 0; }
.dream-category-row { display: flex; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 6px; margin-bottom: 4px; }
.dream-category-row:hover { background: #ebedf1; }
.dream-category-row.checked { background: #e8effa; color: var(--dream-blue); }
.dream-category-toggle, .dream-category-spacer { flex: 0 0 24px; width: 24px; height: 32px; }
.dream-category-toggle { border: 0; background: transparent; color: var(--dream-muted); }
.dream-category-toggle i { transition: transform .15s; }
.is-open > .dream-category-row .dream-category-toggle i { transform: rotate(90deg); }
.dream-category-select { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 10px 8px 10px 0; border: 0; background: transparent; color: inherit; text-align: left; font-size: 14px; line-height: 1.5; }
.dream-category-select img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; border-radius: 3px; }
.dream-category-select > span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.dream-category-select small { font-size: 12px; color: var(--dream-muted); font-variant-numeric: tabular-nums; }
.dream-category-children { display: none; margin: 2px 0 8px 13px; padding-left: 6px; border-left: 1px solid var(--dream-line); }
.is-open > .dream-category-children { display: block; }
.dream-catalog { min-width: 0; }
.dream-notice { padding: 20px 22px; border: 1px solid rgba(255,255,255,.75); margin-bottom: 24px; border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(40,48,63,.08); backdrop-filter: blur(12px); }
.dream-notice h2 { color: var(--dream-muted); margin-bottom: 8px; }
.dream-notice > div { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.dream-notice p:last-child { margin-bottom: 0; }
.dream-notice img { max-width: 100%; height: auto; }
.dream-catalog-header { position: static; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 18px; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 5px 20px rgba(40,48,63,.08); backdrop-filter: blur(12px); }
.dream-catalog-header h2 { font-size: 18px; overflow-wrap: anywhere; }
.dream-search { display: flex; width: 260px; max-width: 100%; flex-shrink: 0; margin-left: auto; border: 1px solid #d4d9e1; border-radius: 6px; overflow: hidden; background: #fff; }
.dream-search input { min-width: 0; width: 100%; border: 0; padding: 9px 12px; font-size: 14px; background: transparent; }
.dream-search:focus-within { border-color: var(--dream-blue); box-shadow: 0 0 0 2px #2563b818; }
.dream-search input:focus { outline: 0; }
.dream-search button { width: 40px; flex-shrink: 0; background: transparent; border: 0; color: var(--dream-muted); }
.dream-stock-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 11px; border: 1px solid #d4d9e1; border-radius: 6px; background: #fff; color: #596372; font-size: 13px; white-space: nowrap; }
.dream-stock-toggle:hover, .dream-stock-toggle.is-active { border-color: var(--dream-pink); color: var(--dream-pink); background: #fff7fb; }
.dream-products:not(.show-sold-out) .dream-sold-out, .dream-products:not(.show-sold-out) .dream-section.dream-no-available { display: none; }
.dream-back-to-top { position: fixed; z-index: 900; right: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid #f1c3dc; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--dream-pink); box-shadow: 0 8px 24px rgba(50,55,68,.18); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .18s, transform .18s, visibility .18s, background-color .18s; }
.dream-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.dream-back-to-top:hover { color: #fff; background: var(--dream-pink); }
.dream-table-wrap { width: 100%; }
.dream-sections { display: grid; gap: 24px; }
.dream-section { scroll-margin-top: 82px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(40,48,63,.1); backdrop-filter: blur(12px); }
.dream-section > h2 { margin: 0; padding: 16px 18px; border-bottom: 1px solid #f0dfe9; background: #fff8fb; color: #4d5360; font-size: 18px; font-weight: 650; }
.dream-product-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: 14px; }
.dream-product-table th { background: #eef0f3; color: var(--dream-muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--dream-line); }
.dream-product-table td { padding: 10px 16px; border-bottom: 1px solid var(--dream-line); vertical-align: middle; overflow-wrap: anywhere; }
.dream-product-table th:first-child { text-align: left; width: auto; }
.dream-product-table th:nth-child(2) { width: 94px; }
.dream-product-table th:nth-child(3) { width: 88px; }
.dream-product-table th:nth-child(4) { width: 104px; }
.dream-product-table th:not(:first-child), .dream-product-table td:not(:first-child) { text-align: center; }
.dream-product-table tbody tr:hover { background: #fafbfd; }
.dream-product-table tbody tr:hover .dream-product-name > span { color: var(--dream-blue); background: #edf4ff; border-radius: 4px; }
.dream-product-name { display: flex; align-items: center; gap: 12px; font-weight: 500; line-height: 1.65; }
.dream-product-name > span { min-width: 0; padding: 3px 6px; margin: -3px -6px; transition: color .15s, background-color .15s; }
.dream-product-name img { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; border-radius: 4px; }
.dream-product-price { color: var(--dream-pink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dream-product-stock { color: var(--dream-green); font-size: 13px; }
.dream-product-stock.is-empty { color: var(--dream-muted); }
.commodity-click { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 76px; min-height: 34px; padding: 6px 8px; border: 1px solid #cbd8ec; border-radius: 5px; color: var(--dream-blue); background: #fff; font-size: 13px; white-space: nowrap; }
.commodity-click:hover:not(:disabled) { color: #fff; border-color: var(--dream-blue); background: var(--dream-blue); }
.commodity-click:disabled { background: #f3f4f6; color: #8b929d; border-color: var(--dream-line); }
.dream-empty { text-align: center !important; color: var(--dream-muted); padding: 48px 16px !important; }
.dream-retry { border: 0; background: none; color: var(--dream-blue); }
.layui-layer { background: #fff !important; border-radius: 8px !important; box-shadow: 0 12px 48px #20273426 !important; }
.layui-layer-hui { color: var(--dream-ink) !important; }
body.dream-modal-open { overflow: hidden; }
.dream-detail-layer { width: 100vw; height: 100vh !important; height: 100dvh !important; max-width: none; max-height: none; top: 0 !important; left: 0 !important; transform: none !important; border-radius: 0 !important; }
.dream-detail-layer .layui-layer-content { height: 100% !important; overflow: hidden !important; border-radius: 0; padding: 24px; background: #f1f4f8; }
.dream-detail-layer .open-commodity { display: flex !important; flex-direction: column; height: 100%; width: 100%; max-width: 1600px; margin: 0 auto; overflow: hidden; border: 1px solid #dce2ea; border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(36,45,60,.1); }
.dream-detail-layer .dream-detail-header { flex: 0 0 72px; display: flex; align-items: center; padding-right: 84px; }
.dream-detail-layer .commodity-di { flex: 1; min-height: 0; overflow: hidden; }
.dream-detail-layer .layout-content { height: 100%; min-height: 0; }
.dream-detail-layer .dream-product-grid { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 0; padding: 0; align-items: stretch; max-width: 1600px; margin: 0 auto; }
.dream-detail-layer .dream-description, .dream-detail-layer .dream-purchase { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 32px; scrollbar-gutter: stable; }
.dream-detail-layer .dream-purchase { border-left: 1px solid var(--dream-line); }
.dream-detail-layer .layui-layer-setwin { top: 34px; right: max(36px, calc((100vw - 1600px) / 2 + 12px)); width: 54px; height: 54px; }
.dream-detail-layer .layui-layer-setwin .layui-layer-close2 { top: 0; right: 0; width: 54px; height: 54px; border-radius: 50%; background: #292b2f !important; opacity: 1; }
.dream-detail-layer .layui-layer-setwin .layui-layer-close2::before, .dream-detail-layer .layui-layer-setwin .layui-layer-close2::after { content: ''; position: absolute; left: 15px; top: 25px; width: 24px; height: 3px; background: #fff; transform: rotate(45deg); }
.dream-detail-layer .layui-layer-setwin .layui-layer-close2::after { transform: rotate(-45deg); }
.open-commodity { padding: 0; color: var(--dream-ink); }
.dream-detail-header { padding: 17px 64px 17px 32px; background: #fff8fb; border-bottom: 1px solid #f0dfe9; font-size: 14px; font-weight: 500; }
.dream-detail-header i { margin-right: 6px; color: var(--dream-muted); }
.dream-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; margin: 0; padding: 32px; align-items: start; }
.dream-description, .dream-purchase { min-width: 0; }
.commodity_name { text-align: left; margin: 0 0 16px; padding: 0; font-size: 21px; font-weight: 600; line-height: 1.6; color: var(--dream-ink); overflow-wrap: anywhere; }
.share_url { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d4d9e1; background: #fff; color: var(--dream-muted); font-size: 13px; padding: 8px 12px; border-radius: 5px; margin: 0 0 28px; max-width: 100%; text-align: left; }
.share_url:hover { border-color: var(--dream-blue); color: var(--dream-blue); }
.dream-description-heading { margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--dream-line); color: var(--dream-muted); }
.description { font-size: 14px; line-height: 1.8; color: #4c5562; overflow-wrap: anywhere; }
.description img, .description video, .description iframe { max-width: 100%; }
.description img { height: auto; }
.description table { max-width: 100%; }
.description pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f5f7; padding: 16px; border-radius: 6px; font-size: 12px; }
.description h2, .description h3, .description h4 { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
.description h2:first-child, .description h3:first-child { margin-top: 0; }
.description p { font-size: 14px; line-height: 1.8; margin: 0 0 14px; }
.dream-purchase { padding-left: 28px; border-left: 1px solid var(--dream-line); }
.commodity-di .general { font-size: 13px; line-height: 1.7; color: var(--dream-muted); margin-bottom: 18px; }
.dream-unit-price { display: flex; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--dream-line); font-size: 13px; color: var(--dream-muted); flex-wrap: wrap; }
.commodity-di .price { color: var(--dream-pink); font-size: 28px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.commodity-di .price_tips { display: block; font-size: 12px; font-weight: 400; color: var(--dream-muted); }
.delivery_way_hand, .delivery_way_auto { display: inline-block; font-size: 12px; line-height: 1.6; padding: 2px 7px; border-radius: 4px; background: #e8f5ef; color: var(--dream-green); }
.delivery_way_hand { color: #99700f; background: #fff4d9; }
.race-view > span, .sku-view .general > span { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.race-click { display: inline-block; margin: 0; padding: 6px 10px; border: 1px solid #d8dde5; border-radius: 5px; background: #fff; color: #515b68; font-size: 13px; cursor: pointer; box-shadow: none; transition: border-color .15s, background .15s; overflow-wrap: anywhere; }
.race-click:hover { border-color: var(--dream-blue); }
.race-click.checked { border-color: var(--dream-blue); background: #edf3fc; color: var(--dream-blue); }
.race-click .badge-money { position: static; margin-left: 5px; padding: 0; color: var(--dream-green); font-size: 12px; background: none; border-radius: 0; box-shadow: none; font-weight: 500; }
.race-click:hover .badge-money { transform: none; }
.dream-field > label, .dream-quantity > label { display: block; margin: 0 0 8px; font-size: 13px; color: #596372; }
.commodity-di .acg-input, .commodity-di select, .commodity-di textarea, .open-query input, .open-query textarea { max-width: 100%; border: 1px solid #cfd5df !important; border-radius: 5px !important; background: #fff !important; color: var(--dream-ink); padding: 9px 11px !important; font-size: 14px; min-height: 40px; }
.commodity-di .dream-field > input { display: block; width: 100%; }
.commodity-di input:focus, .commodity-di textarea:focus, .commodity-di select:focus { outline: 0; border-color: var(--dream-blue) !important; box-shadow: 0 0 0 3px #2563b817; }
.commodity-di input::placeholder { color: #939aa5; }
.dream-quantity { padding: 16px; border: 2px solid var(--dream-orange); border-radius: 8px; background: #fff5e8; margin: 22px 0; }
.dream-quantity > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.purchase_num { width: 104px; }
.stock { display: inline-block; padding: 3px 8px; color: var(--dream-green) !important; background: #e5f2ec !important; border-radius: 4px; font-size: 12px; }
.card_count { color: var(--dream-green); }
.card_count_empty, .card_count_unknown { color: var(--dream-muted); }
.card_count_immediately, .seckill_start_time, .draft_premium { color: #ad6b14; }
.seckill_end_time { color: var(--dream-green); }
.captcha_status .captcha-input { width: 55%; display: inline-block; }
.captcha { max-width: 40%; height: 40px; cursor: pointer; margin-left: 8px; }
.purchase_count, .draft_status { display: none; }
.lot, .draft_status { font-size: 12px; line-height: 1.8; color: var(--dream-muted); }
.draft_status button { border: 1px solid #cfd5df; color: var(--dream-blue); background: #fff; border-radius: 4px; padding: 4px 8px; }
.draft_status button:disabled { color: #a2a8b1; }
.dream-order-summary { padding: 20px 0; border-top: 1px solid var(--dream-line); margin-top: 24px; }
.dream-order-summary > span { display: block; font-size: 13px; color: var(--dream-muted); margin-bottom: 6px; }
.trade_amount { color: var(--dream-pink); font-size: 36px; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pay-content { border-top: 1px solid var(--dream-line); padding-top: 18px; margin: 0; }
.pay-content h2 { color: #596372; font-size: 13px; }
.pay_list { display: grid; gap: 10px; padding-top: 12px; }
.pay-button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid #d4dbe6; border-radius: 6px; background: #fff; color: #455265; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none !important; overflow-wrap: anywhere; }
.pay-button:hover { color: var(--dream-blue); border-color: var(--dream-blue); background: #f1f6fd; }
.pay-button img { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; }
.need-login { padding: 12px 0; font-size: 13px; color: #a56a13; line-height: 1.7; }
.dream-service { margin: 18px 0 0 !important; display: flex; gap: 16px; flex-wrap: wrap; }
.qq-service, .web-service { color: var(--dream-muted); font-size: 12px; }
.open-query { padding: 28px; }
.open-query .search-query, .open-query .getCard, .open-query .getCard:hover { border: 0; background: var(--dream-blue); color: #fff; border-radius: 5px; padding: 8px 12px; }
.open-query .search-page, .open-query .hr-top { border-bottom: 1px solid var(--dream-line); padding-bottom: 16px; margin-bottom: 16px; }
.open-query .card-textarea { width: 100%; }
.content-icp { color: var(--dream-muted); font-size: 12px; padding: 20px; text-align: center; }
.acg-lang { position: relative; display: inline-block; }
.acg-lang-toggle { cursor: pointer; }
.acg-lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200; display: none; min-width: 140px; padding: 6px 0; border: 1px solid var(--dream-line); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px #20273418; }
.acg-lang.is-open .acg-lang-menu { display: block; }
.acg-lang .acg-lang-menu a { display: block; padding: 8px 16px; color: #535c68; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.acg-lang .acg-lang-menu a:hover, .acg-lang .acg-lang-menu a.active { background: #edf3fc; color: var(--dream-blue); }
@media (max-width: 991px) {
    .dream-shop-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
    .dream-product-grid { grid-template-columns: minmax(0, 1fr) 310px; padding: 24px; gap: 24px; }
    .dream-purchase { padding-left: 20px; }
    .dream-product-table td, .dream-product-table th { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 767px) {
    .dream-detail-layer .layui-layer-content { padding: 8px; }
    .dream-detail-layer .layui-layer-setwin { top: 18px; right: 18px; }
    .dream-detail-layer .dream-product-grid { display: block; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 20px; }
    .dream-detail-layer .dream-description, .dream-detail-layer .dream-purchase { overflow: visible; padding: 24px 0; scrollbar-gutter: auto; }
    .dream-detail-layer .dream-purchase { border-left: 0; border-top: 1px solid var(--dream-line); }
    .dream-shop { padding-top: 18px; }
    .dream-shop-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .dream-sidebar { position: static; padding: 12px; max-height: 230px; }
    .dream-sidebar h2 { padding: 0 8px 10px; }
    .dream-catalog-header { flex-wrap: wrap; }
    .dream-search { width: 100%; }
    .dream-stock-toggle { width: 100%; }
    .dream-notice { margin-bottom: 18px; padding-top: 0; }
    .dream-product-table th:nth-child(2) { width: 60px; }
    .dream-product-table th:nth-child(3) { width: 54px; }
    .dream-product-table th:nth-child(4) { width: 70px; }
    .dream-product-table td, .dream-product-table th { padding: 8px 6px; font-size: 12px; }
    .dream-product-name { gap: 6px; align-items: flex-start; }
    .dream-product-name img { width: 22px; height: 22px; }
    .commodity-click { width: 58px; font-size: 12px; gap: 3px; padding: 5px 3px; }
    .dream-detail-header { padding: 16px 20px; }
    .dream-product-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px 20px; }
    .commodity_name { font-size: 19px; }
    .dream-purchase { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--dream-line); }
    .dream-business .navbar { padding: 10px 0; }
    .dream-business .navbar-brand { font-size: 16px; }
    .dream-business .nav-link { padding: 8px; font-size: 13px; }
    .acg-lang-toggle [data-lang-label] { display: none; }
}
@media (max-width: 575px) {
    .dream-back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
    .dream-product-table thead { display: none; }
    .dream-product-table tbody { display: block; }
    .dream-product-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--dream-line); }
    .dream-product-table td { border: 0; padding: 0; font-size: 13px; }
    .dream-product-table td:first-child { grid-column: 1 / -1; padding-bottom: 6px; }
    .dream-product-table td:nth-child(2) { text-align: left; }
    .dream-product-table td:last-child { text-align: right; }
    .dream-product-table .dream-empty { grid-column: 1 / -1; }
    .dream-product-name { font-size: 14px; line-height: 1.7; }
    .commodity-click { width: 70px; min-height: 34px; }
    .dream-business .navbar-brand { white-space: normal; max-width: 100%; }
}
