/* 微光 官网 · 11-14 重做：夜色、暖灯、宋体标题（和宣传片同一套） */
:root {
  --night: #0b0b10;
  --night-2: #121219;
  --card: #16161e;
  --ink: #f4ece2;
  --ink-2: rgba(244, 236, 226, .72);
  --ink-3: rgba(244, 236, 226, .5);
  --line: rgba(244, 236, 226, .1);
  --amber: #ecba74;
  --amber-2: #f6d3a0;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 颗粒，和片子一样带一点胶片感 */
body.home::before { content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- 顶栏 ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 18px max(20px, calc((100vw - 1180px) / 2));
  padding-top: max(18px, env(safe-area-inset-top)); background: linear-gradient(to bottom, rgba(11, 11, 16, .86), rgba(11, 11, 16, .62));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 21px;
  font-weight: 600; letter-spacing: .14em; }
.brand.small { font-size: 17px; }
.mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(236, 186, 116, .45)); }
.brand.small .mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; letter-spacing: .04em; transition: color .2s; }
.nav a:hover { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-size: 15px; letter-spacing: .06em; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn-solid { background: linear-gradient(180deg, #f3c987, #e2aa5f); color: #22180e; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(236, 186, 116, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-solid:hover { box-shadow: 0 14px 38px -10px rgba(236, 186, 116, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-line { border: 1px solid rgba(244, 236, 226, .28); color: var(--ink); min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-line:hover { border-color: var(--amber); color: var(--amber-2); }
.btn-ghost { color: var(--ink-2); padding: 0 10px; }
.btn-ghost::after { content: "→"; transition: transform .2s; }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { transform: translateX(3px); }
.btn.big { min-height: 56px; padding: 0 40px; font-size: 17px; }

/* ---------- 通用标题 ---------- */
.eyebrow { margin: 0 0 14px; color: var(--amber); font-size: 13px; letter-spacing: .32em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .04em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.3; }
.head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sub { color: var(--ink-2); margin: 16px 0 0; }
section { padding: 120px max(20px, calc((100vw - 1180px) / 2)); position: relative; }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 48px; min-height: calc(100svh - 77px); padding-top: 64px; padding-bottom: 64px;
  background: radial-gradient(900px 600px at 78% 45%, rgba(236, 186, 116, .12), transparent 65%),
              radial-gradient(900px 520px at 8% 70%, rgba(64, 72, 140, .16), transparent 70%); }
.hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1.16; letter-spacing: .06em; margin-bottom: 26px;
  background: linear-gradient(180deg, #fff8ee 30%, #e9d6bd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); max-width: 30em; margin: 0 0 36px; line-height: 1.9; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.fine { margin: 28px 0 0; color: var(--ink-3); font-size: 13px; letter-spacing: .08em; }
.hero-art { position: relative; margin: 0; }
.hero-art img { position: relative; border-radius: 28px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(120% 120% at 50% 45%, #000 62%, transparent 100%); }
.glow { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 186, 116, .38), transparent);
  filter: blur(40px); animation: breathe 6s ease-in-out infinite; }
.win { position: absolute; width: 11%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 150, .55), transparent);
  mix-blend-mode: screen; animation: flicker 7s ease-in-out infinite; pointer-events: none; }
.w1 { left: 53%; top: 41%; }
.w2 { left: 47%; top: 69%; animation-delay: -2.4s; }
.w3 { left: 34%; top: 41%; animation-delay: -4.6s; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes flicker { 0%, 100% { opacity: .5; } 40% { opacity: 1; } 55% { opacity: .65; } 70% { opacity: .95; } }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; } .hero-copy > :nth-child(5) { animation-delay: .38s; }
.hero-art { animation: rise 1.2s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 住户 ---------- */
.residents { background: radial-gradient(1000px 500px at 50% 30%, rgba(64, 72, 140, .08), transparent 70%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: rgba(236, 186, 116, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.card:hover .photo img { transform: scale(1.04); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(22, 22, 30, .95)); }
.floor { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 3px 11px; border-radius: 999px; font-size: 12px; letter-spacing: .14em;
  color: var(--amber-2); background: rgba(11, 11, 16, .55); border: 1px solid rgba(236, 186, 116, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.body { padding: 4px 20px 22px; margin-top: -48px; position: relative; display: flex; flex-direction: column; flex: 1; }
.body h3 { font-size: 28px; letter-spacing: .1em; }
.role { margin: 2px 0 14px; color: var(--ink-3); font-size: 13px; }
.say { margin: 0 0 16px; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: rgba(255, 255, 255, .055); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; line-height: 1.65; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span { font-size: 12px; color: var(--ink-2); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.disclose { text-align: center; color: var(--ink-3); font-size: 13px; margin: 36px 0 0; }

/* ---------- 住在这里 ---------- */
.life { background: radial-gradient(900px 600px at 85% 60%, rgba(236, 186, 116, .05), transparent 70%); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin: 0 0 120px; }
.row.flip .text { order: 2; }
.num { font-family: var(--serif); color: var(--amber); font-size: 15px; letter-spacing: .2em; }
.row h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.35; margin: 10px 0 18px; }
.row p { color: var(--ink-2); margin: 0; max-width: 30em; line-height: 1.95; }
.phone { justify-self: center; width: min(380px, 100%); padding: 22px 18px 26px; border-radius: 36px;
  background: linear-gradient(160deg, #1d1c25, #121218); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.chat p { margin: 0; }
.who { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; margin-bottom: 8px !important; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 1px solid var(--line); }
.stamp { align-self: center; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 6px !important; }
.b { max-width: 82%; padding: 11px 16px; border-radius: 20px; font-size: 15px; line-height: 1.6; }
.b.her { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.b.me { align-self: flex-end; background: linear-gradient(180deg, #f1c584, #e4ad63); color: #22180e; border-bottom-right-radius: 6px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic img { border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.mosaic img:nth-child(2), .mosaic img:nth-child(4) { transform: translateY(36px); }
.more { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.more li { padding: 24px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 8px; }
.more b { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; font-weight: 600; }
.more span { color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ---------- 怎么进来 ---------- */
.join { text-align: center; background: radial-gradient(800px 420px at 50% 40%, rgba(236, 186, 116, .12), transparent 70%); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 48px auto 52px; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; padding: 30px 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); color: var(--amber); letter-spacing: .2em; font-size: 14px; }
.steps b { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.steps span { color: var(--ink-3); font-size: 14px; }

/* ---------- 常见问题 ---------- */
.faq { max-width: 820px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 34px 22px 0; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--amber); font-size: 22px; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); line-height: 1.9; }
.faq a { color: var(--amber-2); }

/* ---------- 页脚 ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 36px max(20px, calc((100vw - 1180px) / 2)) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot p { margin: 0 0 0 auto; }

/* ---------- 隐私政策、用户协议 ---------- */
.legal-top .brand { margin-right: auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 96px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.9; }
.legal .date { color: var(--ink-3); font-size: 14px; margin-top: 0; }
.legal .note { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(236, 186, 116, .3); background: rgba(236, 186, 116, .06); color: var(--ink); }
.legal a { color: var(--amber-2); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .more { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  section { padding-top: 84px; padding-bottom: 84px; }
  .nav { display: none; }
  .top { gap: 12px; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; gap: 28px; text-align: left; }
  .hero-art { order: -1; margin: 0 -8px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 36px; margin-bottom: 84px; }
  .row.flip .text { order: 0; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .head { margin-bottom: 40px; }
  .foot p { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .body { padding: 2px 12px 14px; margin-top: -40px; }
  .body h3 { font-size: 22px; }
  .role { font-size: 12px; margin-bottom: 10px; }
  .say { font-size: 13px; padding: 9px 11px; }
  .tags span:nth-child(n+3) { display: none; }
  .more { grid-template-columns: 1fr; }
  .mosaic img:nth-child(2), .mosaic img:nth-child(4) { transform: translateY(20px); }
  .cta .btn-solid { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
