/* ============================================================
   项目工位 · 工程图纸台 设计系统覆盖层
   在 store.css / site.css / admin.css 之后加载，纯覆盖，不改 DOM 契约
   色板锁定：规格资料/03-视觉素材与3D制作清单.md
   ============================================================ */
:root {
  color-scheme: light;
  --canvas: #F5F4EF;
  --paper: #FFFEF9;
  --ink: #192923;
  --deep: #142C23;
  --orange: #FF8954;
  --price: #9F3E1D;
  --line: #D8DACC;
  --line-2: #B9BFAE;
  --sub: #5C6B62;
  --ok: #2E7D5B;
  --warn: #C98A2B;
  --off: #8A8F89;
  --white: #FFFEF9;
  --page: #F5F4EF;
  --pine: #142C23;
  --pine-deep: #0E211A;
  --selected: #EFEDE2;
  --muted: #5C6B62;
  --radius: 10px;
  --mono: Consolas, "Courier New", monospace;
  --shadow-1: 0 2px 10px rgba(20,44,35,.055);
  --shadow-2: 0 12px 32px rgba(20,44,35,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .24s;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
}

body {
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(20,44,35,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,44,35,.032) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}
body.page-home, body.page-showcase { background-color: var(--canvas); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
a { transition: color var(--dur) var(--ease); }
button, .button { transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
  color var(--dur) var(--ease), transform .16s var(--ease), box-shadow var(--dur) var(--ease); }
button:active:not(:disabled), .button:active:not(:disabled) { transform: scale(.975); }
img { transition: transform .5s var(--ease); }

/* ---------- 通用按钮：橙底深字 = 唯一主行动 ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 18px; border: 1px solid var(--line-2);
  border-radius: 10px; font-weight: 650; background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-1); overflow: hidden; position: relative;
}
.button.primary {
  border-color: var(--orange); background: var(--orange); color: #1D1006;
  box-shadow: 0 3px 0 rgba(159,62,29,.22);
}
.button.primary:hover:not(:disabled) { background: #FF9A6B; border-color: #FF9A6B; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,137,84,.32); }
.button.primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 0 rgba(159,62,29,.22); }
.button.secondary { color: var(--deep); border-color: var(--line-2); background: var(--paper); }
.button.secondary:hover:not(:disabled) { background: var(--selected); border-color: var(--deep); transform: translateY(-1px); }
.button:disabled { opacity: .45; }
.header-action { font-weight: 600; }

/* ---------- 站头 ---------- */
.masthead, .page-top {
  background: rgba(255,254,249,.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line) !important;
}
.header-row, .marketing-nav { min-height: 76px; }
.brand { font-size: 20px; letter-spacing: .04em; font-weight: 800; gap: 12px; }
.brand img { border-radius: 10px; box-shadow: 0 2px 8px rgba(20,44,35,.14); }
.brand-sub {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: .28em; color: var(--sub); line-height: 1.1; margin-top: 2px;
}
.brand-wrap { display: flex; flex-direction: column; }
.header-actions { gap: 9px; }
.header-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 5px 12px; border: 1px solid transparent; border-radius: 9px;
  font-size: 13px; background: transparent;
}
.header-action:hover { color: var(--deep); background: var(--selected); border-color: var(--line); text-decoration: none; }
.header-action.cart { border: 1px solid var(--line) !important; padding-inline: 12px; background: var(--paper); }
#cart-count {
  background: var(--orange); color: #1D1006; border-radius: 7px;
  padding: 1px 6px; font-size: 11px; font-family: var(--mono); font-weight: 700;
}
#admin-link { background: var(--deep); color: #F2EFE6; }
#admin-link:hover { background: #234537; color: #fff; }
#login-open, #orders-open, #library-open, #saved-open, #logout-button { border-color: var(--line); background: var(--paper); }

