/* =========================================================
 * 鼎牌照明 · 照明商店 - 全局设计系统
 * 与 www.rmkj.cloud 保持同一视觉语言
 * 品牌色：深蓝 + 金色 + 暖橙（光感）
 * ========================================================= */

:root {
  /* —— 品牌主色 —— */
  --brand-navy:        #1e3a8a;
  --brand-navy-dark:   #0f1f4d;
  --brand-navy-light:  #2747a8;
  --brand-gold:        #c9a961;
  --brand-gold-light:  #d9bd7e;
  --brand-gold-dark:   #a98a4a;
  --brand-orange:      #f97316;
  --brand-orange-dark: #d65a08;

  /* —— 中性色 —— */
  --ink-900: #0c0e1a;
  --ink-700: #2a2e3f;
  --ink-500: #5a5f73;
  --ink-400: #8a8f9f;
  --ink-300: #c1c4d0;
  --ink-200: #e5e7ee;
  --ink-100: #f3f4f8;
  --ink-50:  #fafbfd;
  --white:   #ffffff;
  --bg-soft: #f7f8fb;

  /* —— 语义色 —— */
  --success: #16a34a;
  --warning: #f59e0b;
  --error:   #dc2626;
  --info:    #2563eb;

  /* —— 字体 —— */
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif", "STSong", serif;
  --font-sans:  "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* —— 字号阶梯 —— */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;

  /* —— 行高 —— */
  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* —— 字重 —— */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   900;

  /* —— 间距 —— */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* —— 圆角 —— */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* —— 阴影 —— */
  --shadow-sm: 0 1px 2px rgba(12, 14, 26, .06);
  --shadow:    0 4px 12px rgba(12, 14, 26, .08);
  --shadow-md: 0 10px 30px rgba(12, 14, 26, .12);
  --shadow-lg: 0 24px 60px rgba(12, 14, 26, .18);
  --shadow-gold: 0 8px 24px rgba(201, 169, 97, .25);

  /* —— 动效 —— */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 150ms;
  --dur: 280ms;
  --dur-slow: 500ms;

  /* —— 容器 —— */
  --container: 1280px;
  --header-h:  76px;

  /* —— z-index —— */
  --z-base: 1;
  --z-sticky: 50;
  --z-modal: 100;
  --z-cart: 120;
}

/* ====== 重置 ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand-orange); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* ====== 容器与排版 ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section { padding: var(--sp-20) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--brand-navy-dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,.72); }

.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head h2 { font-size: var(--fs-36); margin-bottom: var(--sp-4); }
.section-head .lead { color: var(--ink-500); font-size: var(--fs-18); line-height: var(--lh-loose); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: rgba(30, 58, 138, .07);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-5);
}
.eyebrow--gold { color: var(--brand-gold-dark); background: rgba(201,169,97,.14); }

.divider-gold {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-orange));
  border-radius: 2px;
  margin: var(--sp-5) 0;
}

/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-16); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-12); }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(249, 115, 22, .3);
}
.btn--primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,.4); }

.btn--navy { background: var(--brand-navy); color: var(--white); }
.btn--navy:hover { color: var(--white); background: var(--brand-navy-light); transform: translateY(-2px); }

.btn--outline { border-color: var(--ink-300); color: var(--ink-700); background: var(--white); }
.btn--outline:hover { border-color: var(--brand-navy); color: var(--brand-navy); }

.btn--ghost { border-color: rgba(255,255,255,.28); color: var(--white); }
.btn--ghost:hover { color: var(--white); border-color: var(--brand-gold); background: rgba(201,169,97,.12); }

.btn--gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
  color: var(--white);
}
.btn--gold:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ====== 栅格 ====== */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====== 顶栏 / 导航 ====== */
.topbar {
  background: var(--brand-navy-dark);
  color: rgba(255,255,255,.72);
  font-size: var(--fs-12);
  padding: var(--sp-2) 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.topbar a { color: var(--brand-gold-light); font-weight: var(--fw-semi); }
.topbar i { color: rgba(255,255,255,.22); margin: 0 var(--sp-3); font-style: normal; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--sp-6); }

.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand__mark {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  flex-shrink: 0; overflow: hidden;
}
.brand__mark img { width: 38px; height: 38px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-serif); font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--brand-navy); }
.brand__sub { font-size: 10px; letter-spacing: .16em; color: var(--ink-400); font-weight: var(--fw-semi); }

