:root { font-family: Arial, Helvetica, sans-serif; color: #333; background: #f7f7f7; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f7f7f7; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.topbar { position: fixed; inset: 0 0 auto; height: 48px; z-index: 20; background: rgba(255,255,255,.97); box-shadow: 0 1px 8px rgba(0,0,0,.14); }
.topbar-inner { width: min(100%, 1280px); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 8px; margin: auto; }
.brand { display: flex; align-items: center; width: 48px; height: 40px; flex: 0 0 48px; }
.brand.title-brand { width: 98px; flex-basis: 98px; }
.brand img { width: 35px; max-height: 35px; object-fit: contain; }
.page-title { width: 100%; text-align: center; color: #333; white-space: nowrap; }
.header-spacer { flex: 1; }
.searchbar { flex: 1; height: 30px; display: flex; align-items: center; background: #f0f0f0; border-radius: 18px; color: #888; padding: 0 10px; }
.searchbar span { font-size: 27px; line-height: 1; transform: rotate(-20deg); margin-right: 6px; }
.searchbar input { width: 100%; border: 0; outline: 0; background: transparent; color: #555; font-size: 14px; }
.searchbar button { width: 20px; height: 20px; background: transparent; }
.icon-btn { color: #888; background: transparent; font-size: 28px; line-height: 1; padding: 0; }
.icon-btn.menu { width: 42px; font-size: 30px; transform: rotate(180deg); }
.icon-btn.back { font-size: 38px; width: 32px; font-weight: 200; }
.page { padding: 58px 0 78px; max-width: 1280px; min-height: 100vh; margin: auto; }
.home-page { background: #f7f7f7; }
.hero { height: 360px; background: #fff; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.hero img { width: min(100%, 640px); height: 100%; object-fit: cover; }
.quick-actions { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 720px; margin: auto; padding: 18px 14px 9px; background: #fff; }
.quick-actions button { background: transparent; display: flex; flex-direction: column; align-items: center; color: #555; gap: 4px; }
.quick-icon { color: #1269d2; font-size: 27px; height: 31px; line-height: 31px; }
.quick-actions small { font-size: 12px; }
.announcement { max-width: 720px; display: flex; align-items: center; margin: 0 auto 9px; padding: 10px 14px; gap: 12px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: #fff; font-size: 12px; }
.announcement b { color: #e33; font-weight: 400; text-transform: lowercase; white-space: nowrap; }
.announcement span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.announcement a { color: #999; }
.recommend { max-width: 720px; margin: 0 auto 10px; background: #fff; padding-bottom: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 15px 9px; background: #fff; text-align: left; font-size: 16px; color: #333; }
.section-heading span { display: flex; align-items: center; gap: 7px; }
.section-heading i { color: #ed255c; font-style: normal; font-size: 17px; }
.section-heading em { color: #aaa; font-size: 28px; font-style: normal; font-weight: 200; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 12px; }
.product-card { min-width: 0; overflow: hidden; }
.product-photo { display: block; width: 100%; aspect-ratio: 1; padding: 0; background: #f4f4f4; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-name { display: block; width: 100%; padding: 6px 1px 0; background: transparent; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #555; font-size: 12px; }
.product-card strong { display: block; color: #f23d42; padding-top: 4px; font-size: 13px; }
.bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; height: 54px; display: flex; justify-content: center; background: rgba(255,255,255,.98); border-top: 1px solid #ddd; }
.bottom-item { width: min(20%, 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: transparent; color: #111; }
.bottom-item span { font-size: 22px; line-height: 23px; }
.bottom-item small { color: #888; font-size: 10px; }
.bottom-item.active span, .bottom-item.active small { color: #f11; }
.menu-drawer { display: none; position: fixed; z-index: 40; inset: 48px 0 54px; background: rgba(0,0,0,.08); }
.menu-drawer.open { display: block; }
.menu-card { position: absolute; right: 7px; top: 5px; width: 170px; background: #fff; box-shadow: 0 2px 16px #bbb; padding: 8px 0; }
.menu-card a { display: flex; gap: 13px; align-items: center; padding: 12px 20px; color: #444; font-size: 14px; }
.menu-card a:hover { background: #f5f5f5; }
.drawer-close { position: absolute; right: 7px; top: 3px; background: transparent; color: #aaa; font-size: 20px; }
.category-page { display: flex; max-width: 1000px; background: #fff; padding-top: 48px; }
.category-list { width: 100px; flex: 0 0 100px; background: #f4f4f4; }
.category-tab { display: block; width: 100%; min-height: 45px; padding: 11px 5px; background: transparent; color: #555; font-size: 13px; line-height: 1.2; }
.category-tab.active { background: #fff; color: #f22; border-left: 2px solid #f22; }
.category-results { flex: 1; min-width: 0; padding: 12px; }
.category-banner { height: 75px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; background: linear-gradient(100deg, #fafafa, #fff); color: #555; }
.category-banner span { font-size: 34px; color: #e62855; }
.category-banner strong { font-size: 15px; font-weight: 400; }
.category-page .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 0; }
.empty-copy { padding: 30px; color: #aaa; text-align: center; }
.product-page { max-width: 640px; padding: 0 0 54px; background: #f7f7f7; }
.product-gallery { position: relative; height: min(100vw, 640px); min-height: 360px; background: #111; overflow: hidden; }
.product-gallery > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-back, .share { position: absolute; z-index: 1; top: 15px; color: #fff; background: transparent; font-size: 32px; }
.gallery-back { left: 15px; font-weight: 200; }
.share { right: 15px; font-size: 27px; }
.gallery-dot { position: absolute; bottom: 37px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #10b51a; }
.product-info { padding: 0 15px 100px; background: #fff; }
.promotion { margin: 0 -15px; padding: 5px 15px; color: #f22; background: #ff2b88; font-size: 12px; text-align: right; }
.product-info h1 { margin: 13px 0 10px; font-size: 19px; font-weight: 400; line-height: 1.35; }
.price-row { display: flex; align-items: center; justify-content: space-between; }
.price-row strong { color: #f0433f; font-size: 24px; }
.price-row button { color: #999; background: transparent; }
.shipping { display: flex; gap: 15px; padding: 14px 0; color: #999; border-bottom: 1px solid #eee; font-size: 12px; }
.shipping b { color: #555; font-weight: 400; }
.detail-tabs { display: flex; gap: 30px; padding-top: 14px; border-bottom: 1px solid #eee; }
.detail-tabs button { padding: 0 0 10px; color: #888; background: transparent; }
.detail-tabs button.active { color: #333; border-bottom: 2px solid #f23; }
.description { font-size: 13px; color: #555; padding: 8px 0; }
.review-summary { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 12px; color: #888; }
.review-summary b { color: #333; }
.review-summary button { margin-left: auto; border: 1px solid #ddd; border-radius: 3px; color: #666; background: #fff; padding: 5px 8px; font-size: 11px; }
.product-actions { position: fixed; z-index: 25; inset: auto 0 0; height: 54px; display: flex; justify-content: center; background: #fff; border-top: 1px solid #eee; }
.product-actions button { height: 54px; color: #fff; font-size: 14px; }
.product-actions .favorite { display: flex; width: 22%; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #ff6537; background: #fff; font-size: 27px; }
.product-actions .favorite small { color: #777; font-size: 10px; }
.product-actions .add-cart { width: 39%; background: #ffad3c; }
.product-actions .buy-now { width: 39%; background: #f75555; }
.product-actions .favorite.liked { color: #f23; }
.cart-page { max-width: 640px; padding-top: 48px; }
.empty-cart { display: flex; flex-direction: column; align-items: center; padding-top: 115px; color: #666; }
.empty-cart-icon { position: relative; color: #ccc; font-size: 75px; line-height: 70px; }
.empty-cart-icon i { position: absolute; right: -10px; bottom: 2px; width: 28px; height: 28px; border: 2px solid #ccc; border-radius: 50%; color: #ccc; font-size: 21px; font-style: normal; line-height: 23px; text-align: center; background: #f7f7f7; }
.empty-cart p { margin: 18px 0 24px; font-size: 16px; }
.empty-cart button, .empty-page button { border: 1px solid #aaa; border-radius: 4px; padding: 7px 30px; color: #777; background: transparent; }
.cart-list { padding: 10px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #eee; background: #fff; }
.cart-select { flex: 0 0 18px; accent-color: #ef4548; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info small { display: block; margin-top: 5px; color: #999; font-size: 11px; }
.quantity-control { display: flex; align-items: center; gap: 9px; height: 30px; border: 1px solid #e4e4e4; border-radius: 3px; }
.quantity-control button { width: 28px; height: 28px; color: #555; background: #fafafa; }
.quantity-control span { min-width: 16px; color: #555; font-size: 12px; text-align: center; }
.remove-cart { background: transparent; color: #aaa; font-size: 22px; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; background: #f5f5f5; }
.cart-item h3 { margin: 0 0 8px; font-size: 14px; font-weight: 400; }
.cart-item strong { color: #f04444; }
.cart-item > div { flex: 1; }
.cart-item > button { background: transparent; color: #aaa; font-size: 22px; }
.cart-summary { position: fixed; z-index: 25; inset: auto 0 54px; display: flex; align-items: center; justify-content: center; gap: 13px; height: 50px; background: #fff; border-top: 1px solid #ddd; font-size: 12px; }
.cart-summary label { color: #666; }
.cart-summary b { color: #f22; }
.cart-summary button { height: 50px; padding: 0 20px; color: #fff; background: #f34e4e; }
.cart-summary button:disabled { background: #b8b8b8; cursor: default; }
.auth-page { max-width: 640px; padding-top: 48px; background: #fff; }
.auth-card { width: min(100% - 38px, 430px); margin: 42px auto; text-align: center; }
.auth-avatar { width: 76px; height: 76px; margin: 0 auto 15px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#ff596c,#ffb247); font-size: 48px; line-height: 80px; }
.auth-card h1 { margin: 0; font-size: 25px; font-weight: 400; }
.auth-card > p { color: #999; font-size: 13px; }
.auth-card label { display: block; margin-top: 14px; color: #777; text-align: left; font-size: 12px; }
.auth-card input { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #ddd; border-radius: 3px; outline: 0; }
.primary-button { width: 100%; margin-top: 22px; padding: 12px; border-radius: 3px; color: #fff; background: #ef4548; }
.primary-button.success { background: #38a66d; }
.auth-links { display: flex; justify-content: space-between; margin: 16px 0 25px; color: #e84749; font-size: 13px; }
.auth-links button { padding: 0; color: #e84749; background: transparent; font-size: 13px; }
.auth-links button:disabled { color: #aaa; cursor: default; }
.auth-message { min-height: 0; color: #d94848; font-size: 12px; text-align: left; }
.auth-message.visible { min-height: 18px; padding-top: 3px; }
.agent-login { width: 100%; padding: 11px; border: 1px solid #ddd; background: #fff; color: #666; }
.account-links { display: grid; gap: 10px; margin-top: 25px; }
.account-links button { display: flex; justify-content: space-between; padding: 13px; border: 1px solid #e6e6e6; border-radius: 4px; color: #555; background: #fff; text-align: left; }
.wallet-balance { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 20px 0; padding: 14px; border-left: 3px solid #35a477; background: #f0faf5; }
.wallet-balance small { color: #718178; font-size: 12px; }
.wallet-balance strong { color: #247b56; font-size: 22px; font-weight: 600; }
.wallet-history { margin-top: 23px; text-align: left; }
.wallet-history h2 { margin: 0 0 8px; color: #666; font-size: 13px; font-weight: 500; }
.wallet-history > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #eee; color: #777; font-size: 11px; }
.wallet-history b { white-space: nowrap; font-weight: 600; }
.wallet-history .credit { color: #218457; }.wallet-history .debit { color: #dc5353; }
.cart-payment { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-payment small { color: #888; font-size: 10px; }
.empty-page { max-width: 640px; padding-top: 180px; text-align: center; color: #aaa; }
.empty-page > div { font-size: 54px; }
.empty-page button { margin-top: 15px; }
.api-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: #777; }
.api-error button { padding: 8px 18px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #444; }
.order-page { max-width: 640px; padding: 62px 12px 78px; }
.order-card { position: relative; margin-bottom: 10px; padding: 14px; border: 1px solid #eee; border-radius: 5px; background: #fff; }
.order-card > div { display: flex; justify-content: space-between; color: #555; font-size: 12px; }
.order-card > div span { color: #999; }
.order-card p { margin: 12px 0 9px; color: #666; font-size: 13px; }
.order-payment { display: block; margin-bottom: 6px; color: #888; font-size: 11px; }
.recall-result { display: block; margin-top: 7px; color: #28815a; font-size: 11px; }
.recall-order { display: block; margin-top: 10px; padding: 7px 11px; border: 1px solid #e59a92; border-radius: 4px; color: #c64e43; background: #fff; font-size: 12px; }
.recall-order:hover { background: #fff5f3; }
.payment-overlay { position: fixed; z-index: 60; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(18, 24, 36, .42); }
.payment-overlay.open { display: grid; }
.payment-dialog { width: min(100%, 360px); padding: 23px; border-radius: 8px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.payment-dialog h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.payment-dialog p { margin: 0 0 18px; color: #818181; font-size: 13px; line-height: 1.5; }
.payment-dialog label { display: block; color: #555; font-size: 12px; }
.payment-dialog input { width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #ddd; border-radius: 4px; outline-color: #4d9a78; font-size: 18px; letter-spacing: 4px; text-align: center; }
.payment-error { min-height: 18px; margin-top: 8px; color: #dc4545; font-size: 12px; }
.payment-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.payment-dialog-actions button { padding: 9px 15px; border-radius: 4px; }
.payment-cancel { border: 1px solid #ddd; color: #666; background: #fff; }
.payment-confirm { color: #fff; background: #e94c4f; }
.payment-confirm:disabled { opacity: .6; }
.order-card > b { color: #f04444; font-size: 15px; }
.order-card > em { position: absolute; right: 14px; bottom: 14px; color: #e59528; font-size: 12px; font-style: normal; }
@media (min-width: 700px) { .page { box-shadow: 0 0 20px rgba(0,0,0,.03); } .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero { height: 360px; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick-actions { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } .hero { height: 260px; } .shipping { gap: 8px; } .shipping span { flex: 1; } .product-actions .favorite { width: 24%; } .product-actions .add-cart, .product-actions .buy-now { width: 38%; } }
.balance-frozen-notice { margin: 4px 0 0; color: #b44747; font-size: 12px; line-height: 1.5; text-align: left; }
.username-hint { display: block; margin-top: 6px; color: #888; font-size: 11px; text-align: left; }
