:root {
    --blue: #1677ff;
    --blue-dark: #095fd1;
    --blue-light: #eaf3ff;
    --ink: #17233d;
    --muted: #77839a;
    --line: #edf0f5;
    --bg: #f5f7fb;
    --white: #fff;
    --red: #ff4d4f;
    --orange: #ff7a00;
    --shadow: 0 10px 28px rgba(22, 50, 88, .09);
    --radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { background: #e9edf5; }
body { margin: 0; color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.site-shell { width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; box-shadow: 0 0 40px rgba(30, 46, 70, .08); }
.topbar { height: 62px; padding: 8px 14px; background: rgba(255,255,255,.97); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(230,235,243,.8); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; color: white; display: grid; place-items: center; background: linear-gradient(145deg, #49a4ff, var(--blue)); font-weight: 800; box-shadow: 0 6px 14px rgba(22,119,255,.24); }
.brand strong { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.icon-button { border: 0; background: var(--blue-light); color: var(--blue); height: 34px; min-width: 38px; padding: 0 9px; border-radius: 10px; font-size: 12px; font-weight: 650; }
.back-button { font-size: 28px; line-height: 1; padding: 0; }
.notice-bar { min-height: 34px; padding: 7px 14px; background: #f0f7ff; color: #52739c; font-size: 11px; line-height: 19px; }
.notice-bar span { color: var(--blue); background: white; border: 1px solid #cfe3ff; padding: 2px 6px; border-radius: 5px; margin-right: 6px; font-weight: 700; }
#app { min-height: calc(100vh - 150px); padding-bottom: 86px; }
.page { animation: pageIn .22s ease-out; }
@keyframes pageIn { from { opacity: .45; transform: translateY(3px); } }
.page-loading, .empty-state { color: var(--muted); text-align: center; padding: 80px 20px; }
.hero { margin: 12px; min-height: 205px; padding: 24px 20px; position: relative; overflow: hidden; border-radius: 22px; color: white; background: linear-gradient(135deg, #0c6ff2 0%, #49a6ff 100%); box-shadow: 0 14px 28px rgba(22,119,255,.22); }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -84px; top: -74px; background: rgba(255,255,255,.12); }
.hero-copy { position: relative; z-index: 3; width: 56%; }
.hero-kicker { font-size: 12px; opacity: .9; letter-spacing: 1px; }
.hero h1 { margin: 10px 0 7px; font-size: 27px; line-height: 1.18; letter-spacing: -.5px; }
.hero p { margin: 0 0 18px; font-size: 12px; line-height: 1.6; opacity: .9; }
.hero .white-button { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 18px; background: white; color: var(--blue); font-size: 12px; font-weight: 700; }
.hero-product { position: absolute; z-index: 2; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 25px rgba(4,45,105,.25); }
.hero-product.mouse { width: 122px; height: 122px; right: 14px; bottom: 17px; transform: rotate(-5deg); }
.hero-product.usb { width: 74px; height: 74px; right: 90px; top: 16px; transform: rotate(8deg); }
.trust-row { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 12px 12px; padding: 12px 6px; background: white; border-radius: 14px; box-shadow: 0 6px 16px rgba(25,44,77,.04); }
.trust-row div { text-align: center; font-size: 11px; color: var(--muted); border-right: 1px solid var(--line); }
.trust-row div:last-child { border: 0; }
.trust-row b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.section { margin: 12px; }
.section-card { background: white; border-radius: var(--radius); padding: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 18px 2px 12px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head p, .section-head a { margin: 0; color: var(--muted); font-size: 11px; }
.category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px 6px; padding: 14px 8px; background: white; border-radius: var(--radius); }
.category-item { text-align: center; font-size: 11px; color: #4e5d74; }
.category-icon { width: 45px; height: 45px; margin: 0 auto 7px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: linear-gradient(145deg,#f2f8ff,#dcecff); font-size: 21px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product-card { position: relative; overflow: hidden; border-radius: var(--radius); background: white; box-shadow: 0 4px 14px rgba(23,35,61,.04); }
.product-card .product-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f3f5f8; }
.product-card-body { padding: 10px 11px 12px; }
.product-card h3 { margin: 0 0 5px; min-height: 38px; font-size: 14px; line-height: 1.38; font-weight: 650; }
.product-card p { margin: 0 0 8px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 5px; }
.price { color: var(--red); font-weight: 750; font-size: 18px; }
.price small { font-size: 11px; }
.original-price { color: #aab1bd; text-decoration: line-through; font-size: 10px; }
.mini-cart { width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--blue); color: white; font-size: 18px; line-height: 1; }
.badge { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 7px; border-radius: 8px; color: white; background: linear-gradient(135deg,#ff8f3d,#ff5b45); font-size: 9px; font-weight: 700; }
.search-wrap { position: sticky; top: 62px; z-index: 20; padding: 10px 12px; background: rgba(245,247,251,.96); backdrop-filter: blur(8px); }
.search-box { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; background: white; border: 1px solid #e8edf5; border-radius: 13px; }
.search-box input { width: 100%; border: 0; outline: none; background: transparent; font-size: 13px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 11px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid #e1e7f0; padding: 7px 13px; border-radius: 17px; color: #657187; background: white; font-size: 11px; }
.filter-chip.active { color: white; border-color: var(--blue); background: var(--blue); }
.detail-gallery { background: white; }
.detail-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detail-info { margin: 10px 12px; padding: 16px; background: white; border-radius: var(--radius); }
.detail-price { color: var(--red); font-size: 29px; font-weight: 750; }
.detail-price small { font-size: 14px; }
.detail-info h1 { margin: 8px 0 7px; font-size: 20px; line-height: 1.35; }
.detail-subtitle { color: var(--muted); font-size: 12px; }
.detail-meta { margin-top: 13px; padding-top: 12px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #8b94a5; font-size: 10px; }
.spec-row { display: flex; align-items: flex-start; gap: 10px; margin: 11px 0; font-size: 12px; }
.spec-row > b { flex: 0 0 36px; padding-top: 7px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 7px; }
.spec-option { padding: 7px 11px; border: 1px solid #e4e8ef; border-radius: 8px; background: #fafbfc; font-size: 11px; }
.spec-option.active { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }
.service-strip { margin: 10px 12px; padding: 12px 15px; display: flex; justify-content: space-around; border-radius: 12px; background: #eff7ff; color: #41698f; font-size: 10px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.feature-list div { padding: 11px; border-radius: 10px; background: #f7f9fc; font-size: 11px; }
.feature-list b { display: block; margin-bottom: 4px; color: var(--blue); }
.detail-actions { position: fixed; left: 50%; bottom: 0; z-index: 31; width: 100%; max-width: 520px; height: 72px; transform: translateX(-50%); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: flex; gap: 8px; background: white; box-shadow: 0 -6px 22px rgba(23,35,61,.08); }
.detail-actions .action-link { width: 54px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.detail-actions button { flex: 1; border: 0; border-radius: 22px; color: white; font-weight: 700; font-size: 13px; }
.add-cart-btn { background: linear-gradient(135deg,#50a7ff,var(--blue)); }
.buy-btn { background: linear-gradient(135deg,#ff8a22,#ff5f29); }
.page-title { padding: 18px 15px 10px; }
.page-title h1 { margin: 0; font-size: 22px; }
.page-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.cart-list { margin: 0 12px; }
.cart-item { display: grid; grid-template-columns: 24px 84px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; padding: 12px 10px; border-radius: 14px; background: white; }
.check { appearance: none; width: 19px; height: 19px; border: 1.5px solid #cad2df; border-radius: 50%; }
.check:checked { border: 5px solid var(--blue); }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #f3f5f7; }
.cart-item h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.35; }
.cart-spec { color: var(--muted); font-size: 10px; }
.cart-item-bottom { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; }
.qty-control { display: flex; height: 28px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 28px; border: 0; background: #f7f8fa; color: #536077; }
.qty-control span { width: 30px; display: grid; place-items: center; font-size: 11px; }
.remove-item { border: 0; background: transparent; color: #a4adbb; font-size: 10px; }
.cart-summary { position: fixed; left: 50%; bottom: 64px; z-index: 25; transform: translateX(-50%); width: 100%; max-width: 520px; height: 64px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: white; box-shadow: 0 -6px 18px rgba(23,35,61,.06); }
.select-all { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.cart-total { margin-left: auto; text-align: right; font-size: 10px; }
.cart-total b { display: block; color: var(--red); font-size: 18px; }
.primary-button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 22px; background: var(--blue); color: white; font-weight: 700; font-size: 13px; }
.primary-button:disabled { background: #c7d3e4; }
.empty-state .empty-icon { width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 28px; background: #e9f2ff; color: var(--blue); font-size: 40px; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0 auto 20px; max-width: 260px; font-size: 12px; line-height: 1.6; }
.checkout-section { margin: 10px 12px; padding: 15px; border-radius: var(--radius); background: white; }
.checkout-section h2 { margin: 0 0 13px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-field { margin-bottom: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 6px; color: #5f6b7e; font-size: 11px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #e3e8f0; border-radius: 10px; outline: none; background: #fbfcfe; font-size: 12px; }
.form-field textarea { height: 70px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); background: white; }
.checkout-product { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checkout-product:last-child { border: 0; }
.checkout-product img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; }
.checkout-product h3 { margin: 0 0 4px; font-size: 12px; }
.checkout-product small { color: var(--muted); }
.checkout-product-price { text-align: right; font-size: 11px; }
.checkout-product-price b { display: block; margin-bottom: 5px; }
.bill-row { display: flex; justify-content: space-between; margin: 9px 0; font-size: 12px; }
.bill-row.total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.bill-row.total b { color: var(--red); font-size: 20px; }
.agreement { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.checkout-submit { width: 100%; min-height: 46px; border: 0; border-radius: 23px; color: white; background: linear-gradient(135deg,#2182ff,#0868ed); font-weight: 750; }
.order-card { margin: 10px 12px; padding: 15px; border-radius: var(--radius); background: white; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.order-status { color: var(--orange); font-weight: 700; }
.order-products { display: flex; gap: 7px; margin: 12px 0; overflow: hidden; }
.order-products img { width: 60px; height: 60px; object-fit: cover; border-radius: 9px; background: #f3f5f7; }
.order-foot { display: flex; justify-content: flex-end; align-items: center; gap: 9px; font-size: 11px; }
.outline-button { height: 32px; padding: 0 13px; border: 1px solid var(--blue); border-radius: 17px; color: var(--blue); background: white; font-size: 11px; }
.profile-card { margin: 12px; padding: 22px 18px; border-radius: 18px; color: white; background: linear-gradient(135deg,#126be4,#52a7ff); box-shadow: 0 13px 28px rgba(22,119,255,.2); }
.profile-card h1 { margin: 0 0 5px; font-size: 20px; }
.profile-card p { margin: 0; font-size: 11px; opacity: .85; }
.menu-list { margin: 12px; overflow: hidden; border-radius: 16px; background: white; }
.menu-item { min-height: 52px; padding: 0 15px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-item:last-child { border: 0; }
.menu-item span:first-child { width: 29px; height: 29px; display: grid; place-items: center; color: var(--blue); background: var(--blue-light); border-radius: 9px; }
.menu-item i { margin-left: auto; color: #b1b9c7; font-style: normal; }
.company-info { margin: 24px 20px; text-align: center; color: #9ba4b2; font-size: 10px; line-height: 1.8; }
.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 30; width: 100%; max-width: 520px; height: calc(64px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.98); box-shadow: 0 -5px 20px rgba(23,35,61,.08); backdrop-filter: blur(12px); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8791a3; font-size: 9px; }
.bottom-nav a span { font-size: 22px; line-height: 22px; font-weight: 600; }
.bottom-nav a.active { color: var(--blue); }
.cart-badge { position: absolute; top: 7px; left: 55%; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border: 2px solid white; border-radius: 9px; color: white; background: var(--red); font-size: 8px; font-style: normal; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 100px; transform: translateX(-50%); max-width: calc(100% - 50px); padding: 11px 16px; border-radius: 20px; color: white; background: rgba(20,29,44,.9); font-size: 12px; box-shadow: var(--shadow); }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-end; }
.modal-mask { position: absolute; inset: 0; background: rgba(15,25,42,.48); backdrop-filter: blur(2px); }
.modal-card { position: relative; z-index: 2; width: min(100%,520px); max-height: 82vh; overflow-y: auto; padding: 25px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: white; animation: modalUp .25s ease-out; }
@keyframes modalUp { from { transform: translateY(30px); opacity: .6; } }
.modal-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #8791a2; background: #f2f4f7; font-size: 20px; }
.modal-icon { width: 64px; height: 64px; margin: 5px auto 15px; display: grid; place-items: center; border-radius: 22px; color: var(--blue); background: var(--blue-light); font-size: 30px; font-weight: 800; }
.modal-card h2 { margin: 0 0 9px; text-align: center; font-size: 20px; }
.modal-card .modal-lead { margin: 0 auto 17px; max-width: 340px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-note { padding: 12px; border-radius: 11px; color: #5a7596; background: #f1f7ff; font-size: 11px; line-height: 1.65; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.modal-actions button, .modal-actions a { height: 43px; display: grid; place-items: center; border: 1px solid #dce3ed; border-radius: 22px; background: white; color: #59667a; font-size: 12px; }
.modal-actions .primary { border-color: var(--blue); color: white; background: var(--blue); }
.policy-content { font-size: 12px; color: #59667a; line-height: 1.8; }
.policy-content h3 { color: var(--ink); margin: 16px 0 5px; }
.policy-content p { margin: 0 0 8px; }
@media (min-width: 521px) { body { padding: 18px 0; } .site-shell { min-height: calc(100vh - 36px); border-radius: 22px; overflow: hidden; } .topbar { top: 18px; } }
@media (max-width: 360px) { .hero h1 { font-size: 23px; } .hero-product.mouse { width: 108px; height: 108px; } .category-grid { gap: 9px 3px; } .category-icon { width: 40px; height: 40px; } }

