:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #fff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ccfbf1;
  --warm: #f59e0b;
  --danger: #b91c1c;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[v-cloak] { display: none; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 30px; height: 30px; display: inline-grid; place-items: center; background: var(--accent); color: white; border-radius: 7px; }
.top-actions { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.muted, .hint, .product-spec, .product-size { color: var(--muted); }
.page-shell { max-width: 1240px; margin: 0 auto; padding: 28px 20px 120px; }
.hero-band { display: flex; justify-content: space-between; align-items: end; padding: 28px 0 34px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; } .hero-band p { margin-bottom: 0; color: var(--muted); }
.hero-stat { display: flex; align-items: baseline; gap: 8px; color: var(--muted); } .hero-stat strong { color: var(--ink); font-size: 34px; }
.toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { flex: 1 1 280px; min-width: 220px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); padding: 0 14px; height: 44px; border-radius: 8px; color: var(--muted); }
.search-box input { border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; }
.category-tabs { display: flex; overflow-x: auto; gap: 6px; max-width: 100%; padding-bottom: 2px; } .category-tabs button, .status-tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 12px; white-space: nowrap; border-radius: 6px; } .category-tabs button.active, .status-tabs button.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.product-image { aspect-ratio: 1 / 1; background: #f1f5f9; display: grid; place-items: center; overflow: hidden; } .product-image img { width: 100%; height: 100%; object-fit: contain; } .image-empty { color: #94a3b8; font-size: 13px; }
.product-content { padding: 14px; display: flex; flex-direction: column; flex: 1; } .product-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); } .product-meta span:first-child { color: var(--accent); } .product-content h2 { font-size: 16px; line-height: 1.4; margin: 8px 0 6px; } .product-spec, .product-size { font-size: 12px; line-height: 1.5; margin: 0 0 3px; min-height: 18px; }
.product-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; } .price { color: var(--accent-dark); font-size: 20px; font-weight: 800; } .price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .stepper button { width: 28px; height: 28px; flex: 0 0 28px; border: 0; background: #f8fafc; color: var(--ink); font-size: 18px; } .stepper input { width: 38px; height: 28px; flex: 0 0 38px; min-width: 28px; padding: 0 2px; border: 0; border-radius: 0; text-align: center; text-align-last: center; font-size: 13px; appearance: textfield; -moz-appearance: textfield; } .stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; } .stepper input:focus { outline: 1px solid var(--accent); outline-offset: -1px; }
.primary-btn, .ghost-btn { border-radius: 6px; padding: 10px 16px; border: 1px solid transparent; font-weight: 700; } .primary-btn { background: var(--accent); color: white; } .primary-btn:hover { background: var(--accent-dark); } .primary-btn.small { padding: 7px 12px; } .ghost-btn { border-color: var(--line); background: var(--white); color: var(--ink); } .full { width: 100%; }
.text-link { color: var(--accent-dark); text-decoration: none; font-weight: 700; border: 0; background: none; padding: 0; }
.cart-dock { position: fixed; z-index: 20; right: 24px; bottom: 20px; width: min(420px, calc(100vw - 32px)); } .cart-summary { width: 100%; display: flex; align-items: center; gap: 10px; color: white; border: 0; padding: 14px 16px; background: var(--ink); border-radius: 8px; box-shadow: 0 10px 24px #0f172a2b; } .cart-summary strong { margin-left: auto; } .cart-count { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--warm); color: #fff; font-size: 12px; font-weight: 800; } .cart-panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: 16px; max-height: min(62vh, 560px); overflow-y: auto; box-shadow: 0 -8px 22px #0f172a12; } .panel-head, .section-title { display: flex; align-items: center; justify-content: space-between; } .panel-head h2, .section-title h2 { margin: 0; font-size: 18px; }
.cart-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .cart-line img { width: 44px; height: 44px; object-fit: contain; background: #f1f5f9; } .cart-line-info { min-width: 0; } .cart-line-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; } .cart-line-info small { color: var(--muted); } .cart-line b { font-size: 13px; } .cart-stepper { margin-top: 5px; } .cart-stepper button, .cart-stepper input { height: 26px; } .cart-stepper button { width: 26px; flex-basis: 26px; } .cart-stepper input { width: 42px; flex-basis: 42px; }
.checkout-form { display: grid; gap: 9px; padding-top: 14px; } input, textarea, select { border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; outline: none; background: var(--white); color: var(--ink); width: 100%; } input:focus, textarea:focus, select:focus { border-color: var(--accent); } label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 18px; background: #0f172a80; } .modal { width: min(420px, 100%); max-height: 90vh; overflow: auto; position: relative; background: var(--white); border-radius: 8px; padding: 28px; } .modal h2 { margin: 8px 0 22px; } .modal form { display: grid; gap: 14px; } .modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 24px; color: var(--muted); } .error-text { color: var(--danger); font-size: 13px; margin: 0; } .hint { font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
.toast { position: fixed; z-index: 50; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 11px 16px; border-radius: 6px; box-shadow: 0 8px 20px #0f172a30; font-size: 13px; }
.admin-shell { padding-bottom: 60px; } .admin-head { display: flex; justify-content: space-between; align-items: end; padding: 26px 0; } .admin-head h1 { margin-bottom: 0; } .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; } .stats-row > div { background: var(--white); border: 1px solid var(--line); padding: 18px; border-radius: 8px; } .stats-row span { display: block; color: var(--muted); font-size: 13px; } .stats-row strong { display: block; margin-top: 7px; font-size: 24px; }
.admin-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; } .status-tabs { display: flex; overflow-x: auto; } .table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; } th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 700; } tr:last-child td { border-bottom: 0; } tbody tr { cursor: pointer; } tbody tr:hover { background: #f8fafc; } td small { display: block; color: var(--muted); margin-top: 3px; } .mono { font-family: ui-monospace, SFMono-Regular, monospace; } .amount { color: var(--accent-dark); font-weight: 800; } .status { border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; } .status.pending { background: #fef3c7; color: #92400e; } .status.confirmed { background: #dbeafe; color: #1d4ed8; } .status.completed { background: #dcfce7; color: #166534; } .status.cancelled { background: #fee2e2; color: #991b1b; } .row-arrow { color: var(--muted); font-size: 20px; }
.account-section { margin-top: 30px; } .account-list { border: 1px solid var(--line); background: var(--white); border-radius: 8px; margin-top: 12px; } .account-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); } .account-row:last-child { border-bottom: 0; } .account-row small { display: block; color: var(--muted); margin-top: 3px; } .online { color: var(--accent-dark); font-size: 12px; } .offline { color: var(--danger); font-size: 12px; } .order-items { margin: 20px 0; border-top: 1px solid var(--line); } .order-items > div, .order-total { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .order-total { font-size: 16px; border: 0; } .order-total strong { color: var(--accent-dark); }
.empty-state, .cart-empty { padding: 50px 20px; text-align: center; color: var(--muted); }
@media (max-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .topbar { height: 56px; padding: 0 14px; } .top-actions { gap: 8px; } .top-actions .muted { display: none; } .page-shell { padding: 18px 14px 120px; } .hero-band { align-items: start; gap: 14px; padding: 18px 0 24px; } h1 { font-size: 28px; } .hero-stat strong { font-size: 26px; } .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .product-content { padding: 10px; } .product-content h2 { font-size: 14px; } .product-spec, .product-size { font-size: 11px; } .product-foot { align-items: end; flex-direction: column; } .product-foot, .product-foot .stepper { width: 100%; } .product-foot .stepper { justify-content: space-between; } .stepper button { flex: 1; } .stepper span { flex: 1; } .price { align-self: flex-start; } .cart-dock { right: 12px; bottom: 12px; width: calc(100vw - 24px); } .stats-row { gap: 8px; } .stats-row > div { padding: 12px; } .stats-row strong { font-size: 19px; } .admin-head { align-items: start; gap: 14px; } .admin-head .primary-btn { white-space: nowrap; } .admin-toolbar { align-items: start; flex-direction: column; } .status-tabs { width: 100%; } }
@media (max-width: 390px) { .catalog-grid { grid-template-columns: 1fr; } .product-image { aspect-ratio: 1.25 / 1; } .hero-stat { display: none; } .brand { font-size: 14px; } }
