/* ============================================================
   万企荟（云栖） · Apple 风格暗色系统
   色板取自 logo 自身：暗橄榄绿黑底 + 暖金 + 朱红点缀
   ============================================================ */

:root {
  --bg:        #0A0C09;
  --bg-soft:   #11130E;
  --bg-card:   #14170F;

  --ink:       #F4F5EF;
  --ink-2:     #A6A89C;
  --ink-3:     #8E907F;

  --gold:      #C9C6AE;
  --gold-hi:   #E6E1C6;
  --accent:    #C2402F;

  --hair:      rgba(244, 245, 239, 0.09);
  --hair-strong: rgba(244, 245, 239, 0.18);

  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 28px;

  --spring: cubic-bezier(0.22, 1, 0.36, 1);   /* 临界阻尼近似，无过冲 */
  --spring-bounce: cubic-bezier(0.34, 1.3, 0.4, 1);

  --ease-back: cubic-bezier(0.16, 1, 0.3, 1);

  --font-text: "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
              "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB",
                 "Noto Sans SC", "Source Han Sans SC", sans-serif;

  --pad: 2.5rem;
  --maxw: 1176px;
  
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--font-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: rgba(201, 198, 174, 0.28); }

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap.narrow { max-width: 880px; }

/* ---------- 背景氛围：静态径向光，不用会晕眩的循环动画 ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 198, 174, 0.10), transparent 62%),
    radial-gradient(90% 60% at 85% 12%, rgba(194, 64, 47, 0.05), transparent 55%),
    linear-gradient(180deg, #0D0F0A 0%, var(--bg) 46%, #080A07 100%);
}

/* ---------- 排版层级 ---------- */

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9.2vw, 6.4rem);
  line-height: 1.01;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin-top: 1rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.5rem;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  max-width: 22em;
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.h2 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 1rem;
  text-wrap: balance;
}

.sec-sub {
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 30em;
  margin-top: 1rem;
}

.gold {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 46%, #9C997E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮：按压即时反馈 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 980px;
  padding: 0.75rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 130ms var(--ease-back),
              background-color 220ms ease,
              border-color 220ms ease,
              color 220ms ease;
  will-change: transform;
}
/* 反馈发生在按下瞬间，不等到 release */
.btn:active { transform: scale(0.96); transition-duration: 60ms; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 88%);
  color: #171A12;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 24px -10px rgba(201, 198, 174, 0.45);
}
.btn-primary:hover { background: linear-gradient(180deg, #F2EDD6, #D4D0B6 88%); }

.btn-ghost {
  background: rgba(244, 245, 239, 0.06);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(244, 245, 239, 0.11); }

.arrow { transition: transform 260ms var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav：半透明材质层，内容从下面滚过 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(10, 12, 9, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 340ms ease;
}
/* 用滚动渐隐替代硬边框分隔线 */
.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair-strong) 22%, var(--hair-strong) 78%, transparent);
  opacity: 0;
  transition: opacity 340ms ease;
}
.nav.scrolled::after { opacity: 1; }
.nav.scrolled { background: rgba(10, 12, 9, 0.80); }

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: 0.5rem;
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 0.75rem; margin-left: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair-strong);
  border-radius: 980px;
  background: rgba(244, 245, 239, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 240ms var(--spring), opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.nav-panel { display: contents; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;      /* 旧版 iOS Safari 不认 svh，回退到 vh */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -32%;
  left: 50%;
  width: min(110vw, 1280px);
  aspect-ratio: 1.35;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 198, 174, 0.16), rgba(201, 198, 174, 0.045) 52%, transparent 74%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  max-width: 44em;
  font-size: 0.9375rem;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}
.hero-meta li:first-child { color: var(--gold); font-weight: 600; }
.hero-meta .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}
.hero-meta li:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
  margin-right: 1.25rem;
  vertical-align: 0.24em;
  opacity: 0.55;
}

/* ---------- Statement ---------- */

.statement {
  padding: clamp(6rem, 16vw, 11rem) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, transparent, rgba(20, 23, 15, 0.55) 50%, transparent);
}
.statement-text {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.22;
  letter-spacing: -0.024em;
  font-weight: 500;
  text-wrap: balance;
}
.statement-foot {
  margin-top: 1.75rem;
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 34em;
}