.nav__menu { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-14); font-weight: var(--fw-medium);
  color: var(--ink-700); border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
}
.nav__link:hover { background: var(--ink-100); color: var(--brand-navy); }
.nav__link.is-active { background: var(--brand-navy); color: var(--white); }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border: 1.5px solid var(--brand-navy);
  border-radius: var(--radius-pill);
  color: var(--brand-navy); font-size: var(--fs-14); font-weight: var(--fw-semi);
  transition: all var(--dur) var(--ease);
}
.cart-btn:hover { background: var(--brand-navy); color: var(--white); }
.cart-btn__badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-orange); color: var(--white);
  font-size: 11px; font-weight: var(--fw-bold);
  display: grid; place-items: center;
  border: 2px solid var(--white);
}

.nav__toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px;
  position: relative; transition: all var(--dur) var(--ease);
}
.nav__toggle span { margin-inline: auto; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ====== HERO ====== */
.hero {
  background: linear-gradient(160deg, var(--brand-navy-dark) 0%, var(--brand-navy) 55%, #16326f 100%);
  color: var(--white);
  padding: var(--sp-20) 0 var(--sp-16);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(201,169,97,.22), transparent 46%),
    radial-gradient(circle at 12% 78%, rgba(249,115,22,.14), transparent 42%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-12); align-items: center; }
.hero__title { font-size: var(--fs-60); color: var(--white); margin-bottom: var(--sp-6); }
.hero__title em { font-style: normal; color: var(--brand-gold); }
.hero__lead { font-size: var(--fs-18); line-height: var(--lh-loose); color: rgba(255,255,255,.8); margin-bottom: var(--sp-8); }
.hero__cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero__stats { display: flex; gap: var(--sp-10); margin-top: var(--sp-12); padding-top: var(--sp-8); border-top: 1px solid rgba(255,255,255,.14); }
.hero__stat .num { font-family: var(--font-serif); font-size: var(--fs-36); font-weight: var(--fw-black); color: var(--brand-gold); line-height: 1; }
.hero__stat .lbl { font-size: var(--fs-12); color: rgba(255,255,255,.6); margin-top: var(--sp-2); }

.hero__visual { display: grid; place-items: center; }
.hero__glow {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.5), rgba(249,115,22,.16) 46%, transparent 70%);
  filter: blur(14px);
  animation: pulse 5s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.09); opacity: 1; } }

/* ====== 产品卡片 ====== */
.product-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-gold);
  box-shadow: var(--shadow-md);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(140deg, var(--ink-100), var(--bg-soft));
  display: grid; place-items: center;
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__badges { position: absolute; top: var(--sp-3); left: var(--sp-3); display: flex; gap: var(--sp-2); z-index: 2; }
.badge {
  padding: 3px var(--sp-3); border-radius: var(--radius-pill);
  font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .04em;
  color: var(--white);
}
.badge--new { background: var(--brand-navy); }
.badge--hot { background: var(--brand-orange); }
.badge--gold { background: var(--brand-gold); }

.product-card__cat {
  position: absolute; bottom: var(--sp-3); left: var(--sp-3); z-index: 2;
  padding: 3px var(--sp-3); border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92);
  font-size: 11px; font-weight: var(--fw-semi); color: var(--brand-navy);
}

.product-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.product-card__placeholder svg { width: 46%; }

.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.product-card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-16); font-weight: var(--fw-semi); line-height: var(--lh-snug);
  color: var(--ink-900); margin-bottom: var(--sp-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.product-card__desc {
  font-size: var(--fs-14); color: var(--ink-500); line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-card__specs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.spec-chip {
  padding: 2px var(--sp-3); border-radius: var(--radius-sm);
  background: var(--ink-100); color: var(--ink-500);
  font-size: 11px; font-weight: var(--fw-medium);
}
.product-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-4); border-top: 1px dashed var(--ink-200);
}
.price { color: var(--brand-orange); font-weight: var(--fw-bold); font-family: var(--font-serif); }
.price__num { font-size: var(--fs-24); }
.price__unit { font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--ink-400); margin-left: 2px; }
.price__tax { display: block; font-size: 11px; color: var(--ink-400); font-weight: var(--fw-regular); }

/* ====== 筛选栏 ====== */
.filter-bar { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.filter-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; flex: 1; }
.chip {
  padding: var(--sp-2) var(--sp-5);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--ink-700);
  background: var(--white);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.chip.is-active { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--white); }

