/* ============================================================
   zifigure · 3D 手办工坊 — 整站设计系统
   明快 / 现代 / 科技感：冷调浅底 + 蓝紫青渐变 + 玻璃拟态
   ============================================================ */
:root {
  --bg: #f7f8fc;
  --bg-soft: #eef1fa;
  --bg-deep: #e7ecf9;
  --card: #ffffff;
  --ink: #0c1226;
  --ink-2: #454f6b;
  --muted: #8a93ab;
  --line: rgba(12, 18, 38, 0.09);
  --line-strong: rgba(12, 18, 38, 0.16);

  --brand: #5856f5;
  --brand-deep: #3b39d6;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --warm: #ff7a45;
  --gold: #f5a623;

  --grad: linear-gradient(112deg, #5856f5 0%, #8b5cf6 44%, #22d3ee 100%);
  --grad-warm: linear-gradient(112deg, #ff8a3d 0%, #ff5f7e 100%);
  --grad-soft: linear-gradient(135deg, rgba(88, 86, 245, 0.10), rgba(34, 211, 238, 0.12));

  --shadow-sm: 0 2px 6px rgba(17, 24, 52, 0.04), 0 10px 24px -14px rgba(17, 24, 52, 0.14);
  --shadow: 0 18px 46px -20px rgba(35, 45, 95, 0.28);
  --shadow-lg: 0 44px 96px -36px rgba(35, 45, 95, 0.40);

  --r: 22px;
  --r-sm: 14px;
  --maxw: 1200px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 120vh;
  background:
    radial-gradient(46vw 46vw at 12% 4%, rgba(88, 86, 245, 0.16), transparent 62%),
    radial-gradient(40vw 40vw at 88% 12%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(38vw 38vw at 60% 78%, rgba(168, 85, 247, 0.10), transparent 62%);
  z-index: 0;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hide { display: none !important; }
.mt2 { margin-top: 28px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 28px;
  background: rgba(247, 248, 252, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 8px 18px -6px rgba(88, 86, 245, 0.7);
  letter-spacing: -0.04em;
}
.logo small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a {
  position: relative; text-decoration: none; font-size: 0.94rem; font-weight: 500;
  color: var(--ink-2); padding: 5px 0; transition: color 0.18s;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--brand); }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.cur-select {
  appearance: none; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2); font-size: 0.82rem; font-weight: 700; padding: 7px 26px 7px 11px;
  border-radius: 999px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%238a93ab' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }
.lang-toggle {
  appearance: none; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 7px 12px; border-radius: 999px; cursor: pointer; min-width: 44px; transition: color 0.18s, border-color 0.18s;
}
.lang-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-size: 0.98rem; font-weight: 650;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 32px -14px rgba(88, 86, 245, 0.9); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(88, 86, 245, 0.85); }
.btn-warm { background: var(--grad-warm); color: #fff; box-shadow: 0 14px 32px -14px rgba(255, 95, 126, 0.8); }
.btn-warm:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; position: relative; z-index: 1; }
.section.tight { padding: 64px 0; }
.section.soft { background: linear-gradient(180deg, rgba(238, 241, 250, 0.75), rgba(247, 248, 252, 0.2)); }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 750; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
h1, h2, h3, h4 { letter-spacing: -0.022em; line-height: 1.18; font-weight: 800; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border-radius: var(--r); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.24s ease, border-color 0.2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(88, 86, 245, 0.22); }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.95rem; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
}
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 750; letter-spacing: 0.04em;
  background: rgba(88, 86, 245, 0.12); color: var(--brand-deep);
}
.tag.cyan { background: rgba(34, 211, 238, 0.15); color: #0e7490; }
.tag.warm { background: rgba(255, 122, 69, 0.14); color: #c2410c; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  padding: 7px 15px 7px 9px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; color: var(--ink-2);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-badge b { background: var(--grad); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.06em; }
.hero h1 { font-size: clamp(2.35rem, 4.9vw, 4rem); line-height: 1.06; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .avatars { display: flex; }
.hero-meta .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-sm);
}
.hero-meta .avatars span:first-child { margin-left: 0; }
.hero-meta .avatars span:nth-child(2) { background: linear-gradient(135deg, #ff8a3d, #ff5f7e); }
.hero-meta .avatars span:nth-child(3) { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.hero-meta .txt { font-size: 0.84rem; color: var(--ink-2); line-height: 1.45; }
.hero-meta .txt b { display: block; font-size: 0.9rem; color: var(--ink); }
.stars-row { color: var(--gold); letter-spacing: 1px; font-size: 0.8rem; }

.hero-stage { position: relative; }
.hero-stage::before {
  content: ""; position: absolute; inset: -14% -10% -8% -10%;
  background: radial-gradient(58% 58% at 50% 46%, rgba(88, 86, 245, 0.28), rgba(34, 211, 238, 0.10) 58%, transparent 74%);
  filter: blur(10px); z-index: 0;
}
.hero-frame {
  position: relative; z-index: 1; border-radius: 28px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.5s ease;
}
.hero-frame:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 42%; }
.hero-frame .frame-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; background: #fff; border-top: 1px solid var(--line);
}
.hero-frame .frame-bar span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.hero-frame .dots { display: flex; gap: 5px; }
.hero-frame .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); display: block; }
.hero-frame .dots i:first-child { background: var(--brand); }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  font-size: 0.82rem; font-weight: 650; color: var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.float-card .ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-deep); flex: none;
}
.float-a { left: -26px; top: 16%; }
.float-b { right: -22px; bottom: 20%; animation-delay: 1.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 跑马灯 ---------- */
.marquee {
  position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.marquee-item svg { color: var(--brand); flex: none; }
.marquee-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); margin-left: 34px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 双风格展示 ---------- */
.style-show { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.style-show:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.style-show .shot { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg-soft); }
.style-show .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.style-show:hover .shot img { transform: scale(1.05); }
.style-show .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 30, 0.55), rgba(10, 14, 30, 0) 46%); }
.style-show .shot .tag { position: absolute; z-index: 2; left: 18px; top: 18px; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.style-show .shot h3 { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px; color: #fff; font-size: 1.3rem; }
.style-show .body { padding: 20px 22px 24px; }
.style-show .body p { color: var(--ink-2); font-size: 0.93rem; }
.style-show .body ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.style-show .body li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); }
.style-show .body li::before { content: "\2713"; color: var(--brand); font-weight: 800; }

