:root {
  --ink: #172033;
  --muted: #68738a;
  --line: #e6eaf0;
  --soft: #f6f8fb;
  --brand: #e9335b;
  --brand-dark: #c91f46;
  --accent: #ff7b54;
  --shadow: 0 16px 45px rgba(25, 34, 54, .09);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; color: var(--ink); background: #f5f7fa; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.top-strip { background: #1c2435; color: #b9c3d3; font-size: 12px; }
.top-strip .container { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.top-links { display: flex; gap: 18px; }
.top-links button { padding: 0; border: 0; color: inherit; background: transparent; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-main { height: 88px; display: flex; align-items: center; gap: 38px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 205px; }
.logo-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); font-size: 24px; font-weight: 800; box-shadow: 0 8px 20px rgba(233,51,91,.25); }
.logo strong { display: block; font-size: 22px; letter-spacing: .5px; }
.logo small { display: block; color: var(--muted); font-size: 11px; }
.search { display: flex; flex: 1; max-width: 620px; height: 44px; border: 2px solid var(--brand); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; }
.search button { width: 86px; border: 0; color: #fff; background: var(--brand); font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.header-action { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; color: var(--ink); background: transparent; }
.header-action .icon { font-size: 20px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; color: #fff; background: var(--brand); font-size: 11px; }
.nav { background: #fff; box-shadow: 0 3px 12px rgba(25,34,54,.04); }
.nav .container { display: flex; align-items: center; height: 48px; gap: 30px; }
.nav-item { padding: 12px 0; border: 0; color: #404b60; background: transparent; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: var(--brand); }
.nav-item.active { border-bottom: 2px solid var(--brand); }
.hero { margin-top: 24px; display: grid; grid-template-columns: 230px 1fr 230px; gap: 16px; }
.category-panel, .hero-card, .notice-panel, .floor, .product-card, .detail-card, .checkout-card, .orders-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.category-panel { padding: 18px 0; }
.category-panel h3 { margin: 0 20px 10px; font-size: 16px; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list button { width: 100%; padding: 9px 20px; display: flex; justify-content: space-between; border: 0; color: #4e5a70; background: transparent; text-align: left; }
.category-list button:hover { color: var(--brand); background: #fff3f5; }
.hero-card { min-height: 300px; position: relative; overflow: hidden; background: linear-gradient(120deg, #ffe8ef, #fff4e9 52%, #ffe0cf); }
.hero-card.has-image { background-size: cover; background-position: center; }
.hero-content { padding: 50px 46px; max-width: 70%; }
.hero-content h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.hero-content p { margin: 0 0 24px; color: #6d5260; font-size: 16px; }
.hero-content .button { padding: 11px 23px; }
.hero-dots { position: absolute; bottom: 19px; left: 46px; display: flex; gap: 7px; }
.hero-dot { width: 22px; height: 5px; border: 0; border-radius: 3px; background: rgba(233,51,91,.25); }
.hero-dot.active { background: var(--brand); }
.notice-panel { padding: 18px; }
.notice-panel h3 { margin: 0 0 13px; font-size: 16px; }
.notice-panel ul { margin: 0; padding: 0; list-style: none; }
.notice-panel li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-panel li:last-child { border: 0; }
.notice-panel li button, .notice-panel li a { padding: 0; border: 0; color: var(--muted); background: transparent; text-align: left; }
.section-head { margin: 38px 0 16px; display: flex; align-items: end; justify-content: space-between; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 3px 0 0; color: var(--muted); }
.section-head button { padding: 0; border: 0; color: var(--brand); background: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { overflow: hidden; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(25,34,54,.15); }
.product-image { width: 100%; aspect-ratio: 1 / .84; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f1f4f7, #fff); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-fallback { color: #b8c1cf; font-size: 34px; }
.product-body { padding: 14px 15px 16px; }
.product-title { height: 48px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 600; }
.product-desc { margin-top: 5px; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.product-meta { margin-top: 12px; display: flex; align-items: end; justify-content: space-between; }
.price { color: var(--brand); font-size: 22px; font-weight: 800; }
.price small { font-size: 12px; font-weight: 500; }
.sales { color: var(--muted); font-size: 12px; }
.floor { margin-top: 28px; padding: 20px; }
.floor .section-head { margin: 0 0 15px; }
.floor .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer { margin-top: 60px; padding: 38px 0; color: #a7b0bf; background: #202a3b; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; }
.footer h3 { margin: 0 0 12px; color: #fff; }
.footer p { margin: 5px 0; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid #354157; text-align: center; font-size: 12px; }
.page { padding: 25px 0 50px; }
.crumbs { margin-bottom: 17px; color: var(--muted); font-size: 13px; }
.toolbar { margin-bottom: 18px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.toolbar select, .toolbar input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; }
.toolbar input { flex: 1; min-width: 150px; }
.button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 7px; color: #4d596d; background: #fff; }
.button:hover { border-color: #f19bad; color: var(--brand); }
.button.primary { border-color: var(--brand); color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button:disabled { cursor: not-allowed; color: #9ba4b3; border-color: var(--line); background: #f1f3f6; }
.pagination { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.pagination button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pagination button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.detail-card { padding: 28px; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(380px, 1fr); gap: 42px; }
.detail-photo { aspect-ratio: 1 / .86; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--soft); }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.35; }
.detail-info .summary { color: var(--muted); }
.detail-price { margin: 23px 0; padding: 15px 17px; border-radius: 8px; background: #fff3f5; }
.detail-price .price { font-size: 32px; }
.spec-group { margin: 18px 0; }
.spec-group strong { display: block; margin-bottom: 8px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 9px; }
.spec-option { padding: 6px 13px; border: 1px solid var(--line); border-radius: 5px; color: #4d596d; background: #fff; }
.spec-option.selected { border-color: var(--brand); color: var(--brand); background: #fff4f6; }
.buy-row { margin-top: 25px; display: flex; gap: 10px; align-items: center; }
.quantity { width: 80px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.detail-tabs { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.detail-tabs h2 { margin-top: 0; }
.content-html { overflow-wrap: anywhere; }
.content-html img { max-width: 100%; }
.article-card { max-width: 900px; margin: 0 auto; }
.article-card h1 { margin: 0; text-align: center; font-size: 30px; }
.article-card .summary { padding: 14px 18px; color: var(--muted); border-radius: 8px; background: var(--soft); }
.article-meta { color: var(--muted); text-align: center; }
.article-text { min-height: 180px; margin-top: 24px; font-size: 16px; line-height: 1.9; }
.article-navigation { margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.article-navigation a { color: var(--brand); }
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(18,25,40,.5); }
.drawer { width: min(520px, 100%); height: 100%; padding: 24px; overflow-y: auto; background: #fff; }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2, .modal-head h2 { margin: 0; }
.close { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #667287; background: var(--soft); font-size: 20px; }
.cart-row { padding: 15px 0; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.cart-row h4 { margin: 0; line-height: 1.35; }
.cart-row p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.cart-row .price { font-size: 16px; }
.cart-foot { padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.empty { padding: 55px 20px; color: var(--muted); text-align: center; }
.modal-backdrop { align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(440px, 100%); padding: 24px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.modal h2 { margin: 0; }
.form-field { margin-top: 16px; }
.form-field label { display: block; margin-bottom: 6px; color: #4e5a70; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fff; }
.form-field input, .form-field select { height: 42px; padding: 0 12px; }
.form-field textarea { min-height: 104px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(233,51,91,.08); }
.modal-actions { margin-top: 20px; display: flex; justify-content: end; gap: 10px; }
.address-list { display: grid; gap: 10px; }
.address-item { padding: 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.address-item.selected { border-color: var(--brand); background: #fff7f8; }
.address-item strong { margin-right: 8px; }
.address-actions { display: flex; gap: 8px; margin-top: 12px; }
.address-choice { padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.address-choice:hover { border-color: #f19bad; background: #fffafb; }
.address-choice .address-item { padding: 0; border: 0; background: transparent; }
.address-choice-actions { display: flex; gap: 8px; margin-top: 8px; }
.address-choice-actions .button { padding: 5px 9px; font-size: 12px; }
.address-modal { width: min(620px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; }
.address-form-grid, .region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.region-grid select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.check-line { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #4e5a70; }
.checkout-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; }
.checkout-card { padding: 22px; }
.checkout-card + .checkout-card { height: fit-content; }
.checkout-card h2 { margin-top: 0; }
.checkout-line { padding: 13px 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); }
.checkout-line img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.summary-line { padding: 9px 0; display: flex; justify-content: space-between; }
.summary-line.total { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.orders-card { padding: 22px; }
.payment-card { max-width: 680px; margin: 25px auto 80px; text-align: center; }
.payment-card h1 { margin: 8px 0; }
.payment-state { width: 62px; height: 62px; margin: 8px auto 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 32px; }
.payment-state.paid { background: #2db77d; }
.payment-card > p { color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
.payment-data { min-height: 110px; margin: 22px 0; padding: 18px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); }
.payment-qrcode { width: 180px; height: 180px; object-fit: contain; background: #fff; }
.payment-link { color: var(--brand); font-weight: 700; }
.payment-code { max-width: 100%; overflow-wrap: anywhere; color: #4d596d; }
.error { min-height: 22px; margin: 10px 0 0; color: #d6294e; }
.order-item { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item h3 { margin: 0; font-size: 15px; }
.order-item p { margin: 4px 0; color: var(--muted); }
.order-actions { display: flex; gap: 8px; }
.account-page { padding: 28px 0 60px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.account-sidebar { position: sticky; top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-person { padding: 20px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.account-person > img, .account-person > span { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #263349; object-fit: cover; font-size: 18px; font-weight: 800; }
.account-person div { min-width: 0; }
.account-person strong, .account-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-person small { color: var(--muted); font-size: 12px; }
.account-nav { padding: 8px 0; display: grid; }
.account-nav-item { padding: 11px 18px; border: 0; border-left: 3px solid transparent; color: #4e5a70; background: transparent; text-align: left; }
.account-nav-item:hover { color: var(--brand); background: #fff7f8; }
.account-nav-item.active { color: var(--brand); border-left-color: var(--brand); background: #fff3f5; font-weight: 700; }
.account-content { min-width: 0; padding: 0 2px; }
.account-heading { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-heading h1 { margin: 0; font-size: 24px; }
.account-heading p { margin: 3px 0 0; color: var(--muted); }
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-stats > * { min-width: 0; padding: 20px 14px; display: grid; gap: 2px; border: 0; border-right: 1px solid var(--line); color: inherit; background: transparent; text-align: center; }
.account-stats > *:last-child { border-right: 0; }
.account-stats button:hover { color: var(--brand); background: #fffafb; }
.account-stats strong { font-size: 24px; }
.account-stats span { color: var(--muted); font-size: 12px; }
.account-section { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-section-head, .account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-section-head h2 { margin: 0; font-size: 17px; }
.account-section-head button { padding: 0; border: 0; color: var(--brand); background: transparent; }
.account-status-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.account-status { min-width: 0; padding: 14px 8px; display: grid; gap: 2px; border-radius: 6px; background: var(--soft); text-align: center; }
.account-status strong { font-size: 20px; }
.account-status span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-balance { margin-top: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-balance > div { margin-right: auto; display: flex; align-items: baseline; gap: 12px; }
.account-balance span { color: var(--muted); }
.account-balance strong { font-size: 24px; }
.account-form { max-width: 760px; padding: 2px 0 20px; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.account-form-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.account-toolbar { margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-toolbar span { color: var(--muted); }
.account-address { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.account-address:last-child { border-bottom: 0; }
.account-address > div:first-child { min-width: 0; }
.account-address-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.account-address-title b { padding: 1px 6px; border-radius: 4px; color: #196b51; background: #e6f6ef; font-size: 11px; }
.account-address p { margin: 5px 0 1px; overflow-wrap: anywhere; color: #4e5a70; }
.account-address small { color: var(--muted); }
.account-row-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.button.danger { color: #bd2948; border-color: #f0c7d0; }
.button.danger:hover { color: #fff; border-color: #bd2948; background: #bd2948; }
.account-order-list { border-top: 1px solid var(--line); }
.account-product-list, .account-ledger, .account-message-list, .account-review-list, .account-aftersale-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-product-row { min-width: 0; padding: 16px; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.account-product-row:last-child { border-bottom: 0; }
.account-product-image, .account-modal-product > img, .account-modal-product > span { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; color: #aab3c1; background: var(--soft); font-size: 25px; }
.account-product-image img, .account-modal-product > img { width: 100%; height: 100%; object-fit: cover; }
.account-product-main { min-width: 0; }
.account-product-title { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 700; line-height: 1.45; }
.account-product-title:hover, .account-review-goods a:hover, .account-order-goods a:hover { color: var(--brand); }
.account-product-main p { margin: 5px 0 7px; color: var(--muted); font-size: 12px; }
.account-product-main .price { font-size: 18px; }
.account-pagination { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.account-pagination .button { min-width: 38px; min-height: 38px; padding: 7px 11px; }
.account-points-summary { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-points-summary > div { min-width: 0; padding: 20px; display: flex; align-items: baseline; gap: 8px; border: 1px solid #dce7e3; border-radius: 8px; background: #f2faf7; }
.account-points-summary > div:last-child { border-color: #e4e7ef; background: #f5f7fb; }
.account-points-summary span { margin-right: auto; color: #4d675f; }
.account-points-summary strong { overflow-wrap: anywhere; color: #146a50; font-size: 26px; }
.account-points-summary > div:last-child strong { color: #465a78; }
.account-points-summary small { color: var(--muted); }
.account-ledger article { min-width: 0; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 18px; align-items: center; border-bottom: 1px solid var(--line); }
.account-ledger article:last-child { border-bottom: 0; }
.account-ledger article > div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.account-ledger article > div strong { overflow-wrap: anywhere; }
.account-ledger article span, .account-ledger article p { color: var(--muted); font-size: 12px; }
.account-ledger article p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.account-ledger article b { grid-column: 2; grid-row: 1 / 3; font-size: 18px; }
.account-ledger .positive { color: #137959; }
.account-ledger .negative { color: #bd2948; }
.account-message-list article { min-width: 0; padding: 18px; border-bottom: 1px solid var(--line); }
.account-message-list article:last-child { border-bottom: 0; }
.account-message-list header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.account-message-list header strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.account-message-list header span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.account-message-detail { margin-top: 10px; overflow-x: auto; overflow-wrap: anywhere; color: #4e5a70; }
.account-message-detail > :first-child { margin-top: 0; }
.account-message-detail > :last-child { margin-bottom: 0; }
.account-message-detail img { max-width: 100%; height: auto; }
.account-message-detail table { max-width: 100%; border-collapse: collapse; }
.account-message-detail td, .account-message-detail th { padding: 6px 8px; border: 1px solid var(--line); }
.account-review { min-width: 0; padding: 18px; border-bottom: 1px solid var(--line); }
.account-review:last-child { border-bottom: 0; }
.account-review-goods { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.account-review-goods > a, .account-review-goods > a img, .account-review-goods > a span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 6px; background: var(--soft); object-fit: cover; }
.account-review-goods > div { min-width: 0; }
.account-review-goods > div a { display: block; overflow: hidden; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.account-review-goods small, .account-modal-product small { display: block; color: var(--muted); }
.account-rating { flex: 0 0 auto; color: #e99a14; white-space: nowrap; font-size: 17px; }
.account-review-content { margin: 14px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.account-review-images { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.account-review-images img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.account-review-reply { margin: 12px 0; padding: 12px 14px; border-left: 3px solid #4b769f; background: #f4f7fa; }
.account-review-reply p { margin: 4px 0; overflow-wrap: anywhere; }
.account-review-reply small { color: var(--muted); }
.rating-input { min-height: 36px; display: flex; align-items: center; gap: 2px; }
.rating-input button { width: 36px; height: 36px; padding: 0; border: 0; color: #c8ced8; background: transparent; font-size: 26px; line-height: 1; }
.rating-input button:hover, .rating-input button.selected { color: #e99a14; }
.account-modal { width: min(620px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; }
.account-modal.wide { width: min(760px, 100%); }
.account-modal-product { min-width: 0; margin: 16px 0; display: flex; align-items: center; gap: 13px; }
.account-modal-product > div, .account-modal-product > strong { min-width: 0; overflow-wrap: anywhere; }
.account-modal-product > img, .account-modal-product > span { width: 64px; height: 64px; flex: 0 0 64px; }
.order-review-list { display: grid; gap: 14px; }
.order-review-item { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.order-review-item .account-modal-product { margin-top: 0; }
.account-aftersale { min-width: 0; padding: 18px; border-bottom: 1px solid var(--line); }
.account-aftersale:last-child { border-bottom: 0; }
.account-aftersale > header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.account-aftersale > header > div { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.account-aftersale > header span, .account-aftersale > header small { color: var(--muted); font-size: 12px; }
.account-aftersale-goods { min-width: 0; margin: 14px 0; padding: 12px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; border-radius: 7px; background: var(--soft); }
.account-aftersale-goods > img, .account-aftersale-goods > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 6px; object-fit: cover; background: #fff; }
.account-aftersale-goods > div { min-width: 0; }
.account-aftersale-goods strong, .account-aftersale-goods p, .account-aftersale-goods small { display: block; overflow-wrap: anywhere; }
.account-aftersale-goods p { margin: 3px 0; color: #4e5a70; }
.account-aftersale-goods small { color: var(--muted); }
.aftersale-detail-state { margin-top: 16px; padding: 14px 16px; border-left: 3px solid #397a68; background: #f0f8f5; }
.aftersale-detail-state p { margin: 3px 0 0; overflow-wrap: anywhere; color: #4e675f; }
.aftersale-detail-grid { margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.aftersale-detail-grid > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aftersale-detail-grid dt { color: var(--muted); font-size: 12px; }
.aftersale-detail-grid dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.aftersale-note { margin: 12px 0; padding: 12px 14px; border-radius: 6px; background: var(--soft); }
.aftersale-note.warning { color: #8a4c20; background: #fff6e8; }
.aftersale-note p { margin: 4px 0 0; overflow-wrap: anywhere; }
.aftersale-history { margin-top: 18px; }
.aftersale-history h3 { margin: 0 0 8px; font-size: 15px; }
.aftersale-history > div { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.aftersale-history span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.account-order-card { min-width: 0; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.account-order-card > header, .account-order-card > footer { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fafbfc; }
.account-order-card > header { border-bottom: 1px solid var(--line); }
.account-order-card > header > div { min-width: 0; }
.account-order-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.account-order-card header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.account-order-card > header > strong { flex: 0 0 auto; color: #27705b; }
.account-order-goods { min-width: 0; padding: 14px 16px; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.account-order-goods > a, .account-order-goods > a img, .account-order-goods > a span { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 6px; object-fit: cover; background: var(--soft); }
.account-order-goods > div { min-width: 0; }
.account-order-goods > div > a { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 700; }
.account-order-goods small { display: block; overflow-wrap: anywhere; color: var(--muted); }
.account-order-goods p { margin: 3px 0 0; color: #4e5a70; }
.account-order-card > footer > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.account-order-card > footer .price { font-size: 19px; }
.empty.compact { padding: 20px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 40; transform: translateX(-50%); padding: 10px 18px; border-radius: 7px; color: #fff; background: #202a3b; box-shadow: var(--shadow); }
.loading { padding: 75px 20px; color: var(--muted); text-align: center; }
@media (max-width: 980px) {
  .header-main { gap: 15px; }
  .logo { min-width: auto; }
  .logo small { display: none; }
  .hero { grid-template-columns: 190px 1fr; }
  .notice-panel { grid-column: 1 / -1; }
  .product-grid, .floor .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-page { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-stats > *:nth-child(2) { border-right: 0; }
  .account-stats > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .account-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1200px); }
  .top-links { display: none; }
  .header-main { height: auto; padding: 13px 0; flex-wrap: wrap; }
  .logo { flex: 1; }
  .header-actions { gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-action span:not(.icon):not(.badge) { display: none; }
  .nav .container { overflow-x: auto; gap: 24px; }
  .hero { grid-template-columns: 1fr; }
  .category-panel { display: none; }
  .hero-content { padding: 38px 27px; max-width: 100%; }
  .product-grid, .floor .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .floor { padding: 13px; }
  .product-body { padding: 10px; }
  .product-title { height: 44px; font-size: 13px; }
  .price { font-size: 18px; }
  .detail-card { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .detail-info h1 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-wrap: wrap; }
  .address-form-grid, .region-grid { grid-template-columns: 1fr; }
  .account-page { padding-top: 16px; grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-person { padding: 14px; }
  .account-nav { padding: 0; display: flex; overflow-x: auto; border-top: 1px solid var(--line); }
  .account-nav-item { flex: 0 0 auto; padding: 10px 14px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .account-nav-item.active { border-left-color: transparent; border-bottom-color: var(--brand); }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-address { align-items: flex-start; flex-direction: column; }
  .account-row-actions { width: 100%; flex-wrap: wrap; }
  .account-balance { align-items: flex-start; flex-wrap: wrap; }
  .account-balance > div { width: 100%; }
  .account-product-row { grid-template-columns: 70px minmax(0, 1fr); align-items: start; padding: 13px; gap: 12px; }
  .account-product-image { width: 70px; height: 70px; }
  .account-product-row .account-row-actions { grid-column: 1 / -1; }
  .account-points-summary { grid-template-columns: 1fr; }
  .account-points-summary > div { padding: 15px; }
  .account-ledger article { gap: 3px 10px; }
  .account-ledger article > div { align-items: flex-start; flex-direction: column; }
  .account-message-list article { padding: 15px; }
  .account-message-list header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .account-review { padding: 15px; }
  .account-review-goods { grid-template-columns: 58px minmax(0, 1fr); align-items: start; }
  .account-review-goods > div a { white-space: normal; }
  .account-review-goods .account-rating { grid-column: 2; }
  .modal-backdrop { padding: 10px; }
  .account-modal { max-height: calc(100vh - 20px); padding: 18px; }
  .account-modal .modal-head { gap: 10px; }
  .account-modal .modal-head h2 { font-size: 19px; }
  .account-modal-product > img, .account-modal-product > span { width: 54px; height: 54px; flex-basis: 54px; }
  .order-review-item { padding: 12px; }
  .account-aftersale { padding: 15px; }
  .account-aftersale > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .aftersale-detail-grid { grid-template-columns: 1fr; }
  .aftersale-history > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .account-order-card > header, .account-order-card > footer { align-items: flex-start; flex-direction: column; padding: 12px; }
  .account-order-card > header > strong { align-self: flex-start; }
  .account-order-goods { grid-template-columns: 58px minmax(0, 1fr); align-items: start; padding: 12px; gap: 10px; }
  .account-order-goods > a, .account-order-goods > a img, .account-order-goods > a span { width: 58px; height: 58px; }
  .account-order-goods > .button { grid-column: 1 / -1; justify-self: start; }
  .account-order-card > footer > div:first-child { width: 100%; }
  .order-item { align-items: flex-start; flex-wrap: wrap; }
  .order-actions { width: 100%; flex-wrap: wrap; }
  .modal-actions { flex-wrap: wrap; }
}
