:root {
  --ink: #171818;
  --ink-soft: #272928;
  --paper: #f7f6f2;
  --paper-deep: #eeede7;
  --white: #fffefa;
  --line: #d9d8d0;
  --line-dark: #3b3d3a;
  --muted: #73756e;
  --coral: #e46d4f;
  --coral-dark: #bd4f36;
  --olive: #a6b85d;
  --blue: #6997a8;
  --shadow: 0 18px 50px rgba(18, 21, 20, .11);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topline { height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; color: #bbbdb4; background: var(--ink); font-size: 10px; letter-spacing: .08em; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ink); background: var(--coral); font-weight: 900; font-size: 11px; letter-spacing: -.06em; }
.brand-logo { width: 68px; height: 38px; display: block; object-fit: cover; object-position: 50% 85%; border: 1px solid #d8b8bd; background: #f9dfe6; }
.brand strong, .admin-brand strong { display: block; font-size: 17px; line-height: 1; letter-spacing: .04em; }
.brand small, .admin-brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .14em; }

/* Storefront */
.store-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.store-nav { display: flex; gap: 30px; color: #5e625b; font-size: 13px; }
.store-nav a:hover, .text-button:hover { color: var(--coral-dark); }
.store-actions { display: flex; align-items: center; gap: 18px; }
.text-button { color: #555850; font-size: 12px; font-weight: 700; }
.text-button span { color: var(--coral); margin-left: 4px; }
.icon-button { position: relative; display: inline-grid; width: 38px; height: 38px; place-items: center; color: var(--ink); border: 1px solid var(--line); background: transparent; border-radius: 50%; }
.icon-button:hover { border-color: var(--coral); color: var(--coral-dark); }
.cart-button b { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; color: var(--white); background: var(--coral); border-radius: 50%; font-size: 9px; }
.intro { min-height: 362px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 15px; color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--olive); border-radius: 50%; box-shadow: 0 0 0 4px rgba(166, 184, 93, .18); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 70px); line-height: 1.06; letter-spacing: .01em; font-weight: 750; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.intro-text { max-width: 540px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; color: var(--muted); font-size: 11px; }
.intro-meta strong { margin-right: 6px; color: var(--coral); }
.intro-readout { padding: 20px; color: var(--white); background: var(--ink-soft); border: 1px solid #373936; }
.readout-head, .readout-foot { display: flex; justify-content: space-between; align-items: center; color: #8b8f87; font-size: 9px; letter-spacing: .14em; }
.readout-status { color: var(--olive); }
.readout-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 24px 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.readout-grid div { min-height: 99px; display: flex; flex-direction: column; justify-content: center; padding: 14px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.readout-grid span, .readout-grid small { color: #959890; font-size: 10px; }
.readout-grid strong { margin: 7px 0 4px; color: var(--white); font-size: 25px; font-weight: 500; }
.readout-grid strong span { color: var(--coral); font-size: 11px; }
.notice-band { min-height: 76px; display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.section-label small { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .14em; }
.label-icon { width: 22px; height: 22px; display: grid; place-items: center; color: var(--white); background: var(--coral); border-radius: 50%; font-weight: 900; }
.notice-slider { min-width: 0; }
.notice-item { display: flex; gap: 13px; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-item strong { color: var(--coral-dark); font-size: 10px; }
.notice-item span { overflow: hidden; color: #4c4f49; font-size: 13px; text-overflow: ellipsis; }
.outline-button, .filter-button { padding: 9px 12px; color: #555850; border: 1px solid var(--line); background: transparent; border-radius: 4px; font-size: 11px; }
.outline-button:hover, .filter-button:hover { color: var(--coral-dark); border-color: var(--coral); }
.outline-button span, .filter-button span { margin-left: 8px; color: var(--coral); font-size: 14px; }
.catalog { padding: 83px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading .kicker { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-size: 30px; line-height: 1.2; letter-spacing: .01em; }
.catalog-tools { display: flex; gap: 10px; align-items: center; }
.search-box { display: flex; align-items: center; width: 210px; height: 36px; padding: 0 11px; gap: 8px; color: var(--muted); border-bottom: 1px solid var(--line); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #a6a79f; }
.category-row { display: flex; gap: 8px; padding: 38px 0 24px; overflow-x: auto; }
.category-chip { flex: 0 0 auto; padding: 9px 16px; color: #6c6f68; border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: 12px; }
.category-chip:hover, .category-chip.active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.service-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 15px 17px; background: #efeee8; border: 1px solid var(--line); border-left: 3px solid var(--coral); }
.contact-copy { min-width: 0; cursor: pointer; }
.contact-label { display: block; margin-bottom: 5px; color: var(--coral-dark); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.contact-copy strong { display: inline-block; margin-right: 10px; font-size: 14px; }
.contact-copy small { color: var(--muted); font-size: 10px; }
.contact-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.contact-actions > span { color: var(--muted); white-space: nowrap; font-size: 10px; }
.contact-actions .live-dot { width: 6px; height: 6px; margin-right: 5px; box-shadow: none; }
.consult-hint { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.consult-hint span { color: var(--muted); font-size: 10px; }
.consult-hint strong { color: var(--coral-dark); font-size: 14px; }
.consult-hint small { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 10px; }
.contact-modal-account { display: grid; justify-items: center; gap: 6px; padding: 22px; margin-bottom: 18px; color: var(--white); background: var(--ink); }
.contact-modal-account span, .contact-modal-account small { color: #a5aaa0; font-size: 10px; }
.contact-modal-account strong { color: var(--olive); font-size: 24px; letter-spacing: .04em; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { position: relative; height: 187px; overflow: hidden; background: #272928; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.72) contrast(1.05); transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image::after { content: ""; position: absolute; inset: 0; background: rgba(17, 22, 21, .12); pointer-events: none; }
.product-badge { position: absolute; z-index: 1; top: 13px; left: 13px; padding: 5px 7px; color: var(--ink); background: var(--olive); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.product-code { position: absolute; z-index: 1; right: 13px; bottom: 12px; color: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .12em; }
.product-content { padding: 20px; }
.product-tags { display: flex; gap: 6px; min-height: 18px; }
.product-tags span { color: var(--coral-dark); font-size: 9px; }
.product-content h3 { margin: 11px 0 8px; font-size: 17px; line-height: 1.35; }
.product-content p { min-height: 44px; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.price { color: var(--coral-dark); font-size: 22px; font-weight: 800; }
.price small { margin-left: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.product-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.primary-button { min-height: 37px; padding: 0 14px; color: var(--white); border: 0; background: var(--ink); border-radius: 4px; font-size: 11px; font-weight: 700; }
.primary-button:hover { background: var(--coral-dark); }
.primary-button span { margin-left: 10px; color: var(--coral); }
.full-width { width: 100%; }
.empty-state { padding: 55px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }
.trust-band { padding: 72px 0; color: var(--white); background: var(--ink); }
.trust-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px; }
.trust-grid h2 { font-size: 27px; line-height: 1.35; }
.trust-item { display: flex; gap: 14px; padding-top: 7px; border-top: 1px solid #464844; }
.trust-item > span { color: var(--coral); font-size: 10px; font-weight: 800; }
.trust-item strong { font-size: 13px; }
.trust-item p { margin-top: 12px; color: #92968d; font-size: 11px; line-height: 1.75; }
.faq-section { display: grid; grid-template-columns: 1fr 1.7fr; gap: 70px; padding: 82px 0; }
.faq-list details { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; color: #3d403c; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--coral); font-size: 18px; font-weight: 400; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { max-width: 650px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.store-footer { padding: 22px 0; color: #969a91; background: var(--paper-deep); font-size: 10px; }
.store-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.store-footer .brand strong { font-size: 13px; }
.store-footer .brand-mark { width: 26px; height: 26px; font-size: 9px; }
.store-footer .brand-logo { width: 54px; height: 29px; }

/* Drawers and modals */
.drawer { position: fixed; z-index: 20; top: 0; right: 0; width: min(430px, 100%); height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); box-shadow: -20px 0 70px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; padding: 32px 30px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .kicker { margin-bottom: 8px; }
.drawer-head h2 { font-size: 24px; }
.close-button { width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 50%; font-size: 22px; line-height: 1; }
.drawer-body { flex: 1; overflow: auto; padding: 10px 30px; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.cart-row h3 { margin: 0 0 6px; font-size: 14px; }
.cart-row p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-row .cart-price { color: var(--coral-dark); font-size: 13px; font-weight: 800; }
.cart-controls { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.cart-controls button { width: 22px; height: 22px; padding: 0; color: var(--ink); border: 1px solid var(--line); background: var(--white); border-radius: 3px; }
.cart-controls button:last-child { margin-left: 7px; color: var(--coral-dark); border: 0; background: transparent; font-size: 11px; }
.drawer-foot { padding: 22px 30px 30px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.total-row strong { color: var(--coral-dark); font-size: 24px; }
.drawer-foot small { display: block; margin-top: 12px; color: var(--muted); text-align: center; font-size: 10px; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22, 24, 23, .58); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.modal-head h2 { margin-top: 5px; font-size: 25px; }
.modal-copy { color: var(--muted); font-size: 12px; line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.modal-list { display: grid; gap: 0; }
.modal-list article { padding: 16px 0; border-top: 1px solid var(--line); }
.modal-list article strong { display: block; margin-bottom: 7px; color: var(--coral-dark); font-size: 10px; }
.modal-list article h3 { margin: 0 0 7px; font-size: 15px; }
.modal-list article p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-stack { display: grid; gap: 14px; }
.form-field { display: grid; gap: 7px; color: #555850; font-size: 11px; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 11px 12px; color: var(--ink); outline: 0; border: 1px solid var(--line); background: var(--white); border-radius: 4px; font-size: 12px; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--coral); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; padding: 12px 18px; color: var(--white); background: var(--ink); border-radius: 4px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s ease, transform .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-page { color: var(--ink); background: #e9e8e2; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 235px; display: flex; flex-direction: column; padding: 28px 17px 18px; color: #c2c6bc; background: var(--ink); }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 29px; }
.admin-brand .brand-logo { width: 58px; height: 38px; border-color: #5f4549; }
.admin-brand strong { color: var(--white); font-size: 16px; }
.admin-brand small { color: #83877f; }
.workspace-chip { display: flex; align-items: center; gap: 9px; padding: 12px 11px; background: #242625; border: 1px solid #343735; border-radius: 5px; }
.workspace-chip .live-dot { flex: 0 0 auto; width: 6px; height: 6px; margin: 0; }
.workspace-chip div { min-width: 0; flex: 1; }
.workspace-chip small, .workspace-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chip small { color: #7e8379; font-size: 9px; }
.workspace-chip strong { margin-top: 4px; color: #e5e7df; font-size: 11px; }
.workspace-chip > span:last-child { color: #83877f; }
.admin-nav { padding-top: 29px; }
.admin-nav p { margin: 0 11px 10px; color: #696f67; font-size: 9px; letter-spacing: .16em; }
.admin-nav p:not(:first-child) { margin-top: 27px; }
.admin-nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px; color: #aeb2aa; border: 0; background: transparent; border-radius: 4px; text-align: left; font-size: 12px; }
.admin-nav-item span:first-child { width: 17px; color: #777e74; text-align: center; font-size: 14px; }
.admin-nav-item:hover, .admin-nav-item.active { color: var(--white); background: #2e302e; }
.admin-nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 18px; background: var(--coral); border-radius: 0 2px 2px 0; }
.admin-nav-item.active span:first-child { color: var(--coral); }
.nav-badge { min-width: 17px; height: 17px; display: grid; place-items: center; margin-left: auto; color: var(--ink); background: var(--olive); border-radius: 50%; font-size: 9px; }
.sidebar-foot { margin-top: auto; }
.admin-user { display: flex; align-items: center; gap: 9px; padding: 15px 8px; border-top: 1px solid #343735; }
.avatar, .admin-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: var(--ink); background: var(--coral); border: 0; border-radius: 50%; font-size: 11px; font-weight: 800; }
.admin-user div { flex: 1; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { color: #eceee7; font-size: 11px; }
.admin-user small { margin-top: 4px; color: #797e76; font-size: 9px; }
.sidebar-foot > a { display: block; padding: 13px 9px 0; color: #858b81; border-top: 1px solid #343735; font-size: 11px; }
.admin-main { width: calc(100% - 235px); min-height: 100vh; margin-left: 235px; }
.admin-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumb b { color: var(--line); font-weight: 400; }
.breadcrumb strong { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.date-label { color: var(--muted); font-size: 10px; }
.topbar-actions .icon-button { width: 30px; height: 30px; border: 0; font-size: 17px; }
.topbar-actions .icon-button i { position: absolute; top: 6px; right: 5px; width: 5px; height: 5px; background: var(--coral); border-radius: 50%; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 18px; }
.admin-content { width: min(1250px, calc(100% - 76px)); margin: 0 auto; padding: 38px 0 60px; }
.admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.admin-page-heading .kicker { margin-bottom: 9px; }
.admin-page-heading h1 { margin: 0; font-size: 29px; }
.admin-page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.admin-primary { min-height: 39px; padding: 0 15px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { padding: 19px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.kpi-card .kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.kpi-card .kpi-icon { color: var(--coral); font-size: 16px; }
.kpi-card strong { display: block; margin: 12px 0 9px; font-size: 28px; font-weight: 700; }
.kpi-card strong small { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.kpi-card .kpi-trend { color: #719648; font-size: 10px; }
.kpi-card .kpi-trend.down { color: var(--coral-dark); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 20px; }
.admin-panel { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 21px; }
.panel-head h2 { font-size: 16px; }
.panel-head small { color: var(--muted); font-size: 10px; }
.panel-action { padding: 0; color: var(--coral-dark); border: 0; background: transparent; font-size: 10px; }
.bar-chart { height: 190px; display: flex; align-items: end; gap: 14px; padding: 13px 7px 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; }
.bar-value { width: 100%; max-width: 29px; min-height: 5px; background: var(--coral); border-radius: 2px 2px 0 0; }
.bar-col:nth-child(2n) .bar-value { background: var(--olive); }
.bar-col small { color: var(--muted); font-size: 9px; }
.bar-note { display: flex; justify-content: space-between; padding-top: 13px; color: var(--muted); font-size: 10px; }
.bar-note strong { color: var(--ink); font-size: 17px; }
.rank-list { display: grid; gap: 16px; }
.rank-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; }
.rank-no { color: var(--coral); font-size: 11px; font-weight: 800; }
.rank-main strong { display: block; font-size: 11px; }
.rank-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.rank-number { color: var(--ink); font-size: 12px; font-weight: 800; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-head { margin: 0; padding: 22px 22px 16px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 20px; color: var(--muted); background: #f4f3ee; font-size: 10px; font-weight: 500; }
.data-table td { padding: 15px 20px; border-top: 1px solid var(--line); color: #4c4f4a; font-size: 11px; vertical-align: middle; }
.data-table td strong { color: var(--ink); font-size: 11px; }
.data-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 10px; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.pending { color: #aa812f; background: #f7f0dd; }
.status.running { color: #5c8796; background: #e4eff0; }
.status.done { color: #668e49; background: #e8f0df; }
.status.cancelled { color: #a06d65; background: #f4e6e1; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; }
.toolbar-search { width: 230px; height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.toolbar-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.toolbar-select { height: 37px; padding: 0 10px; color: #555850; border: 1px solid var(--line); outline: 0; background: var(--white); border-radius: 4px; font-size: 11px; }
.product-table-image { width: 46px; height: 34px; display: inline-block; margin-right: 10px; vertical-align: middle; background: #2b2d2b center/cover; border-radius: 3px; }
.product-name-cell { display: flex; align-items: center; min-width: 220px; }
.product-name-cell strong { color: var(--ink); }
.row-actions { display: flex; gap: 10px; }
.row-action { padding: 3px 0; color: var(--coral-dark); border: 0; background: transparent; font-size: 10px; }
.row-action.delete { color: #9c6e65; }
.switch { position: relative; width: 29px; height: 17px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c7c8c1; border-radius: 20px; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 11px; height: 11px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--olive); }
.switch input:checked + span::before { transform: translateX(12px); }
.simple-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.category-card-head { display: flex; justify-content: space-between; align-items: start; }
.category-card h3 { margin: 0; font-size: 15px; }
.category-card p { margin: 11px 0 18px; color: var(--muted); font-size: 10px; }
.category-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid var(--line); }
.category-card-foot small { color: var(--muted); font-size: 10px; }
.announcement-admin-list { display: grid; gap: 12px; }
.announcement-admin-card { padding: 19px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.announcement-admin-card .announcement-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.announcement-admin-card h3 { margin: 0; font-size: 15px; }
.announcement-admin-card p { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.announcement-admin-card footer { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.tag-label { padding: 4px 7px; color: var(--coral-dark); background: #f8e8e1; font-size: 9px; }
.settings-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.settings-form { display: grid; gap: 15px; }
.settings-form .form-field label { color: #555850; }
.settings-save { margin-top: 7px; justify-self: start; }
.info-list { display: grid; gap: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-list span { color: var(--muted); font-size: 11px; }
.info-list strong { font-size: 11px; }
.admin-modal { width: min(620px, 100%); }
.admin-modal .modal-head { margin-bottom: 25px; }
.admin-modal .modal-head h2 { font-size: 22px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: center; gap: 8px; color: #555850; font-size: 11px; }
.form-check input { accent-color: var(--coral); }
.drawer-scrim, .admin-scrim { position: fixed; z-index: 19; inset: 0; visibility: hidden; background: rgba(22, 24, 23, .42); opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.drawer-scrim.open, .admin-scrim.open { visibility: visible; opacity: 1; }

@media (max-width: 980px) {
  .intro { gap: 35px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > :first-child { grid-column: span 2; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body.drawer-active, body.overlay-active, body.admin-menu-open { overflow: hidden; }
  .shell { width: min(calc(100% - 32px), 560px); }
  .topline { height: 28px; padding: 0 16px; font-size: 8px; }
  .topline span:last-child { display: none; }
  .store-header { min-height: 66px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-logo { width: 60px; height: 34px; }
  .brand strong { font-size: 16px; }
  .store-header .brand { min-width: 0; }
  .store-header .brand > span:last-child { min-width: 0; }
  .store-header .brand strong, .store-header .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-nav, .text-button { display: none; }
  .store-actions { gap: 0; }
  .icon-button, .close-button { width: 44px; height: 44px; }
  .cart-button b { top: 0; right: -1px; }
  .intro { display: block; min-height: 0; padding: 39px 0 36px; }
  h1 { max-width: 12em; font-size: 37px; line-height: 1.13; }
  .intro-text { margin-bottom: 0; font-size: 13px; line-height: 1.8; }
  .intro-meta { gap: 11px 16px; margin-top: 23px; }
  .intro-readout { margin-top: 28px; padding: 16px; }
  .readout-grid { margin: 18px 0; }
  .readout-grid div { min-height: 84px; padding: 11px; }
  .readout-grid strong { margin: 5px 0 3px; font-size: 22px; }
  .notice-band { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; }
  .section-label { grid-column: 1 / -1; }
  .notice-slider { grid-column: 1; }
  .notice-item { gap: 8px; }
  .notice-item span { max-width: none; font-size: 12px; }
  .outline-button, .filter-button { min-height: 40px; }
  .catalog { padding: 53px 0 65px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 26px; }
  .catalog-tools { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; margin-top: 22px; }
  .search-box { flex: 1; width: auto; }
  .search-box, .filter-button { height: 42px; }
  .service-contact { display: grid; gap: 13px; margin-top: 21px; padding: 14px; }
  .contact-copy small { display: block; margin-top: 5px; line-height: 1.5; }
  .contact-actions { justify-content: space-between; gap: 8px; }
  .contact-actions .outline-button { min-width: 116px; }
  .category-row { gap: 7px; padding: 26px 0 18px; margin-right: -16px; padding-right: 16px; }
  .category-chip { min-height: 40px; padding: 8px 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: auto; aspect-ratio: 16 / 9; }
  .product-content { padding: 17px; }
  .product-content p { min-height: 0; margin-bottom: 16px; }
  .product-bottom { align-items: center; }
  .product-bottom .primary-button { min-height: 42px; padding: 0 12px; white-space: nowrap; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid > :first-child { grid-column: auto; }
  .trust-band { padding: 55px 0; }
  .trust-grid h2 { font-size: 25px; }
  .faq-section { display: block; padding: 60px 0; }
  .faq-list { margin-top: 32px; }
  .faq-list details { padding: 18px 0; }
  .faq-list summary { gap: 14px; line-height: 1.5; }
  .store-footer .shell { align-items: start; flex-direction: column; gap: 11px; }
  .drawer-scrim { z-index: 19; }
  .drawer { z-index: 20; width: 100%; height: 100dvh; }
  .drawer-head { padding: calc(20px + env(safe-area-inset-top)) 20px 17px; }
  .drawer-body { padding: 8px 20px; }
  .drawer-foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
  .cart-row { gap: 12px; }
  .cart-row h3 { font-size: 13px; line-height: 1.5; }
  .cart-controls button { width: 30px; height: 30px; font-size: 15px; }
  .cart-controls button:last-child { width: auto; min-height: 30px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: min(88dvh, 760px); padding: 23px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 8px 8px 0 0; }
  .modal-head { gap: 12px; margin-bottom: 17px; }
  .modal-head h2 { font-size: 22px; }
  .modal .readout-grid div { min-height: 77px; padding: 9px; }
  .modal .readout-grid strong { font-size: 19px; }
  .modal-actions { gap: 8px; }
  .modal-actions button { min-height: 43px; }
  .form-field input, .form-field textarea, .form-field select { min-height: 43px; font-size: 14px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; }

  .admin-scrim { z-index: 35; }
  .admin-sidebar { z-index: 40; width: min(78vw, 280px); height: 100dvh; overflow-y: auto; padding: calc(22px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); transform: translateX(-102%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { width: 100%; margin-left: 0; }
  .admin-topbar { min-height: 64px; padding: 0 14px; gap: 10px; }
  .mobile-menu { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 18px; }
  .breadcrumb { min-width: 0; flex: 1; overflow: hidden; }
  .breadcrumb strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .date-label { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .icon-button { width: 36px; height: 36px; }
  .admin-avatar { width: 33px; height: 33px; }
  .admin-content { width: min(calc(100% - 28px), 560px); padding: 25px 0 40px; }
  .admin-page-heading { align-items: start; flex-direction: column; }
  .admin-page-heading h1 { font-size: 25px; }
  .admin-page-heading .admin-primary { width: 100%; min-height: 43px; }
  .kpi-grid { gap: 10px; margin-bottom: 12px; }
  .kpi-card { min-height: 142px; padding: 15px; }
  .kpi-card strong { margin: 10px 0 7px; font-size: 24px; }
  .kpi-card .kpi-trend { line-height: 1.45; }
  .dashboard-grid { gap: 12px; margin-bottom: 12px; }
  .admin-panel { padding: 16px; }
  .panel-head { margin-bottom: 16px; }
  .bar-chart { height: 158px; gap: 8px; }
  .bar-note strong { font-size: 16px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-search { width: 100%; height: 42px; }
  .toolbar-select { min-height: 42px; font-size: 12px; }
  .toolbar-left .toolbar-select { flex: 0 0 104px; }
  .table-panel { overflow: visible; padding: 0; background: transparent; border: 0; }
  .table-panel .panel-head { padding: 0 0 13px; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 10px; }
  .data-table tr { padding: 9px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
  .data-table td { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; border: 0; text-align: right; }
  .data-table td::before { content: attr(data-label); flex: 0 0 76px; color: var(--muted); font-size: 10px; text-align: left; }
  .data-table td > * { max-width: 68%; }
  .data-table td small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .data-table td[data-label="商品信息"] { align-items: flex-start; }
  .data-table td[data-label="商品信息"]::before { padding-top: 6px; }
  .product-name-cell { min-width: 0; flex: 1; justify-content: flex-end; text-align: right; }
  .product-name-cell > div { min-width: 0; }
  .product-name-cell strong, .product-name-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-table-image { flex: 0 0 auto; width: 42px; height: 34px; margin-right: 8px; }
  .data-table td[data-label="操作"] .row-actions { justify-content: flex-end; }
  .data-table td[colspan] { display: block; text-align: center; }
  .data-table td[colspan]::before { display: none; }
  .data-table td[colspan] .empty-state { padding: 25px 0; }
  .simple-card-grid { grid-template-columns: 1fr; }
  .category-card { padding: 17px; }
  .announcement-admin-card { padding: 16px; }
  .announcement-admin-card footer { align-items: center; gap: 10px; }
  .settings-grid { gap: 12px; }
  .admin-modal { max-height: 92dvh; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  h1 { font-size: 34px; }
  .intro-meta { gap: 9px 10px; font-size: 10px; }
  .readout-grid div { padding: 9px; }
  .readout-grid strong { font-size: 20px; }
  .product-bottom { align-items: end; }
  .product-bottom .primary-button { min-width: 102px; font-size: 10px; }
  .kpi-card { padding: 13px; }
  .kpi-card strong { font-size: 22px; }
  .topbar-actions .icon-button { display: none; }
  .breadcrumb > span, .breadcrumb > b { display: none; }
}

.admin-login-gate { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22, 24, 23, .72); }
.admin-login-card { width: min(400px, 100%); display: grid; gap: 16px; padding: 30px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-login-card h2 { margin: 0; }
.admin-login-error { color: #c2402a; min-height: 18px; }
