/* BYHD contact integration preview; existing transaction behavior is retained. */
:root{--ink:#183b3a;--muted:#526461;--line:#dce8e4;--accent:#c2410c;--blue:#0f766e;--navy:#0f766e;--surface:#fff;--brand:#0f766e;--brand-dark:#115e59;--page:#f3f8f7;--price:#c2410c;--notice:#fff3e8}
body{background:var(--page);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}
.product-price,.detail-price,.contact-number strong{font-family:inherit}
.product-buttons .button.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.product-buttons .button.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.purchase-rules h3:before,.purchase-rules section:before{display:none}
.purchase-rules section,.purchase-rules .refund-rule{padding-left:0}
.brand,.shop-heading h1,.product-info h2{color:var(--ink)}
.brand-image{width:56px;height:40px;object-fit:contain;background:#000;border-radius:6px;flex:none}
.header nav .nav-current{color:var(--brand)}.header nav .nav-current:after{background:var(--brand)}
.button.primary,.product-buttons .button,.mobile-dock .button{background:var(--brand);border-color:var(--brand);color:#fff}
.button.primary:hover,.product-buttons .button:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.button.outline,.header-contact{color:var(--brand);border-color:var(--brand)}
.product-price,.detail-price{color:var(--price)}
.category-tabs button[aria-pressed=true]{background:var(--brand);border-color:var(--brand)}
.support-channel{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:16px}
.support-channel h3{font-size:17px;color:var(--ink);margin:0 0 8px}
.support-channel .wechat-service{display:inline-flex;min-height:44px;align-items:center;justify-content:center;margin-top:12px;text-decoration:none}
.support-channel .contact-number{margin:10px 0}.support-channel .contact-help{font-size:13px;line-height:1.8;margin-top:12px}
.info-box{background:var(--notice);color:#8b3e16}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:600px){.brand{font-size:21px;gap:8px}.brand-image{width:45px;height:34px}.support-channel .wechat-service{width:100%}.modal-body{padding-bottom:24px}.support-channel{padding:14px 0}.contact-number strong{font-size:22px}}

/* Selected grouped-list layout. No changes to checkout API/state transitions. */
body{font-size:15px}.wrap{width:min(1180px,calc(100% - 48px))}
#home{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0 24px;align-items:start}
#catalog{display:contents}.shop-notice{grid-column:1/-1;grid-row:1;margin-top:18px}
.shop-heading{grid-column:1/-1;grid-row:2;padding:28px 0}.shop-heading .brand-eyebrow{font-size:12px;letter-spacing:1.8px;color:var(--brand);font-weight:650;margin:0 0 8px}.shop-heading h1{font-size:36px;letter-spacing:-1px}.shop-heading>div>p:last-child{font-size:16px}
.shop-body{grid-column:1;grid-row:3;min-width:0}.category-tabs{margin-bottom:16px;gap:8px}.category-tabs button{min-height:40px;padding:7px 16px;font-size:13px}
.product-grid{display:flex;flex-direction:column;gap:16px}.catalog-group{padding:18px 22px 6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0}
.catalog-group-heading{display:flex;align-items:center;gap:12px;margin:0 0 4px}.catalog-group-heading h2{font-size:23px;line-height:1.4;margin:0;color:var(--ink)}.catalog-group-heading>span{font-size:12px;color:var(--muted);background:#edf6f2;border-radius:16px;padding:3px 9px}
.product{display:grid;grid-template-columns:48px minmax(0,1fr) 108px 108px;gap:4px 14px;align-items:center;padding:17px 0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;overflow:visible;background:none;transform:none;transition:none}.product:hover{transform:none;box-shadow:none}
.cover-button{grid-column:1;grid-row:1/3;width:48px;height:48px;overflow:hidden;border-radius:9px}.product .product-cover.boutique-cover,.product .product-cover.custom-cover{width:48px;height:48px;aspect-ratio:1;min-height:0;padding:0;background:#f5f8f7;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px}.product .cover-motif,.product .cover-copy{display:none}.product .cover-app{width:44px;height:44px;border-radius:8px;margin:0;background:white;box-shadow:none}.product .cover-app img{width:38px;height:38px}.product .product-cover.custom-cover img{object-fit:contain}
.product-info{display:contents}.product-info h2{grid-column:2;grid-row:1;margin:0;font-size:15px;line-height:1.5;letter-spacing:0}.product-info h2 button{font-size:inherit;color:var(--ink)}.product-labels{grid-column:2;grid-row:2;min-height:0;margin:0;gap:5px}.delivery-label,.product-tag{font-size:11px;line-height:1.5;padding:2px 6px}
.product-price{grid-column:3;grid-row:1/3;text-align:right;font-size:20px;letter-spacing:-.3px;margin:0;color:var(--price);white-space:nowrap}.stock-line{display:none}.product-buttons{grid-column:4;grid-row:1/3;margin:0}.product-buttons .button{width:100%;min-height:42px;font-size:13px;border-radius:8px;padding:8px;gap:5px;white-space:nowrap}
#guide{grid-column:2;grid-row:3;background:white;border:1px solid var(--line);border-radius:14px;padding:22px;margin:0;position:sticky;top:20px}#guide>h2{font-size:22px;margin:0 0 22px;color:var(--ink)}.buy-steps{padding:0;margin:0;list-style:none;counter-reset:purchase}.buy-steps li{position:relative;padding:0 0 26px 42px;counter-increment:purchase;min-height:74px}.buy-steps li:before{content:counter(purchase);position:absolute;left:0;top:-2px;width:28px;height:28px;display:grid;place-items:center;background:var(--brand);color:white;border-radius:50%;font-weight:700;font-size:14px}.buy-steps li:last-child:before{background:var(--price)}.buy-steps strong{font-size:15px;color:var(--ink)}.buy-steps p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0 0}.guide-actions{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--line)}.guide-actions .button{min-height:44px;font-size:14px;white-space:nowrap}
.store-service-note{grid-column:1/-1;margin:20px 0}.faq-section{grid-column:1/-1;margin-top:8px}.mobile-dock{display:none!important}
dialog.product-modal .modal-header{position:sticky;top:0;z-index:3;background:var(--surface)}
dialog.product-modal .detail-checkout{position:sticky;bottom:-28px;z-index:2;background:var(--surface);padding:14px 22px;margin:20px -28px -28px;border-top:1px solid var(--line)}
.detail-checkout .single-variant{font-size:12px;line-height:1.6;margin:0 0 7px}.detail-checkout .checkout-price-row{display:flex;justify-content:space-between;align-items:center;margin:0}.detail-checkout .checkout-price-row>span{font-size:13px;color:var(--muted)}.detail-checkout .detail-price{font-size:29px;line-height:1.2;color:var(--price)}.detail-checkout .detail-price small{font-size:12px}.detail-checkout .detail-cta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:10px 0 4px}.detail-cta .button.primary{order:2}.detail-cta .contact-button{order:1}.detail-cta .button{min-height:46px;white-space:nowrap}.detail-checkout .purchase-hint{font-size:11px;line-height:1.5;margin:5px 0 0}
@media(max-width:1000px){#home{grid-template-columns:minmax(0,1fr) 240px;gap:0 16px}.catalog-group{padding:16px}.product{grid-template-columns:42px minmax(0,1fr) 95px 92px;gap:4px 10px}.cover-button{width:42px;height:42px}.product-price{font-size:18px}#guide{padding:18px}.header{gap:20px}.header nav{gap:20px;margin-left:0}}
@media(max-width:760px){.wrap{width:calc(100% - 28px)}#home{display:block}.shop-heading{padding:24px 0 18px;display:block}.shop-heading h1{font-size:28px}.shop-heading>div>p:last-child{font-size:14px}.catalog-tools{margin-top:16px;width:100%}.search{width:100%;max-width:none}.category-tabs{gap:7px}.category-tabs button{min-height:40px;padding:7px 13px}#guide{position:static;margin:22px 0}.buy-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.buy-steps li{padding-bottom:12px}.guide-actions{grid-template-columns:1fr 1fr}.guide-actions .button{font-size:12px}.catalog-group-heading h2{font-size:21px}.product{grid-template-columns:42px minmax(0,1fr) 94px;gap:4px 10px;padding:15px 0}.cover-button{grid-row:1/4}.product-info h2{grid-column:2/4;grid-row:1;font-size:14px}.product-labels{grid-column:2;grid-row:2}.product-price{grid-column:2;grid-row:3;text-align:left;font-size:19px;margin-top:4px}.product-buttons{grid-column:3;grid-row:2/4;align-self:end}.product-buttons .button{min-height:42px;font-size:12px}.product-tag{display:none}.product-cover .cover-word{display:none}}
@media(max-width:600px){dialog.product-modal{height:100dvh;max-height:100dvh;width:100vw;max-width:100vw;margin:0;border:0;border-radius:0;inset:0;overflow:auto}dialog.product-modal .modal-body{padding:20px}dialog.product-modal .detail-checkout{bottom:-20px;margin:20px -20px -20px;padding:12px 20px}.detail-checkout .detail-cta{gap:8px}.detail-checkout .detail-price{font-size:27px}.detail-identity{margin-bottom:18px}.detail-identity h2{font-size:22px}.product-explanation{margin-top:14px;padding:18px}.purchase-rules section{padding:17px 0}.support-channel .contact-number{gap:8px}.contact-number strong{letter-spacing:0}.shop-notice h2{display:none}}
@media(min-width:761px){.header{min-height:70px}.shop-notice{margin-top:14px;padding:10px 16px}.shop-heading{padding:20px 0}.shop-heading h1{font-size:32px}.shop-heading>div>p:last-child{font-size:15px}.category-tabs{display:none}.catalog-group{padding:14px 20px 0}.catalog-group-heading h2{font-size:21px}.product{padding:12px 0}.catalog-meta{margin-bottom:10px}}

/* Detail sheet: current catalogue values remain visible before payment. */
.identity-price{display:block;margin-top:8px;font-size:32px;line-height:1.2;letter-spacing:-.6px;color:var(--price)}
.purchase-summary{margin:20px 0;border-top:1px solid var(--line);padding-top:22px}
.modal-body .purchase-summary h3{font-size:20px;line-height:1.4;margin:0 0 12px;color:var(--ink)}
.purchase-summary dl{margin:0}.purchase-summary dl>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.6}
.purchase-summary dt{color:var(--muted)}.purchase-summary dd{margin:0;text-align:right;overflow-wrap:anywhere;color:var(--ink)}.purchase-summary dd.summary-price{color:var(--price);font-weight:700}
.modal-body .product-explanation{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0;margin:8px 0 0}
.modal-body .product-explanation h3{font-size:18px;color:var(--ink);margin:0 0 8px}.product-explanation h3 svg{display:none}.modal-body .product-explanation .product-detail-text{font-size:14px;font-weight:400;line-height:1.8;color:var(--muted)}
.modal-body .purchase-rules{margin:0}.modal-body .purchase-rules h3{font-size:18px;color:var(--ink);line-height:1.5}.modal-body .purchase-rules p{color:var(--muted);font-size:14px;line-height:1.8}
@media(max-width:600px){dialog.product-modal .detail-identity{margin:4px 0 18px;gap:14px;align-items:center}.detail-identity>img{width:72px;height:72px}.modal-body .detail-identity h2{font-size:19px;line-height:1.4;margin-bottom:5px}.identity-price{font-size:32px}.detail-availability{margin-top:8px;font-size:12px}.modal-body .purchase-summary{padding-top:18px;margin-top:16px}.purchase-summary dl>div{padding:10px 0}.modal-body .purchase-rules h3{font-size:18px}dialog.product-modal .detail-checkout{bottom:0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.detail-checkout .purchase-hint{display:none}}
/* Purchase and order flow: concise detail, visible next action. */
.purchase-method-note{padding:12px 14px;border-radius:8px;background:#eef7f3;color:#48635c;font-size:12px;line-height:1.7;margin:18px 0}
.wechat-order-help{padding:16px;background:#eef7f3;border:1px solid #cfe4db;border-radius:12px;margin:16px 0}.wechat-order-help code{display:block;overflow-wrap:anywhere;font-size:12px;margin:10px 0;color:#184d41}.wechat-order-help small{display:block;line-height:1.7;color:#536e66;margin-top:10px}.wechat-order-help .modal-actions{margin-top:12px}
#qq-contact-fields[hidden],#wechat-contact-fields[hidden]{display:none!important}
.order-progress{display:flex;list-style:none;padding:0;margin:10px 0 24px;gap:8px}.order-progress li{flex:1;text-align:center;color:#61756e;font-size:12px;border-bottom:3px solid #e1e9e5;padding:0 0 10px}.order-progress li span{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#e9efec;margin:0 auto 8px;color:#526960}.order-progress li.reached{border-color:#0f766e;color:#0f766e}.order-progress li.reached span{background:#0f766e;color:#fff}.order-progress li[aria-current=step]{font-weight:700}.order-status.status-paid{background:#fff4df;color:#8a500a}
.modal button:focus-visible,.modal a:focus-visible{outline:3px solid #249d89;outline-offset:3px}
@media(max-width:600px){.purchase-method-note{margin:12px 0 20px}.wechat-order-help{padding:14px}.wechat-order-help .modal-actions{display:grid;grid-template-columns:1fr}.wechat-order-help .button{min-height:44px}.order-progress{gap:5px}.order-progress li{font-size:11px}}
.order-security-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #b8d8d0;border-radius:16px;background:#f8fcfa;color:#183a35;box-shadow:0 16px 60px #12362f33}
.order-security-dialog::backdrop{background:#12362f77}
.order-security-dialog h2{font-size:21px;margin:0 0 12px}
.order-security-dialog p,.order-security-dialog small{line-height:1.6;overflow-wrap:anywhere}
.order-security-dialog small{display:block;margin-top:14px;color:#516b65}
.order-security-widget{min-height:140px;min-width:0;display:flex;justify-content:center}
.order-security-dialog .modal-actions{display:flex;flex-wrap:wrap;gap:10px}
.order-security-dialog button:focus-visible{outline:3px solid #d65b16;outline-offset:3px}
.order-security-status{min-height:1.6em;font-size:14px}