/* ---------- 三步流程 ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.22s, box-shadow 0.22s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step .n {
  position: absolute; top: -18px; left: 26px;
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 12px 24px -12px rgba(88, 86, 245, 0.9);
}
.step .icn { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-deep); margin: 10px 0 16px; }
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- 尺寸 / 价格 ---------- */
.size-wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.size-visual { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.size-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.size-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(to bottom, rgba(247, 248, 252, 0), rgba(247, 248, 252, 0.96));
  pointer-events: none;
}
.size-visual .cap { position: absolute; z-index: 2; left: 16px; bottom: 16px; background: rgba(12, 18, 38, 0.72); color: #fff; font-size: 0.78rem; font-weight: 650; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); }
.size-list { display: grid; gap: 12px; }
.size-row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.size-row:hover { transform: translateX(4px); border-color: rgba(88, 86, 245, 0.4); box-shadow: var(--shadow); }
.size-row.sel { border-color: var(--brand); background: linear-gradient(115deg, rgba(88, 86, 245, 0.06), rgba(34, 211, 238, 0.06)); }
.size-row .mm { font-size: 1.16rem; font-weight: 850; letter-spacing: -0.03em; color: var(--brand-deep); }
.size-row .mm small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.size-row .name { font-weight: 700; font-size: 0.97rem; }
.size-row .desc { font-size: 0.83rem; color: var(--muted); }
.size-row .price { font-size: 1.15rem; font-weight: 850; color: var(--ink); }
.size-row .price small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; text-align: right; }