.search-box {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--ink-200); border-radius: var(--radius-pill);
  background: var(--white); min-width: 240px;
}
.search-box:focus-within { border-color: var(--brand-navy); }
.search-box input { border: 0; outline: 0; width: 100%; font-size: var(--fs-14); }

.result-count { font-size: var(--fs-14); color: var(--ink-500); margin-bottom: var(--sp-6); }
.result-count strong { color: var(--brand-navy); }

/* ====== 详情页 ====== */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-14); color: var(--ink-400); padding: var(--sp-6) 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand-navy); }
.breadcrumb span { color: var(--ink-300); }

.detail__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
.gallery__main {
  aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(140deg, var(--ink-100), var(--bg-soft));
  display: grid; place-items: center; border: 1px solid var(--ink-200);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
.gallery__thumb {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink-200); background: var(--ink-50);
  display: grid; place-items: center; padding: var(--sp-1);
}
.gallery__thumb.is-active { border-color: var(--brand-gold); }

.detail__cat { font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-gold-dark); margin-bottom: var(--sp-3); }
.detail__title { font-size: var(--fs-30); margin-bottom: var(--sp-4); }
.detail__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; font-size: var(--fs-14); color: var(--ink-500); margin-bottom: var(--sp-5); }
.detail__meta .star { color: var(--warning); letter-spacing: 1px; }
.detail__desc { font-size: var(--fs-16); color: var(--ink-700); line-height: var(--lh-loose); margin-bottom: var(--sp-6); }

.price-panel {
  background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(201,169,97,.08));
  border: 1px solid rgba(201,169,97,.3);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.price-panel__main { display: flex; align-items: baseline; gap: var(--sp-2); }
.price-panel__main .price__num { font-size: var(--fs-48); }
.price-panel__note { font-size: var(--fs-14); color: var(--ink-500); margin-top: var(--sp-2); }

.option-group { margin-bottom: var(--sp-5); }
.option-group__label { font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink-700); margin-bottom: var(--sp-3); }
.option-group__label .req { color: var(--error); }
.option-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.option-chip {
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--ink-200); border-radius: var(--radius);
  font-size: var(--fs-14); color: var(--ink-700); background: var(--white);
  transition: all var(--dur-fast) var(--ease);
}
.option-chip:hover { border-color: var(--brand-navy); }
.option-chip.is-active { border-color: var(--brand-orange); background: rgba(249,115,22,.08); color: var(--brand-orange-dark); font-weight: var(--fw-semi); }

.qty-row { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 40px; height: 42px; font-size: var(--fs-20); color: var(--ink-700); display: grid; place-items: center; }
.qty button:hover { background: var(--ink-100); color: var(--brand-navy); }
.qty input { width: 64px; height: 42px; text-align: center; border: 0; outline: 0; font-weight: var(--fw-semi); border-inline: 1.5px solid var(--ink-200); }

.detail__cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.spec { border: 1px solid var(--ink-200); border-radius: var(--radius-md); overflow: hidden; margin-top: var(--sp-6); }
.spec h4 { font-family: var(--font-sans); font-size: var(--fs-14); font-weight: var(--fw-bold); color: var(--brand-navy); padding: var(--sp-4) var(--sp-5); background: var(--ink-50); border-bottom: 1px solid var(--ink-200); }
.spec__row { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--ink-100); font-size: var(--fs-14); }
.spec__row:last-child { border-bottom: 0; }
.spec__row dt { color: var(--ink-500); }
.spec__row dd { color: var(--ink-900); font-weight: var(--fw-medium); }