/* ---------- Membership ---------- */

.membership { padding: clamp(6rem, 15vw, 10rem) 0; }

.sec-head { max-width: 32em; margin-bottom: 3.5rem; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(244, 245, 239, 0.045), rgba(244, 245, 239, 0.015));
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform 380ms var(--spring), border-color 320ms ease;
  will-change: transform;
}
.tier:hover {
  transform: translateY(-6px);
  border-color: var(--hair-strong);
}

.tier-feature {
  background:
    linear-gradient(180deg, rgba(201, 198, 174, 0.13), rgba(201, 198, 174, 0.03) 62%, rgba(244, 245, 239, 0.01));
  border-color: rgba(201, 198, 174, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 28px 60px -34px rgba(201, 198, 174, 0.38);
}
.tier-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #171A12;
}

.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.tier-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.018em; }
.tier-tag {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.tier-price .amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tier-feature .tier-price .amount { color: var(--gold-hi); }
.tier-price .unit { color: var(--ink-3); font-size: 1.0625rem; }

.tier-desc {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.5;
}

.tier-list {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 1rem;
  flex: 1;
}
.tier-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
}
.tier-feature .tier-list li::before { opacity: 1; }

.tier .btn-block { margin-top: 2rem; }
.tier-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ---------- 兑换入口 ---------- */

.redeem-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}
.redeem-entry-text { color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Footer ---------- */

.footer {
  padding: 4rem 0 calc(3rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--hair);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-tag { color: var(--ink-3); font-size: 0.9375rem; }
.footer-bot {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* ---------- 滚动入场：从当前值出发，可打断 ---------- */

.reveal { transition: opacity 720ms var(--ease-back), transform 720ms var(--ease-back); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* 交错延迟由 JS 按 DOM 顺序写入，避免硬编码 */

/* ---------- Contact ---------- */

/* ---------- 预约 Modal ---------- */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 10, 7, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  animation: overlay-clip-in 380ms var(--ease-back);
}
.contact-overlay[hidden] { display: none; }

.contact-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.75rem;
  animation: sheet-clip-in 1040ms var(--ease-back);
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.contact-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgba(244, 245, 239, 0.06);
  color: var(--ink-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.contact-close:hover { background: rgba(244, 245, 239, 0.12); color: var(--ink); }

.contact-sub {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

/* ---------- 预约表单 ---------- */

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(244, 245, 239, 0.05), rgba(244, 245, 239, 0.015));
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.field-key {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.field-key .req {
  color: var(--gold-hi);
  font-style: normal;
  margin-left: 2px;
}
.field-key .opt {
  color: var(--ink-3);
  font-size: 0.9375rem;
  margin-left: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(10, 12, 9, 0.55);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 3rem;
}
.contact-form textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.5;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-3);
}

.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238E907F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 12, 9, 0.75);
  box-shadow: 0 0 0 3px rgba(201, 198, 174, 0.14);
}

.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 64, 47, 0.14);
}