/* ---------- 作品画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.gallery a { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-soft); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a .lbl {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(255, 255, 255, 0.93); color: var(--ink); font-size: 0.76rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: 0.3s;
}
.gallery a:hover .lbl { opacity: 1; transform: translateY(0); }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery .fill {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 26px 28px; background: radial-gradient(120% 140% at 12% 10%, #3b39d6 0%, #1a1f4d 50%, #0b1020 100%);
  border: 0;
}
.gallery .fill b { color: #fff; font-size: 1.05rem; }
.gallery .fill span { color: rgba(255, 255, 255, 0.75); font-size: 0.86rem; }
.gallery .fill em { color: #7ee8f7; font-style: normal; font-weight: 700; font-size: 0.86rem; margin-top: 8px; }
.gallery .fill::after { display: none; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 30, 0.28), transparent 55%); opacity: 0; transition: 0.3s; }
.gallery a:hover::after { opacity: 1; }

/* ---------- 评价 ---------- */
.quote-card { display: flex; flex-direction: column; gap: 14px; }
.quote-card .stars-row { font-size: 0.95rem; }
.quote-card blockquote { font-size: 0.96rem; color: var(--ink-2); line-height: 1.72; }
.quote-card .who { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 6px; }
.quote-card .who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); font-size: 0.82rem; }
.quote-card .who b { font-size: 0.9rem; display: block; }
.quote-card .who small { color: var(--muted); font-size: 0.76rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--ink); padding: 19px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q .icon { color: var(--brand); font-size: 1.35rem; font-weight: 500; transition: transform 0.25s; flex: none; line-height: 1; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-item.open .faq-a { max-height: 340px; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-2); font-size: 0.94rem; }