.detail__tabs { margin-top: var(--sp-16); border-top: 1px solid var(--ink-200); padding-top: var(--sp-8); }
.tabs__nav { display: flex; gap: var(--sp-2); border-bottom: 1px solid var(--ink-200); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.tabs__nav button {
  padding: var(--sp-3) var(--sp-5); font-size: var(--fs-16); font-weight: var(--fw-semi);
  color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__nav button:hover { color: var(--brand-navy); }
.tabs__nav button.is-active { color: var(--brand-navy); border-bottom-color: var(--brand-orange); }
.tabs__panel { display: none; animation: fadeUp .35s var(--ease); }
.tabs__panel.is-active { display: block; }
.tabs__panel h4 { font-size: var(--fs-20); margin-bottom: var(--sp-4); }
.tabs__panel p { color: var(--ink-700); line-height: var(--lh-loose); margin-bottom: var(--sp-4); }
.tabs__panel ul { display: grid; gap: var(--sp-3); }
.tabs__panel ul li { position: relative; padding-left: var(--sp-6); color: var(--ink-700); }
.tabs__panel ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
}

/* ====== 购物车抽屉 ====== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(12,14,26,.5);
  opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease);
  z-index: var(--z-cart);
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--white);
  z-index: calc(var(--z-cart) + 1);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--ink-200);
}
.cart-drawer__head h3 { font-size: var(--fs-20); }
.cart-close { width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center; color: var(--ink-500); }
.cart-close:hover { background: var(--ink-100); color: var(--ink-900); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); }
.cart-drawer__foot { border-top: 1px solid var(--ink-200); padding: var(--sp-5) var(--sp-6); background: var(--ink-50); }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--ink-100); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb { width: 64px; height: 64px; border-radius: var(--radius); background: var(--ink-100); display: grid; place-items: center; overflow: hidden; }
.cart-item__name { font-size: var(--fs-14); font-weight: var(--fw-semi); line-height: var(--lh-snug); margin-bottom: var(--sp-1); }
.cart-item__opt { font-size: var(--fs-12); color: var(--ink-400); margin-bottom: var(--sp-2); }
.cart-item__price { font-size: var(--fs-14); color: var(--brand-orange); font-weight: var(--fw-bold); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); }
.cart-item__del { font-size: var(--fs-12); color: var(--ink-400); }
.cart-item__del:hover { color: var(--error); }
.qty--sm button { width: 28px; height: 30px; font-size: var(--fs-14); }
.qty--sm input { width: 40px; height: 30px; font-size: var(--fs-12); }

.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-14); color: var(--ink-500); margin-bottom: var(--sp-2); }
.cart-total-row--main { font-size: var(--fs-18); color: var(--ink-900); font-weight: var(--fw-semi); padding-top: var(--sp-3); border-top: 1px dashed var(--ink-200); margin-top: var(--sp-3); }
.cart-total-row--main .amt { color: var(--brand-orange); font-family: var(--font-serif); font-size: var(--fs-24); font-weight: var(--fw-bold); }

.cart-empty { text-align: center; padding: var(--sp-16) var(--sp-4); color: var(--ink-400); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto var(--sp-4); opacity: .4; }

/* ====== 表单 ====== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1/-1; }
.field label { font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink-700); }
.field label .req { color: var(--error); }
.field input, .field textarea, .field select {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--ink-200); border-radius: var(--radius);
  font-size: var(--fs-14); background: var(--white); outline: 0;
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-navy); }
.field textarea { min-height: 96px; resize: vertical; }
.field__hint { font-size: var(--fs-12); color: var(--ink-400); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--error); }

/* ====== 二维码 / 客服 ====== */
.qr-block { display: flex; gap: var(--sp-6); align-items: center; flex-wrap: wrap; }
.qr-box {
  width: 168px; height: 168px; flex-shrink: 0;
  border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  background: var(--white); padding: var(--sp-3);
  display: grid; place-items: center;
}
.qr-box svg, .qr-box canvas, .qr-box img { width: 100% !important; height: 100% !important; }
.qr-block__info h4 { font-size: var(--fs-18); margin-bottom: var(--sp-3); }
.qr-block__info p { font-size: var(--fs-14); color: var(--ink-500); line-height: var(--lh-loose); margin-bottom: var(--sp-2); }
.qr-block__info strong { color: var(--brand-navy); font-size: var(--fs-20); font-family: var(--font-serif); }

/* ====== 步骤条 ====== */
.steps { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); flex: 1; min-width: 150px; }
.step__num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: var(--fs-12); font-weight: var(--fw-bold);
  background: var(--ink-200); color: var(--ink-500);
}
.step__txt { font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--ink-400); }
.step.is-active { background: rgba(30,58,138,.06); }
.step.is-active .step__num { background: var(--brand-navy); color: var(--white); }
.step.is-active .step__txt { color: var(--brand-navy); font-weight: var(--fw-semi); }
.step.is-done .step__num { background: var(--success); color: var(--white); }
.step.is-done .step__txt { color: var(--ink-700); }

/* ====== 下单 / 发货单 ====== */
.order-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--sp-10); align-items: start; }

