/* ============================================================
   REYSE 锐斯 v7 — INS 风 × 科技感（全站共享）
   奶白底 + 金色渐变环 + 方形图片流 + 柔和玻璃卡
   ============================================================ */

:root {
  --bg: #faf7f1;
  --card: #ffffff;
  --ink: #241d10;
  --ink-dim: #6f675a;
  --ink-faint: #a39b8b;
  --ins: linear-gradient(105deg, #6f5622 0%, #a8823c 42%, #d4af6a 74%, #f0dfae 100%);
  --ins-soft: linear-gradient(120deg, #f6ead8, #efdcb0 55%, #e4c98a);
  --gold: #a8823c;
  --gold-deep: #6f5622;
  --line: rgba(36, 29, 16, 0.09);
  --shadow: 0 18px 44px rgba(140, 109, 63, 0.12);
  --shadow-lg: 0 30px 70px rgba(140, 109, 63, 0.18);
  --font-display: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #a8823c; color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

[contenteditable] { outline: none; border-radius: 3px; transition: box-shadow 0.2s; }
[contenteditable]:hover { box-shadow: 0 0 0 1px var(--line); }
[contenteditable]:focus { box-shadow: 0 0 0 2px #a8823c; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.grad {
  background: var(--ins);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 柔光背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-a {
  width: 48vw; height: 48vw; min-width: 420px; min-height: 420px;
  top: -14vw; right: -8vw;
  background: radial-gradient(circle, #f3e2bd, transparent 65%);
  opacity: 0.8;
  animation: drift-a 24s ease-in-out infinite alternate;
}
.orb-b {
  width: 42vw; height: 42vw; min-width: 360px; min-height: 360px;
  bottom: -12vw; left: -8vw;
  background: radial-gradient(circle, #f4e8d4, transparent 65%);
  opacity: 0.75;
  animation: drift-b 28s ease-in-out infinite alternate;
}
.orb-c {
  width: 30vw; height: 30vw; min-width: 280px; min-height: 280px;
  top: 42%; left: 46%;
  background: radial-gradient(circle, #ecd9a9, transparent 65%);
  opacity: 0.5;
  animation: drift-c 32s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, 4vh) scale(1.1); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vw, -3vh) scale(1.08); } }
@keyframes drift-c { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3vw, 5vh) scale(1.15); } }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; overflow: hidden; border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.btn .btn-label, .btn .arrow { position: relative; z-index: 1; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: scale(0.97); }

.btn-solid {
  border: 0; color: #fff;
  z-index: 0;
  box-shadow: 0 12px 28px rgba(168, 130, 60, 0.3);
}
@keyframes grad-move { from { transform: translateX(0); } to { transform: translateX(-54.5%); } }
/* 渐变流动放在伪元素上，仅动画 transform，走合成器、不逐帧重绘 */
.btn-solid::after, .chip-grad::after, .nav-cta::after,
.ring::before, .ring-hero::before,
.filter-btn.active::before, .gear-btn.active::before, .export-btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 220%;
  z-index: -1; border-radius: inherit;
  background: var(--ins);
  animation: grad-move 5s ease-in-out infinite alternate;
}
.filter-btn.active::before, .gear-btn.active::before { animation-duration: 6s; }
.btn-solid::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: skewX(-20deg) translateX(0); } 55%, 100% { transform: skewX(-20deg) translateX(390%); } }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(168, 130, 60, 0.4); }

.btn-ghost:hover { border-color: #a8823c; color: #a8823c; transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ---------- 标签 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
}
.chip-grad {
  background: none; color: #fff; border: 0;
  position: relative; z-index: 0; overflow: hidden;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 30px;
  padding: 16px var(--pad-x);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 249, 247, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand {
  font-size: 20px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--ins);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink-dim); }
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--ins);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  position: relative; overflow: hidden; z-index: 0;
  padding: 10px 22px; border-radius: 999px;
  color: #fff; font-size: 13px; font-weight: 700;
  transition: box-shadow 0.4s, transform 0.35s var(--ease);
}
.nav-cta:hover { box-shadow: 0 10px 26px rgba(168, 130, 60, 0.35); transform: translateY(-2px); }

