@charset "UTF-8";
:root { --accent: #ec812a; --accent-dark: #bd5910; --ink: #25282e; --muted: #737780; --line: #e9e9e9; --soft: #f5f6f8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 14px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; color: #bbb; }
button, input, textarea { border-radius: 6px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #e9a36c; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.shop-header { background: #20242c; }
.header-inner { max-width: 1200px; min-height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; min-width: 0; }
.brand img { max-width: 100%; height: auto; object-fit: contain; }
.header-inner nav { display: flex; gap: 32px; flex-shrink: 0; color: #e1e1e4; }
.header-inner nav a { padding: 24px 0; }
.header-inner nav .active { color: #ffab64; }
.header-inner nav a:hover, .header-inner nav a:focus-visible { color: #f28a2e; }
.shop-main { max-width: 1152px; margin: 0 auto; padding: 0 0 56px; }
body[data-page="product"] .shop-main { padding-top: 26px; }
.back-link:hover { color: var(--accent-dark); }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.product-visual { background: #080808; display: flex; align-items: center; }
.product-visual img { display: block; width: 100%; height: auto; }
.product-info { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 12px; color: var(--accent-dark); letter-spacing: 2px; }
h1 { font-size: 30px; line-height: 1.4; font-weight: 600; margin-top: 12px; letter-spacing: .5px; }
.product-description { color: var(--muted); line-height: 1.9; margin-top: 14px; max-width: 380px; }
.price-panel { background: #fff6ed; border-radius: 6px; padding: 14px 20px; display: flex; gap: 26px; align-items: center; margin: 28px 0; }
.muted, .field-label { color: var(--muted); font-size: 13px; }
.price { font-size: 36px; font-weight: 600; color: var(--accent-dark); line-height: 1.4; }
.price span { font-size: 21px; padding-right: 4px; }
.selection-row { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.field-label { min-width: 56px; }
.model-option { border: 1px solid var(--accent); background: #fff9f3; padding: 10px 20px; color: var(--accent-dark); min-width: 120px; }
.model-option span { margin-left: 15px; }
.quantity-control { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; height: 40px; }
.quantity-control button { width: 38px; padding: 0; border: 0; border-radius: 0; background: #f8f8f8; font-size: 20px; }
.quantity-control input { width: 50px; padding: 0; text-align: center; border: solid #eee; border-width: 0 1px; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; min-height: 48px; border: 0; border-radius: 6px; color: white; background: var(--accent); font-size: 16px; font-weight: 600; transition: background .15s; }
.primary-button:hover { background: #d86b19; }
.product-actions { display: flex; gap: 10px; margin-top: 6px; }
.product-actions > button { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; font-weight: 600; }
.product-cart-button { border: 0; border-radius: 6px; background: #ffb52b; color: #29221b; }
.product-cart-button:hover { background: #f4a716; }
.product-cart-button:disabled, .product-actions .primary-button:disabled { opacity: .6; cursor: not-allowed; }
.cart-status { min-height: 22px; margin-top: 10px; color: #278553; }
.cart-status:empty { display: none; }
.product-choice-dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 20px 80px #0004; }
.product-choice-dialog::backdrop { background: #151a2580; }
.choice-header { position: relative; padding: 22px 56px 18px 24px; border-bottom: 1px solid var(--line); }
.choice-header h2 { font-size: 20px; }
.choice-header .dialog-close { top: 14px; right: 14px; }
.choice-summary { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.choice-summary img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: cover; }
.choice-summary p { margin-bottom: 8px; font-size: 15px; }
.choice-summary strong { color: var(--accent-dark); font-size: 22px; }
.choice-body { padding: 22px 24px; }
.choice-body h3 { margin-bottom: 14px; font-size: 16px; font-weight: 600; }
.choice-models { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-model { min-height: 42px; padding: 8px 14px; border: 1px solid #d8dadd; background: #f8f9fa; color: var(--ink); text-align: left; }
.choice-model[aria-pressed="true"] { border-color: var(--accent); background: #fff4e9; color: var(--accent-dark); }
.choice-model:disabled { opacity: .5; }
.choice-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.choice-quantity-row label { font-weight: 600; }
.choice-error { min-height: 20px; margin-top: 12px; color: #b63429; }
.choice-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.choice-footer strong { color: var(--accent-dark); font-size: 20px; }
.choice-footer .primary-button { width: 180px; }
.mobile-total { display: none; }
.product-details { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 20px; }
.details-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 30px; border-bottom: 1px solid var(--line); }
h2 { font-size: 18px; font-weight: 600; }
.details-heading h2 { position: relative; }
.details-heading h2::after { content: ""; height: 3px; background: var(--accent); position: absolute; left: 0; right: 0; bottom: -23px; }
.details-heading > span { font-size: 12px; color: var(--muted); }
.detail-images { max-width: 750px; margin: 28px auto 0; }
.detail-images img { width: 100%; height: auto; display: block; }
.shop-footer { border-top: 1px solid var(--line); padding: 28px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.orders-main { padding-top: 34px; }
.orders-heading { margin: 12px 0 28px; }
.orders-heading h1 { margin-top: 8px; }
.orders-intro { color: var(--muted); margin-top: 8px; }
.orders-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.orders-empty { padding: 68px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 15px; }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.orders-table th, .orders-table td { padding: 18px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.orders-table thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.orders-table tbody th { font-weight: 500; }
.order-row { cursor: pointer; }
.order-row:hover, .order-row:focus-visible { background: #fffaf5; }
.orders-table small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
.orders-table td strong { color: var(--accent-dark); font-size: 15px; }
.order-status { color: #2f7d46; }
.order-view { padding: 7px 14px; white-space: nowrap; }
.order-detail { margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-grid h3 { font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.shipping-summary { display: flex; gap: 18px; align-items: baseline; margin-bottom: 18px; }
.shipping-summary span { color: var(--muted); font-size: 12px; }
.tracking-list { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid #dfe2e6; }
.tracking-list li { position: relative; padding: 0 0 18px 18px; display: grid; gap: 3px; font-size: 13px; }
.tracking-list li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #c5c9cf; border: 2px solid #fff; box-shadow: 0 0 0 1px #c5c9cf; }
.tracking-list li.current { color: var(--accent-dark); }
.tracking-list li.current::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tracking-list time { color: var(--muted); font-size: 12px; }
.detail-total { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 20px; align-items: center; }
.detail-total strong { color: var(--accent-dark); font-size: 20px; }
.aftersales-button { margin-left: 10px; }
.aftersales-dialog a { color: var(--accent-dark); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.order-main { padding-top: 28px; }
.back-link { font-size: 12px; color: var(--muted); }
.order-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 28px 0; gap: 20px; }
.order-heading h1 { margin-top: 8px; }
.order-steps { display: flex; gap: 26px; list-style: none; padding: 0 0 4px; margin: 0; font-size: 12px; color: var(--muted); }
.order-steps .current { color: var(--accent-dark); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.checkout-sections { display: grid; gap: 20px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.section-number { color: #b7bac0; font-size: 12px; font-weight: 400; margin-right: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13px; }
.form-field input, .form-field textarea { border: 1px solid #dedfe3; padding: 11px 12px; background: #fff; width: 100%; min-width: 0; color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 78px; }
.form-field select { font: inherit; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #dedfe3; border-radius: 6px; background: #fff; color: var(--ink); }
.form-field select:disabled { background: var(--soft); color: var(--muted); }
.form-field select:focus-visible { outline: 3px solid #e9a36c; outline-offset: 4px; }
.field-error { color: #b42318; font-size: 12px; }
.field-error:empty { display: none; }
.form-field input[aria-invalid="true"] { border-color: #b42318; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #92959c; }
.secondary-button { padding: 9px 20px; background: #fff8f1; border: 1px solid #f1c59f; color: var(--accent-dark); }
.text-button { border: 0; padding: 0; background: none; color: var(--accent-dark); font-size: 13px; }
.address-display { display: block; width: 100%; border: 1px solid var(--line); background: #fafbfc; padding: 18px 20px; color: var(--ink); text-align: left; transition: border-color .15s, background .15s; }
.address-display:hover { border-color: #f1c59f; background: #fffaf5; }
.address-empty { display: block; color: var(--muted); }
.address-list { display: grid; gap: 10px; }
.address-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.address-item:has(input:checked) { border-color: var(--accent); background: #fffaf5; }
.address-item label { display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 10px; cursor: pointer; }
.address-item input { flex: none; margin-top: 5px; }
.address-item-details { min-width: 0; overflow-wrap: anywhere; }
.address-item-details strong { margin-right: 12px; }
.address-item-details p { margin-top: 4px; color: var(--muted); }
.address-item-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.address-default-label { margin-left: 8px; color: var(--accent-dark); font-size: 12px; }
@media (max-width: 680px) { .address-item { align-items: flex-start; flex-wrap: wrap; } .address-item label { flex-basis: 100%; } .address-item-actions { margin-left: 23px; } }
.address-default { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.address-default input { width: 16px; height: 16px; margin: 0; }
.status-message { font-size: 12px; }
.status-message:not(:empty) { margin-top: 14px; }
.status-message[data-state="success"] { color: #2f7d46; }
.status-message[data-state="error"] { color: #b42318; }
.recipient-line { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 6px; }
.saved-address { display: block; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.order-item { display: flex; align-items: center; gap: 18px; }
.order-item + .order-item { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-item > img { border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.item-info { min-width: 0; }
.item-info h3 { font-size: 16px; font-weight: 500; }
.item-info p, .item-price p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.unit-price { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.item-price { text-align: right; margin-left: auto; flex-shrink: 0; }
.amount { color: var(--accent-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.item-price .amount { font-size: 17px; }
.wechat-option { display: flex; align-items: center; gap: 14px; border: 1px solid #80c391; background: #f5fbf6; border-radius: 6px; padding: 16px 20px; }
.wechat-logo { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; filter: brightness(0) saturate(100%) invert(53%) sepia(96%) saturate(1736%) hue-rotate(105deg) brightness(91%) contrast(95%); }
.wechat-option strong { font-size: 15px; font-weight: 500; }
.wechat-option p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.selected-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22a447; color: #fff; margin-left: auto; }
.checkout-summary { position: sticky; top: 24px; }
.summary-list { margin: 24px 0; display: grid; gap: 16px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; }
.checkout-total { padding: 22px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-total .amount { font-size: 27px; }
.summary-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
.payment-dialog, .address-dialog { border: 0; border-radius: 14px; max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); box-shadow: 0 20px 80px #0003; }
.payment-dialog { padding: 36px; width: min(420px, calc(100% - 32px)); text-align: center; }
.address-dialog { padding: 30px; width: min(620px, calc(100% - 32px)); }
.payment-dialog::backdrop, .address-dialog::backdrop { background: #151a2580; }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 26px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-right: 28px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.dialog-cancel { padding: 9px 20px; border: 1px solid #dedfe3; background: #fff; color: var(--muted); }
.dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; color: var(--accent-dark); background: #fff1e3; font-size: 28px; }
.payment-dialog h2 { font-size: 22px; }
.payment-dialog > p { margin-top: 12px; line-height: 1.8; }
.payment-dialog > .primary-button { margin-top: 22px; }
.order-submitted-dialog { position: relative; box-sizing: border-box; padding: 38px 36px 42px; border-radius: 8px; }
.order-submitted-dialog .dialog-close { top: 10px; right: 10px; display: grid; place-items: center; border-radius: 4px; line-height: 1; }
.order-submitted-dialog .dialog-close:hover, .order-submitted-dialog .dialog-close:focus-visible { color: var(--accent-dark); background: #f5f6f8; }
.payment-method-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #e9f7ed; }
.payment-method-icon img { display: block; width: 38px; height: 38px; object-fit: contain; filter: brightness(0) saturate(100%) invert(53%) sepia(96%) saturate(1736%) hue-rotate(105deg) brightness(91%) contrast(95%); }
.order-submitted-dialog h2 { font-size: 22px; font-weight: 600; }
.order-submitted-dialog > p { max-width: 320px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.cart-added-dialog { border-radius: 8px; }
.cart-added-actions { display: flex; gap: 12px; margin-top: 24px; }
.cart-added-actions > * { flex: 1; min-width: 0; min-height: 48px; }
.cart-added-actions .primary-button { text-decoration: none; }
@media (max-width: 1200px) { .shop-main { margin: 0 24px; } .product-info { padding: 30px; } }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; } .card { padding: 22px; } .product-info { padding: 24px; } h1 { font-size: 26px; } .price-panel { margin: 22px 0; } .order-item { flex-wrap: wrap; } .item-price { margin-left: auto; } }
@media (max-width: 680px) {
  body[data-page="product"], body[data-page="order"] { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 60px; padding: 0 16px; gap: 12px; }
  .brand img { width: 160px; }
  .header-inner nav { gap: 16px; font-size: 12px; }
  .header-inner nav a { padding: 20px 0; }
  .shop-main { margin: 0; padding-bottom: 28px; }
  body[data-page="product"] .shop-main { padding-top: 16px; }
  .product-hero { grid-template-columns: 1fr; border-radius: 0; border-width: 0; }
  .product-info { padding: 26px 20px; }
  h1 { font-size: 26px; margin-top: 10px; }
  .product-description { margin-top: 12px; }
  .price-panel { margin: 22px 0; padding: 12px 16px; }
  .selection-row { margin-bottom: 20px; }
  .product-actions, .order-submit-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: white; box-shadow: 0 -2px 16px #25282e0a; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; margin: 0; }
  .mobile-total { display: flex; flex-direction: column; flex: 1; white-space: nowrap; }
  .mobile-total .muted { font-size: 11px; }
  .mobile-total .amount { font-size: 23px; line-height: 1.4; }
  .product-actions > button { min-height: 48px; }
  .order-submit-bar .primary-button { width: 52%; flex-shrink: 0; }
  .product-choice-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 85dvh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .choice-header { padding: 18px 54px 16px 20px; }
  .choice-summary { padding: 18px 20px; }
  .choice-body { padding: 20px; }
  .choice-footer { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
  .choice-footer .primary-button { width: 52%; }
  .product-details { margin-top: 12px; border: 0; border-radius: 0; }
  .details-heading { padding: 18px 20px; }
  .details-heading h2::after { bottom: -19px; }
  .details-heading > span { font-size: 11px; }
  .detail-images { margin-top: 18px; }
  .shop-footer { padding: 22px 16px; }
  .orders-main { padding: 20px 16px 28px; }
  .orders-card { padding: 20px 16px; }
  .orders-table { min-width: 0; table-layout: fixed; }
  .orders-table thead th:nth-child(2), .orders-table tbody td:nth-child(2), .orders-table thead th:nth-child(5), .orders-table tbody td:nth-child(5) { display: none; }
  .orders-table th, .orders-table td { padding: 15px 8px; }
  .orders-table th:first-child { width: 52%; }
  .orders-table td:nth-child(3) { width: 28%; }
  .orders-table td:nth-child(4) { width: 20%; }
  .orders-table small { overflow-wrap: anywhere; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .shipping-summary { display: grid; gap: 3px; }
  .order-main { padding: 20px 16px 28px; }
  .order-heading { margin: 24px 0; display: block; }
  .order-steps { margin-top: 18px; padding: 0; gap: 24px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 16px; }
  .checkout-sections { gap: 16px; }
  .card { padding: 22px 18px; }
  .section-heading { margin-bottom: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-field input, .form-field textarea { font-size: 16px; }
  .form-field input::placeholder, .form-field textarea::placeholder { font-size: 13px; }
  .order-item { gap: 12px; flex-wrap: wrap; }
  .order-item > img { width: 72px; height: 72px; }
  .item-info { flex: 1; }
  .item-info h3 { font-size: 15px; }
  .item-price { width: 100%; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
  .item-price p { margin: 0; }
  .checkout-summary { position: static; }
  .checkout-total { padding-bottom: 0; }
  .summary-note { text-align: left; }
  .payment-dialog, .address-dialog { padding: 30px 22px 24px; }
  .address-display { padding: 16px; }
  .dialog-actions > button { flex: 1; }
}
@media (max-width: 400px) {
  body[data-page="product"] .brand img { width: 130px; }
  body[data-page="product"] .header-inner nav { gap: 10px; }
}
@media (max-width: 360px) { .brand img { width: 140px; } .header-inner nav { gap: 10px; } .details-heading > span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .primary-button { transition: none; } }
