/* ============================================================
   Budbeam — 光芽 官网样式
   设计方向（自主理解）：暗室中透出的节日光束。
   深黑底 + 暖金→品红→紫的"光晕"渐变，带轻微动效。
   所有 [占位符] / TODO 均为需替换内容，改 HTML 即可。
   ============================================================ */

:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ECECF1;
  --muted: #8A8AA0;
  --gold: #FFC56B;
  --pink: #FF6FB5;
  --violet: #8B5CFF;
  --beam: linear-gradient(120deg, #FFC56B 0%, #FF6FB5 45%, #8B5CFF 100%);
  --radius: 18px;
  --max: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(7, 7, 13, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__logo { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.nav__logo span { background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--beam); color: #0a0a12; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 92, 255, .35); }

/* ---------- 按钮通用 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .2s, box-shadow .2s; cursor: pointer; border: none;
}
.btn--light { background: #fff; color: #0a0a12; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 207, 107, .3); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 24px 90px; overflow: hidden; text-align: center; }
/* 光球：div 完全在 hero 内，背景天然 alpha 渐变；不依赖 mask / overflow 裁切 */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
  opacity: .9;
}
/* 紫色光球：左上，完全在 hero 内 */
.hero__orb.a {
  width: 600px; height: 600px;
  top: 50px; left: -80px;
  background: radial-gradient(circle, rgba(139,92,255,.85) 0%, rgba(139,92,255,.4) 30%, rgba(139,92,255,0) 65%);
  animation: drift 18s ease-in-out infinite;
}
/* 粉色光球：右下，完全在 hero 内 */
.hero__orb.b {
  width: 600px; height: 600px;
  bottom: 50px; right: -80px;
  background: radial-gradient(circle, rgba(255,111,181,.85) 0%, rgba(255,111,181,.4) 30%, rgba(255,111,181,0) 65%);
  animation: drift 22s ease-in-out infinite reverse;
}
/* 金色光球：中上，完全在 hero 内 */
.hero__orb.c {
  width: 500px; height: 500px;
  top: 25%; left: 50%; margin-left: -250px;
  background: radial-gradient(circle, rgba(255,197,107,.55) 0%, rgba(255,197,107,.25) 30%, rgba(255,197,107,0) 65%);
  animation: drift 26s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.hero > .container { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px; font-weight: 600;
}
.hero__title {
  font-size: clamp(38px, 7vw, 76px); font-weight: 700; margin-bottom: 22px;
  background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 2.3vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 38px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Hero 视觉：设备投射光束到墙面 ---- */
.stage { position: relative; max-width: 720px; margin: 70px auto 0; height: 360px; }
.stage__wall {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 230px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, #2a1a3a, #3a1530, #4a2a12, #2a1a3a);
  background-size: 300% 300%; animation: wallShift 12s ease infinite;
  box-shadow: 0 30px 80px rgba(139, 92, 255, .25);
}
@keyframes wallShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.stage__beam {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 360px; height: 320px;
  background: linear-gradient(to top, rgba(255, 207, 107, .55), rgba(255, 111, 181, .18) 55%, transparent);
  clip-path: polygon(42% 100%, 58% 100%, 88% 0, 12% 0);
  filter: blur(6px); animation: beamPulse 4s ease-in-out infinite;
}
@keyframes beamPulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.stage__phone {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 184px; border-radius: 18px;
  background: linear-gradient(160deg, #1a1a26, #0c0c14);
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.5);
  animation: floatY 5s ease-in-out infinite;
}
.stage__phone::after {
  content: ""; position: absolute; inset: 10px 10px 26px; border-radius: 10px;
  background: var(--beam); opacity: .9;
}
@keyframes floatY { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__title { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 17px; }

/* ---------- 功能卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 207, 107, .4); background: var(--surface-2); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--beam); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; color: #0a0a12; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700;
  background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Showcase 场景墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene {
  position: relative; height: 200px; border-radius: var(--radius); overflow: hidden;
  border: none; display: flex; align-items: flex-end; padding: 18px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.scene:hover { transform: translateY(-3px); }
.scene h4 { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; position: relative; z-index: 3; text-shadow: 0 1px 10px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.9); }
.scene--halloween { --glow: rgba(255,106,0,.7); background: url('assets/halloween.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(255,106,0,.5); }
.scene--xmas { --glow: rgba(80,200,120,.7); background: url('assets/christmas.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(80,200,120,.45); }
.scene--thanks { --glow: rgba(220,130,50,.7); background: url('assets/thanksgiving.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(220,130,50,.45); }
.scene--newyear { --glow: rgba(180,80,220,.7); background: url('assets/newyear.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(180,80,220,.5); }
.scene--easter { --glow: rgba(255,158,210,.7); background: url('assets/easter.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(255,158,210,.45); }
.scene--july4 { --glow: rgba(220,60,60,.7); background: url('assets/independence.jpg') center/cover no-repeat; box-shadow: 0 0 30px 0 rgba(220,60,60,.5); }
/* 内发光环：inset 阴影绘制在背景图之上，作为卡片边缘光晕（替代原 1px 边框） */
.scene::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; box-shadow: inset 0 0 16px 11px var(--glow), inset 0 0 0 1px rgba(0,0,0,.25); }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about__text p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.about__text .hl { color: var(--text); }
.about__panel {
  height: 300px; border-radius: var(--radius); border: 1px solid var(--border);
  background: url('assets/team.jpg') center/cover no-repeat; position: relative; overflow: hidden;
}

/* ---------- Contact ---------- */
.contact__card {
  max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 44px;
}
.contact__row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact__row:last-child { border-bottom: none; }
.contact__row svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact__row .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact__row .value { font-size: 18px; }
.contact__row a { text-decoration: none; }
.contact__row a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; gap: 26px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 法律页 ---------- */
.legal { padding: 120px 0 90px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); text-align: center; margin-bottom: 8px; }
.legal .updated { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 14px; }
.legal h2 { font-size: 20px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--gold); text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .features, .steps, .gallery { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__panel { order: -1; height: 200px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .stage { height: 300px; }
}
@media (max-width: 520px) {
  .nav { padding: 14px 16px; }
  .hero { padding: 80px 18px 70px; }
  .contact__card { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