.form-note {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

.form-result {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-result.is-ok {
  display: block;
  background: rgba(201, 198, 174, 0.10);
  border: 1px solid rgba(201, 198, 174, 0.35);
  color: var(--gold-hi);
}
.form-result.is-err {
  display: block;
  background: rgba(194, 64, 47, 0.10);
  border: 1px solid rgba(194, 64, 47, 0.40);
  color: var(--accent);
}

.contact-form .btn-block { margin-top: 0.5rem; }

/* ---------- 权益全景 Overlay ---------- */

.perks-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 10, 7, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  animation: overlay-clip-in 380ms var(--ease-back);
}
.perks-overlay[hidden] { display: none; }
@keyframes perks-fade { from { opacity: 0; } to { opacity: 1; } }

.perks-sheet {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-lg);
  animation: sheet-clip-in 1040ms var(--ease-back);
}
@keyframes perks-slide {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.perks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--hair);
}
.perks-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.perks-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: rgba(244, 245, 239, 0.06);
  color: var(--ink-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.perks-close:hover { background: rgba(244, 245, 239, 0.12); color: var(--ink); }

.perks-body {
  padding: 1.5rem 2rem;
  display: grid;
  gap: 2rem;
}

.perks-group-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.perk-card {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(244, 245, 239, 0.04), rgba(244, 245, 239, 0.01));
  border: 1px solid var(--hair);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.perk-card:hover {
  border-color: var(--hair-strong);
  background: linear-gradient(180deg, rgba(244, 245, 239, 0.07), rgba(244, 245, 239, 0.02));
  transform: translateY(-2px);
}
.perk-card:active { transform: none; }

.perk-card--extra {
  background: linear-gradient(180deg, rgba(201, 198, 174, 0.08), rgba(201, 198, 174, 0.02));
  border-color: rgba(201, 198, 174, 0.22);
}
.perk-card--monthly {
  background: linear-gradient(180deg, rgba(194, 64, 47, 0.08), rgba(194, 64, 47, 0.02));
  border-color: rgba(194, 64, 47, 0.2);
}

/* 点击展开的详情 */
.perk-detail {
  grid-column: 1 / -1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(201, 198, 174, 0.06);
  border: 1px solid rgba(201, 198, 174, 0.15);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  animation: perk-detail-in 280ms var(--ease-back);
}
@keyframes perk-detail-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.perks-foot {
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid var(--hair);
}

@media (max-width: 520px) {
  .perks-grid { grid-template-columns: 1fr; }
  .perks-head, .perks-body, .perks-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-sheet { padding: 1.5rem 1.25rem; }
  .contact-form { padding: 0; border: 0; background: none; box-shadow: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --pad: 1.25rem; }

  /* 无 JS 降级：收起汉堡按钮，导航项与按钮平铺进导航条，导航仍然可用 */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-inner { flex-wrap: wrap; }
  html:not(.js) .nav-actions { margin-left: auto; }

  .nav-toggle { display: flex; margin-left: auto; }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem var(--pad) 1.5rem;
    background: rgba(10, 12, 9, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--hair);
  }
  html.js .nav-panel { display: none; }
  .nav.open .nav-panel { display: flex; flex-direction: column; gap: 1.5rem; }

  .nav.open .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0;
  }
  .nav.open .nav-links a { padding: 0.75rem 0; font-size: 1.0625rem; color: var(--ink); }

  .nav.open .nav-actions { margin-left: 0; }
  .nav.open .nav-actions .btn { flex: 1; }
}

/* ---------- 无障碍：减动态 / 减半透明 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: opacity 240ms ease; }
  .btn:active { transform: none; }
  .btn:hover .arrow { transform: none; }
  .tier { transition: border-color 200ms ease, background 200ms ease; }
  .tier:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-ghost { background: rgba(244, 245, 239, 0.12); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --hair: rgba(244, 245, 239, 0.3); --ink-2: #C9CBBE; --ink-3: #9C9E90; }
  .tier { background: var(--bg-card); border-color: var(--hair-strong); }
}

/* ============================================================
   动效增强 (2026-09-22)
   - Hero 首屏编排
   - Tier 卡片 hover 微浮
   - 按钮/卡片/输入框 点击涟漪
   - 输入框聚焦光晕
   - Hero 光晕缓慢呼吸
   只用 transform / opacity / filter，走合成层。
   prefers-reduced-motion 全部降级。
   ============================================================ */

/* ---------- Hero 首屏编排 ---------- */
html.js .hero .wrap > * {
  animation: hero-in 720ms var(--ease-back) both;
}
html.js .hero .wrap > *:nth-child(1) { animation-delay: 0ms; }
html.js .hero .wrap > *:nth-child(2) { animation-delay: 120ms; }
html.js .hero .wrap > *:nth-child(3) { animation-delay: 240ms; }
html.js .hero .wrap > *:nth-child(4) { animation-delay: 360ms; }
html.js .hero .wrap > *:nth-child(5) { animation-delay: 480ms; }
html.js .hero .wrap > *:nth-child(n+6) { animation-delay: 600ms; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- Hero 光晕呼吸 ---------- */
.hero-glow { animation: glow-breathe 12s ease-in-out infinite; will-change: transform, opacity; }
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.08); }
}

