/* Aysel Manor 基础样式。静态资源经 Cloudflare 边缘缓存（Cache-Control immutable）。 */
:root {
  --ink: #1f2430;
  --paper: #ffffff;
  --accent: #2f5d50;
  --accent-dark: #24473d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --danger: #b91c1c;
  --ok: #166534;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: clip; /* 首页全宽 hero 用 100vw 负边距破格；clip 裁掉滚动条宽度差且不破坏 sticky */
}

a { color: var(--accent); }

/* Header：sticky 毛玻璃三段式（品牌 / 主导航 / 账户+购物车+语种） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 1.15rem; align-items: center; }
.site-nav a {
  position: relative;
  padding: 0.3rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.18s ease;
}
.nav-drop-btn { position: relative; }
.nav-drop-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.18s ease;
}
.site-nav > a:hover::after, .nav-drop-btn:hover::after { right: 0; }

/* 下拉 mega menu：桌面 hover/focus 展开（纯 CSS），触屏/键盘点击由 JS 兜底；
   窄屏抽屉内退化为手风琴分组 */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: none;
  border: none;
  padding: 0.3rem 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.nav-drop-btn .ic-caret {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.nav-drop:hover .ic-caret, .nav-drop.open .ic-caret, .nav-drop:focus-within .ic-caret { transform: rotate(180deg); }
.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1.1rem;
  z-index: 60;
  min-width: 17rem;
  flex-direction: column;
  padding: 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 45, 38, 0.16);
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel, .nav-drop.open .nav-panel { display: flex; }
.nav-panel a {
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: normal;
}
.nav-panel a:hover { background: #eef5f2; color: var(--accent); }
.nav-panel::before {
  /* 面板与顶栏之间的悬停桥，防止斜向移动鼠标时面板收起 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}
.nav-panel-cols { flex-direction: row; gap: 0; min-width: 26rem; }
.nav-col { display: flex; flex-direction: column; flex: 1; }
.nav-col + .nav-col { border-left: 1px solid var(--line); margin-left: 1.1rem; padding-left: 1.1rem; }
.nav-col h5 {
  margin: 0.15rem 0.7rem 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.nav-panel-all { margin-top: 0.25rem; color: var(--accent); font-weight: 600; }
.nav-panel-all:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.95rem; }
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 11rem;
}
.nav-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account svg, .cart-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-account:hover, .cart-link:hover { color: var(--accent); }
.logout-form button {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.logout-form button:hover { color: var(--danger); }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* 汉堡菜单开关：桌面隐藏，≤800px 显示并折叠主导航为抽屉 */
.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle .ic-close { display: none; }
.site-header.nav-open .ic-burger { display: none; }
.site-header.nav-open .ic-close { display: block; }

/* 版心 1200px，对齐 foamorder（其正文 wrapper 常用 max-w-[1150px/1200px]，框架 2xl container=1400px） */
main { max-width: 75rem; margin: 0 auto; padding: 2rem; min-height: 60vh; }

/* Hero（首页专用，home.html） */
.hero-home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #eef4f1 0%, #e3ede8 55%, #d9e7e1 100%);
  border: 1px solid #dce8e2;
  border-radius: 20px;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  margin-top: 0.5rem;
}
.hero-home::before, .hero-home::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 93, 80, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-home::before { width: 340px; height: 340px; top: -120px; right: -80px; }
.hero-home::after { width: 260px; height: 260px; bottom: -100px; left: -70px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(47, 93, 80, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.hero-copy .tagline { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.4rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.02rem; }
.btn-light { background: #fff; border-color: #fff; color: var(--accent-dark); font-weight: 600; }
.btn-light:hover { background: #e9f0ed; border-color: #e9f0ed; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; padding: 0; margin: 0; list-style: none; }
.trust-chips li {
  font-size: 0.82rem;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d3e2db;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}
.trust-chips li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 0.4rem; }
.hero-art-wrap { position: relative; z-index: 1; }
.hero-art { width: 100%; height: auto; display: block; }

/* 首页幻灯片（hero-slider）：全宽深绿画布 + 形状×面料实拍视觉，home.html；
   文案 SSR 进 DOM（SEO 生命线），hero.js 只负责切换与自动播放 */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* 破出版心铺满视口（body overflow-x: clip 兜滚动条宽度差） */
  margin-top: -2rem;             /* 抵消 main 顶部 padding，贴住页头下缘 */
  background: radial-gradient(130% 170% at 82% 8%, #35695a 0%, #2a5347 42%, #1d4034 72%, #16342b 100%);
  color: #eef4f1;
}
.hero-slider::before, .hero-slider::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-slider::before { width: 540px; height: 540px; top: -200px; right: -150px; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%); }
.hero-slider::after { width: 440px; height: 440px; bottom: -180px; left: -130px; background: radial-gradient(circle, rgba(157, 195, 181, 0.13), transparent 70%); }
.hero-stage {
  max-width: calc(75rem - 4rem); /* 对齐 main 版心内容宽度（75rem - 两侧 padding 2rem） */
  margin: 0 auto;
  min-height: clamp(540px, 78vh, 780px);
  display: flex;
  flex-direction: column;
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 2rem clamp(2.6rem, 5vw, 3.4rem);
  position: relative;
  z-index: 1;
}
.hero-track { flex: 1; display: grid; align-items: center; }
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 2.4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}
.hero-slide.active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s ease 0.3s, transform 0.55s ease 0.3s, visibility 0s;
}
.hero-slider .eyebrow { color: #bfe0d2; background: rgba(255, 255, 255, 0.1); }
.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.7rem;
}
.hero-slider .tagline { color: #c6d8d0; font-size: 1.1rem; max-width: 34rem; margin: 0 0 0.9rem; }
.hero-from { margin: 0 0 1.3rem; font-size: 1rem; color: #c6d8d0; }
.hero-from b { font-size: 1.35rem; color: #f2dfae; font-weight: 700; margin-left: 0.2rem; }
.hero-slider .trust-chips li { color: #dce9e3; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.hero-slider .trust-chips li::before { color: #9fd0bc; }
.hero-slider .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
}
.hero-slider .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.hero-slide .hero-art { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.28)); }
.hero-slide.active .hero-art { animation: heroFloat 8s ease-out both; }
@keyframes heroFloat {
  from { transform: scale(1.045) translateY(9px); }
  to { transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.active { transition: none; transform: none; }
  .hero-slide.active .hero-art { animation: none; }
}
.hero-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.7rem; }
.hero-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #e9f2ee; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.hero-dots { display: flex; gap: 0.55rem; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.32); cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-dot.active { background: #f2dfae; transform: scale(1.3); }
@media (max-width: 920px) {
  .hero-stage { min-height: 0; padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-slide { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art-wrap { order: -1; }
  .hero-slide .hero-art { max-width: 400px; margin: 0 auto; }
  .hero-slider .tagline { font-size: 1rem; }
  .hero-arrow { display: none; } /* 移动端以触摸滑动 + 圆点切换 */
}

/* 后台「系统设置 → 首页幻灯片」选项卡：每张幻灯片一卡，双列字段栅格 */
.hero-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem 1.4rem; }
.hero-admin-grid .full { grid-column: 1 / -1; }
.hero-admin-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hero-admin-head label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.86rem; color: var(--muted); }
.hero-admin-thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #f3f6f5; }
.hero-upload { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hero-upload input[type="file"] { font-size: 0.82rem; max-width: 250px; color: var(--muted); }

/* 后台「平台总览」（/admin/）：指标卡 + 纯 CSS 趋势柱图 + 统计面板 */
.dash-h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.dash-card:hover { box-shadow: 0 4px 14px rgba(31, 36, 48, 0.08); transform: translateY(-1px); }
.dash-num { font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); }
.dash-warn .dash-num { color: #b45309; }
.dash-cap { font-size: 0.82rem; color: var(--muted); }
.dash-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.dash-panel h3 { margin: 0 0 0.7rem; font-size: 1rem; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.dash-cols .dash-panel { margin: 0; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dash-table td { padding: 0.35rem 0.2rem; border-bottom: 1px solid var(--line); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:nth-child(2) { text-align: right; }
.dash-table td:last-child { text-align: right; }
.dash-wide td:nth-child(2) { text-align: left; }
.dash-code { color: var(--muted); font-size: 0.8rem; }
.dash-chart { display: flex; align-items: stretch; gap: 3px; height: 150px; padding-top: 0.5rem; }
.dash-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 0; }
.dash-bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; width: 100%; justify-content: center; }
.dash-bar { width: 38%; max-width: 10px; min-height: 1px; border-radius: 2px 2px 0 0; }
.dash-bar-ord { background: var(--accent); }
.dash-bar-rev { background: #d9b64a; }
.dash-day { font-size: 0.62rem; color: var(--muted); height: 1em; line-height: 1; white-space: nowrap; }

/* 首页通用分节 */
.section { padding: 2rem 0; }
.band { background: #f6f8f6; border-radius: 18px; padding: 2rem 1.7rem; margin: 0.4rem 0; }
.section-head { margin-bottom: 1.3rem; }
.section-head h2 { margin: 0 0 0.3rem; font-size: 1.55rem; }
.section-head p { margin: 0; color: var(--muted); }
.section-head.with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.all-link { white-space: nowrap; font-weight: 600; padding-bottom: 0.2rem; }

/* 品类瓦片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; }
.cat-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 36, 48, 0.08); }
.cat-icon {
  align-self: flex-start;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
}
.cat-icon.tint-a { background: #e9f1ed; }
.cat-icon.tint-b { background: #f4efe4; }
.cat-icon.tint-c { background: #e8eef5; }
.cat-icon svg { width: 62px; height: 50px; display: block; }
.cat-outline rect, .cat-outline line { fill: #fff; stroke: var(--accent); stroke-width: 2.6; }
.cat-outline rect[width="42"] { fill: #eef4f1; }
.cat-name { font-weight: 700; font-size: 1.04rem; }
.cat-go { color: var(--accent); font-size: 0.88rem; font-weight: 600; }
/* 类目图（后台可上传；无图回落内置图形） */
.cat-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef4f1;
  margin-bottom: 0.4rem;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 品类页头图 */
.cat-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0 0 1.1rem;
}

/* 商品卡（首页加强版；品类页仍用 .card） */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.15rem; }
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(31, 36, 48, 0.09); }
.prod-cat {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.prod-art {
  border-radius: 10px;
  background: linear-gradient(160deg, #f4f8f6, #e7efeb);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-art svg { width: 78%; max-height: 122px; height: auto; display: block; }
.prod-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.prod-card h3 { margin: 0; font-size: 1.05rem; }
.prod-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; gap: 0.5rem; }
.prod-foot .from { color: var(--muted); font-size: 0.85rem; }
.prod-foot .from b { font-size: 1.05rem; color: var(--ink); }

/* 形状速选条（首页；配置器内是 .shape-tile） */
.shape-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 0.7rem; }
.mini-shape {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  text-align: center;
  transition: border-color 0.15s ease;
}
.mini-shape:hover { border-color: var(--accent); }
.mini-shape svg { width: 60px; height: 42px; }
.mini-outline rect, .mini-outline circle, .mini-outline path {
  fill: #eef4f1;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* 定制流程三步 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.step-num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* 价值点 */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #e9f1ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.why-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* 底部 CTA 横幅 */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  margin: 0.5rem 0 1rem;
}
.cta-band h2 { margin: 0 0 0.4rem; font-size: 1.65rem; color: #fff; }
.cta-band p { margin: 0 0 1.4rem; color: #d7e5df; font-size: 1.02rem; }

/* 商品网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card .from { color: var(--muted); margin: 0; }

/* 占位图（M0 图片素材就位前统一用色块） */
.placeholder-img {
  background: linear-gradient(135deg, #eef2f0 0%, #dde7e3 100%);
  border-radius: 8px;
  height: 150px;
}
.placeholder-img.large { height: 320px; }

/* 按钮 */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: #fdf0ef; border-color: #e4b6b2; color: #a03028; }
.btn-danger:hover { background: #f7dedb; border-color: #d69c96; }
.btn-block { width: 100%; text-align: center; }
.btn-small { padding: 0.25rem 0.6rem; font-size: 0.8rem; }

/* 3D 预览 */
.cushion3d-wrap {
  margin-top: 1rem;
  background: linear-gradient(180deg, #f6f9f7, #e7eeeb);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.8rem 0.4rem;
}
.cushion3d-wrap .panel-title { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin: 0 0 0.3rem; }
#cushion3d { height: 300px; position: relative; }
#cushion3d canvas { width: 100% !important; height: 100% !important; display: block; border-radius: 8px; }
/* 3D 尺寸标注层：叠在 canvas 上的 SVG（JS 逐帧投影绘制），不拦截拖拽/滚轮 */
.cushion3d-dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.dim3-line { stroke: #33413a; stroke-width: 1.4; stroke-linecap: round; }
.dim3-dot { fill: #33413a; }
.dim3-label {
  font-size: 12px;
  font-weight: 700;
  fill: #22352b;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* 面包屑 / 产品页（图纸列稍宽，配置器占右侧） */
.breadcrumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-page {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.product-media { position: sticky; top: 1rem; }
/* 产品页布局控制（has-media：页面存在媒体列时启用 grid areas）。
   桌面：媒体列跨两行，标题/描述/价格在右列顶部，配置器在下。
   移动（≤800px 见下方媒体查询）：标题/描述/价格通栏置顶，下方媒体|配置器并排。 */
.pdp-swap { display: flex; justify-content: flex-end; align-items: center; gap: 0.4rem; margin: -0.6rem 0 0.5rem; }
.pdp-swap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.pdp-swap-btn:hover { color: var(--accent); border-color: var(--accent); }
.pdp-swap-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: #eef4f1; }
.pdp-preview-bar { display: none; } /* 预览吸附工具栏仅移动端出现（卡片自身携带，桌面无此需求） */
.product-page.has-media {
  grid-template-columns: 1.05fr 1.2fr;
  grid-template-areas: "media head" "media info";
  row-gap: 0;
}
.product-page.has-media .product-media { grid-area: media; }
.product-page.has-media .product-head { grid-area: head; }
.product-page.has-media .product-info { grid-area: info; }
/* 左右互换：标题通栏不动，媒体列与配置器对调（配置器始终占宽列） */
.product-page.has-media.media-right {
  grid-template-columns: 1.2fr 1.05fr;
  grid-template-areas: "head media" "info media";
}
/* 标品详情页媒体图（后台商品图） */
.product-media-img img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.product-desc { color: var(--muted); }

/* 表单 */
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.hp-field { position: absolute; left: -9999px; }
.notfound { text-align: center; padding: 4rem 0; }
.notfound h1 { font-size: 4rem; margin: 0; color: var(--accent); }
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.dims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* 报价器 */
#quote-app {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
  margin: 1rem 0 0.25rem;
}
.price-row strong { font-size: 1.5rem; color: var(--accent); }
.spec { color: var(--muted); font-size: 0.85rem; white-space: pre-wrap; }
.msg { font-size: 0.9rem; }
.msg.ok { color: var(--ok); }
.msg.error { color: var(--danger); }
.measure-hint { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* 配置器 v2 */
.cfg-section { margin-bottom: 1.4rem; }
.cfg-section h4 { margin: 0 0 0.6rem; font-size: 0.95rem; }
.cfg-section .muted { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.5rem; }

/* SVG 图纸面板 */
.diagram-panel {
  background: #fafbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.diagram-panel svg { width: 100%; height: auto; }
.diagram-note { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 0; }
.shape-outline rect, .shape-outline circle, .shape-outline polygon, .shape-outline path {
  fill: #e9f0ed;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.dim-line { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 4 3; }
.dim-label {
  font-size: 15px;
  font-weight: 700;
  fill: var(--accent);
  background: #fff;
}
.dim-label.dim-active { fill: #fff; paint-order: stroke; stroke: var(--danger); stroke-width: 4px; }

/* 形状选择瓦片 */
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.6rem; }
.shape-tile {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.3rem 0.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  color: var(--ink);
}
.shape-tile svg { width: 100%; height: 52px; }
.shape-tile .shape-outline rect, .shape-tile .shape-outline circle,
.shape-tile .shape-outline polygon, .shape-tile .shape-outline path {
  fill: #f1f5f3; stroke: #94a3b8; stroke-width: 6;
}
.shape-tile.selected { border-color: var(--accent); }
.shape-tile.selected .shape-outline rect, .shape-tile.selected .shape-outline circle,
.shape-tile.selected .shape-outline polygon, .shape-tile.selected .shape-outline path {
  fill: #e9f0ed; stroke: var(--accent);
}
.fraction-hint { color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }
.frac { color: var(--muted); font-size: 0.8rem; }
.frac.warn { color: var(--danger); font-weight: 600; }

/* 选项卡片（泡棉/附加项/面料） */
.option-cards { display: grid; gap: 0.5rem; }
.option-cards.two { grid-template-columns: 1fr 1fr; }
.option-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}
.option-card input { margin-top: 0.25rem; }
.option-card.selected { border-color: var(--accent); background: #f4f8f6; }
.oc-title { font-weight: 600; font-size: 0.92rem; }
.oc-desc { color: var(--muted); font-size: 0.82rem; }
.oc-best { color: var(--accent); font-size: 0.78rem; margin-top: 0.15rem; }
.oc-dots { display: flex; gap: 0.25rem; align-items: center; margin-top: 0.35rem; }
.oc-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.18);
  display: inline-block;
}
.oc-dot-more { font-size: 0.7rem; color: var(--muted); }
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0.08rem 0.5rem;
  vertical-align: middle;
}

/* 面料花色色卡（配置器） */
.swatch-title { margin: 0.7rem 0 0.45rem; font-size: 0.85rem; color: var(--muted); }
.swatch-title strong { color: var(--ink); }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 2px solid rgba(31, 36, 48, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.25);
}

/* 价格面板 */
.price-panel {
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  background: #fbfdfc;
}
.qty-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.qty-row label { font-size: 0.9rem; color: var(--muted); }
.qty-row select { padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; }
.breakdown { border-top: 1px dashed var(--line); margin-top: 0.4rem; }
.bd-line { display: flex; justify-content: space-between; margin: 0.25rem 0; font-size: 0.88rem; color: var(--ink); }
.bd-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.4rem; margin-top: 0.4rem; }

@media (max-width: 800px) {
  .option-cards.two { grid-template-columns: 1fr; }
}

/* 购物车 / 订单表格（窄屏横向滚动兜底） */
.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
@media (max-width: 720px) {
  .cart-table { display: block; overflow-x: auto; }
}
.cart-table th, .cart-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.5rem;
  vertical-align: top;
}
.totals { max-width: 22rem; margin-left: auto; }
.totals p { display: flex; justify-content: space-between; margin: 0.3rem 0; }
.totals .grand { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }

/* 结账 */
.checkout-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }
.order-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}
.sum-item { display: flex; justify-content: space-between; margin: 0.3rem 0; }
.sum-item.grand { font-weight: 700; }

/* 订单状态 */
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.82rem;
  background: #f3f4f6;
  color: var(--muted);
}
.status-paid, .status-fulfilling { background: #ecfdf5; color: var(--ok); }
.status-shipped { background: #eff6ff; color: #1d4ed8; }
.status-cancelled { background: #fef2f2; color: var(--danger); }

/* 指南列表 / 文章排版 */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.guide-card h3 { margin: 0; font-size: 1.1rem; color: var(--accent); }
.guide-card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.guide-card .read-more { font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.prose { max-width: 52rem; }
.prose h1 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; color: var(--accent-dark); }
.prose .lead { font-size: 1.08rem; color: var(--muted); }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--accent); }

/* Footer：深绿多栏（品牌栏 / 选购 / 帮助 / 公司）+ 支付徽标 */
.site-footer {
  background: linear-gradient(160deg, #24473d, #1b372e);
  color: #cfe0d9;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 1.4rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.2fr 1fr 1fr;
  gap: 2rem;
}
.brand-invert { color: #fff; }
.footer-blurb {
  font-size: 0.9rem;
  color: #a8c3b8;
  margin: 0.8rem 0 1rem;
  max-width: 30rem;
}
.footer-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #d7e5df;
}
.footer-chips li::before { content: "✓"; color: #8fbfae; font-weight: 700; margin-right: 0.45rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer-col h4 { margin: 0 0 0.35rem; color: #fff; font-size: 0.95rem; letter-spacing: 0.02em; }
.footer-col a {
  color: #b5cdc3;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-base p { margin: 0; font-size: 0.82rem; color: #9dbbb0; }
.pay-badges {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.pay-badges li { display: flex; }
.pay-badges svg {
  display: block;
  height: 1.5rem;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* 内页页头横幅（品类/购物车/结算/指南/查单/政策页共用） */
.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4f1 0%, #e3ede8 60%, #dde9e3 100%);
  border: 1px solid #dce8e2;
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 0.5rem;
}
.page-head::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: -130px;
  right: -70px;
  background: radial-gradient(circle, rgba(47, 93, 80, 0.09), transparent 70%);
  pointer-events: none;
}
.page-head h1 { position: relative; margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-head p { position: relative; margin: 0; color: var(--muted); max-width: 46rem; }
.page-head .breadcrumb { position: relative; margin: 0 0 0.8rem; }
.crumb-sep { margin: 0 0.35rem; opacity: 0.6; }
.page-pad { margin-top: 1.6rem; }

/* 认证页（登录/注册） */
.auth-wrap { display: flex; justify-content: center; padding: 2.5rem 0 1.5rem; }
.auth-card {
  width: 100%;
  max-width: 26.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.9rem 1.6rem;
  box-shadow: 0 18px 44px rgba(31, 36, 48, 0.07);
  text-align: center;
}
.auth-mark {
  display: inline-flex;
  width: 64px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: #e9f1ed;
  border-radius: 14px;
  margin-bottom: 0.9rem;
}
.auth-mark svg { width: 40px; height: 32px; }
.auth-card h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.auth-sub { margin: 0 0 1.4rem; color: var(--muted); font-size: 0.94rem; }
.auth-form { text-align: left; }
.auth-form .field input { padding: 0.65rem 0.8rem; }
.field-hint { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--muted); }
.auth-switch { margin: 1.3rem 0 0; font-size: 0.9rem; color: var(--muted); }
.auth-switch a { font-weight: 600; }
.auth-guest {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* 空状态（购物车/订单） */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.empty-state.standalone { margin-top: 1.5rem; }
.empty-art {
  width: 84px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f1ed;
  border-radius: 14px;
  margin-bottom: 0.4rem;
}
.empty-art svg { width: 52px; height: 40px; }
.empty-state h3 { margin: 0; }
.empty-state h4 { margin: 0; }
.empty-state p { margin: 0 0 0.6rem; color: var(--muted); }

/* 购物车 */
.cart-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.5rem;
}
.cart-items { display: flex; flex-direction: column; gap: 0.8rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #fff;
}
.ci-art {
  flex: none;
  width: 110px;
  height: 78px;
  border-radius: 10px;
  background: linear-gradient(160deg, #f4f8f6, #e7efeb);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ci-art svg { width: 84%; height: auto; }
.ci-info { flex: 1; min-width: 0; }
.ci-info strong { font-size: 0.98rem; }
.ci-info .spec { margin-top: 0.2rem; }
.ci-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}
.ci-line { font-weight: 600; white-space: nowrap; }
.ci-line b { color: var(--accent); }
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--danger); }
.cart-summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  background: #fbfdfc;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: sticky;
  top: 5rem;
}
.cart-summary h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.totals-flat { max-width: none; margin: 0; }
.ship-note {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ok);
  background: #ecfdf5;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

/* 结账：分组表单卡 + 摘要行 */
.form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  background: #fff;
  margin-bottom: 1.1rem;
}
.form-card h3 { margin: 0 0 0.9rem; font-size: 1.02rem; color: var(--accent-dark); }
.secure-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 0.7rem 0 0; }
.checkout-layout .order-summary { position: sticky; top: 5rem; border-radius: 16px; background: #fbfdfc; }
.sum-row { display: flex; gap: 0.7rem; margin: 0.7rem 0; }
.sum-art {
  flex: none;
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(160deg, #f4f8f6, #e7efeb);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sum-art svg { width: 86%; height: auto; }
.sum-info { flex: 1; min-width: 0; }
.sum-info .sum-item { margin: 0; }

/* 订单详情：成功横幅 + 状态时间线 */
.order-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ecfdf5, #e3ede8);
  border: 1px solid #cfe6db;
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin-top: 0.5rem;
}
.order-hero.is-cancelled {
  background: linear-gradient(135deg, #fef2f2, #fdeaea);
  border-color: #f3d4d4;
}
.order-hero h1 { margin: 0 0 0.25rem; font-size: 1.45rem; }
.oh-meta { margin: 0; color: var(--muted); }
.oh-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-hero.is-cancelled .oh-icon { background: var(--danger); }
.oh-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.order-track {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 1.3rem 0 0;
}
.ot-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.ot-step::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.ot-step:first-child::before { display: none; }
.ot-step.done::before { background: var(--accent); }
.ot-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  position: relative;
  z-index: 1;
}
.ot-step.done .ot-dot { background: var(--accent); border-color: var(--accent); }
.ot-step.current .ot-dot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 93, 80, 0.15); }
.ot-label { font-size: 0.78rem; color: var(--muted); text-align: center; }
.ot-step.current .ot-label, .ot-step.done .ot-label { color: var(--accent-dark); font-weight: 600; }
.order-detail {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.4rem;
}

/* 账户中心 */
.account-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.5rem;
}
.account-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 1.3rem; }
.account-card h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.account-profile { position: sticky; top: 5rem; }
.profile-list { margin: 0 0 1.1rem; }
.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.profile-list dt { color: var(--muted); }
.profile-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.account-orders .muted { font-size: 0.85rem; margin: -0.4rem 0 0.9rem; }
.order-rows { display: flex; flex-direction: column; gap: 0.7rem; }
.order-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-row:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31, 36, 48, 0.07); }
.or-main { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.or-no { font-weight: 700; }
.or-meta { display: flex; gap: 1rem; align-items: center; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.or-total { font-weight: 700; color: var(--ink); }
.or-view { color: var(--accent); font-weight: 600; margin-left: auto; }

/* 查单页 */
.lookup-wrap { max-width: 26.5rem; margin: 1.6rem auto 0; }
.lookup-wrap .form-card { margin-bottom: 0; }

/* 指南卡片图标 + 悬浮 */
.guide-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #e9f1ed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-icon svg {
  width: 21px;
  height: 21px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-card {
  background: #fff;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(31, 36, 48, 0.08); }

/* 404 */
.notfound { text-align: center; padding: 2.5rem 0 3rem; }
.nf-art { display: inline-block; width: 220px; max-width: 70%; }
.nf-art svg { width: 100%; height: auto; }
.nf-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* 后台（/admin，中文运营界面）：左侧固定菜单 + 全宽自适应内容区，复用前台设计语言 */
.admin-body { background: #f3f6f4; }
.admin-shell { display: flex; align-items: stretch; min-height: 100vh; }
.admin-side {
  width: 15rem;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.85rem;
  background: linear-gradient(180deg, #24473d, #1a352d);
  color: #e9f1ed;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.admin-brand .brand-mark { width: 28px; height: 28px; flex: none; }
.admin-brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(233, 241, 237, 0.66);
}
.admin-menu { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.9rem 0 0; flex: 1; }
.admin-menu-group {
  margin: 0.9rem 0.75rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 241, 237, 0.45);
}
.admin-menu-group:first-child { margin-top: 0.3rem; }
.admin-menu a {
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  color: rgba(233, 241, 237, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}
.admin-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-menu a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.admin-side-foot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}
.admin-side-foot .admin-me { font-weight: 600; color: #fff; }
.admin-role-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  color: rgba(233, 241, 237, 0.85);
}
.admin-back-site { color: rgba(233, 241, 237, 0.7); text-decoration: none; }
.admin-back-site:hover { color: #fff; }
.admin-backdrop { display: none; }
/* 内容区不设 max-width：宽屏铺满显示更多数据，窄屏自然收缩 */
.admin-content { flex: 1; min-width: 0; padding: 1.2rem clamp(1.1rem, 2.5vw, 2.6rem) 2.5rem; }
.admin-main { max-width: none; margin: 0; padding: 0; min-height: 60vh; }
.admin-topbar { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.2rem; }
.admin-page-title { font-size: 1.2rem; font-weight: 700; }
.admin-side-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}
.admin-side-toggle svg { width: 20px; height: 20px; display: block; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }
/* 窄屏：菜单收为抽屉，顶栏汉堡展开 */
@media (max-width: 900px) {
  .admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100%;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 30px rgba(31, 36, 48, 0.25);
  }
  .admin-shell.side-open .admin-side { transform: none; }
  .admin-shell.side-open .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(31, 36, 48, 0.4);
  }
  .admin-side-toggle { display: inline-flex; }
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}
.stat-card {
  background: linear-gradient(135deg, #eef4f1, #e3ede8);
  border: 1px solid #dce8e2;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-num { font-size: 1.45rem; font-weight: 700; color: var(--accent-dark); }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.admin-filter {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.admin-filter input[type="search"] {
  flex: 1 1 16rem;
  max-width: 22rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.admin-filter select { padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.pwd-title { margin: 1.3rem 0 0.7rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: 1.02rem; }
.signout-row { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.admin-me {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.admin-logout { display: inline; }
.admin-logout button {
  background: none;
  border: none;
  padding: 0;
  color: rgba(233, 241, 237, 0.75);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-logout button:hover { color: #fda4af; }
.admin-mark { background: var(--accent); }
.admin-mark svg { stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.admin-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-card h1 { font-size: 1.35rem; }
.admin-card .btn-primary { background: var(--ink); border-color: var(--ink); }
.admin-card .btn-primary:hover { background: #000; border-color: #000; }

/* 后台生产图纸（订单详情，车间用） */
.ws-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.2rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  margin: 0 0 1rem;
  background: #fff;
  break-inside: avoid;
}
.ws-item.no-drawing .ws-drawing { display: none; }
.ws-drawing {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfa;
  padding: 0.4rem;
}
.ws-drawing svg { width: 100%; height: auto; display: block; }
.dim-note { font-size: 13px; font-weight: 600; fill: var(--muted); }
.ws-name { font-weight: 700; margin: 0 0 0.3rem; font-size: 1.05rem; }
.ws-swatch-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; font-size: 0.9rem; }
.ws-swatch {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.2);
  flex: none;
}
.ws-meta { margin: 0.6rem 0 0; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.ws-meta div { display: flex; gap: 0.4rem; font-size: 0.9rem; }
.ws-meta dt { color: var(--muted); }
.ws-meta dd { margin: 0; font-weight: 600; }

/* 打印（车间可直出生产单）：只留图纸与规格 */
@media print {
  .site-header, .site-footer, .admin-side, .admin-topbar, .admin-backdrop, .btn, form, .msg {
    display: none !important;
  }
  .admin-body { background: #fff; }
  .admin-shell { display: block; }
  .admin-content { padding: 0; }
  main, .admin-main { max-width: none; padding: 0; }
  h2, h3 { margin: 0.4rem 0; }
  .ws-item { border-color: #999; }
}
@media (max-width: 800px) {
  .ws-item { grid-template-columns: 1fr; }
}

/* 排产打单（/admin/production）：生产中行内发货 + 待排产批量开工/批量打单 */
.prod-entry { margin: 0 0 1.1rem; }

/* 后台账号管理（/admin/accounts，超管） */
.acct-new { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.acct-new input, .acct-new select {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.acct-new input[name="username"] { width: 15rem; }
.acct-new input[name="password"] { width: 13rem; }
.acct-edit { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.acct-edit select { padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; font-size: 0.85rem; }
.acct-edit input[name="password"] { width: 9.5rem; padding: 0.3rem 0.45rem; border: 1px solid var(--line); border-radius: 7px; font-size: 0.85rem; }
.inline-form { display: inline; }
.age-warn { color: var(--danger); font-weight: 600; }
.prod-actions { white-space: nowrap; }
.prod-ship { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.prod-ship select, .prod-ship input {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.85rem;
}
.prod-ship input[name="tracking_no"] { width: 10rem; }
.prod-batch-bar { display: flex; gap: 0.8rem; align-items: center; margin: 0 0 0.8rem; flex-wrap: wrap; }
.prod-check-all { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.9rem; color: var(--muted); }

/* 生产单打印页（/admin/order/:id/print、/admin/production/print）：独立版式 */
.print-body { background: #fff; }
.print-toolbar { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 1.1rem; flex-wrap: wrap; }
.psheet {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.4rem;
  background: #fff;
}
.psheet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
}
.psheet-brand { font-weight: 800; font-size: 1.15rem; }
.psheet-no { font-size: 0.95rem; margin-top: 0.15rem; }
.psheet-carrier { text-transform: uppercase; font-weight: 700; }
.psheet-meta { font-size: 0.82rem; color: var(--muted); text-align: right; }
.psheet-address {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.psheet-address span { color: var(--muted); }
@media print {
  .no-print { display: none !important; }
  .psheet { border: none; border-radius: 0; padding: 0; margin: 0; break-after: page; }
  .psheet:last-child { break-after: auto; }
  .psheet-address { border-color: #999; }
  .psheet .ws-item { border-color: #999; }
}

/* 后台产品页配置（/admin/fabrics 选项卡）+ 面料花色管理 */
.pdp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.pdp-tabs a {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.pdp-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pdp-form { display: block; }
.pdp-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.45rem 0; }
.pdp-row label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; color: var(--muted); margin: 0; }
.pdp-row .pdp-ta { margin-top: 0.25rem; }
.pdp-grow { flex: 1 1 100%; }
.pdp-on { color: var(--ok); }
.pdp-check { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.pdp-ta {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
  color: var(--ink);
}
.pdp-json { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.pdp-copy-table { width: 100%; border-collapse: collapse; }
.pdp-copy-table th, .pdp-copy-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.45rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}
.pdp-copy-table th { color: var(--muted); font-weight: 600; }
.pdp-copy-table td:first-child { width: 20%; color: var(--muted); }
.pdp-copy-table input, .pdp-copy-table textarea {
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
}
.fab-input-lg { width: 15rem; }
.fab-family-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.fab-cell { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.fab-file { font-size: 0.82rem; max-width: 15rem; color: var(--muted); }
.fab-family {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.3rem;
  background: #fff;
}
.fab-family-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.fab-family-head h3 { margin: 0; }
.fab-price-form { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.fab-price-form input { margin: 0; }
.fab-table td { vertical-align: middle; }
.fab-id { display: flex; align-items: center; gap: 0.6rem; }
.fab-swatch {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 36, 48, 0.2);
  display: inline-block;
  flex: none;
  object-fit: cover;
}
.fab-swatch-none { background: repeating-linear-gradient(45deg, #eee, #eee 4px, #ddd 4px, #ddd 8px); }
/* 后台类目/商品图缩略图（商品与类目页） */
.cat-thumb {
  width: 3.2rem;
  height: 2.2rem;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: none;
  display: inline-block;
}
.cat-thumb-none { background: repeating-linear-gradient(45deg, #f2f5f3, #f2f5f3 5px, #e4ebe7 5px, #e4ebe7 10px); }
.fab-edit { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.fab-add { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.9rem; }
.fab-input {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  width: 11rem;
}
.fab-add .fab-input { width: auto; flex: 1 1 10rem; }
.fab-color { width: 2.4rem; height: 2rem; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fab-num { width: 7rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.88rem; }
.fab-num-sm { width: 4.5rem; }
.fab-off .fab-id, .fab-off .fab-edit { opacity: 0.45; }
.fab-status { display: flex; gap: 0.45rem; align-items: center; }

@media (max-width: 860px) {
  .hero-home { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-art-wrap { max-width: 430px; margin: 0 auto; }
}

@media (max-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .field-row { flex-direction: column; gap: 0; }
  .cart-layout, .order-detail, .account-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-layout .order-summary, .account-profile { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-inner { padding: 2rem 1.25rem 1.2rem; }

  /* 产品页移动端：标题/价格通栏 → 图纸/3D 白卡片置顶（sticky 永远可见）→ 配置器。
     用 flex 而非 grid：grid area 会把 sticky 锁死在自身行高内，flex 容器（整篇文章）
     才是 sticky 的约束范围，滚动配置器时卡片始终钉在顶部 */
  .product-page.has-media { display: flex; flex-direction: column; gap: 0.9rem; }
  .product-page.has-media .product-head { order: 1; }
  .product-page.has-media .product-media {
    order: 2;
    position: sticky;
    top: 6rem; /* 让出 sticky 页头高度（移动端页头 92px） */
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(31, 36, 48, 0.08);
  }
  /* 图纸与 3D 等宽等高对称（网格在 .pv-panels 上，吸附工具栏占首行） */
  .product-page.has-media .pv-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
  }
  .product-page.has-media .product-media .diagram-panel,
  .product-page.has-media .product-media .cushion3d-wrap { margin: 0; }
  /* 图纸面板拉伸到与 3D 面板等高：svg 撑满剩余空间（viewBox 居中不变形） */
  .product-page.has-media .product-media .diagram-panel { display: flex; flex-direction: column; }
  .product-page.has-media .product-media .diagram-panel svg { flex: 1 1 auto; min-height: 0; }
  .product-page.has-media .product-media .measure-hint { display: none; } /* 移动端卡片不放测量折叠条 */
  .product-page.has-media .product-info { order: 3; }
  /* 预览吸附工具栏（卡片首行）：图纸/3D/双显 三态 + ✕ 收起；收起后只剩工具栏（迷你吸附条），＋ 展开 */
  .pdp-preview-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .pv-modes { display: flex; background: #edf1ee; border-radius: 999px; padding: 2px; }
  .pv-modes button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0.16rem 0.55rem;
    font-size: 0.72rem;
    color: var(--muted);
    cursor: pointer;
  }
  .pv-modes button.active { background: var(--accent); color: #fff; }
  .pv-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.1rem 0.35rem;
  }
  .product-page.has-media.pv-closed .pv-panels { display: none; }
  .product-page.has-media.pv-mode-diagram .cushion3d-wrap,
  .product-page.has-media.pv-mode-3d .diagram-panel { display: none; }
  .product-page.has-media.pv-mode-diagram .pv-panels,
  .product-page.has-media.pv-mode-3d .pv-panels { grid-template-columns: 1fr; }
  .product-page.has-media.pv-mode-diagram #diagram-svg { height: 130px; flex: none; }
  .product-page.has-media.pv-mode-3d #cushion3d { height: 150px; }
  #pdp-swap-btn { display: none; } /* 移动端媒体恒在形状上方，左右互换无意义 */
  .product-page:not(.has-media) { display: block; }
  #cushion3d { height: 92px; } /* 手机端卡片压成正方形面板 */
  .shape-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .shape-tile {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    padding: 0.28rem 0.55rem;
    font-size: 0.8rem;
  }
  .shape-tile svg { width: 44px; height: 32px; flex: none; }
  .dims-grid { grid-template-columns: 1fr; }
  .option-cards.two { grid-template-columns: 1fr; }

  /* 主导航折叠为汉堡抽屉 */
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0.3rem 0 0.5rem;
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .site-nav a { padding: 0.6rem 0.25rem; font-size: 1rem; }
  .site-header.nav-open .site-nav .nav-panel a { padding: 0.45rem 0.7rem; font-size: 0.92rem; }
  .site-header.nav-open .site-nav a::after, .nav-drop-btn::after { display: none; }

  /* 抽屉内下拉退化为手风琴分组 */
  .nav-drop { width: 100%; }
  .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.25rem;
    font-size: 1rem;
  }
  .nav-panel {
    display: none;
    position: static;
    min-width: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.45rem 0.85rem;
  }
  .nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { display: none; } /* 触屏抽屉不因 hover 误开 */
  .nav-drop.open .nav-panel { display: flex; }
  .nav-panel-cols { flex-direction: column; min-width: 0; }
  .nav-col + .nav-col { border-left: none; margin-left: 0; padding-left: 0; margin-top: 0.45rem; }
  .nav-col h5 { margin-left: 0.2rem; }
}

/* 小屏（手机）细调 */
@media (max-width: 640px) {
  main { padding: 1.1rem; }
  .header-inner { flex-wrap: wrap; gap: 0.4rem 0.9rem; padding: 0.55rem 1rem; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 26px; height: 26px; }
  .header-actions { gap: 0.7rem; }
  .cart-label, .nav-account span { display: none; } /* 小屏图标化省空间 */
  .logout-form { display: none; } /* 退出登录入口保留在账户中心 */
  .nav-toggle { width: 2.5rem; height: 2.5rem; } /* 触控目标加大 */
  .logout-form button { font-size: 0.78rem; }
  .lang-switch { padding: 0.1rem 0.6rem; }
  .hero-home { padding: 1.5rem 1.1rem; border-radius: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; }
  .section { padding: 1.4rem 0; }
  .band { padding: 1.3rem 1rem; border-radius: 14px; }
  .section-head h2 { font-size: 1.3rem; }
  .section-head.with-link { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .prod-foot .btn { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  .cta-band { border-radius: 16px; }
  .cta-band h2 { font-size: 1.32rem; }
  #quote-app, .price-panel, .diagram-panel, .order-summary, .cushion3d-wrap { padding: 0.85rem; }

  .price-row strong { font-size: 1.3rem; }
  .totals { max-width: 100%; }
  .checkout-layout { gap: 1.25rem; }
  .breadcrumb { font-size: 0.82rem; margin-bottom: 1rem; }
  .page-head { padding: 1.2rem 1.05rem; border-radius: 14px; }
  .page-head h1 { font-size: 1.35rem; }
  .auth-card { padding: 1.5rem 1.2rem 1.3rem; }
  .cart-item { flex-wrap: wrap; }
  .ci-art { width: 84px; height: 62px; }
  .ci-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .order-hero { flex-direction: row; padding: 1.2rem 1.1rem; border-radius: 14px; }
  .order-hero h1 { font-size: 1.2rem; }
  .ot-label { font-size: 0.68rem; }
  .or-view { margin-left: 0; }
  .form-card { padding: 1rem 0.95rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .prose h1 { font-size: 1.4rem; }
}

/* ===== 评价系统 ===== */
.stars, .review-stars { display: inline-flex; gap: 0.1rem; }
.star { color: #d5dde2; font-size: 1rem; line-height: 1; }
.star.on { color: #e8a33d; }
.review-agg { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); margin: 0; }
.review-agg strong { color: var(--ink); font-size: 1.05rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.15rem; }
.reviews-band .review-card, .section .review-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.reviews-band .review-card { background: rgba(255, 255, 255, 0.9); }
.review-card h3 { margin: 0; font-size: 1rem; }
.review-body { margin: 0; font-size: 0.92rem; color: var(--ink); flex: 1; }
.review-meta { margin: 0; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.badge-verified {
  color: var(--ok); font-weight: 600; font-size: 0.76rem;
  border: 1px solid #cfe3d5; border-radius: 999px; padding: 0.05rem 0.55rem;
}

/* ===== 标品加购框 / 配件条 ===== */
.buy-box {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.9rem; max-width: 26rem;
}
.buy-box .qty-row { display: flex; align-items: center; gap: 0.7rem; }
.buy-box select { padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 9px; }

/* ===== 博客 ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.3rem; }
.blog-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { box-shadow: 0 12px 28px rgba(20, 45, 38, 0.12); transform: translateY(-2px); }
.blog-cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.blog-card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-date { margin: 0; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.blog-card-body h2 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.blog-excerpt { margin: 0; font-size: 0.9rem; color: var(--muted); }
.blog-more { color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-top: 0.3rem; }
.post-cover-wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.post-cover { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.cta-box {
  margin-top: 2rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef5f2, #e2efe9); border: 1px solid #cfe3d5;
  border-radius: 16px; padding: 1.4rem 1.5rem;
}
.cta-box-text h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.cta-box-text p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.prose .cta-box { margin-left: 0; }

/* ===== 博客文章：正文 + 右侧悬浮定制入口 ===== */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: 2rem;
  align-items: stretch;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.post-layout.no-side { grid-template-columns: minmax(0, 1fr); max-width: 62rem; }
.cta-card {
  position: sticky; /* 随正文滚动保持在可视范围内（顶部让出 sticky 页头高度） */
  top: 5.2rem;
  background: linear-gradient(160deg, #eef5f2, #dcebe4);
  border: 1px solid #cfe3d5;
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 10px 26px rgba(20, 45, 38, 0.1);
}
.cta-card-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.cta-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cta-card .btn { margin-top: 0.5rem; }
@media (max-width: 900px) {
  .post-layout, .post-layout.no-side { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-side { margin-top: 1.6rem; }
  .cta-card { position: static; } /* 窄屏回落：卡片排到正文尾部，不悬浮 */
}

/* ===== 后台评价管理 ===== */
.rv-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.4rem 1.4rem;
  margin: 0 0 1.8rem;
}
.rv-panel h2, .rv-list h2 { margin: 0 0 0.7rem; font-size: 1.12rem; }
.rv-id { color: var(--muted); font-weight: 500; }
.rv-hint { margin: 0 0 1.1rem; font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.rv-form { display: flex; flex-direction: column; gap: 0.9rem; }
.rv-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; }
.rv-row > label, .rv-wide { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; color: var(--muted); }
.rv-row > label { flex: 1 1 10rem; }
.rv-wide { flex: 1 1 100%; }
.rv-form input[name], .rv-form select, .rv-form textarea {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.5rem 0.65rem; font: inherit; color: var(--ink); background: #fff; width: 100%;
}
.rv-form input:focus, .rv-form select:focus, .rv-form textarea:focus { outline: none; border-color: var(--accent); }
.rv-row-foot { align-items: center; }
.rv-check { flex-direction: row !important; align-items: center; gap: 0.4rem !important; color: var(--ink) !important; }
.rv-form-actions { display: flex; gap: 0.6rem; margin-left: auto; }
.rv-count {
  display: inline-block; background: #eef5f2; color: var(--accent);
  border-radius: 999px; font-size: 0.8rem; padding: 0.05rem 0.6rem; vertical-align: 2px;
}
.rv-table td { vertical-align: top; }
.rv-table .spec { color: var(--muted); font-size: 0.8rem; }
.rv-stars { white-space: nowrap; }
.rv-off td { opacity: 0.55; }
.rv-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rv-actions form { display: contents; }
.rv-del:hover { color: var(--danger) !important; border-color: var(--danger) !important; }
.rv-code { font-family: Consolas, Menlo, monospace; font-size: 0.84rem; line-height: 1.55; }
.rv-pub { flex: 0 0 auto !important; }
.rv-label { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 0.3rem; }
/* ===== 后台富文本编辑器 ===== */
.rte-wrap { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #f6faf8; }
.rte-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.rte-btn {
  border: 1px solid transparent; background: none; border-radius: 6px;
  padding: 3px 8px; font: inherit; font-size: 0.82rem; color: var(--ink); cursor: pointer;
}
.rte-btn:hover { background: #eef5f2; border-color: #cfe3d5; }
.rte-btn-b { font-weight: 700; }
.rte-btn-i { font-style: italic; }
.rte-btn-u { text-decoration: underline; }
.rte { min-height: 18rem; max-height: 36rem; overflow-y: auto; padding: 0.9rem 1rem; font: inherit; line-height: 1.65; }
.rte:focus { outline: none; box-shadow: inset 0 0 0 2px #cfe3d5; }
.rte h2 { font-size: 1.25rem; margin: 1.1em 0 0.45em; }
.rte h3 { font-size: 1.05rem; margin: 1em 0 0.4em; }
.rte p { margin: 0.4em 0; }
.rte ul, .rte ol { padding-left: 1.4em; margin: 0.4em 0; }
.rte blockquote { border-left: 3px solid #cfe3d5; margin: 0.6em 0; padding: 0.2em 0.9em; color: var(--muted); }
.rte img { max-width: 100%; border-radius: 8px; }
.rte a { color: var(--accent); }
.rte-source[style*="block"] { width: 100%; border: none; border-radius: 0; resize: vertical; }
.rte-foot { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-top: 1px solid var(--line); background: #f6faf8; }
.admin-badge {
  display: inline-block; min-width: 1.15rem; padding: 0 0.35rem;
  background: #c0392b; color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 1.35;
}

/* ===== 客服即时会话：游客悬浮窗 ===== */
#chat-widget { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
#chat-bubble {
  width: 3.3rem; height: 3.3rem; border: none; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 45, 38, 0.32);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
#chat-bubble:hover { transform: scale(1.06); background: var(--accent-dark); }
#chat-bubble svg { width: 1.5rem; height: 1.5rem; fill: #fff; }
#chat-bubble.open { background: var(--ink); }
#chat-panel {
  width: min(21rem, calc(100vw - 2rem)); height: 30rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20, 45, 38, 0.24);
  display: flex; flex-direction: column; overflow: hidden;
}
#chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: #fff; padding: 0.85rem 1rem;
}
.chat-head-t { display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-t span { font-size: 0.76rem; opacity: 0.85; }
#chat-close { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; padding: 0.2rem 0.4rem; }
.chat-intro { margin: 0 0 0.8rem; font-size: 0.88rem; color: var(--ink); }
#chat-start { padding: 1rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
#chat-start input {
  border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem;
  font: inherit; width: 100%;
}
.chat-primary {
  background: var(--accent); color: #fff; border: none; border-radius: 9px;
  padding: 0.6rem; font: inherit; font-weight: 600; cursor: pointer;
}
.chat-primary:hover { background: var(--accent-dark); }
.chat-msgline { margin: 0; font-size: 0.82rem; }
.chat-msgline.error { color: var(--danger); }
#chat-msgs { flex: 1; overflow-y: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; background: #f7faf8; }
.cmsg { display: flex; }
.cmsg.visitor { justify-content: flex-end; }
.cmsg-bubble {
  max-width: 82%; padding: 0.5rem 0.75rem; border-radius: 12px;
  font-size: 0.88rem; line-height: 1.5; word-break: break-word;
}
.cmsg.visitor .cmsg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.cmsg.staff .cmsg-bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cmsg-at { display: block; font-size: 0.66rem; opacity: 0.65; margin-top: 0.25rem; }
#chat-form { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); }
#chat-input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; font: inherit; }
#chat-form button { background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 0 0.9rem; font: inherit; font-weight: 600; cursor: pointer; }

/* ===== 后台客服工作台 ===== */
.chat-admin { display: grid; grid-template-columns: 21rem minmax(0, 1fr); gap: 1.2rem; min-height: 70vh; }
.chat-convs { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; max-height: 78vh; }
.chat-convs-head { padding: 0.85rem 1rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.chat-conv { display: block; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.chat-conv:hover { background: #f6faf8; }
.chat-conv.active { background: #eef5f2; box-shadow: inset 3px 0 0 var(--accent); }
.chat-conv-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.chat-conv-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.chat-conv-mail { word-break: break-all; }
.chat-conv-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; }
.chat-conv-status { font-size: 0.72rem; color: var(--muted); }
.chat-conv-status.open { color: var(--ok); font-weight: 600; }
.chat-badge { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #c0392b; display: none; }
.chat-badge.show { display: inline-block; }
.chat-thread-wrap { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chat-thread-head { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; background: #f7faf8; min-height: 30rem; max-height: 62vh; }
.chat-msg { display: flex; }
.chat-msg.visitor { justify-content: flex-start; }
.chat-msg.staff { justify-content: flex-end; }
.chat-bubble {
  max-width: 70%; padding: 0.55rem 0.8rem; border-radius: 12px;
  font-size: 0.9rem; line-height: 1.55; word-break: break-word; background: #fff; border: 1px solid var(--line);
}
.chat-msg.visitor .chat-bubble { border-bottom-left-radius: 4px; }
.chat-msg.staff .chat-bubble { background: var(--accent); color: #fff; border: none; border-bottom-right-radius: 4px; }
.chat-msg-meta { display: block; font-size: 0.66rem; opacity: 0.65; margin-top: 0.3rem; }
.chat-reply { display: flex; gap: 0.6rem; padding: 0.75rem; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-reply textarea { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; font: inherit; resize: none; }
.chat-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); flex: 1; }
@media (max-width: 900px) {
  .chat-admin { grid-template-columns: 1fr; }
  .chat-convs { max-height: 40vh; }
}

/* 修复：author 样式 display:flex 会盖过 hidden 属性的 UA display:none，
   导致开口表单在会话开始后仍然常驻遮挡聊天区 */
#chat-start[hidden], #chat-thread[hidden] { display: none !important; }

/* 聊天面板高度自适应：消息少时不再有大片空白，多时消息区内部滚动 */
#chat-panel { height: auto; max-height: min(30rem, calc(100vh - 7rem)); }
#chat-msgs { flex: 0 1 auto; min-height: 2.5rem; max-height: 21rem; }
.cmsg-img { display: block; max-width: 100%; border-radius: 8px; cursor: zoom-in; }
#chat-attach {
  background: none; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 0.55rem; font-size: 0.95rem; cursor: pointer;
}
#chat-attach:hover { border-color: var(--accent); }
.chat-img { display: block; max-width: 100%; max-height: 16rem; border-radius: 8px; }

#chat-bubble { position: relative; }
#chat-dot {
  position: absolute; top: -0.3rem; right: -0.3rem;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem;
  background: #e02d2d; color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; line-height: 1.25rem; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
#chat-dot[hidden] { display: none; }

.chat-head-actions { display: flex; align-items: center; gap: 0.4rem; }
#chat-notif {
  background: none; border: none; color: #fff; font-size: 0.9rem;
  cursor: pointer; padding: 0.15rem 0.3rem;
}