.invoice {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-md); padding: var(--sp-8);
}
.invoice__head { display: flex; justify-content: space-between; gap: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 2px solid var(--brand-navy); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.invoice__brand { display: flex; flex-direction: column; gap: var(--sp-1); }
.invoice__brand strong { font-family: var(--font-serif); font-size: var(--fs-20); color: var(--brand-navy); }
.invoice__brand span { font-size: var(--fs-12); color: var(--ink-400); }
.invoice__no { text-align: right; font-size: var(--fs-12); color: var(--ink-500); }
.invoice__no b { display: block; font-family: var(--font-mono); font-size: var(--fs-16); color: var(--ink-900); }

.invoice__parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.invoice__party h5 { font-family: var(--font-sans); font-size: var(--fs-12); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: var(--sp-3); }
.invoice__party dl { display: grid; gap: var(--sp-2); font-size: var(--fs-14); }
.invoice__party dl div { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-2); }
.invoice__party dt { color: var(--ink-400); }
.invoice__party dd { color: var(--ink-900); font-weight: var(--fw-medium); word-break: break-all; }

table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
table.tbl thead th {
  background: var(--ink-50); color: var(--ink-500);
  font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: .06em;
  text-transform: uppercase; text-align: left;
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--ink-200);
}
table.tbl tbody td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--ink-100); vertical-align: top; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tfoot td { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-14); }
table.tbl tfoot tr.grand td { border-top: 2px solid var(--brand-navy); font-size: var(--fs-18); font-weight: var(--fw-bold); color: var(--brand-orange); }

.invoice__qr { display: flex; gap: var(--sp-6); align-items: center; padding: var(--sp-6); background: var(--ink-50); border-radius: var(--radius-md); margin-top: var(--sp-6); flex-wrap: wrap; }
.invoice__qr .qr-box { width: 148px; height: 148px; background: var(--white); }
.invoice__qr h5 { font-size: var(--fs-16); margin-bottom: var(--sp-2); }
.invoice__qr p { font-size: var(--fs-13); color: var(--ink-500); line-height: var(--lh-normal); margin-bottom: var(--sp-1); }

.summary-card {
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-md); padding: var(--sp-6); position: sticky; top: calc(var(--header-h) + var(--sp-4));
}
.summary-card h4 { font-size: var(--fs-18); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-200); }
.summary-row { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-14); color: var(--ink-500); margin-bottom: var(--sp-3); }
.summary-row b { color: var(--ink-900); font-weight: var(--fw-semi); }
.summary-row--total { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--ink-200); font-size: var(--fs-16); color: var(--ink-900); font-weight: var(--fw-semi); }
.summary-row--total b { color: var(--brand-orange); font-family: var(--font-serif); font-size: var(--fs-24); }

/* ====== 支付方式 ====== */
.pay-methods { display: grid; gap: var(--sp-3); }
.pay-method {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4); border: 1.5px solid var(--ink-200); border-radius: var(--radius);
  cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.pay-method:hover { border-color: var(--brand-navy); }
.pay-method.is-active { border-color: var(--brand-orange); background: rgba(249,115,22,.05); }
.pay-method__icon { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--ink-100); flex-shrink: 0; }
.pay-method__icon svg { width: 22px; height: 22px; }
.pay-method__txt { flex: 1; }
.pay-method__txt strong { display: block; font-size: var(--fs-14); font-weight: var(--fw-semi); margin-bottom: 2px; }
.pay-method__txt span { font-size: var(--fs-12); color: var(--ink-400); }
.pay-method input { accent-color: var(--brand-orange); width: 18px; height: 18px; }

/* ====== 提示 / 通知 ====== */
.toast {
  position: fixed; bottom: var(--sp-8); left: 50%; transform: translate(-50%, 120%);
  background: var(--ink-900); color: var(--white);
  padding: var(--sp-3) var(--sp-6); border-radius: var(--radius-pill);
  font-size: var(--fs-14); z-index: 999;
  transition: transform var(--dur) var(--ease-bounce);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - var(--sp-8));
}
.toast.is-show { transform: translate(-50%, 0); }
.toast--ok { background: var(--success); }
.toast--err { background: var(--error); }

