/* ============================================================
   威侍酒柜 Whisage — 品牌落地页
   深色 · 克制 · 摄影感 | 色板与 App 设计语言同源
   ============================================================ */

/* 自托管字体子集(思源宋体 600 / EB Garamond 可变;零外部运行时依赖) */
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/noto-serif-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #100e0d;
  --bg-raised: #1c1918;
  --gold: #f59e0b;
  --amber: #b0722c;
  --ink: #f5efe6;
  --body: #a89f91;
  --hairline: rgba(245, 239, 230, 0.08);
  --hairline-strong: rgba(245, 239, 230, 0.14);

  --font-display: "EB Garamond", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(88px, 13vh, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif { font-family: var(--font-display); }

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

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.85;
  flex: none;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-slogan {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.075rem);
  max-width: 34em;
}

.meta-line {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 230, 0.55);
}

.meta-line b { color: var(--gold); font-weight: 500; padding: 0 0.5em; font-size: 0.78em; vertical-align: 0.28em; }

/* ---------- 顶栏 ---------- */

.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.hd.scrolled {
  background: rgba(16, 14, 13, 0.94);
  border-bottom-color: var(--hairline);
}

.hd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.hd-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--hairline-strong);
}

.hd-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hd-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
}

/* 语言二选一开关:椭圆容器 + 金色激活态 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(28, 25, 24, 0.55);
}

.lang-toggle a,
.lang-toggle span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lang-toggle a:hover { color: var(--ink); }

.lang-toggle .on {
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 144px 0 64px;
}

/* 深色域内的微妙琥珀氛围(非大面积渐变面) */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 62vw;
  height: 90vh;
  background: radial-gradient(closest-side, rgba(176, 114, 44, 0.10), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
  width: 100%;
}

.hero-copy .kicker { margin-bottom: clamp(20px, 3vh, 32px); }

.hero-copy h1 { margin-bottom: clamp(18px, 2.6vh, 26px); }

.hero-slogan { margin-bottom: clamp(22px, 3.2vh, 32px); }

.hero-copy .lede { margin-bottom: clamp(30px, 4.4vh, 46px); }

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ---------- 设备框 ---------- */

.phone {
  width: min(300px, 80vw);
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(180deg, #211d1b, #161312);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 64px 120px -48px rgba(0, 0, 0, 0.92),
    0 28px 56px -28px rgba(176, 114, 44, 0.20);
  position: relative;
  z-index: 1;
}

.phone img {
  width: 100%;
  border-radius: 36px;
}

.hero-visual .phone { width: min(320px, 82vw); }

/* ---------- 按钮 ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}

.btn-gold:hover { background: #ffb324; }

.btn-ghost {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn .tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 230, 0.62);
}

.btn-gold .tag { color: rgba(16, 14, 13, 0.72); }

/* ---------- 产品叙事 ---------- */

.story {
  padding: clamp(56px, 9vh, 110px) 0;
  border-top: 1px solid var(--hairline);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}

.story-copy .kicker { margin-bottom: 18px; }

.story-copy h2 { margin-bottom: 18px; }

.story-copy .lede { margin-bottom: 22px; }

.story-media {
  display: flex;
  justify-content: center;
}

/* ---------- 功能小节:编号文字列表 ---------- */

.features {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hairline);
}

.features-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vh, 52px);
}

.features-head .kicker { margin-bottom: 14px; }

.frow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.frow:last-child { border-bottom: 1px solid var(--hairline); }

.frow .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.frow h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.frow p { font-size: 0.95rem; max-width: 40em; }

/* ---------- 尾屏 CTA ---------- */

.cta-band {
  position: relative;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.cta-band .bgimg {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, transparent 96%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 40%, transparent 96%);
}

/* 文案区压暗坐底:深色域内过渡,让酒杯图退后、文字区干净 */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 14, 13, 0.92) 28%, rgba(16, 14, 13, 0.3) 55%, rgba(16, 14, 13, 0) 78%),
    linear-gradient(0deg, rgba(16, 14, 13, 0.6), rgba(16, 14, 13, 0) 32%);
  pointer-events: none;
}

.cta-band .wrap { position: relative; z-index: 1; }

.cta-band .kicker { margin-bottom: 20px; }

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}

.cta-band .lede { margin-bottom: clamp(30px, 4.4vh, 44px); }

/* ---------- 页脚 ---------- */

.ft {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 7vh, 72px) 0 40px;
  font-size: 0.86rem;
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ft-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--hairline-strong);
}

.ft-brand .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.ft-brand .en {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.ft-slogan {
  font-family: var(--font-display);
  color: rgba(245, 239, 230, 0.6);
  letter-spacing: 0.04em;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.ft-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  color: rgba(168, 159, 145, 0.75);
}

.ft-legal .adult { letter-spacing: 0.04em; }

/* ICP 备案号(法规要求链接至工信部备案系统) */
.ft-legal .icp {
  text-decoration: none;
  color: rgba(168, 159, 145, 0.75);
  transition: color 0.25s var(--ease);
}

.ft-legal .icp:hover { color: var(--gold); }

/* 英文页备案号:合规可查即可,视觉存在感最小 */
html[lang="en"] .ft-legal .icp {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.62;
}

/* ---------- 入场动效(仅 JS 可用时;<400ms,ease-out;reduced-motion 关闭) ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
}

.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hd, .btn, .lang-toggle a, .lang-toggle span { transition: none; }
}

/* ---------- 桌面 ---------- */

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.06fr 0.94fr; }
  .hero-visual { justify-content: flex-end; padding-right: 2vw; }
  .hero-visual .phone { margin-top: -4vh; }

  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-media { justify-content: center; }
  .story.flip .story-media { order: -1; }

  .frow {
    grid-template-columns: 64px 220px 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 30px 0;
  }
}

/* 打印与超宽屏保护 */
@media print {
  .hd, .cta-band .bgimg, .cta-band::after { display: none; }
  body { background: #fff; color: #333; }
  h1, h2, h3, .hero-slogan, .ft-slogan, .hd-brand span { color: #1a1a1a; }
  .meta-line, .ft-legal { color: #555; }
}
