:root{font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#1f2937;background:#f6f7f9;line-height:1.5;font-weight:400;font-size:14px;--brand: #0f5c56;--brand-dark: #0b4945;--brand-soft: #e6f3f1;--border: #e5e7eb;--text-soft: #6b7280;--danger: #c2410c;--card-radius: 8px}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;background:#f6f7f9;color:#1f2937;min-width:1200px}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input{font:inherit}button{border:0}.container{width:min(1200px,calc(100% - 40px));margin:0 auto}.shell,.page-shell{min-height:100vh}.page-shell{padding-top:24px;padding-bottom:40px}.page-shell--minimal{padding-top:40px}.page{display:grid;gap:24px}.panel,.cashier-page__card{background:#fff;border:1px solid var(--border);border-radius:var(--card-radius);box-shadow:0 6px 20px #0f172a0a}.panel{padding:24px}.header{position:sticky;top:0;z-index:20;background:#fffffffa;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.header__topbar,.header__inner,.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.header__topbar{min-height:40px;color:var(--text-soft);font-size:13px}.header__support{display:flex;align-items:center;gap:16px}.header__inner{min-height:76px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:#111827;white-space:nowrap}.brand__mark,.header-account__badge,.header-cart__icon{width:34px;height:34px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-weight:700}.brand__mark--image{background:#fff;border:1px solid var(--border);padding:4px;overflow:hidden}.brand__logo{width:100%;height:100%;object-fit:contain;border-radius:4px}.nav,.actions,.toolbar,.detail__actions,.cashier-actions,.payment-grid,.checkbox-row,.quantity-stepper,.cart-toolbar,.catalog-toolbar{display:flex;align-items:center;gap:12px}.nav{flex:0 0 auto;flex-wrap:wrap}.nav a,.welcome,.muted,.footer__meta{color:var(--text-soft)}.nav a.router-link-active,.nav a:hover,.header-link:hover{color:var(--brand)}.header-search{display:flex;align-items:center;gap:10px;flex:1;max-width:420px}.header-search__button{width:44px;height:42px;padding:0}.header-search__button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5}.header-cart__icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.header-account,.header-cart{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.header-account__profile{display:inline-flex;align-items:center;gap:8px}.header-link{background:transparent;color:var(--text-soft);cursor:pointer;padding:0}.footer{padding:24px 0 32px}.button{border-radius:8px;background:var(--brand);color:#fff;padding:11px 18px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px;transition:background-color .2s ease}.button:hover{background:var(--brand-dark)}.button:disabled{opacity:.7;cursor:not-allowed}.button--ghost{background:#fff;color:var(--brand);border:1px solid #cfe3e0}.button--ghost:hover{background:var(--brand-soft)}.button--wide{width:100%}.button--small{padding:8px 12px;font-size:13px}.icon-button{width:32px;height:32px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}.input{width:100%;min-height:44px;border:1px solid #d1d5db;border-radius:8px;padding:0 14px;background:#fff}.input:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px #0f5c561a}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-title h1,.section-title h2,.hero h1,.login-card h1,.cashier-page__header h1,.product-info h1{margin:0}.eyebrow{margin:0 0 8px;color:var(--brand);font-size:14px;font-weight:600}.alert,.empty-state{padding:14px 16px;border-radius:8px;border:1px solid #f3d1c8;background:#fff5f2;color:#9a3412}.empty-state{border-color:var(--border);background:#fafafa;color:var(--text-soft)}.home-hero{display:grid;grid-template-columns:220px minmax(0,1fr) 260px;gap:20px}.category-nav{display:grid;gap:8px;align-content:start}.category-nav__item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:8px;background:#f9fafb;color:#374151}.category-nav__item:hover{background:var(--brand-soft);color:var(--brand)}.home-banner{display:grid;gap:24px;grid-template-columns:1.2fr .8fr;min-height:320px;background:linear-gradient(135deg,#f5fbfa,#fff)}.home-banner__content{display:grid;align-content:center;gap:16px}.home-banner__content h1{font-size:32px;line-height:1.2}.hero__text{margin:0;color:#4b5563}.home-banner__stats{display:grid;gap:12px;align-content:center}.home-banner__stat,.home-sidecard{display:grid;gap:8px}.home-banner__stat{padding:16px;border-radius:8px;background:#fff;border:1px solid var(--border)}.home-sidecards,.product-grid{display:grid;gap:16px}.product-grid--four{grid-template-columns:repeat(4,minmax(0,1fr))}.product-grid--waterfall{display:block;column-count:4;column-gap:16px}.product-grid--waterfall .product-card{display:inline-grid;width:100%;margin:0 0 16px;break-inside:avoid}.product-card,.order-card,.banner-card{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.product-card{display:grid;align-content:start}.product-card__image img{width:100%;aspect-ratio:1 / 1;object-fit:cover;background:#f3f4f6}.safe-image-fallback{width:100%;min-height:120px;display:grid;place-items:center;padding:16px;border-radius:8px;background:linear-gradient(135deg,#f8fafc,#eef2f5);color:#64748b;text-align:center;border:1px dashed #d5dde3;font-size:14px}.product-card__image .safe-image-fallback{aspect-ratio:1 / 1}.product-card__body{display:grid;gap:10px;padding:16px}.product-card__title{font-weight:600;line-height:1.45;min-height:44px}.product-card__meta,.detail__desc{color:var(--text-soft);margin:0}.product-card__price-row,.product-card__footer,.summary-panel__row,.summary-panel__total,.quantity-box,.product-info__price-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-card__price,.detail__price,.summary-card__price,.pay-success-card__amount{font-size:30px;font-weight:700;color:#b91c1c}.product-card__market-price{color:#9ca3af;text-decoration:line-through}.product-card__sales{color:var(--text-soft);font-size:13px}.catalog-layout,.cart-layout,.checkout-layout,.product-detail-layout{display:grid;gap:24px}.catalog-layout{grid-template-columns:260px minmax(0,1fr)}.catalog-main,.cart-main,.checkout-main{display:grid;gap:16px}.filter-panel{display:grid;gap:20px;align-content:start}.filter-panel__section{display:grid;gap:10px}.filter-panel__section h3,.cashier-block h2{margin:0;font-size:16px}.filter-chip,.sort-button,.tag-button{border:1px solid var(--border);background:#fff;border-radius:8px;padding:9px 12px;cursor:pointer;text-align:left}.filter-chip,.tag-button{width:100%}.filter-chip--active,.sort-button--active,.tag-button--active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.toolbar--stack{flex-direction:column;align-items:stretch}.product-detail-layout{grid-template-columns:minmax(0,1fr) 460px;align-items:start}.product-detail-left{display:grid;min-width:0;gap:16px;align-content:start}.product-introduction{min-width:0}.product-gallery img{width:100%;border-radius:8px}.product-gallery__stage{position:relative}.product-gallery__image,.product-gallery .safe-image-fallback{width:100%;min-height:420px;border-radius:8px}.product-gallery__nav{position:absolute;z-index:1;top:50%;width:40px;height:40px;border:0;border-radius:50%;background:#0f172a99;color:#fff;cursor:pointer;font-size:32px;line-height:32px;transform:translateY(-50%)}.product-gallery__nav--prev{left:16px}.product-gallery__nav--next{right:16px}.product-gallery__thumbs{display:flex;gap:10px;overflow-x:auto;margin-top:14px;padding-bottom:2px}.product-gallery__thumb{flex:0 0 72px;width:72px;height:72px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:transparent;cursor:pointer}.product-gallery__thumb--active{border-color:var(--brand)}.product-gallery__thumb img,.product-gallery__thumb .safe-image-fallback{width:100%;min-height:100%;height:100%;object-fit:cover;border-radius:5px}.product-info{position:sticky;top:116px;display:grid;gap:20px}.product-info__meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;border-radius:8px;background:#f9fafb}.product-info__meta div{display:grid;gap:4px}.sku-groups,.address-form,.coupon-list--stack,.product-description,.review-list,.order-list,.checkout-items,.cashier-block{display:grid;gap:16px}.sku-group{display:grid;gap:10px}.tag-list{display:flex;flex-wrap:wrap;gap:8px}.quantity-box{padding:14px 16px;border-radius:8px;background:#f9fafb}.quantity-stepper{padding:6px;border:1px solid var(--border);border-radius:8px;background:#fff}.detail__actions--wide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product-description{color:var(--text);line-height:1.8;word-break:break-word}.product-description>:first-child{margin-top:0}.product-description>:last-child{margin-bottom:0}.product-description p,.product-description ul,.product-description ol,.product-description table,.product-description blockquote,.product-description h1,.product-description h2,.product-description h3,.product-description h4,.product-description h5,.product-description h6{margin:0 0 16px}.product-description p:has(>img:only-child){margin:0;line-height:0}.product-description img{display:block;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain;margin:0 auto!important;border-radius:0!important}.product-description table{width:100%;border-collapse:collapse}.product-description table td,.product-description table th{padding:10px 12px;border:1px solid var(--border)}.product-description a{color:var(--brand)}.cart-layout,.checkout-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}.cart-row{display:grid;grid-template-columns:auto 100px minmax(0,1fr) auto auto;align-items:center;gap:16px}.cart-row__image{width:100px;height:100px;object-fit:cover;border-radius:8px;background:#f3f4f6}.checkout-item>img,.checkout-item>.safe-image-fallback{width:88px;height:88px;border-radius:8px}.cart-row__content{display:grid;gap:8px}.cart-row__price{font-size:22px;font-weight:700;color:#b91c1c}.summary-panel{position:sticky;top:116px;display:grid;gap:16px}.summary-panel__discount{color:var(--brand)}.summary-panel__total{padding-top:16px;border-top:1px solid var(--border);font-size:18px}.address-card{display:grid;gap:8px;padding:16px;border-radius:8px;background:#f9fafb}.address-form__grid,.order-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.checkout-item{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:16px}.checkout-item img{width:88px;height:88px;object-fit:cover;border-radius:8px;background:#f3f4f6}.checkout-item__body{display:grid;gap:8px}.coupon-list{list-style:none;padding:0;margin:0}.coupon-list li{padding:12px 14px;border-radius:8px;border:1px solid var(--border);background:#fafafa}.payment-grid{flex-wrap:wrap}.payment-grid--stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.payment-option-card{display:flex;align-items:center;gap:8px;padding:14px 16px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}.payment-option-card input{margin:0}.payment-option-card--active{border-color:var(--brand);background:#f8fcfb;box-shadow:inset 0 0 0 1px #0f5c561f}.payment-option-card__icon{width:42px;height:42px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:14px;font-weight:700}.payment-option-card__icon--image{background:#fff;border:1px solid var(--border)}.payment-option-card__icon img{width:30px;height:30px;object-fit:contain}.payment-option-card__content{display:grid;gap:4px}.payment-option-card__content strong{font-size:14px}.payment-option-card__content small{color:var(--text-soft)}.cashier-page{min-height:calc(100vh - 80px);display:grid;place-items:center}.cashier-page__card{width:min(640px,calc(100% - 32px));padding:32px;display:grid;gap:24px}.cashier-page__header{text-align:center}.cashier-page__header h1{font-size:28px}.cashier-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-radius:8px;background:#f9fafb}.cashier-hero--center{text-align:center}.cashier-timer{display:grid;gap:8px;justify-items:end}.cashier-actions--center{display:grid;grid-template-columns:1fr 1fr}.code-block{padding:16px;border-radius:8px;background:#111827;color:#e5e7eb;overflow:auto}.login-page{min-height:calc(100vh - 48px);display:grid;place-items:center;padding:40px 0}.login-card{width:min(420px,100%);display:grid;gap:16px}.field{display:grid;gap:8px}.pay-success-page{align-items:center}.pay-success-card{width:min(560px,100%);margin:0 auto;text-align:center}.pay-success-card__actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.order-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.account-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}.account-sidebar,.account-content,.account-section,.account-nav,.account-profile-card,.account-profile-card__meta,.account-card-list,.account-record-card{display:grid;gap:16px}.account-sidebar{position:sticky;top:116px}.account-profile-card__avatar{width:64px;height:64px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;font-size:24px;font-weight:700}.account-level{display:inline-flex;width:fit-content;padding:6px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:13px;font-weight:600}.account-nav__button{border:1px solid var(--border);background:#fff;color:#374151;border-radius:8px;padding:12px 14px;cursor:pointer;text-align:left}.account-nav__button--active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.account-stat-grid,.account-balance-grid,.account-favorite-grid{display:grid;gap:16px}.account-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.account-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-stat-card,.account-balance-card,.account-record-card{padding:18px;border-radius:8px;border:1px solid var(--border);background:#fafafa}.account-stat-card strong,.account-balance-card strong{font-size:28px;color:#111827}.account-favorite-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.review-item{padding:16px;border-radius:8px;background:#fafafa;border:1px solid var(--border)}@media(max-width:1100px){.home-hero,.catalog-layout,.cart-layout,.checkout-layout,.product-detail-layout,.account-layout{grid-template-columns:1fr}.summary-panel,.product-info,.account-sidebar{position:static}.product-grid--four,.account-favorite-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-grid--waterfall{column-count:3}.home-sidecards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.container{width:min(100%,calc(100% - 24px))}.header__inner,.header__topbar,.footer__inner,.nav,.actions,.catalog-toolbar,.cart-toolbar,.cashier-hero,.pay-success-card__actions{flex-direction:column;align-items:flex-start}.header-search,.nav,.actions{width:100%;max-width:none}.product-grid--four,.payment-grid--stack,.product-info__meta,.address-form__grid,.order-detail-grid,.cashier-actions--center,.account-stat-grid,.account-balance-grid,.account-favorite-grid{grid-template-columns:1fr 1fr}.cart-row,.checkout-item{grid-template-columns:1fr;align-items:start}.product-grid--waterfall{column-count:2}}@media(max-width:640px){.page-shell{padding-top:16px}.panel,.cashier-page__card{padding:18px}.home-banner,.product-grid--four,.payment-grid--stack,.product-info__meta,.address-form__grid,.order-detail-grid,.cashier-actions--center,.detail__actions--wide,.home-sidecards,.account-stat-grid,.account-balance-grid,.account-favorite-grid{grid-template-columns:1fr}.product-grid--waterfall{column-count:1}.cashier-page__header,.cashier-hero--center,.cashier-timer{text-align:left;justify-items:start}.summary-card__price,.pay-success-card__amount,.detail__price,.product-card__price{font-size:24px}}