/* ====== 浮动按钮 ====== */
.float-actions { position: fixed; right: var(--sp-6); bottom: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-3); z-index: 90; }
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--brand-navy);
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  box-shadow: var(--shadow); position: relative;
  transition: all var(--dur) var(--ease);
}
.float-btn:hover { background: var(--brand-navy); color: var(--white); transform: translateY(-2px); }
.float-btn--wechat { background: #07c160; color: var(--white); border-color: #07c160; }
.float-btn--wechat:hover { background: #06ad56; color: var(--white); }
.float-btn .qr {
  position: absolute; right: calc(100% + var(--sp-3)); top: 50%; transform: translateY(-50%);
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  padding: var(--sp-4); width: 190px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease);
  color: var(--ink-900); text-align: center;
}
.float-btn:hover .qr { opacity: 1; visibility: visible; }
.float-btn .qr strong { display: block; font-size: var(--fs-12); margin-bottom: var(--sp-3); color: var(--brand-navy); }
.float-btn .qr .qr-img { width: 100%; aspect-ratio: 1; background: var(--ink-50); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }

/* ====== 页脚 ====== */
.site-footer { background: var(--brand-navy-dark); color: rgba(255,255,255,.7); padding: var(--sp-16) 0 var(--sp-6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-10); padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__grid h4 { font-family: var(--font-sans); font-size: var(--fs-14); font-weight: var(--fw-bold); color: var(--white); margin-bottom: var(--sp-5); letter-spacing: .04em; }
.footer__grid ul { display: grid; gap: var(--sp-3); font-size: var(--fs-14); }
.footer__grid ul a:hover { color: var(--brand-gold); }
.footer__contact li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-14); }
.footer__contact svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-gold); }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__sub { color: rgba(255,255,255,.4); }

.footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-5); padding-top: var(--sp-6); font-size: var(--fs-12); flex-wrap: wrap; }
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a:hover { color: var(--brand-gold); }

/* ====== 空状态 ====== */
.empty-state { text-align: center; padding: var(--sp-20) var(--sp-6); color: var(--ink-400); }
.empty-state__icon { width: 56px; height: 56px; margin: 0 auto var(--sp-5); opacity: .35; }
.empty-state p { font-size: var(--fs-16); }
.empty-state code { font-family: var(--font-mono); font-size: 13px; background: var(--ink-100); padding: 2px 6px; border-radius: 4px; }

/* ====== 动效 ====== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s var(--ease) both; }
.d-1 { animation-delay: .08s; }
.d-2 { animation-delay: .16s; }
.d-3 { animation-delay: .24s; }

/* ====== 响应式 ====== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .detail__layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  :root { --fs-60: 2.5rem; --fs-48: 2rem; --fs-36: 1.75rem; }
  .container { padding-inline: var(--sp-4); }
  .section { padding: var(--sp-12) 0; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--sp-4); border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform var(--dur) var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link { padding: var(--sp-4); border-radius: var(--radius); }
  .nav__toggle { display: grid; place-items: center; }
  .nav__cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: var(--sp-12) 0; }
  .hero__stats { gap: var(--sp-6); margin-top: var(--sp-8); }
  .hero__stat .num { font-size: var(--fs-30); }
  .form-grid { grid-template-columns: 1fr; }
  .invoice__parties { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .float-actions { right: var(--sp-4); bottom: var(--sp-5); }
  .float-btn { width: 44px; height: 44px; }
  .inline-actions { flex-direction: column; }
  .inline-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero__cta .btn { width: 100%; }
  .qr-block { justify-content: center; text-align: center; }
  .qr-box { margin-inline: auto; }
  .invoice { padding: var(--sp-5); }
  .spec__row { grid-template-columns: 1fr; gap: var(--sp-1); }
}

/* ====== 打印（发货单） ====== */
@media print {
  .topbar, .site-header, .site-footer, .float-actions, .no-print,
  .cart-drawer, .cart-overlay, .steps, .breadcrumb,
  #payAside, #relatedSection, #orderRoot, #emptyBox,
  #btnPrint, #btnPrint2, #btnCopy, #btnBackEdit, #btnPayGo, #btnPaid, #btnNewOrder { display: none !important; }
  body { background: var(--white); }
  .section { padding: 0; }
  .container { max-width: 100%; padding: 0; }
  .invoice { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; break-inside: avoid; }
  .order-layout { display: block; }
  .summary-card { display: none; }
  main > .container > .section { padding: 0 !important; }
  .invoice__head { border-bottom-color: #1e3a8a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.tbl { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.tbl thead tr { background: #f3f4f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; size: A4; }
}

/* ====== 详情页图库占位 ====== */
.gallery__placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.gallery__placeholder svg { width: 38%; }

/* ====== 提示条（GEO 说明 / 提示） ====== */
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(201,169,97,.1);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius);
  font-size: var(--fs-14); color: var(--ink-700); line-height: var(--lh-loose);
}
.notice strong { color: var(--brand-navy); }
