:root {
  --ink: #202a31;
  --ink-soft: #465762;
  --muted: #788993;
  --line: #dce8ef;
  --line-soft: #eaf2f6;
  --surface: #ffffff;
  --surface-soft: #f7fbfd;
  --ice: #eef8ff;
  --blue: #2388ef;
  --teal: #0d8e83;
  --teal-dark: #08756d;
  --shadow-sm: 0 8px 26px rgba(48, 85, 109, .08);
  --shadow-md: 0 18px 48px rgba(48, 85, 109, .13);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: 1480px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--teal); border-radius: 8px; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .16em; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .cart-button:focus-visible, .nav-toggle:focus-visible, .category-card:focus-visible, .filter-chips button:focus-visible, .drawer-close:focus-visible, .icon-button:focus-visible, .clear-cart-button:focus-visible { outline: 3px solid rgba(35, 136, 239, .25); outline-offset: 3px; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--teal), #0aa093); box-shadow: 0 10px 24px rgba(13, 142, 131, .2); }
.button-primary:hover { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); box-shadow: 0 14px 30px rgba(13, 142, 131, .26); }
.button-outline { color: var(--teal-dark); background: #fff; border-color: var(--teal); }
.button-link { min-height: auto; padding: 12px 0; color: var(--blue); background: transparent; }
.button-light { color: var(--teal-dark); background: #fff; box-shadow: 0 12px 30px rgba(1, 55, 58, .18); }
.button-muted { color: var(--ink-soft); background: #f1f5f7; }
.text-button { padding: 8px 0; border: 0; color: var(--muted); background: transparent; font-size: 14px; cursor: pointer; }
.text-button span { margin-left: 5px; color: var(--teal); }

.site-header { position: sticky; z-index: 50; top: 0; height: var(--header-height); background: rgba(255, 255, 255, .92); border-bottom: 1px solid rgba(219, 232, 240, .9); box-shadow: 0 6px 22px rgba(42, 75, 94, .04); backdrop-filter: blur(18px); }
.header-inner { width: min(1600px, calc(100% - 48px)); height: 100%; display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.brand { flex: 0 0 auto; width: 124px; }
.brand img { width: 120px; height: 46px; object-fit: contain; }
.primary-nav { flex: 1; display: flex; align-items: stretch; justify-content: center; gap: clamp(16px, 1.8vw, 34px); height: 100%; white-space: nowrap; }
.primary-nav a { position: relative; display: flex; align-items: center; color: #303b42; font-size: clamp(13px, .88vw, 16px); transition: color .18s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--teal); }
.primary-nav a.active::after { content: ""; position: absolute; right: 2px; bottom: 9px; left: 2px; height: 3px; background: var(--teal); border-radius: 99px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-merchant { min-height: 40px; padding-inline: 20px; }
.cart-button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 2px; border: 0; background: transparent; cursor: pointer; }
.cart-badge { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; color: white; background: var(--teal); border-radius: 999px; font-size: 11px; font-weight: 800; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 3px; }

.hero { position: relative; overflow: hidden; min-height: 470px; padding: 58px 0 0; background: radial-gradient(circle at 75% 18%, rgba(140, 213, 255, .25), transparent 28%), linear-gradient(112deg, #f8fcff 0%, #eef7ff 58%, #fafdff 100%); }
.hero::before { content: ""; position: absolute; z-index: 0; width: 660px; height: 300px; right: 16%; top: 44px; background: linear-gradient(90deg, transparent, rgba(121, 198, 255, .18), transparent); filter: blur(20px); transform: rotate(-4deg); }
.hero::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: min(var(--shell), calc(100% - 64px)); transform: translateX(-50%); background-image: linear-gradient(112deg, rgba(248, 252, 255, .76), rgba(238, 247, 255, .58) 58%, rgba(250, 253, 255, .7)), url("../product_pic/backgroud.png"); background-repeat: no-repeat; background-position: center; background-size: cover; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; min-height: 292px; }
.hero-copy { padding: 10px 0 28px 34px; }
.hero-copy h1 { margin: 0; color: #242c31; font-size: clamp(46px, 4.1vw, 76px); line-height: 1.07; letter-spacing: -.045em; }
.hero-copy h1 span { white-space: nowrap; }
.hero-subtitle { margin: 16px 0 0; color: #33434d; font-size: clamp(17px, 1.25vw, 22px); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 38px; margin-top: 30px; }
.hero-visual { position: relative; justify-self: stretch; min-width: 0; }
.hero-visual img { width: 100%; max-height: 292px; object-fit: cover; object-position: center; mix-blend-mode: multiply; border-radius: 80px 20px 20px 80px; }
.signal-dot { position: absolute; width: 12px; height: 12px; border: 3px solid white; background: #45a9f6; border-radius: 50%; box-shadow: 0 0 0 8px rgba(69, 169, 246, .12); animation: pulse 2.8s infinite; }
.signal-dot-one { top: 23%; right: 22%; }
.signal-dot-two { right: 35%; bottom: 20%; animation-delay: 1.1s; }
.hero-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(76, 160, 240, .18); border-radius: 50%; transform: rotate(-8deg); }
.hero-orbit-one { width: 720px; height: 200px; right: 8%; bottom: 115px; }
.hero-orbit-two { width: 560px; height: 150px; right: 13%; bottom: 140px; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.4); opacity: .55; } }
.trust-bar { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 8px 0 0 34px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(219, 232, 240, .85); border-radius: 15px; box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.trust-bar > div { display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; align-items: center; padding: 16px 24px; border-right: 1px solid var(--line-soft); }
.trust-bar > div:last-child { border-right: 0; }
.trust-icon { grid-row: 1 / 3; display: block; width: 44px; height: 44px; object-fit: contain; }
.trust-bar strong { font-size: 15px; }
.trust-bar small { margin-top: 2px; color: var(--muted); font-size: 11px; }

section { scroll-margin-top: calc(var(--header-height) + 20px); }
.category-section { padding: 62px 0 70px; background: #fbfdfe; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 2.4vw, 42px); letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.compact-heading { margin-bottom: 22px; }
.compact-heading h2 { font-size: 30px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-card { display: grid; grid-template-columns: 50px 1fr 16px; align-items: center; gap: 11px; min-width: 0; padding: 15px; text-align: left; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover, .category-card.is-selected { transform: translateY(-3px); border-color: rgba(13, 142, 131, .45); box-shadow: 0 14px 32px rgba(48, 85, 109, .12); }
.category-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #127fea; background: linear-gradient(145deg, #f3f9ff, #e4f0ff); border-radius: 13px; font-size: 24px; }
.category-icon img { width: 34px; height: 34px; display: block; object-fit: contain; }
.category-card span:nth-child(2) { min-width: 0; }
.category-card strong, .category-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-card strong { font-size: 15px; }
.category-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.category-card b { color: #98a8b2; font-size: 25px; font-weight: 400; }

.merchant-section { padding: 76px 0 84px; background: linear-gradient(180deg, #f3f9fd, #fff); }
.merchant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.merchant-card { overflow: hidden; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.merchant-card[data-store-page] { cursor: pointer; }
.merchant-card[data-store-page]:focus-visible { outline: 3px solid rgba(35, 136, 239, .25); outline-offset: 4px; }
.merchant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.merchant-banner { position: relative; overflow: hidden; aspect-ratio: 3.5 / 1; background: #dcecf6; }
.merchant-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.merchant-card:hover .merchant-banner img { transform: scale(1.025); }
.verified-badge { position: absolute; top: 12px; right: 12px; padding: 6px 10px; color: #fff; background: #2188ef; border-radius: 7px; font-size: 11px; font-weight: 700; }
.merchant-body { display: grid; grid-template-columns: 48px 1fr 36px; align-items: center; gap: 13px; padding: 18px 20px 9px; }
.merchant-logo { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #177ac6, #164d8f); border-radius: 50%; font-size: 21px; font-weight: 900; }
.merchant-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.merchant-logo-dark { background: #1d354a; }
.merchant-logo-green { background: linear-gradient(135deg, #198b86, #0f5e62); }
.merchant-body h3 { margin: 0; font-size: 18px; }
.merchant-body p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal); background: #eff9f8; border: 0; border-radius: 50%; cursor: pointer; }
.merchant-card ul { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 4px 20px 20px; color: #71838e; font-size: 12px; list-style: none; }
.merchant-card li::before { content: "✓"; margin-right: 5px; color: var(--teal); font-weight: 800; }

.product-section { padding: 82px 0 100px; background: #fff; }
.product-heading { align-items: center; }
.filter-chips { display: inline-flex; gap: 7px; padding: 5px; background: #f2f7f9; border-radius: 12px; }
.filter-chips button { min-width: 60px; padding: 9px 13px; border: 0; color: var(--muted); background: transparent; border-radius: 9px; cursor: pointer; }
.filter-chips button.is-active { color: white; background: var(--teal); box-shadow: 0 6px 16px rgba(13, 142, 131, .18); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card.is-hidden { display: none; }
.product-image-wrap { position: relative; overflow: hidden; height: 224px; display: grid; place-items: center; padding: 26px 18px 18px; background: linear-gradient(155deg, #fbfdff, #f2f8fc); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.04); }
.product-tag { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 9px; color: #118a80; background: #e9f8f6; border-radius: 7px; font-size: 11px; font-weight: 800; }
.product-tag-blue { color: #2078ca; background: #e8f3ff; }
.product-tag-green { color: #33835b; background: #eaf8ef; }
.product-tag-violet { color: #725bbb; background: #f1edff; }
.quick-add { position: absolute; right: 16px; bottom: 14px; left: 16px; padding: 11px 16px; color: white; background: rgba(13, 142, 131, .94); border: 0; border-radius: 9px; font-weight: 700; cursor: pointer; transform: translateY(140%); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.product-card:hover .quick-add, .quick-add:focus-visible { transform: translateY(0); opacity: 1; }
.product-info { padding: 19px 20px 22px; }
.product-merchant { margin: 0 0 7px; color: var(--teal); font-size: 11px; font-weight: 700; }
.product-info h3 { margin: 0; font-size: 18px; }
.product-desc { min-height: 38px; margin: 9px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.product-bottom strong { color: var(--teal); font-size: 24px; }
.product-bottom strong small { margin-right: 2px; font-size: 13px; }
.product-bottom button, .product-bottom a { padding: 6px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.product-bottom button:hover, .product-bottom a:hover { color: var(--teal); }
.empty-state { padding: 70px 24px; text-align: center; background: #f7fbfd; border: 1px dashed #cbdce6; border-radius: var(--radius-md); }
.empty-state > div { color: var(--blue); font-size: 46px; }
.empty-state h3 { margin: 12px 0 8px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }

.merchant-cta { position: relative; overflow: hidden; color: white; background: linear-gradient(120deg, #075a59, #0d8e83 58%, #1aa59b); }
.merchant-cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: 3%; top: -270px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.025); }
.merchant-cta-inner { position: relative; z-index: 1; min-height: 240px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.merchant-cta .eyebrow { color: #9fe7df; }
.merchant-cta h2 { max-width: 800px; margin: 0; font-size: clamp(30px, 2.6vw, 44px); }
.merchant-cta p:not(.eyebrow) { margin: 14px 0 0; color: rgba(255,255,255,.75); }

.site-footer { padding: 64px 0 26px; background: #f3f7f9; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr .95fr 1.4fr; gap: 50px; }
.footer-brand img { width: 124px; margin-bottom: 14px; }
.footer-grid h3 { margin: 0 0 18px; font-size: 15px; }
.footer-grid p, .footer-grid a, .footer-grid button { display: block; margin: 0 0 10px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--teal); }
.footer-brand p { max-width: 260px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 46px; padding-top: 22px; color: #93a1a9; border-top: 1px solid #dce5ea; font-size: 11px; }

.page-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(16, 34, 43, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.page-backdrop.is-visible { opacity: 1; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(500px, 100vw); height: 100dvh; display: flex; flex-direction: column; background: white; box-shadow: -24px 0 60px rgba(23, 49, 65, .18); transform: translateX(105%); visibility: hidden; transition: transform .26s ease, visibility .26s; }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 34px 36px 24px; border-bottom: 1px solid var(--line-soft); }
.drawer-header h2, .dialog-header h2 { margin: 0; font-size: 28px; }
.drawer-header p:not(.drawer-kicker), .dialog-header p:not(.drawer-kicker) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.drawer-kicker { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.drawer-close { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #5e6b73; background: #f3f7f9; border: 0; border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer; }
.drawer-form { overflow-y: auto; padding: 26px 36px 36px; }
.field { display: block; margin-bottom: 20px; }
.field > span:first-child { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.field b { color: #e05d5d; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); background: #fff; border: 1px solid #ccdbe4; border-radius: 9px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 142, 131, .1); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d65757; box-shadow: 0 0 0 3px rgba(214, 87, 87, .08); }
.upload-zone { position: relative; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: var(--muted); text-align: center; background: #fbfdfe; border: 1.5px dashed #b8cbd7; border-radius: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.upload-zone:hover, .upload-zone.is-dragging { background: #f1faf9; border-color: var(--teal); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 8px; color: var(--teal); background: #eaf7f5; border-radius: 50%; font-size: 28px; }
.upload-zone strong { color: var(--ink-soft); font-size: 14px; }
.upload-zone small { margin-top: 7px; font-size: 11px; }
.upload-preview { position: absolute; inset: 8px; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 15px; padding: 12px; text-align: left; background: #fff; border-radius: 9px; }
.upload-preview img { width: 110px; height: 138px; object-fit: contain; background: #f5f8fa; border-radius: 7px; }
.upload-preview em { overflow: hidden; color: var(--ink-soft); font-size: 12px; font-style: normal; text-overflow: ellipsis; }
.agreement { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.agreement input { margin-top: 2px; accent-color: var(--teal); }
.agreement a { color: var(--teal); }
.form-message { min-height: 20px; margin: 0 0 8px; color: #c84949; font-size: 12px; }
.form-message.is-success { color: var(--teal); }
.submit-button { width: 100%; }
.privacy-note { margin: 12px 0 0; color: #9aa7af; font-size: 10px; text-align: center; }

.cart-content { flex: 1; overflow-y: auto; padding: 24px 30px; }
.cart-empty { padding: 90px 20px; color: var(--muted); text-align: center; }
.cart-empty span { display: block; margin-bottom: 14px; font-size: 46px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 92px; height: 76px; object-fit: contain; background: #f6fafc; border-radius: 10px; }
.cart-item h3 { margin: 2px 0 8px; font-size: 14px; }
.cart-item strong { color: var(--teal); font-size: 14px; }
.quantity-control { display: flex; align-items: center; align-self: end; gap: 10px; }
.quantity-control button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; }
.remove-item { align-self: start; padding: 3px; color: #a2afb6; background: transparent; border: 0; cursor: pointer; }
.cart-footer { padding: 20px 30px 28px; background: #fff; border-top: 1px solid var(--line-soft); }
.cart-footer > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.cart-footer strong { color: var(--teal); font-size: 26px; }
.clear-cart-button { min-height: 32px; padding: 0 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.clear-cart-button:hover:not(:disabled) { color: #c44f4f; border-color: #e7aaaa; background: #fff8f8; }
.clear-cart-button:disabled { cursor: not-allowed; opacity: .45; }
.cart-footer .button { width: 100%; }

.procurement-dialog { width: min(780px, calc(100% - 30px)); max-height: calc(100dvh - 32px); padding: 0; background: #fff; border: 0; border-radius: 24px; box-shadow: 0 28px 80px rgba(17, 44, 59, .24); }
.procurement-dialog::backdrop { background: rgba(16, 34, 43, .42); backdrop-filter: blur(4px); }
.dialog-shell { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px 34px 32px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.field-wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; max-width: min(420px, calc(100% - 30px)); padding: 12px 18px; color: white; background: rgba(27, 43, 52, .94); border-radius: 10px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1380px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 13px; }
  .header-actions { gap: 12px; }
  .header-merchant { padding-inline: 13px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1120px) {
  :root { --header-height: 66px; }
  .page-shell { width: min(var(--shell), calc(100% - 40px)); }
  .header-inner { width: calc(100% - 32px); }
  .nav-toggle { display: block; order: 3; margin-left: auto; }
  .primary-nav { position: fixed; top: var(--header-height); right: 16px; left: 16px; height: auto; max-height: calc(100dvh - var(--header-height) - 20px); display: grid; justify-content: stretch; gap: 0; padding: 12px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .18s ease, transform .18s ease; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav a { min-height: 44px; padding: 0 12px; border-radius: 9px; }
  .primary-nav a:hover, .primary-nav a.active { background: #eef8f7; }
  .primary-nav a.active::after { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .hero-grid { grid-template-columns: .95fr 1.05fr; }
  .hero-copy { padding-left: 0; }
  .trust-bar { margin-left: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-merchant { display: none; }
  .cart-label { display: none; }
  .hero { min-height: 640px; padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: -10px; }
  .hero-visual img { max-height: 260px; border-radius: 30px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); margin-top: -5px; }
  .trust-bar > div:nth-child(2) { border-right: 0; }
  .trust-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .merchant-grid { grid-template-columns: 1fr; }
  .merchant-banner { aspect-ratio: 4.2 / 1; }
  .section-heading { align-items: flex-start; }
  .product-heading { display: block; }
  .filter-chips { margin-top: 20px; }
  .merchant-cta-inner { min-height: 300px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  .page-shell { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 24px); gap: 11px; }
  .brand, .brand img { width: 104px; }
  .header-actions { gap: 8px; }
  .hero { min-height: 630px; }
  .hero::after { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { padding-inline: 17px; }
  .trust-bar > div { padding: 13px; }
  .category-section, .merchant-section, .product-section { padding-block: 58px; }
  .section-heading { display: block; }
  .section-heading .text-button { margin-top: 10px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .category-card { grid-template-columns: 48px 1fr 16px; }
  .merchant-banner { aspect-ratio: 3.4 / 1; }
  .filter-chips { width: 100%; overflow-x: auto; }
  .product-image-wrap { height: 210px; }
  .drawer-header { padding: 24px 20px 18px; }
  .drawer-form { padding: 22px 20px 28px; }
  .dialog-shell { padding: 24px 20px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 商家主页 */
.merchant-page { background: #f6fafc; }
.merchant-back { min-height: 40px; padding-inline: 18px; }
.store-hero { background: #fff; }
.store-cover { position: relative; min-height: 270px; overflow: hidden; color: #fff; background-image: linear-gradient(90deg, rgba(8, 49, 62, .86), rgba(8, 49, 62, .38) 62%, rgba(8, 49, 62, .12)), var(--store-cover-image); background-position: center; background-size: cover; }
.store-cover::after { content: ""; position: absolute; width: 460px; height: 460px; right: 7%; top: -280px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.05), 0 0 0 118px rgba(255,255,255,.035); }
.store-cover-inner { position: relative; z-index: 1; min-height: 270px; display: flex; flex-direction: column; justify-content: center; padding-block: 38px; }
.store-kicker { margin: 0 0 13px; color: #b9eee9; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.store-cover-copy h1 { margin: 0; font-size: clamp(38px, 4.3vw, 68px); letter-spacing: -.05em; }
.store-cover-copy p { margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 17px; }
.store-profile-wrap { position: relative; z-index: 2; margin-top: -34px; }
.store-profile { min-height: 112px; display: flex; align-items: center; gap: 17px; padding: 19px 28px; background: rgba(255,255,255,.97); border: 1px solid var(--line-soft); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-sm); }
.store-avatar { flex: 0 0 auto; width: 76px; height: 76px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--teal), #165a80); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 5px 15px rgba(13, 142, 131, .22); font-size: 30px; font-weight: 900; }
.store-avatar { overflow: hidden; }
.store-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }
.store-profile-copy { min-width: 0; flex: 1; }
.store-title-line { display: flex; align-items: center; gap: 10px; }
.store-title-line h2 { margin: 0; font-size: 24px; }
.store-title-line .verified-badge { position: static; display: inline-block; padding: 5px 8px; }
.store-profile-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.store-profile-copy i { margin: 0 8px; color: #b3c0c7; font-style: normal; }
.store-actions { display: flex; gap: 10px; }
.store-actions .button { min-height: 40px; padding-inline: 17px; font-size: 13px; }
.store-actions .button { min-width: 116px; }
.store-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 28px; background: #fff; border: 1px solid var(--line-soft); border-top: 0; border-radius: 0 0 18px 18px; }
.store-metrics div { display: flex; flex-direction: column; gap: 5px; padding-left: 24px; border-left: 1px solid var(--line-soft); }
.store-metrics div:first-child { padding-left: 0; border-left: 0; }
.store-metrics strong { color: var(--teal); font-size: 22px; }
.store-metrics span { color: var(--muted); font-size: 11px; }
.store-tabs { background: #fff; border-bottom: 1px solid var(--line-soft); }
.store-tabs-inner { display: flex; align-items: center; gap: 34px; min-height: 62px; }
.store-tabs a { position: relative; display: flex; align-items: center; height: 62px; color: var(--muted); font-size: 14px; font-weight: 700; }
.store-tabs a:hover, .store-tabs a.is-active { color: var(--teal); }
.store-tabs a.is-active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--teal); border-radius: 5px 5px 0 0; }
.store-announcement { margin-left: auto; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.store-announcement b { color: var(--ink-soft); font-weight: 500; }
.store-products { padding: 72px 0 92px; background: #f6fafc; }
.store-section-heading { align-items: center; }
.store-search { display: flex; align-items: center; gap: 8px; width: min(300px, 100%); padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.store-search span { color: var(--teal); font-size: 24px; line-height: 1; }
.store-search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.store-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); align-items: start; gap: 28px; }
.store-sidebar { display: grid; gap: 16px; }
.store-side-card { padding: 22px 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-sm); }
.store-side-card h3 { margin: 0 0 15px; font-size: 16px; }
.store-category-list { display: grid; gap: 3px; }
.store-category-list button { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.store-category-list button:hover, .store-category-list button.is-active { color: var(--teal); background: #eef9f7; }
.store-category-list b { font-size: 19px; font-weight: 400; }
.service-list { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.service-list li { display: flex; gap: 10px; align-items: flex-start; }
.service-list li > span { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; color: var(--teal); background: #eaf8f6; border-radius: 7px; font-size: 13px; font-weight: 800; }
.service-list strong, .service-list small { display: block; }
.service-list strong { font-size: 13px; }
.service-list small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.store-contact-card { background: linear-gradient(145deg, #e9f9f7, #f8fcfd); }
.store-contact-card .eyebrow { margin-bottom: 5px; }
.store-contact-card h3 { margin-bottom: 8px; }
.store-contact-card p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.store-contact-card .button { width: 100%; min-height: 40px; padding-inline: 10px; font-size: 13px; }
.store-main { min-width: 0; }
.store-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.store-filter-bar .filter-chips { overflow-x: auto; }
.store-result-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.store-product-grid { grid-template-columns: repeat(3, 1fr); }
.store-empty { padding: 80px 20px; text-align: center; background: #fff; border: 1px dashed #cbdce6; border-radius: var(--radius-md); }
.store-empty strong { font-size: 18px; }
.store-empty p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.store-service-strip { padding: 54px 0; background: #fff; border-top: 1px solid var(--line-soft); }
.store-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.store-service-grid > div { padding: 4px 30px; border-left: 1px solid var(--line); }
.store-service-grid > div:first-child { padding-left: 0; border-left: 0; }
.store-service-grid span { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.store-service-grid h3 { margin: 10px 0 6px; font-size: 18px; }
.store-service-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.merchant-footer-bottom { margin-top: 0; }
.merchant-footer-bottom a { color: var(--teal); }
.product-detail-page { background: #f6fafc; }
.detail-nav { margin-right: 20px; }
.detail-back { min-height: 40px; padding-inline: 17px; font-size: 13px; }
.product-detail-section { padding: 34px 0 78px; background: linear-gradient(180deg, #f2f9fd, #fff); }
.product-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.product-breadcrumb a:hover { color: var(--teal); }
.product-breadcrumb strong { color: var(--ink-soft); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: 58px; align-items: start; }
.product-gallery-column { min-width: 0; grid-column: 1; grid-row: 1; }
.product-detail-gallery { position: relative; min-height: 480px; display: grid; place-items: center; padding: 38px; background: linear-gradient(145deg, #fbfdff, #e9f4f8); border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: var(--shadow-sm); }
.product-gallery-stage { position: relative; width: 100%; height: 400px; display: grid; place-items: center; }
.product-detail-gallery img { width: 100%; height: 400px; object-fit: contain; mix-blend-mode: multiply; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-soft); background: rgba(255, 255, 255, .88); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 6px 18px rgba(20, 58, 74, .1); font-size: 25px; line-height: 1; transform: translateY(-50%); cursor: pointer; transition: .2s ease; }
.gallery-arrow:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.product-gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-dot { width: 8px; height: 8px; padding: 0; background: #c5d6dd; border: 0; border-radius: 50%; cursor: pointer; transition: .2s ease; }
.gallery-dot.is-active { width: 22px; background: var(--teal); border-radius: 8px; }
.product-detail-gallery .product-tag { top: 24px; left: 24px; }
.product-detail-info { min-width: 0; grid-column: 2; grid-row: 1; }
.product-detail-info h1 { margin: 0; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.18; letter-spacing: -.035em; }
.product-detail-desc { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.detail-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-rating span { color: #f4ad39; letter-spacing: 2px; }
.detail-rating b { padding: 5px 8px; color: var(--teal); background: #e9f8f5; border-radius: 6px; font-size: 11px; }
.detail-rating em { color: var(--muted); font-size: 11px; font-style: normal; }
.detail-price { display: flex; align-items: baseline; gap: 3px; margin-top: 25px; color: var(--teal); }
.detail-price small { font-size: 17px; font-weight: 800; }
.detail-price strong { font-size: 42px; letter-spacing: -.04em; }
.detail-variants { margin-top: 22px; padding: 16px 18px; background: #f7fbfd; border: 1px solid var(--line-soft); border-radius: 14px; }
.detail-variants-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--ink-soft); font-size: 13px; }
.detail-variants-heading span { color: var(--teal); font-size: 12px; font-weight: 700; text-align: right; }
.detail-variant-options { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-variant-option { padding: 9px 12px; color: #e34242; background: #fff; border: 1px solid #f2c5c5; border-radius: 8px; font-size: 12px; cursor: pointer; transition: .2s ease; }
.detail-variant-option:hover, .detail-variant-option.is-selected { color: #c92f2f; background: #fff3f3; border-color: #e34242; font-weight: 700; }
.detail-quantity { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 13px; }
.detail-quantity-control { display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.detail-quantity-control button { width: 32px; height: 30px; padding: 0; color: var(--ink-soft); background: #fff; border: 0; font-size: 18px; line-height: 1; cursor: pointer; }
.detail-quantity-control button:hover { color: var(--teal); background: #eef8f7; }
.detail-quantity-control span { min-width: 34px; color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 30px; text-align: center; }
.detail-parameters { width: 100%; margin-top: 26px; padding: 24px 28px; background: rgba(247, 251, 253, .9); border: 1px solid var(--line-soft); border-radius: 18px; box-sizing: border-box; }
html[data-product-id]:not([data-product-id="drone-pro"]) .detail-parameters { display: none; }
html[data-product-id]:not([data-product-id="smart-battery"]):not([data-product-id="built-in-pile"]):not([data-product-id="external-pile"]) .detail-variants { display: none; }
.product-detail-images { padding: 54px 0 76px; background: #fff; }
.product-detail-images-heading { margin-bottom: 24px; }
.product-detail-images-heading h2 { margin-bottom: 8px; }
.product-detail-images-heading p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.product-detail-image-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.product-detail-image-list figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-sm); }
.product-detail-image-list img { display: block; width: 100%; height: auto; object-fit: contain; }
.detail-parameters-heading .eyebrow { margin: 0 0 5px; font-size: 9px; }
.detail-parameters-heading h2 { margin: 0 0 12px; color: var(--ink-soft); font-size: 18px; }
.detail-parameter-table-wrap { overflow-x: auto; }
.detail-parameters table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 11px; }
.detail-parameters th, .detail-parameters td { padding: 8px 7px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.detail-parameters th { color: var(--muted); background: #eef7fa; font-weight: 700; white-space: nowrap; }
.detail-parameters td { color: var(--ink-soft); }
.detail-parameters tbody tr:last-child td { border-bottom: 0; }
.detail-divider { height: 1px; margin: 24px 0; background: var(--line); }
.detail-specs { display: grid; gap: 15px; }
.detail-specs div { display: grid; grid-template-columns: 78px 1fr; gap: 14px; }
.detail-specs span { color: var(--muted); font-size: 12px; }
.detail-specs strong { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-top: 30px; }
.detail-actions .button { min-width: 148px; }
.detail-note { margin: 15px 0 0; color: #9aa7af; font-size: 11px; line-height: 1.6; }
.product-highlights { padding: 76px 0 100px; background: #fff; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight-grid article { padding: 25px 26px; background: #f6fafc; border: 1px solid var(--line-soft); border-radius: 16px; }
.highlight-grid span { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.highlight-grid h3 { margin: 12px 0 8px; font-size: 18px; }
.highlight-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .detail-nav { display: none; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-column, .product-detail-info { grid-column: 1; grid-row: auto; }
  .product-detail-gallery { min-height: 390px; }
  .product-gallery-stage { height: 320px; }
  .product-detail-gallery img { height: 320px; }
}

@media (max-width: 560px) {
  .detail-back { display: none; }
  .product-detail-section { padding-block: 24px 56px; }
  .product-breadcrumb { margin-bottom: 20px; }
  .product-detail-gallery { min-height: 300px; padding: 25px; border-radius: 18px; }
  .product-gallery-stage { height: 240px; }
  .product-detail-gallery img { height: 240px; }
  .product-detail-gallery .product-tag { top: 16px; left: 16px; }
  .product-detail-info h1 { font-size: 28px; }
  .detail-price strong { font-size: 34px; }
  .detail-actions .button { flex: 1; min-width: 0; padding-inline: 12px; }
  .product-highlights { padding-block: 55px 68px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .product-detail-images { padding-block: 42px 56px; }
  .product-detail-image-list { grid-template-columns: 1fr; gap: 16px; }
}
.qr-dialog { width: min(390px, calc(100% - 30px)); padding: 0; overflow: visible; background: #fff; border: 0; border-radius: 24px; box-shadow: 0 28px 80px rgba(17, 44, 59, .24); }
.qr-dialog::backdrop { background: rgba(16, 34, 43, .48); backdrop-filter: blur(4px); }
.qr-dialog-shell { position: relative; padding: 30px 34px 28px; text-align: center; }
.qr-dialog-close { position: absolute; top: 22px; right: 22px; }
.qr-dialog h2 { margin: 0; font-size: 26px; }
.qr-dialog-intro { margin: 10px auto 20px; max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.qr-dialog-intro span { color: var(--teal); font-weight: 700; }
.qr-code-frame { width: 214px; height: 214px; display: grid; place-items: center; margin: 0 auto 18px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.service-qr-image { width: 184px; height: 184px; object-fit: contain; }
.qr-placeholder { position: relative; width: 184px; height: 184px; overflow: hidden; background-color: #fff; background-image: linear-gradient(90deg, rgba(28, 42, 48, .96) 25%, transparent 25%, transparent 50%, rgba(28, 42, 48, .96) 50%, rgba(28, 42, 48, .96) 75%, transparent 75%), linear-gradient(rgba(28, 42, 48, .96) 25%, transparent 25%, transparent 50%, rgba(28, 42, 48, .96) 50%, rgba(28, 42, 48, .96) 75%, transparent 75%); background-position: 0 0, 8px 8px; background-size: 16px 16px; }
.qr-finder { position: absolute; z-index: 2; width: 42px; height: 42px; background: #fff; border: 8px solid #1c2a30; box-shadow: inset 0 0 0 7px #fff; }
.qr-finder-tl { top: 8px; left: 8px; }.qr-finder-tr { top: 8px; right: 8px; }.qr-finder-bl { bottom: 8px; left: 8px; }
.qr-pixels { position: absolute; inset: 30px; background: repeating-linear-gradient(0deg, transparent 0 7px, #1c2a30 7px 12px), repeating-linear-gradient(90deg, transparent 0 7px, #1c2a30 7px 12px); opacity: .8; }
.qr-placeholder b { position: absolute; z-index: 3; right: 21px; bottom: 21px; left: 21px; padding: 6px 4px; color: #fff; background: rgba(28, 42, 48, .85); border-radius: 5px; font-size: 11px; }
.qr-dialog-note { margin: 0; color: #98a6ad; font-size: 10px; line-height: 1.6; }
.qr-dialog-note code { color: var(--teal); font-size: 10px; }
.checkout-contact-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.checkout-contact-actions .button { min-height: 40px; padding-inline: 14px; font-size: 12px; }

@media (max-width: 1120px) {
  .store-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .merchant-back { display: none; }
  .store-cover, .store-cover-inner { min-height: 240px; }
  .store-profile { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .store-profile-copy { padding-top: 9px; }
  .store-actions { width: 100%; padding-left: 93px; }
  .store-actions .button { flex: 1; }
  .store-metrics { padding: 16px 18px; }
  .store-metrics div { padding-left: 12px; }
  .store-tabs-inner { gap: 20px; }
  .store-announcement { display: none; }
  .store-section-heading { display: block; }
  .store-search { margin-top: 20px; }
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { grid-template-columns: repeat(2, 1fr); }
  .store-contact-card { grid-column: 1 / -1; }
  .store-service-grid { grid-template-columns: 1fr; gap: 20px; }
  .store-service-grid > div, .store-service-grid > div:first-child { padding: 4px 0 4px 20px; border-left: 2px solid var(--teal); }
}

@media (max-width: 560px) {
  .store-cover-copy h1 { font-size: 42px; }
  .store-cover-copy p { font-size: 14px; }
  .store-profile-wrap { margin-top: -25px; }
  .store-avatar { width: 62px; height: 62px; font-size: 25px; }
  .store-title-line h2 { font-size: 20px; }
  .store-profile-copy { padding-top: 3px; }
  .store-actions { padding-left: 0; }
  .store-metrics strong { font-size: 18px; }
  .store-metrics span { font-size: 10px; }
  .store-tabs-inner { gap: 14px; }
  .store-tabs a { font-size: 12px; }
  .store-products { padding-block: 55px 68px; }
  .store-filter-bar { display: block; }
  .store-result-count { display: block; margin-top: 12px; }
  .store-product-grid { grid-template-columns: 1fr; }
  .store-sidebar { grid-template-columns: 1fr; }
  .store-contact-card { grid-column: auto; }
}

/* 购买结算页 */
.checkout-page { background: #f6fafc; }
.checkout-header-title { display: flex; align-items: center; gap: 10px; margin-left: 18px; color: var(--ink-soft); font-size: 15px; font-weight: 700; }
.checkout-header-title i { color: #b2c0c7; font-style: normal; }
.checkout-header-title small { color: var(--muted); font-size: 11px; font-weight: 400; }
.checkout-back { margin-left: auto; min-height: 40px; padding-inline: 17px; font-size: 13px; }
.checkout-main { padding: 34px 0 82px; }
.checkout-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--muted); font-size: 12px; }
.checkout-breadcrumb a:hover { color: var(--teal); }
.checkout-breadcrumb strong { color: var(--ink-soft); }
.checkout-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.checkout-heading h1 { margin: 0; font-size: clamp(32px, 3vw, 48px); letter-spacing: -.045em; }
.checkout-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.checkout-steps { display: flex; align-items: center; gap: 11px; padding-bottom: 7px; color: #a7b5bc; font-size: 12px; white-space: nowrap; }
.checkout-steps b { color: #c7d3d9; font-weight: 400; }
.checkout-steps span.done, .checkout-steps span.active { color: var(--teal); font-weight: 800; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 24px; }
.checkout-form { display: grid; gap: 18px; }
.checkout-card { padding: 26px 28px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-sm); }
.checkout-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.summary-heading-actions { display: flex; align-items: center; gap: 12px; }
.checkout-card-heading h2 { margin: 0; font-size: 22px; }
.checkout-card-heading .drawer-kicker { margin-bottom: 5px; }
.required-note, .summary-count { color: var(--muted); font-size: 11px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
.checkout-fields .field { margin-bottom: 18px; }
.checkout-fields .field-wide { grid-column: 1 / -1; }
.region-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.region-selects select:disabled { color: #aebbc2; background: #f5f8fa; cursor: not-allowed; }
.checkout-option { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; min-height: 70px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.checkout-option + .checkout-option { margin-top: 10px; }
.checkout-option.is-selected { border-color: rgba(13, 142, 131, .55); background: #f0faf8; }
.checkout-radio { position: relative; width: 17px; height: 17px; border: 2px solid #b7c8cf; border-radius: 50%; }
.checkout-option.is-selected .checkout-radio { border-color: var(--teal); }
.checkout-option.is-selected .checkout-radio::after { content: ""; position: absolute; inset: 3px; background: var(--teal); border-radius: 50%; }
.checkout-option strong, .checkout-option small { display: block; }
.checkout-option strong { font-size: 13px; }
.checkout-option small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.checkout-option > b { color: var(--teal); font-size: 11px; white-space: nowrap; }
.checkout-message { margin: -2px 0 0; }
.checkout-submit-mobile { display: none; }
.order-summary { position: sticky; top: calc(var(--header-height) + 20px); }
.summary-items { display: grid; gap: 14px; max-height: 305px; overflow-y: auto; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 11px; min-width: 0; }
.summary-item img { width: 64px; height: 58px; object-fit: contain; background: #f5fafc; border-radius: 9px; }
.summary-item strong, .summary-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item strong { font-size: 12px; }
.summary-item span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.summary-item > b { color: var(--teal); font-size: 12px; white-space: nowrap; }
.summary-lines { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.summary-lines div, .summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-lines span, .summary-lines strong { color: var(--muted); font-size: 12px; }
.summary-lines strong { font-weight: 500; }
.summary-total { padding: 20px 0; }
.summary-total span { font-size: 13px; font-weight: 700; }
.summary-total strong { color: var(--teal); font-size: 28px; }
.checkout-submit-desktop { width: 100%; }
.summary-note { margin: 13px 0 0; color: #9aa7af; font-size: 10px; line-height: 1.6; text-align: center; }
.checkout-success { padding: 74px 20px 82px; text-align: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 22px; box-shadow: var(--shadow-sm); }
.success-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 22px; color: #fff; background: var(--teal); border-radius: 50%; font-size: 38px; }
.checkout-success h2 { margin: 0; font-size: 30px; }
.checkout-success > p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.success-order-no { display: inline-block; margin: 24px 0; padding: 11px 16px; color: var(--muted); background: #f4f8fa; border-radius: 8px; font-size: 12px; }
.success-order-no strong { color: var(--teal); letter-spacing: .08em; }
.success-actions { display: flex; justify-content: center; gap: 12px; }
.checkout-footer { padding-top: 0; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .checkout-submit-mobile { display: inline-flex; width: 100%; }
  .checkout-submit-desktop { display: none; }
}

@media (max-width: 620px) {
  .checkout-header-title { display: none; }
  .checkout-main { padding-top: 24px; }
  .checkout-heading { display: block; }
  .checkout-steps { margin-top: 22px; padding-bottom: 0; justify-content: space-between; gap: 5px; font-size: 10px; }
  .checkout-steps b { flex: 1; text-align: center; }
  .checkout-card { padding: 22px 18px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-fields .field-wide { grid-column: auto; }
  .region-selects { grid-template-columns: 1fr; gap: 9px; }
  .checkout-option { grid-template-columns: 20px 1fr; }
  .checkout-option > b { grid-column: 2; }
  .success-actions { flex-direction: column; }
  .success-actions .button { width: 100%; }
}