/* 搜索框 */
.search {
  height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #F1F0E8; overflow: hidden; box-shadow: inset 0 1px 2px rgba(20,44,35,.04);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search:focus-within { background: var(--paper); border-color: var(--deep); box-shadow: 0 0 0 3px rgba(20,44,35,.09); }
.search.is-typing { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,137,84,.16); }
.search.is-focused { box-shadow: 0 0 0 4px rgba(255,137,84,.28); }
.search { position: relative; }
.search input { background: transparent; padding-left: 40px; font-size: 14px; }
.search input::placeholder { color: #8A9289; }
.search button {
  margin: 0; border-radius: 0 9px 9px 0; background: var(--deep); color: #F2EFE6;
  padding-inline: 20px; font-weight: 650;
}
.search button:hover { background: #234537; }
.search-icon { top: 15px; left: 15px; border-color: var(--sub); }
.search-icon::after { background: var(--sub); }
.search::after {
  content: "Ctrl K"; position: absolute; right: 88px; top: 10px;
  font-family: var(--mono); font-size: 10px; color: var(--sub);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 7px;
  pointer-events: none; background: var(--paper);
}
@media (max-width: 850px) { .search::after { display: none; } }

/* 顶部频道导航 */
.top-nav { gap: 6px; min-height: 50px; }
.top-nav button, .top-nav > a {
  border: 0 !important; border-radius: 8px; padding: 6px 14px; font-size: 13.5px;
  color: var(--sub); font-weight: 600; position: relative;
}
.top-nav button:hover, .top-nav > a:hover { color: var(--deep); background: var(--selected); text-decoration: none; }
.top-nav button[aria-pressed=true] { color: var(--deep); background: rgba(20,44,35,.1); font-weight: 750; }
.top-nav button[aria-pressed=true]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.marketing-nav nav a, .product-nav-links a, .top-nav > a { color: var(--sub); }
.marketing-nav nav a:hover, .marketing-nav nav a[aria-current],
.product-nav-links a:hover, .top-nav > a:hover { color: var(--deep); text-decoration: none; }

/* ---------- 卡片与面板通用 ---------- */
.category-panel, .filters, .commerce-panel, .auth-panel, .detail-gallery,
.detail-body, .detail-description, .admin-panel, .guide-nav, .guide-content {
  border: 1px solid var(--line) !important; border-radius: 12px !important;
  background: var(--paper) !important; box-shadow: var(--shadow-1);
}
.category-panel { overflow: hidden; }
.category-panel h2 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--sub);
  text-transform: uppercase; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600;
}
.category-list button {
  min-height: 44px; padding: 9px 16px; font-size: 13.5px; border-bottom: 1px dashed var(--line) !important;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.category-list button::after { border-color: var(--line-2); }
.category-list button:hover { background: var(--selected); color: var(--deep); padding-left: 20px; }
.category-list button[aria-pressed=true] {
  background: #FDFCF4; color: var(--deep); font-weight: 750;
  box-shadow: inset 3px 0 var(--orange);
}

/* ---------- 筛选条 ---------- */
.filters { padding: 14px 16px; gap: 12px; }
.filter-label, .filter-select { color: var(--sub); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.filter-options button {
  min-height: 30px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 13px;
  background: var(--paper); font-size: 12px; font-family: var(--mono);
}
.filter-options button:hover { border-color: var(--deep); transform: translateY(-1px); }
.filter-options button[aria-pressed=true] { background: var(--deep); border-color: var(--deep); color: #F2EFE6; font-weight: 700; }
.filters select, .listing-actions select {
  border-radius: 8px; border: 1px solid var(--line); background: #FBFBF4;
  min-height: 34px; padding: 4px 9px; font-family: var(--mono); font-size: 12px;
}
.layout-switch button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; }
.layout-switch button[aria-pressed=true] { background: var(--deep); color: #F2EFE6; }

/* ---------- 商品卡：图纸索引卡 ---------- */
.product-grid { gap: 16px; }
.product-card {
  border: 1px solid var(--line) !important; border-radius: 12px !important;
  background: var(--paper) !important; padding: 10px; box-shadow: var(--shadow-1);
  animation: cardIn .46s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.product-card:nth-child(1) { animation-delay: .02s; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .08s; }
.product-card:nth-child(4) { animation-delay: .11s; }
.product-card:nth-child(5) { animation-delay: .14s; }
.product-card:nth-child(6) { animation-delay: .17s; }
.product-card:nth-child(7) { animation-delay: .20s; }
.product-card:nth-child(8) { animation-delay: .23s; }
.product-card:nth-child(n+9) { animation-delay: .26s; }
.product-card:hover, .product-card:focus-within {
  border-color: var(--deep) !important; box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}
.product-card:hover .product-thumb > img { transform: scale(1.045); }
.product-thumb {
  aspect-ratio: 1.7; border: 1px solid var(--line) !important; border-radius: 9px !important;
  background: #EAE9DF !important;
}
.product-image { background: transparent !important; }
.product-visual { background: #EAE9DF !important; }
.product-info { padding: 11px 4px 3px; }
.product-heading { font-size: 15px; line-height: 1.4; font-weight: 700; }
.product-name:hover { color: var(--price); text-decoration: none; }
.product-formats {
  font-family: var(--mono); font-size: 11px; color: var(--sub); letter-spacing: .02em;
  margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-summary { font-size: 12px; color: var(--sub); }
.product-card .drawing-count {
  font-family: var(--mono); font-size: 10px; color: var(--deep);
  background: var(--selected); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px;
}
.product-footer { padding-top: 11px; }
.product-price { font-family: var(--mono); font-size: 17px; font-weight: 800; color: var(--price); letter-spacing: -.02em; }
.product-price.is-free { color: var(--ok); }
.product-price.is-preview { color: var(--sub); font-size: 12px; }
.product-actions { gap: 6px; }
.product-save, .product-action {
  min-height: 32px; border-radius: 8px; font-size: 12px; font-weight: 650;
}
.product-save { min-width: 32px; border: 1px solid var(--line); background: var(--paper); }
.product-save:hover, .product-save[aria-pressed=true] { background: var(--selected); border-color: var(--line-2); }
.product-action {
  border: 1px solid var(--orange) !important; background: var(--orange) !important; color: #1D1006 !important;
}
.product-action:hover { background: #FF9A6B !important; transform: translateY(-1px); }
.empty-state { border-radius: 12px; background: var(--paper); border: 1px dashed var(--line-2); color: var(--sub); }
.catalog-title h1, .dialog-page h1 { font-size: 26px; letter-spacing: -.01em; font-weight: 800; }
.breadcrumbs { font-family: var(--mono); font-size: 11px; color: var(--sub); letter-spacing: .03em; }
.market-shortcuts { border-radius: 10px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.market-shortcuts button:hover, .market-shortcuts button[aria-pressed=true] { background: var(--selected); color: var(--deep); border-bottom-color: var(--orange); }

/* ---------- 详情页 ---------- */
.product-page-heading h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.01em; }
.product-page-heading p { font-size: 15px; color: var(--sub); }
.detail-gallery, .detail-body, .product-delivery { padding: 18px; }
.detail-media { border-radius: 9px; border: 1px solid var(--line); background: #EAE9DF; }
.product-buy-panel { border-top: 3px solid var(--deep) !important; }
.detail-price { font-family: var(--mono); font-size: 32px; font-weight: 800; color: var(--price); letter-spacing: -.02em; }
.detail-price.is-free { color: var(--ok); }
.detail-price.is-preview { color: var(--sub); }
.detail-fields { border-top: 1px dashed var(--line); font-size: 13px; }
.detail-fields > div { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.detail-fields dt { color: var(--sub); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.detail-fields dd { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.detail-actions .button { min-height: 46px; }
.detail-tabs { gap: 0; }
.detail-tabs button { min-height: 44px; padding: 6px 18px; border-bottom: 2px solid transparent; transition: color var(--dur), border-color var(--dur); }
.detail-tabs button[aria-pressed=true] { border-bottom-color: var(--orange); color: var(--deep); font-weight: 750; }
.product-delivery h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--sub); text-transform: uppercase; }
.product-delivery ul { font-family: var(--mono); font-size: 12.5px; }
.gallery-options button { border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.gallery-options button[aria-pressed=true] { border-color: var(--deep); color: var(--deep); background: var(--selected); font-weight: 700; }

/* ---------- 全屏面板（原 dialog）页面化 ---------- */
.shop-dialog { background: var(--canvas) !important; }
.shop-dialog::backdrop { background: rgba(14,33,26,.55); backdrop-filter: blur(3px); }
.page-dialog { animation: panelIn .28s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
.page-top { position: sticky; top: 0; z-index: 3; }
.page-top .frame { min-height: 64px; }
.back-link { font-family: var(--mono); font-size: 12px; color: var(--sub); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; background: var(--paper); }
.back-link:hover { color: var(--deep); border-color: var(--deep); text-decoration: none; transform: translateX(-2px); }
.dialog-page { padding-block: 26px 48px; }
.dialog-page > h1 { font-size: 28px; }
.commerce-panel { padding: 18px 20px; }
.commerce-panel h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--sub); text-transform: uppercase; margin-bottom: 12px; }
.bag-row { border-top: 1px dashed var(--line); min-height: 76px; }
.bag-thumb { border-radius: 8px; border: 1px solid var(--line); }
.bag-row-price { font-family: var(--mono); color: var(--price); font-weight: 800; }
.bag-footer strong { font-family: var(--mono); color: var(--price); font-size: 26px; border-top: 1px dashed var(--line); }
.bag-footer-actions { gap: 9px; }
.bag-row-actions button, .bag-download { border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); }
.order-filters { gap: 4px; }
.order-filters button { border-radius: 8px 8px 0 0; min-height: 44px; }
.order-filters button[aria-pressed=true] { color: var(--deep); border-bottom-color: var(--orange); }
.order-card { border-radius: 12px !important; }
.order-badge { font-family: var(--mono); font-size: 11px; border-radius: 6px; background: var(--selected); color: var(--deep); }
.order-badge[data-status=pending], .order-badge[data-status=refund_pending] { background: rgba(201,138,43,.14); color: #8A5B14; }
.order-badge[data-status=refunded] { background: rgba(138,143,137,.12); color: var(--sub); }
.order-reference, .order-muted { font-family: var(--mono); }
.auth-panel { border-top: 4px solid var(--orange) !important; padding: 28px 30px; border-radius: 14px !important; }
.auth-panel h1 { font-size: 26px; }
.auth-form input { min-height: 46px; border-radius: 9px; border: 1px solid var(--line-2); background: #FBFBF4; }
.auth-form input:focus { border-color: var(--deep); background: var(--paper); }
.auth-form .primary { min-height: 48px; }
.password-field button { border-radius: 0 8px 8px 0; }
.toast {
  background: var(--deep); color: #F2EFE6; border-radius: 10px; padding: 10px 18px;
  box-shadow: var(--shadow-2); font-size: 13px; opacity: 0; transform: translate(-50%, 12px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); animation: toastPop .3s var(--ease); }
@keyframes toastPop { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---------- 帮助页与页脚 ---------- */
.guide-nav { padding: 18px; }
.guide-nav h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--sub); text-transform: uppercase; }
.guide-nav a { border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.guide-nav a:hover, .guide-nav a[aria-current] { background: var(--selected); color: var(--deep); font-weight: 700; }
.guide-content { padding: 34px 40px; }
.guide-content h1 { letter-spacing: -.02em; }
.guide-content section { border-top: 1px dashed var(--line); }
.guide-content h2 { font-size: 17px; }
.guide-content section p { color: var(--sub); }
.guide-link, .section-heading a { color: var(--price); }
.mode-note {
  background: rgba(255,137,84,.1); border: 1px solid rgba(255,137,84,.4);
  border-left: 3px solid var(--orange); border-radius: 9px; color: var(--price);
  font-size: 13px; padding: 11px 14px;
}
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.commercial-footer {
  background: var(--deep); color: #B9C2B6; border-top: 0;
}
.commercial-footer .brand { color: #F2EFE6; }
.commercial-footer .footer-links h2 { color: #F2EFE6; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.commercial-footer .footer-meta { border-top: 1px solid rgba(242,239,230,.16); color: #8FA396; font-family: var(--mono); font-size: 11px; }

/* ============================================================
   首页 · 三栏工作台
   ============================================================ */
.workbench { display: grid; grid-template-columns: 226px minmax(0, 1fr) 268px; gap: 18px; padding-block: 26px 8px; align-items: start; }
.wb-index { display: grid; gap: 8px; }
.wb-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--sub); text-transform: uppercase; padding: 2px 4px 4px; }
.wb-index a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 650; color: var(--ink);
}
.wb-index a:hover { border-color: var(--deep); transform: translateX(3px); box-shadow: var(--shadow-1); }
.wb-index a > span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--sub); font-weight: 400; }
.wb-index a:first-of-type { border-left: 3px solid var(--orange); background: #FDFCF4; }
.wb-chipbox { margin-top: 6px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wb-chips a { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--sub); }
.wb-chips a:hover { background: var(--deep); color: #F2EFE6; border-color: var(--deep); }
.wb-promise { padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.9; color: var(--sub); }
.wb-promise b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--sub); margin-bottom: 6px; text-transform: uppercase; }
.wb-main { display: grid; gap: 16px; min-width: 0; }
.wb-hero {
  position: relative; min-height: 326px; padding: 38px 40px; border-radius: 14px; overflow: hidden;
  background: var(--deep); display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 14px 36px rgba(20,44,35,.18);
}
.wb-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242,239,230,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,230,.045) 1px, transparent 1px);
  background-size: 26px 26px;
}
.wb-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--orange); position: relative; z-index: 1; }
.wb-hero h1 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.25; color: #F2EFE6; font-weight: 800; letter-spacing: -.01em; margin: 14px 0 12px; position: relative; z-index: 1; }
.wb-hero p { font-size: 14.5px; color: #B9C2B6; max-width: 430px; line-height: 1.8; position: relative; z-index: 1; }
.wb-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; position: relative; z-index: 1; }
.wb-hero-actions .button.secondary { background: transparent; border-color: rgba(242,239,230,.35); color: #F2EFE6; }
.wb-hero-actions .button.secondary:hover { background: rgba(242,239,230,.1); border-color: #F2EFE6; }
.wb-hero-art { position: absolute; right: 32px; top: 34px; bottom: 34px; width: 40%; max-width: 380px; opacity: .9; }
.wb-hero-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
.wb-hero-dots { position: absolute; right: 36px; bottom: 18px; display: flex; gap: 7px; z-index: 2; }
.wb-hero-dots i { width: 20px; height: 4px; border-radius: 2px; background: rgba(242,239,230,.3); }
.wb-hero-dots i.cur { background: var(--orange); }
.wb-showcase {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: #1B372C; border: 1px solid rgba(242,239,230,.1); overflow: hidden;
}
.wb-showcase-lead { flex: none; width: 148px; color: #F2EFE6; }
.wb-showcase-lead b { display: block; font-size: 14px; margin-top: 8px; }
.wb-showcase-lead span { font-family: var(--mono); font-size: 10px; color: #8FA396; letter-spacing: .1em; }
.wb-showcase-lead small { display: block; font-size: 11px; color: #8FA396; margin-top: 6px; }
.wb-swatch {
  flex: 1; min-width: 0; height: 92px; border-radius: 9px; background: #244536;
  border: 1px solid rgba(242,239,230,.12); display: grid; place-items: center;
  position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.wb-swatch:hover { transform: translateY(-3px); border-color: var(--orange); }
.wb-swatch span { position: absolute; left: 9px; top: 7px; font-family: var(--mono); font-size: 9.5px; color: #9DB4A4; }
.wb-swatch img { width: 100%; height: 100%; object-fit: contain; padding: 14px 8px 6px; }
.wb-swatch svg { width: 92px; opacity: .8; }
.wb-quick { display: grid; gap: 12px; }
.wb-card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.wb-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.wb-row:last-child { border-bottom: 0; }
.wb-row span:last-child { font-family: var(--mono); font-size: 10.5px; color: var(--sub); white-space: nowrap; }
.wb-card.deep { background: var(--deep); border: none; color: #F2EFE6; }
.wb-card.deep b { font-size: 14px; }
.wb-card.deep p { color: #B9C2B6; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.wb-card.deep .button { margin-top: 12px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.01em; font-weight: 800; }
.featured-resources { gap: 17px; }
.featured-resource {
  border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important;
  box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  animation: cardIn .5s var(--ease) both;
}
.featured-resource:nth-child(2) { animation-delay: .08s; }
.featured-resource:nth-child(3) { animation-delay: .16s; }
.featured-resource:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--deep) !important; }
.featured-resource:hover .featured-image img { transform: scale(1.05); }
.featured-image { background: #EAE9DF !important; border-bottom: 1px solid var(--line); }
.feature-model { background: #EAE9DF !important; }
.feature-code { background: var(--deep) !important; }
.featured-info { padding: 16px; gap: 7px; }
.feature-category { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--sub); text-transform: uppercase; }
.featured-info h3 { font-size: 16px; font-weight: 750; }
.featured-info h3 a:hover { color: var(--price); text-decoration: none; }
.featured-info p { color: var(--sub); font-size: 13px; }
.feature-links { border-top: 1px dashed var(--line); padding-top: 12px; }
.feature-links strong { font-family: var(--mono); color: var(--price); }
.delivery-steps ol { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.delivery-steps li { padding: 18px 20px; }
.delivery-steps li + li { border-left: 1px solid var(--line); }
.delivery-steps li strong { font-size: 15px; }
.delivery-steps li span { font-size: 12.5px; }
.market-entry-section { background: transparent; border: 0; }
.showcase-intro { background: var(--paper); border-bottom: 1px solid var(--line); }
.showcase-intro h1 { letter-spacing: -.02em; }

/* ============================================================
   运营后台 · 深色侧栏工作台
   ============================================================ */
body.page-admin { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: 76px auto; }
body.page-admin > .masthead { grid-column: 1 / -1; grid-row: 1; }
body.page-admin > .masthead .admin-header { min-height: 76px; }
body.page-admin > dialog:not([open]) { display: none; }
body.page-admin > .skip { position: absolute; }
.admin-side {
  grid-column: 1; grid-row: 2; position: sticky; top: 76px; align-self: start;
  height: calc(100vh - 76px); background: var(--deep); color: #D9E0D4;
  display: flex; flex-direction: column; padding: 18px 0 16px;
}
.admin-side .s-brand { padding: 0 18px 18px; border-bottom: 1px solid rgba(242,239,230,.14); }
.admin-side .s-brand b { font-size: 15px; color: #F2EFE6; }
.admin-side .s-brand span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; color: #8FA396; margin-top: 3px; }
.admin-side .s-group { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #8FA396; padding: 16px 20px 7px; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px;
  border-left: 3px solid transparent; color: #D9E0D4;
}
.admin-side a:hover { background: rgba(242,239,230,.08); color: #fff; }
.admin-side a.cur { background: rgba(242,239,230,.09); border-left-color: var(--orange); color: #fff; font-weight: 700; }
.admin-side a .n { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #8FA396; }
.admin-side .s-warn {
  margin: auto 14px 0; padding: 10px 12px; border: 1px solid rgba(255,137,84,.4);
  border-radius: 8px; background: rgba(255,137,84,.12); color: #FFC9A8; font-size: 11px; line-height: 1.6;
}
body.page-admin #admin-main { grid-column: 2; grid-row: 2; width: auto; max-width: none; margin: 0; padding: 24px 28px 56px; }
.admin-frame { width: auto; max-width: none; margin: 0; }
.admin-header { display: flex; align-items: center; justify-content: flex-end; min-height: 68px; gap: 10px; }
.admin-header .brand { display: none; }
.admin-header-actions { gap: 8px; }
.admin-heading { margin: 0 0 18px; }
.admin-heading h1 { font-size: 24px; letter-spacing: -.01em; }
.admin-heading p { font-family: var(--mono); font-size: 11px; }
.admin-entry { margin: 40px 0; }
.admin-section-nav {
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 8px 12px; gap: 4px 16px; margin-bottom: 16px;
}
.admin-section-nav a { color: var(--sub); font-size: 12.5px; padding: 5px 8px; border-radius: 6px; }
.admin-section-nav a:hover { color: var(--deep); background: var(--selected); text-decoration: none; }
.import-panel {
  background: var(--deep) !important; color: #F2EFE6; border: 0 !important;
  border-radius: 12px !important; padding: 20px 24px;
}
.import-panel h2 { font-size: 18px; }
.import-panel p { color: #B9C2B6; }
.import-form input[type=file] { background: #1B372C; border: 1px solid rgba(242,239,230,.2); border-radius: 8px; color: #D9E0D4; }
.import-form input::file-selector-button { background: var(--orange); color: #1D1006; border-radius: 5px; font-weight: 650; }
.import-form a.button.secondary { background: transparent; border-color: rgba(242,239,230,.35); color: #F2EFE6; }
.catalog-panel, .operations-panel, .admin-refunds { margin-top: 16px; }
.listing-heading { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.listing-heading h2 { font-size: 18px; }
.listing-actions input[type=search] { border-radius: 8px; border: 1px solid var(--line); background: #FBFBF4; }
.listing-batch { padding: 10px 22px; background: #F8F7EE; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listing-batch span { font-family: var(--mono); font-size: 11px; }
.listing-table-wrap th { background: #F1F0E8 !important; color: var(--sub) !important; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line); }
.listing-table-wrap td { border-top: 1px solid var(--line); font-size: 13px; }
.listing-table-wrap tbody tr { transition: background var(--dur) var(--ease); }
.listing-table-wrap tbody tr:hover { background: #FBFBF4; }
.listing-status { font-family: var(--mono); font-size: 11px; border-radius: 6px; }
.listing-status[data-status=published] { background: rgba(46,125,91,.12); color: var(--ok); }
.listing-status[data-status=draft] { background: rgba(201,138,43,.14); color: #8A5B14; }
.listing-status[data-status=offline] { background: rgba(138,143,137,.14); color: var(--off); }
.review-badge { font-family: var(--mono); font-size: 11px; }
.operations-summary div { background: #EFEDE2; border: 1px solid var(--line); border-radius: 10px; }
.operations-summary dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.operations-summary dd { font-family: var(--mono); color: var(--deep); }
.drawing-manager { border-radius: 12px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-2); }
.drawing-manager::backdrop { background: rgba(14,33,26,.55); backdrop-filter: blur(3px); }
.drawing-manager-card { border-radius: 9px; border: 1px solid var(--line); }
.drawing-upload { border-radius: 9px; background: #F8F7EE; border: 1px solid var(--line); }

/* ============================================================
   移动端导航与响应式
   ============================================================ */
.mobile-nav {
  background: rgba(255,254,249,.96) !important; backdrop-filter: blur(10px);
  border-top: 1px solid var(--line) !important; box-shadow: 0 -4px 20px rgba(20,44,35,.08);
  padding-top: 4px;
}
.mobile-nav a, .mobile-nav button {
  font-size: 11px; color: var(--sub); min-height: 50px; border-radius: 8px;
}
.mobile-nav a[aria-current], .mobile-nav button[aria-pressed=true] { color: var(--price); font-weight: 750; }
.mobile-nav a::before, .mobile-nav button::before {
  content: ""; display: block; width: 16px; height: 16px; margin: 0 auto 3px;
  border: 1.5px solid currentColor; border-radius: 3px; opacity: .8;
}
.mobile-nav a:first-child::before { border-radius: 50% 50% 3px 3px; }
.mobile-nav button#mobile-cart::before { border-radius: 3px 3px 7px 7px; }
#mobile-cart-count:not(:empty) { background: var(--orange); color: #1D1006; border-radius: 8px; padding: 0 5px; font-family: var(--mono); font-size: 10px; }

@media (max-width: 1180px) {
  .workbench { grid-template-columns: 200px minmax(0, 1fr); }
  .wb-quick { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .wb-quick .wb-card.deep { grid-column: 3; }
}
@media (max-width: 900px) {
  body.page-admin { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .admin-side { display: none; }
  body.page-admin #admin-main { grid-column: 1; grid-row: 2; padding-inline: 18px; }
  .admin-header .brand { display: inline-flex; }
  .admin-header { justify-content: space-between; }
  .workbench { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .wb-index { display: none; }
  .wb-hero { min-height: 270px; padding: 28px 26px; }
  .wb-hero-art { opacity: .35; width: 48%; }
  .wb-quick { grid-template-columns: 1fr 1fr; }
  .wb-quick .wb-card.deep { grid-column: auto; }
  .wb-showcase { flex-wrap: wrap; }
  .wb-showcase-lead { width: 100%; }
  .wb-swatch { min-width: 140px; }
}
@media (max-width: 640px) {
  .workbench { padding-top: 14px; }
  .filters { padding: 9px 10px; gap: 7px; }
  .filters select { max-width: 92px; }
  .wb-hero { min-height: 244px; padding: 22px 20px; }
  .wb-hero h1 { font-size: 25px; }
  .wb-hero-art { display: none; }
  .wb-quick { grid-template-columns: 1fr; }
  .wb-showcase { gap: 10px; }
  .wb-swatch { height: 76px; min-width: 120px; }
  .guide-layout { gap: 12px; }
  .guide-content { padding: 22px 18px; }
  .detail-layout, .bag-layout { gap: 12px; }
  .product-grid { gap: 10px; }
  .product-card { padding: 7px; }
  .product-thumb { aspect-ratio: 1.55; }
  .product-formats { font-size: 10px; }
  .product-price { font-size: 15px; }
  .dialog-page h1 { font-size: 22px; }
  .auth-panel { padding: 20px 18px; }
  body.page-admin #admin-main { padding: 16px 14px 46px; }
  .listing-heading { padding: 14px; }
  .admin-heading { flex-direction: column; gap: 4px; }
}

/* ============================================================
   动效工具：滚动淡入 / 涟漪 / 骨架 / 计数
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(20,44,35,.16); animation: rippleOut .55s var(--ease) forwards;
}
.button.primary .ripple { background: rgba(29,16,6,.18); }
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.skeleton { position: relative; overflow: hidden; background: #EAE9DF; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,254,249,.65), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.hover-lift { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .product-card, .featured-resource { opacity: 1; }
}