/* ---------- Tier 卡片 hover 微浮 ---------- */
.tier {
  transition: transform 380ms var(--spring), border-color 320ms ease;
  will-change: transform;
}
.tier:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 225, 198, 0.24);
}
.tier.is-tilting { transition: transform 0ms; }
.tier:hover .arrow { transform: translateX(4px); }
.tier .arrow { transition: transform 260ms var(--spring); }
.tier:hover .tier-price { transform: scale(1.02); }
.tier-price { transition: transform 380ms var(--spring); will-change: transform; }

/* ---------- 涟漪点击特效 ---------- */
.btn,
.tier,
.redeem-input,
.contact-form input,
.contact-form textarea,
.contact-form select,
.nav-toggle {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 225, 198, 0.38) 0%, rgba(230, 225, 198, 0) 70%);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-anim 600ms ease-out forwards;
}
.ripple-dark {
  background: radial-gradient(circle, rgba(201, 198, 174, 0.55) 0%, rgba(201, 198, 174, 0) 70%);
}
@keyframes ripple-anim {
  0%   { transform: scale(0); opacity: 0.65; }
  100% { transform: scale(4); opacity: 0; }
}

/* ---------- 输入框聚焦光晕 ---------- */
.form-input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 4px rgba(230, 225, 198, 0.08);
}
.redeem-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 198, 174, 0.10);
}

/* ---------- prefers-reduced-motion 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .hero .wrap > *,
  .hero-glow {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .tier,
  .tier:hover,
  .tier:hover .arrow,
  .tier-price {
    transition: none !important;
    transform: none !important;
  }
  .ripple { display: none !important; }
}

/* ============================================================
   动效增强 v2 (2026-09-22)
   - 3D 倾斜卡片 (Tilt)
   - 鼠标光晕跟随 (Cursor Glow)
   - 顶部滚动进度条 (Scroll Progress)
   - Hero 标题扫光 (Title Sweep)
   全部只在桌面端(hover:hover + pointer:fine) 启用；
   prefers-reduced-motion 全降级。
   ============================================================ */

/* ---------- 3D 倾斜卡片 ---------- */
@media (hover: hover) and (pointer: fine) {
  .tiers { perspective: 1400px; }
  .tier {
    will-change: transform;
  }
}

/* ---------- 鼠标光晕跟随 ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(230, 225, 198, 0.16) 0%,
    rgba(201, 198, 174, 0.08) 30%,
    rgba(230, 225, 198, 0) 70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 100%);
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(230, 225, 198, 0.5);
}

/* ---------- Hero 标题扫光 ---------- */
.hero .display {
  position: relative;
  overflow: visible;
}
.hero .display::after {
  content: '';
  position: absolute;
  top: -8%; left: -60%;
  width: 40%; height: 116%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(230, 225, 198, 0.28) 50%,
    transparent 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: title-sweep 4s linear infinite;
}
@keyframes title-sweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}

/* ---------- v2 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .tier, .tiers {
    transform: none !important;
    perspective: none !important;
    transition: none !important;
  }
  .cursor-glow { display: none !important; }
  .scroll-progress { display: none !important; }
  .hero .display::after { animation: none !important; display: none !important; }
}

/* ============================================================
   弹窗展开/关闭动画 (2026-09-22)
   - 打开：perks-fade + perks-slide（已有）
   - 关闭：overlay-out + sheet-out（新增）
   ============================================================ */

@keyframes overlay-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes sheet-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.contact-overlay.is-closing { animation: overlay-clip-out 280ms ease forwards; }
.contact-overlay.is-closing .contact-sheet { animation: sheet-clip-out 280ms ease forwards; }
.perks-overlay.is-closing { animation: overlay-clip-out 280ms ease forwards; }
.perks-overlay.is-closing .perks-sheet { animation: sheet-clip-out 280ms ease forwards; }

/* prefers-reduced-motion 降级 */
@media (prefers-reduced-motion: reduce) {
  .contact-overlay, .perks-overlay,
  .contact-sheet, .perks-sheet {
    animation: none !important;
  }
}


/* ---------- Sheet 折叠展开动画 ---------- */
@keyframes sheet-clip-in {
  from { clip-path: inset(50% 0 50% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes sheet-clip-out {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(50% 0 50% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-sheet, .perks-sheet {
    animation: none !important;
  }
}
