/* =========================================================
   LILI LUXURY · Website Upgrade Page
   ========================================================= */

:root {
  --ink: #0b0b0d;
  --ink-2: #14120f;
  --gold: #c9a227;
  --gold-light: #e8d7a3;
  --gold-deep: #8c6d1f;
  --ivory: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.58);
  --line: rgba(201, 162, 39, 0.28);

  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Inter", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html {
  /* 避免 iOS 横屏时自动放大字号 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 39, 0.16) 0%, transparent 60%),
    radial-gradient(90% 60% at 85% 100%, rgba(140, 109, 31, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #0d0c0e 0%, #0b0b0d 45%, #14120f 100%);
}

.bg__sheen {
  position: absolute;
  top: -30%; left: -60%;
  width: 60%; height: 160%;
  background: linear-gradient(100deg, transparent 0%, rgba(232, 215, 163, 0.10) 45%, transparent 70%);
  transform: rotate(8deg);
  animation: sheen 14s var(--ease) infinite;
}

@keyframes sheen {
  0%   { transform: translateX(0) rotate(8deg); }
  55%  { transform: translateX(320%) rotate(8deg); }
  100% { transform: translateX(320%) rotate(8deg); }
}

.bg__grain {
  position: absolute; inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: relative; z-index: 3;
  padding: 26px 6vw 0;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto;
}
.topbar__mono {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: .42em;
  color: var(--gold-light);
  opacity: .8;
}

.lang {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
  color: var(--muted); cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.lang:hover { color: var(--gold-light); border-color: rgba(201, 162, 39, .55); }
.lang__opt { transition: color .3s var(--ease); }
.lang__opt.is-active { color: var(--gold); }
.lang__sep { opacity: .4; }

/* ---------- 舞台 ---------- */
.stage {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 6vh 6vw 8vh;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 4vh; }

.hero__eyebrow {
  margin: 0 0 34px;
  font-size: 10px; letter-spacing: .5em;
  color: rgba(201, 162, 39, .75);
  text-transform: uppercase;
}