.burger { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; z-index: 110; margin-left: auto; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 5px; }
.burger span:nth-child(2) { top: 14px; }
.nav.open .burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(251, 249, 247, 0.9);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--pad-x);
  opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(28px, 8vw, 42px); font-weight: 800;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 13px; color: #a8823c; }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Ins 渐变环 ---------- */
.ring {
  padding: 3px;
  border-radius: 50%;
  position: relative; z-index: 0; overflow: hidden;
}
.ring-sm { padding: 2px; }
.ring-hero {
  padding: 5px;
  border-radius: 34px;
  position: relative; z-index: 0; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ring-square { border-radius: 30px; padding: 4px; }

/* ---------- 图片上传槽位 ---------- */
.slot {
  position: relative; overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
}
.ring .slot, .ring-hero .slot { border-radius: inherit; }
.ring .slot { border-radius: 50%; }
.slot:not(.filled) {
  border: 1.5px dashed rgba(168, 130, 60, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.slot:not(.filled):hover {
  border-color: #a8823c;
  box-shadow: 0 0 0 4px rgba(168, 130, 60, 0.08);
}
.slot-hint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-faint); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  pointer-events: none; transition: color 0.3s;
  text-align: center; padding: 10px;
}
.slot:not(.filled):hover .slot-hint { color: #a8823c; }
.slot-hint svg { width: 24px; height: 24px; stroke: currentColor; }
.slot img { width: 100%; height: 100%; object-fit: cover; animation: slotIn 0.7s var(--ease); }
@keyframes slotIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.slot-replace {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: #fff; background: rgba(23, 20, 31, 0.75);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.slot.filled:hover .slot-replace, .slot-replace:focus-visible { opacity: 1; transform: none; }
.slot-replace:hover { background: #a8823c; }

/* 展示状态（未进管理模式）：图片区域完全静默，无任何上传暗示 */
body:not(.editing) .slot { cursor: default; }
body:not(.editing) .slot:not(.filled) { border-color: transparent; }
body:not(.editing) .slot-hint, body:not(.editing) .slot-replace { display: none; }

/* ---------- 区块通用 ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }
.section-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-faint); white-space: nowrap; padding-bottom: 8px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  max-width: var(--max-w); margin: 0 auto;
  padding: 140px var(--pad-x) 40px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #a8823c; box-shadow: 0 0 12px #a8823c;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.55); opacity: 0.5; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.hero-sub { margin-top: 24px; max-width: 44ch; color: var(--ink-dim); font-size: 15.5px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero-visual { position: relative; }
.hero-slot { aspect-ratio: 4 / 5; width: 100%; border-radius: 30px; }
.hero-slot img { transition: transform 6s var(--ease); }
.hero-slot.filled:hover img { transform: scale(1.05); }
.float-tag {
  position: absolute; left: -18px; bottom: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 故事圆环 ---------- */
.stories { display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.story { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.story-slot { width: clamp(84px, 10vw, 108px); height: clamp(84px, 10vw, 108px); }
.story-slot:not(.filled) .slot-hint { font-size: 22px; padding: 0; }
.story-name { font-size: 13px; font-weight: 600; color: var(--ink-dim); }

/* ---------- 产品 · INS 卡片 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.filter-btn {
  padding: 9px 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.filter-btn.active {
  background: none;
  position: relative; z-index: 0; overflow: hidden;
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(168, 130, 60, 0.3);
}
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 28px); }
.post-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.avatar-slot { width: 44px; height: 44px; flex: none; }
.avatar-slot .slot-hint { font-size: 15px; padding: 0; }
.avatar-slot .slot-hint svg { display: none; }
.post-account { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post-handle { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-faint); }
.post-open { font-size: 12px; font-weight: 700; color: #6f5622; white-space: nowrap; transition: color 0.3s; }
.post-open:hover { color: #a8823c; }
.post-body { aspect-ratio: 1 / 1; border-radius: 0; border-left: 0; border-right: 0; }
.post-body:not(.filled) { border: 0; border-block: 1.5px dashed rgba(168, 130, 60, 0.3); }
.post-info { padding: 16px; }
.post-desc { font-size: 13.5px; color: var(--ink-dim); min-height: 3.2em; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.post-price { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- 品牌故事 ---------- */
.story-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-slot-lg { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.story-text .section-note { display: block; margin-bottom: 16px; }
.story-text h2 { font-size: clamp(28px, 3.8vw, 48px); font-weight: 800; line-height: 1.14; letter-spacing: -0.015em; margin-bottom: 20px; }
.story-text p { color: var(--ink-dim); font-size: 15px; max-width: 46ch; }
.story-list { margin-top: 30px; list-style: none; }
.story-list li { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; }
.story-list li:last-child { border-bottom: 1px solid var(--line); }
.story-list .num {
  font-family: var(--font-mono); font-size: 12px; min-width: 30px; padding-top: 3px;
  background: var(--ins); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-list .label { font-weight: 700; }
.story-list .sub { color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }

/* ---------- 数据 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); }
.stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: clamp(26px, 3.5vw, 40px) clamp(16px, 2vw, 26px);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-value {
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: var(--ins); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-value small { font-size: 0.5em; }
.stat-label { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint); }

/* ---------- CTA ---------- */
.cta-band {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: clamp(44px, 7vw, 80px) clamp(20px, 4vw, 60px);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 46px); font-weight: 800; letter-spacing: -0.015em; }
.cta-band p { color: var(--ink-dim); margin-top: 12px; }
.cta-band .btn { margin-top: 30px; }

/* ---------- 产品内页 ---------- */
.pd { padding-top: 120px; }
.pd-crumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-faint); margin-bottom: 34px;
}
.pd-crumb a { transition: color 0.3s; }
.pd-crumb a:hover { color: #a8823c; }
.pd-crumb em { font-style: normal; color: var(--ink); font-weight: 500; }

.pd-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.pd-main-slot { aspect-ratio: 1 / 1; border-radius: 26px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pd-thumb { aspect-ratio: 1 / 1; border-radius: 18px; box-shadow: var(--shadow); }
.pd-thumb .slot-hint { font-size: 18px; padding: 0; }

.pd-info .chip-row { margin-top: 0; margin-bottom: 18px; }
.pd-name { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pd-price {
  margin-top: 10px; font-size: 24px; font-weight: 800;
  background: var(--ins); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-desc { margin-top: 16px; color: var(--ink-dim); font-size: 15px; max-width: 52ch; }

.pd-specs { margin-top: 26px; border-top: 1px solid var(--line); }
.pd-spec {
  position: relative;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-label { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; padding-top: 2px; }
.spec-value { font-weight: 700; text-align: right; }
.spec-tools {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5;
  gap: 6px; align-items: center;
}
body.editing .pd-spec { padding-right: 96px; }
.spec-move, .spec-del {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; font-size: 10px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 20, 31, 0.12);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.spec-move {
  border: 1px solid rgba(168, 130, 60, 0.4); color: var(--gold);
}
.spec-move:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #fff; }
.spec-move:disabled { opacity: 0.3; cursor: default; }
.spec-del {
  border: 1px solid rgba(179, 73, 46, 0.4); color: #b3492e; font-size: 14px;
}
.spec-del:hover { background: #b3492e; border-color: #b3492e; color: #fff; }
.add-spec {
  margin-top: 14px; padding: 10px 22px;
  align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; cursor: pointer;
  border: 1.5px dashed rgba(168, 130, 60, 0.45);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--gold);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.add-spec:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 130, 60, 0.1); }
.add-spec .plus { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
  body.editing .pd-spec { padding-right: 80px; }
  .spec-move, .spec-del { width: 20px; height: 20px; }
  .spec-tools { gap: 4px; }
}

.pd-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pd-pnav { display: flex; gap: 12px; }

.pd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 26px); margin-top: clamp(56px, 8vw, 90px); }
.feature {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-idx {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--ins); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature h3 { margin-top: 10px; font-size: 18px; font-weight: 800; }
.feature p { margin-top: 8px; font-size: 13.5px; color: var(--ink-dim); }

/* ---------- 联系我们 ---------- */
.contact-hero { padding-top: 140px; padding-bottom: 0; }
.contact-title { font-size: clamp(38px, 6vw, 76px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 20px; }
.contact-sub { margin-top: 18px; max-width: 52ch; color: var(--ink-dim); font-size: 15.5px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ins); color: #fff; font-size: 16px;
  margin-bottom: 14px;
}
.info-card h3 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.16em; color: var(--ink-faint); font-weight: 500; }
.info-value { margin-top: 6px; font-size: 14.5px; font-weight: 700; word-break: break-all; }
.social-card { grid-column: 1 / -1; }

.contact-right { display: flex; flex-direction: column; gap: 20px; }
.map-slot { aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.contact-form {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 34px);
}
.contact-form h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 249, 247, 0.7);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #a8823c;
  box-shadow: 0 0 0 3px rgba(168, 130, 60, 0.12);
}
.form-tip { margin-top: 12px; font-size: 12px; color: var(--ink-faint); }

/* ---------- 页脚 ---------- */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); padding: clamp(48px, 7vw, 80px) 0 40px; }
.footer-brand {
  display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: var(--ins); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.footer-tagline { color: var(--ink-dim); font-size: 14px; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-faint); font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; font-size: 14px; color: var(--ink-dim); }
.footer li a { transition: color 0.3s; }
.footer li a:hover { color: #a8823c; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 26px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint);
}
.contact-body { padding-top: clamp(44px, 6vw, 72px); }

/* ---------- 齿轮 · 产品管理开关 ---------- */
.gear-btn {
  margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-dim); cursor: pointer;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.4s, background 0.3s, transform 0.35s var(--ease);
}
.gear-btn svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
.gear-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.gear-btn:hover svg { transform: rotate(60deg); }
.gear-btn.active {
  background: none;
  position: relative; z-index: 0; overflow: hidden;
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(168, 130, 60, 0.35);
}
@media (min-width: 821px) {
  .gear-btn { margin-left: 0; }
}

/* 导出按钮：仅管理模式可见，JS 动态插入在齿轮旁 */
.export-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(168, 130, 60, 0.45);
  position: relative; z-index: 0; overflow: hidden;
  color: #fff; cursor: pointer;
  transition: box-shadow 0.4s, transform 0.35s var(--ease);
}
.export-btn svg { width: 18px; height: 18px; }
.export-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168, 130, 60, 0.4); }