/* ---------- CTA 带 ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 30px; padding: 64px 56px; text-align: center;
  background: radial-gradient(120% 160% at 18% 12%, #3b39d6 0%, #1a1f4d 46%, #0b1020 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55; }
.cta-band::before { width: 340px; height: 340px; background: #5856f5; left: -80px; top: -120px; }
.cta-band::after { width: 320px; height: 320px; background: #22d3ee; right: -90px; bottom: -140px; opacity: 0.4; }
.cta-band h2 { position: relative; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { position: relative; color: rgba(255, 255, 255, 0.76); margin-bottom: 28px; }
.cta-band .btn { position: relative; }

/* ---------- 环保亮点带 ---------- */
.eco-band {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 26px; position: relative; overflow: hidden;
  background: linear-gradient(112deg, rgba(16, 185, 129, 0.14), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.30);
}
.eco-band::before {
  content: ""; position: absolute; right: -60px; top: -70px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
}
.eco-band .eco-pill {
  flex: 0 0 auto; position: relative; font-weight: 800; letter-spacing: 0.10em; font-size: 0.78rem;
  color: #047857; background: #fff; border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 9px 15px; border-radius: 999px;
}
.eco-band .eco-text { flex: 1 1 360px; position: relative; }
.eco-band h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 8px; color: #064e3b; }
.eco-band p { color: #0f766e; font-size: 1rem; line-height: 1.7; }
.eco-band .btn { position: relative; background: #10b981; border-color: #10b981; color: #fff; }
.eco-band .btn:hover { background: #0ea371; }
@media (max-width: 640px) { .eco-band { padding: 28px 22px; gap: 18px; } }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; z-index: 1; background: #0b1020; color: #b9c0d4; padding: 62px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #b9c0d4; text-decoration: none; font-size: 0.9rem; transition: color 0.18s; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; margin-top: 14px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; color: #7d869e; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center; transition: background 0.2s; }
.social a:hover { background: var(--brand); color: #fff; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; font: inherit; font-size: 0.94rem; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(88, 86, 245, 0.12); }
.textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 创作台 ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 26px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title h3 { font-size: 1.08rem; }
.panel-title .step-pill { font-size: 0.72rem; font-weight: 800; color: var(--brand-deep); background: rgba(88, 86, 245, 0.1); padding: 4px 10px; border-radius: 999px; }

.drop {
  position: relative; border: 2px dashed rgba(88, 86, 245, 0.35); border-radius: 18px;
  background: linear-gradient(135deg, rgba(88, 86, 245, 0.05), rgba(34, 211, 238, 0.05));
  padding: 34px 22px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.drop:hover { border-color: var(--brand); background: linear-gradient(135deg, rgba(88, 86, 245, 0.09), rgba(34, 211, 238, 0.08)); }
.drop .up-ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); color: var(--brand); }
.drop h4 { font-size: 1rem; margin-bottom: 6px; }
.drop p { font-size: 0.85rem; color: var(--muted); }
.preview { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.preview img { width: 100%; max-height: 380px; object-fit: contain; background: var(--bg-soft); }
.preview .replace { position: absolute; right: 10px; bottom: 10px; }

.style-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.style-card {
  position: relative; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  padding: 0; cursor: pointer; overflow: hidden; text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.style-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.style-card.sel { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(88, 86, 245, 0.12); }
.style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.style-card .sc-body { padding: 12px 14px 14px; }
.style-card .sc-body b { font-size: 0.92rem; display: block; }
.style-card .sc-body small { font-size: 0.78rem; color: var(--muted); }
.style-card .radio {
  position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: 1.5px solid var(--line-strong); display: grid; place-items: center;
}
.style-card.sel .radio { background: var(--brand); border-color: var(--brand); }
.style-card.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.progress { margin-top: 16px; }
.progress .bar-wrap { height: 8px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.progress .bar { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 0.5s ease; }
.progress .msg { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 0.82rem; color: var(--ink-2); }

.viewer-box {
  position: relative; border-radius: 18px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 30%, #eef1fb, #e3e9f7 70%, #dde4f5);
  min-height: 380px; display: grid; place-items: center; border: 1px solid var(--line);
}
.viewer-box model-viewer { width: 100%; height: 420px; background: transparent; }
.viewer-empty { text-align: center; padding: 40px 26px; color: var(--muted); }
.viewer-empty .cube { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--brand); }
.viewer-empty b { color: var(--ink); display: block; margin-bottom: 4px; }
.viewer-empty small { font-size: 0.82rem; line-height: 1.6; display: block; max-width: 250px; }

/* ---------- 作品库 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .thumb .badge { position: absolute; left: 10px; top: 10px; }
.work-card .wc-body { padding: 15px 17px 17px; }
.work-card .wc-body b { font-size: 0.95rem; }
.work-card .wc-body .meta { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.work-card .wc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 70px 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); margin-bottom: 20px; }

/* ---------- 结算 ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 26px; align-items: start; }
.summary { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.92rem; color: var(--ink-2); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 850; color: var(--ink); }
.free-ship { font-size: 0.78rem; color: #0e7490; background: rgba(34, 211, 238, 0.12); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.item-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-row img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); }
.item-row b { font-size: 0.95rem; }
.item-row small { color: var(--muted); font-size: 0.8rem; display: block; }

/* ---------- 登录 ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 999px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 0; border-radius: 999px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: 0.2s; }
.tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 24px);
  background: rgba(12, 18, 38, 0.94); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 999; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动入场 ---------- */
/* 默认可见：只有 JS 正常运行时才隐藏待入场元素，避免脚本失败导致整页空白 */
.reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
body.js-reveal .reveal { opacity: 0; transform: translateY(22px); }
body.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, body.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .float-a { left: -12px; }
  .float-b { right: -8px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .header-open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
  }
  .header-open .nav-links > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .hero { padding: 44px 0 60px; }
  .hero-grid, .size-wrap, .studio, .checkout-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .hero-frame { transform: none; }
  .float-a { left: 6px; top: 8%; }
  .float-b { right: 6px; bottom: 10%; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .summary { position: static; }
  .cta-band { padding: 44px 24px; border-radius: 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .site-header { padding: 10px 16px; }
  .site-header .nav-right > .btn { display: none; }
  .hero h1 { font-size: 2.05rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .big { grid-column: span 2; grid-row: span 1; }
  .works-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .size-row { grid-template-columns: 62px 1fr; }
  .size-row .price { grid-column: 2; text-align: left; }
  .size-row .price small { text-align: left; }
  .float-card { font-size: 0.74rem; padding: 8px 11px; }
  .float-card .ico { width: 26px; height: 26px; }
}