.crest {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 26px;
}
.crest__line {
  width: clamp(48px, 14vw, 120px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.crest__mark {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: .18em;
  background: linear-gradient(180deg, #f7ecc9 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero__brand { margin: 0; line-height: 1; }
.hero__brand-cn,
.hero__brand-en {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  background: linear-gradient(180deg, #fbf3dd 0%, #d9b84d 45%, #9a7722 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__brand-cn { font-size: clamp(38px, 8vw, 72px); letter-spacing: .22em; text-indent: .22em; }
.hero__brand-en {
  margin-top: 16px;
  font-size: clamp(13px, 2.4vw, 20px);
  letter-spacing: .58em; text-indent: .58em;
  opacity: .9;
}

/* 语言切换：中文环境显示中文名+英文名，英文环境仅显示英文名 */
html[data-lang="en"] .hero__brand-cn { display: none; }
html[data-lang="en"] .hero__brand-en { margin-top: 0; }

.hero__tagline {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(15px, 2.6vw, 21px);
  letter-spacing: .3em; text-indent: .3em;
  color: rgba(244, 241, 234, .72);
  overflow-wrap: break-word;
}

.hero__title {
  margin: 54px 0 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 5vw, 44px);
  letter-spacing: .16em; text-indent: .16em;
  color: var(--ivory);
}
.hero__title span {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.hero__title span::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 54px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__desc {
  max-width: 620px; margin: 26px auto 0;
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 2.1; letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 倒计时 ---------- */
.countdown {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(10px, 3vw, 30px);
  margin: 46px 0 0;
}
.countdown__item {
  min-width: clamp(64px, 15vw, 92px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.countdown__num {
  font-family: var(--serif); font-size: clamp(30px, 6vw, 46px);
  line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  text-shadow: 0 0 26px rgba(201, 162, 39, .22);
}
.countdown__label {
  font-size: 10px; letter-spacing: .34em; text-indent: .34em;
  color: rgba(244, 241, 234, .45);
}
.countdown__dot {
  font-family: var(--serif); font-size: 26px; line-height: 1.2;
  color: rgba(201, 162, 39, .5);
}
.countdown.is-over .countdown__num { opacity: .55; }
.countdown__done {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 3.4vw, 26px);
  letter-spacing: .24em; text-indent: .24em;
  color: var(--gold-light);
}

/* ---------- 订阅 ---------- */
.subscribe {
  max-width: 520px; margin: 62px auto 0;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  backdrop-filter: blur(2px);
}
.subscribe__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: 20px; letter-spacing: .26em; text-indent: .26em;
  color: var(--gold-light);
}
.subscribe__desc {
  margin: 12px 0 24px;
  font-size: 12.5px; line-height: 1.9; letter-spacing: .05em;
  color: var(--muted);
}
.subscribe__row { display: flex; gap: 10px; }
.subscribe__input {
  flex: 1 1 auto; min-width: 0;
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  color: var(--ivory);
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .08em;
  transition: border-color .3s var(--ease);
}
.subscribe__input::placeholder { color: rgba(244, 241, 234, .32); }
.subscribe__input:focus { outline: none; border-bottom-color: var(--gold); }

.subscribe__btn {
  flex: 0 0 auto;
  padding: 12px 26px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .24em; text-indent: .24em;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.subscribe__btn:hover {
  background: linear-gradient(180deg, #e6cf8a, var(--gold));
  color: #14120f;
  box-shadow: 0 10px 30px -12px rgba(201, 162, 39, .6);
}
.subscribe__btn:disabled { opacity: .5; cursor: default; }

.subscribe__msg {
  min-height: 18px; margin: 14px 0 0;
  font-size: 12px; letter-spacing: .08em;
  color: rgba(244, 241, 234, .55);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.subscribe__msg.is-show { opacity: 1; transform: translateY(0); }
.subscribe__msg.is-error { color: #d98a6a; }
.subscribe__msg.is-ok { color: var(--gold-light); }

/* ---------- 品牌理念 ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 56px);
  margin-top: clamp(72px, 12vh, 120px);
  padding-top: clamp(44px, 7vh, 68px);
  border-top: 1px solid rgba(201, 162, 39, .16);
}
.pillar { text-align: center; }
.pillar__idx {
  display: block; margin-bottom: 16px;
  font-family: var(--serif); font-size: 12px; letter-spacing: .3em;
  color: rgba(201, 162, 39, .7);
}
.pillar__title {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 2.4vw, 21px);
  letter-spacing: .18em; text-indent: .18em;
  color: var(--ivory);
}
.pillar__text {
  margin: 0 auto; max-width: 300px;
  font-size: 12.5px; line-height: 2; letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(244, 241, 234, .07);
  padding: 28px 6vw 40px;
}
.footer__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .12em;
  color: rgba(244, 241, 234, .4);
}
.footer__contact a {
  color: rgba(232, 215, 163, .85);
  text-decoration: none; margin-left: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.footer__contact a:hover { border-bottom-color: rgba(232, 215, 163, .6); }

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  animation: revealIn 1s var(--ease) forwards;
}
@keyframes revealIn {
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 34px; }
  .pillar__text { max-width: 420px; }
}

@media (max-width: 560px) {
  .stage { padding: 3vh 6vw 6vh; }
  .topbar { padding-top: 20px; }
  .topbar__mono { font-size: 13px; letter-spacing: .32em; }
  .lang { padding: 6px 12px; font-size: 10px; letter-spacing: .16em; }

  .hero { padding-top: 2vh; }
  .hero__eyebrow {
    margin-bottom: 26px;
    font-size: 9px; letter-spacing: .26em;
    line-height: 1.8;
  }
  .crest { gap: 12px; margin-bottom: 20px; }
  .hero__brand-cn { letter-spacing: .14em; text-indent: .14em; }
  .hero__brand-en { margin-top: 12px; letter-spacing: .34em; text-indent: .34em; }

  .hero__tagline {
    margin-top: 20px;
    letter-spacing: .16em; text-indent: .16em;
    line-height: 1.9;
  }
  .hero__title {
    margin-top: 40px;
    font-size: clamp(22px, 6.6vw, 30px);
    letter-spacing: .08em; text-indent: .08em;
    line-height: 1.6;
  }
  .hero__desc { margin-top: 20px; line-height: 2; }

  .countdown { gap: 2px; margin-top: 34px; }
  .countdown__item { min-width: 0; flex: 1 1 0; }
  .countdown__num { font-size: clamp(26px, 8.6vw, 34px); }
  .countdown__label { font-size: 9px; letter-spacing: .18em; text-indent: .18em; }
  .countdown__dot { display: none; }

  .subscribe { margin-top: 44px; padding: 26px 20px 24px; }
  .subscribe__title { font-size: 18px; letter-spacing: .2em; text-indent: .2em; }
  .subscribe__row { flex-direction: column; gap: 18px; }
  .subscribe__input {
    /* iOS 聚焦时字号 < 16px 会触发页面缩放 */
    font-size: 16px;
    text-align: center;
  }
  .subscribe__btn { width: 100%; padding: 15px; font-size: 12px; }

  .pillars { margin-top: 56px; padding-top: 40px; gap: 30px; }
  .pillar__text { font-size: 12px; line-height: 1.95; }

  .footer {
    padding: 24px 6vw calc(32px + env(safe-area-inset-bottom));
  }
  .footer__inner { justify-content: center; text-align: center; gap: 8px 16px; }
  .footer__contact a { display: inline-block; margin: 4px 0 0 0; }
}

@media (max-width: 360px) {
  .hero__brand-en { letter-spacing: .24em; text-indent: .24em; }
  .hero__eyebrow { font-size: 8px; letter-spacing: .2em; }
  .countdown__num { font-size: 26px; }
  .subscribe__title { font-size: 16px; }
}

/* 横屏矮屏：压缩纵向留白，保证一屏可见核心信息 */
@media (max-height: 520px) and (orientation: landscape) {
  .stage { padding: 2vh 6vw 4vh; }
  .hero { padding-top: 1vh; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__title { margin-top: 24px; }
  .countdown { margin-top: 24px; }
  .subscribe { margin-top: 28px; }
  .pillars { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg__sheen { animation: none; }
  .reveal { animation-duration: .01ms; }
}