/* ---------- 品牌页 ---------- */
.brand-hero { padding-top: 140px; padding-bottom: 0; }
.brand-title { font-size: clamp(38px, 6vw, 76px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 20px; }
.brand-intro { margin-top: 18px; max-width: 56ch; color: var(--ink-dim); font-size: 15.5px; }

.factory-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.factory-item { margin: 0; }
.factory-big { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.factory-side { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.factory-side .slot { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.factory-cap {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.brand-statement { max-width: 720px; margin: 0 auto; text-align: center; }
.brand-statement .section-note { display: block; margin-bottom: 18px; }
.brand-statement h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.brand-statement p { margin-top: 20px; color: var(--ink-dim); font-size: 15px; }

@media (max-width: 820px) {
  .factory-grid { grid-template-columns: 1fr; }
}

/* ---------- 弹窗（密码 / 裁剪） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(36, 29, 16, 0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
/* 模糊只在弹窗打开时启用：隐藏状态下 backdrop-filter 仍会逐帧重算背景，导致整机卡顿 */
.modal-mask.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal-mask.open .modal { transform: none; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.modal.shake { animation: shake 0.4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.modal h3 { font-size: 19px; font-weight: 800; }
.modal-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-dim); }
.modal input[type="password"] {
  width: 100%; margin-top: 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(250, 247, 241, 0.8);
  padding: 12px 16px; font-size: 15px; letter-spacing: 0.3em;
  color: var(--ink); text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.modal input[type="password"]:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 130, 60, 0.14);
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; justify-content: center; }

.crop-modal { width: min(720px, 100%); }
.crop-stage {
  position: relative; margin-top: 18px;
  display: flex; justify-content: center;
  background: #171310; border-radius: 14px; overflow: hidden;
  touch-action: none; user-select: none;
}
.crop-stage img { display: block; max-width: 100%; max-height: 62vh; pointer-events: none; }
.crop-box {
  position: absolute; cursor: move;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 9999px rgba(10, 8, 5, 0.55);
  border-radius: 4px;
}
.crop-handle {
  position: absolute; width: 18px; height: 18px;
  background: #fff; border: 2px solid var(--gold); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.crop-handle.tl { top: -9px; left: -9px; cursor: nwse-resize; }
.crop-handle.br { bottom: -9px; right: -9px; cursor: nwse-resize; }

.ocr-modal { width: min(760px, 100%); }
.ocr-stage {
  position: relative; margin-top: 18px;
  display: flex; justify-content: center;
  background: #171310; border-radius: 14px; overflow: hidden;
  touch-action: none; user-select: none; cursor: crosshair;
}
.ocr-stage img { display: block; max-width: 100%; max-height: 52vh; pointer-events: none; }
.ocr-box {
  position: absolute;
  border: 1.5px dashed rgba(255, 255, 255, 0.95);
  background: rgba(212, 175, 110, 0.18);
  box-shadow: 0 0 0 9999px rgba(10, 8, 5, 0.45);
  border-radius: 4px;
}
.ocr-status { margin-top: 12px; font-size: 13px; color: var(--ink-dim); min-height: 18px; }
.ocr-result {
  margin-top: 10px; max-height: 200px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px;
}
.ocr-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; cursor: pointer;
}
.ocr-row:last-child { border-bottom: none; }
.ocr-row input { accent-color: var(--gold); width: 15px; height: 15px; flex: none; }
.ocr-l { color: var(--ink-faint); flex: none; }
.ocr-arrow { color: var(--gold); flex: none; }
.ocr-v { font-weight: 600; }
.ocr-raw { padding: 10px 2px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.7; white-space: pre-wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 200;
  padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  background: rgba(23, 20, 31, 0.94);
  color: #fff;
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 查看更多 ---------- */
.more-wrap { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 44px); }

/* ---------- 管理模式（仅 ?manage=1 时可见） ---------- */
.manage-only { display: none !important; }
body.editing .manage-only { display: flex !important; }
.card-admin { justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 14px; }
.admin-cat, .admin-del {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); color: var(--ink-dim);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.admin-cat:hover { border-color: var(--gold); color: var(--gold); }
.admin-del { color: #b3492e; border-color: rgba(179, 73, 46, 0.35); }
.admin-del:hover { background: #b3492e; border-color: #b3492e; color: #fff; }
.add-card {
  align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  min-height: 320px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px dashed rgba(168, 130, 60, 0.45);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--gold);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.add-card:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 130, 60, 0.1); transform: translateY(-4px); }
.add-card .plus { font-size: 34px; line-height: 1; }

/* 故事圆环：添加 / 删除（管理模式） */
.story { position: relative; }
.story-del {
  position: absolute; top: -7px; right: -7px; z-index: 5;
  width: 24px; height: 24px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: 1px solid rgba(179, 73, 46, 0.4);
  background: #fff; color: #b3492e;
  font-size: 14px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 20, 31, 0.12);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.story-del:hover { background: #b3492e; border-color: #b3492e; color: #fff; }
.add-story {
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  width: clamp(84px, 10vw, 108px); height: clamp(84px, 10vw, 108px);
  border-radius: 50%; cursor: pointer;
  border: 1.5px dashed rgba(168, 130, 60, 0.45);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gold);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.add-story:hover { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(168, 130, 60, 0.1); transform: translateY(-4px); }
.add-story .plus { font-size: 22px; line-height: 1; }
.manage-tip {
  display: none; margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold);
}
body.editing .manage-tip { display: block; }

/* ---------- 产品内页 · 选品区 ---------- */
.pd-browse {
  margin-top: clamp(48px, 7vw, 80px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.5vw, 38px);
}
.pd-browse-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.pd-browse-head h3 { font-size: 20px; font-weight: 800; }
.pd-browse-head .filters { margin-bottom: 0; }
.pd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.35s, border-color 0.3s;
}
.pd-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.pd-item.current { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(168, 130, 60, 0.25); }
.pd-item-thumb {
  width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--ins); color: #fff; font-weight: 800; font-size: 15px;
}
.pd-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-item-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-item-txt b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-item-txt i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-features { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 112px; gap: 44px; }
  .story-split { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .float-tag { left: 12px; }
}

@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stories { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}