/* ═══════════════════════════════════════════════
   1990.BEER — 移动端优先 · 高端啤酒品牌官网
   设计基准：390 × 844
   ═══════════════════════════════════════════════ */

:root {
  --black: #000000;
  --bg: #0b0a07;            /* 暖黑 */
  --bg-soft: #13110b;
  --gold: #d4af37;
  --gold-light: #f0d98c;    /* 香槟金 */
  --gold-deep: #9a7b2d;
  --cream: #f2e9d8;
  --muted: rgba(242, 233, 216, 0.55);
  --line: rgba(212, 175, 55, 0.28);

  /* 高级衬线字体栈：零外部请求，打开即快 */
  --serif: "Playfair Display", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 金色渐变文字 */
.gold-text {
  background: linear-gradient(180deg, #f8e7b0 0%, #e3c06a 45%, #c79a3e 70%, #a97f2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════ 启动页 ═══════════════ */

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse 90% 55% at 50% 42%, rgba(212, 175, 55, 0.14), transparent 70%),
    var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease), visibility 0s 0s;
}

#splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s 0.95s;
  pointer-events: none;
}

#sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash-inner {
  position: relative;
  text-align: center;
  padding: 0 24px;
  z-index: 1;
}

.splash-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 12vw, 64px);
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* 视觉居中补偿字间距 */
  margin-left: -0.14em;
  white-space: nowrap;
  animation: wordmarkIn 1.2s var(--ease) both;
}

.splash-tagline {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin-left: -0.42em;
  color: var(--gold-light);
  text-transform: uppercase;
  animation: taglineIn 1.4s var(--ease) 0.35s both;
}

/* 倒计时数字 */
.splash-count {
  margin-top: 56px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.count-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  animation: countPop 1s ease-in-out both;
}

/* 3 秒进度细线 */
.count-bar {
  margin: 34px auto 0;
  width: 120px;
  height: 1px;
  background: rgba(212, 175, 55, 0.18);
  overflow: hidden;
}

.count-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  animation: barFill 3s linear both;
}

@keyframes wordmarkIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes taglineIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 数字：渐变浮现 → 放大 → 淡出 */
@keyframes countPop {
  0%   { opacity: 0; transform: scale(0.5); filter: blur(10px); }
  22%  { opacity: 1; transform: scale(1.06); filter: blur(0); }
  38%  { transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.05); }
}

@keyframes barFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ═══════════════ 主页面淡入 ═══════════════ */

#main {
  opacity: 0;
}

#main.loaded {
  opacity: 1;
  transition: opacity 1.1s var(--ease) 0.1s;
}

/* ═══════════════ 顶栏 ═══════════════ */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top));
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.brand img {
  height: 20px;
  width: auto;
}

/* 汉堡按钮（≥44px 触控目标） */
.menu-btn {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════ 全屏菜单 ═══════════════ */

#menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(212, 175, 55, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

#menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}

#menu li {
  text-align: center;
  margin: 22px 0;
}

.menu-link {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.12em;
  color: var(--cream);
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.3s, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

#menu.open .menu-link { opacity: 1; transform: translateY(0); }
#menu.open li:nth-child(1) .menu-link { transition-delay: 0.08s; }
#menu.open li:nth-child(2) .menu-link { transition-delay: 0.14s; }
#menu.open li:nth-child(3) .menu-link { transition-delay: 0.20s; }
#menu.open li:nth-child(4) .menu-link { transition-delay: 0.26s; }

.menu-link em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: 6px;
}

/* ═══════════════ 首屏主视觉 ═══════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* 移动端地址栏自适应 */
  overflow: hidden;
  background: var(--black);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;          /* 9:16 满屏覆盖 */
  object-position: center 32%; /* 人物居中偏上 */
  transform: scale(1.05);
  animation: heroSettle 1.6s var(--ease) 0.15s both;
}

@keyframes heroSettle {
  from { transform: scale(1.09); }
  to   { transform: scale(1.05); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 28%, transparent 62%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

.hero-scroll i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold-light);
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ═══════════════ 通用区块 ═══════════════ */

.section {
  position: relative;
  padding: 88px 24px 96px;
  background: var(--bg);
}

.section--dark { background: var(--bg-soft); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.gold-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* 滚动浮现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ 品牌故事 ═══════════════ */

.watermark {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 130px;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.story-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  color: rgba(242, 233, 216, 0.92);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.story-body .dropcap::first-letter {
  font-size: 58px;
  float: left;
  line-height: 0.9;
  padding: 8px 12px 0 0;
  color: var(--gold);
}

.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 8px;
  flex-wrap: wrap;
}

.names li {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.names li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.quote {
  text-align: center;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  margin-top: 30px;
  letter-spacing: 0.04em;
}

/* ═══════════════ 产品展示 ═══════════════ */

.products {
  display: grid;
  gap: 18px;
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.05), transparent 55%);
  padding: 30px 26px 34px;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-3px);
}

.product-no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.product-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.product-name b {
  font-weight: 400;
  background: linear-gradient(180deg, #f8e7b0, #c79a3e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-cn {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.product-desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* ═══════════════ 联系我们 ═══════════════ */

.contact-list {
  margin-bottom: 40px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-list a,
.contact-list i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-align: right;
  word-break: break-all;
}

.btn-gold {
  display: block;
  text-align: center;
  padding: 16px 0;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  background: transparent;
  transition: background 0.35s, color 0.35s;
}

.btn-gold:hover {
  background: var(--gold);
  color: #000;
}

/* ═══════════════ 页脚 ═══════════════ */

.footer {
  background: var(--black);
  text-align: center;
  padding: 56px 24px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.footer img {
  height: 22px;
  width: auto;
  margin: 0 auto 18px;
}

.footer-line {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(242, 233, 216, 0.35);
}

.back-top {
  display: inline-block;
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s;
}

.back-top:hover { color: var(--gold-light); }

/* ═══════════════ 平板 / 桌面 ═══════════════ */

@media (min-width: 768px) {
  .section { padding: 120px 48px 130px; }
  .section-head h2 { font-size: 38px; }
  .story-body { max-width: 560px; margin: 0 auto; }
  .products { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .contact-list { max-width: 480px; margin-left: auto; margin-right: auto; }
  .btn-gold { max-width: 320px; margin: 0 auto; }
}

/* ═══════════════ 减少动态效果 ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
