/* ============================================================
   EMBER & OAK — 纯静态版样式表
   想改颜色？改下面 :root 里的几个变量就够了
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0908;
  --bg-card: #100e0c;
  --gold: #d4af37;
  --gold-bright: #e9c767;
  --gold-dim: #8a6420;
  --text: #ece7dd;
  --text-dim: #a89f8e;
  --text-faint: #6b6055;
  --border: #2b261e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(212, 175, 55, 0.35); color: #f5f0e6; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ---------- 通用工具 ---------- */
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

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

.gold-text {
  background: linear-gradient(115deg, #b98a2f 0%, #f3d98b 35%, #d4af37 55%, #8a6420 80%, #e9c767 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-border { border: 1px solid rgba(212, 175, 55, 0.4); }

.gold-gradient-bg {
  background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f);
}

.eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; height: 1px; width: 3.5rem; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; height: 1px; width: 3.5rem; background: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500; line-height: 1.05; color: #f2ede3;
}

.btn-gold {
  display: inline-block;
  background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f);
  color: #0a0908; font-weight: 600; font-size: 12px;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 1rem 2rem; border: none; transition: opacity 0.25s;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}
.btn-gold:hover { opacity: 0.88; }
.btn-gold:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #e6dfd2; font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; padding: 1rem 2rem;
  background: transparent; transition: background 0.25s;
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.1); }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 4, 3, 0.85); backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f);
  display: flex; align-items: center; justify-content: center;
  color: #000; font-size: 1rem;
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.18em; font-weight: 600; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: 0.42em; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }
.nav-links { display: none; gap: 2.5rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); transition: color 0.25s; }
.nav-links a:hover { color: #e6cf9a; }

/* ---------- 主视觉 ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('../images/hero.png') center/cover; transform: scale(1.05); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.3) 100%), linear-gradient(to right, rgba(0,0,0,0.7), transparent 60%, rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 7rem; padding-top: 11rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500; line-height: 0.95; color: #f2ede3; max-width: 56rem;
}
.hero p.lead { margin-top: 2rem; max-width: 36rem; color: var(--text-dim); line-height: 1.75; font-size: 15px; }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero-arrow { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-faint); font-size: 20px; animation: bob 2s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------- 产品区 ---------- */
.section { padding: 7rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }
.section-head p.note { max-width: 24rem; font-size: 13px; color: var(--text-dim); line-height: 1.75; }

.grid-cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--bg-card); border: 1px solid rgba(212,175,55,0.4); overflow: hidden; display: flex; flex-direction: column; }
.card-img-wrap { position: relative; height: 18rem; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.card:hover .card-img-wrap img { transform: scale(1.1); }
.card-img-wrap::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, var(--bg-card), transparent 55%); }
.card-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f);
  color: #000; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.3rem 0.75rem;
}
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #f2ede3; line-height: 1.15; }
.card-origin { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.5rem; }
.card-price { text-align: right; flex-shrink: 0; }
.card-price .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.card-price .per { font-size: 10px; color: var(--text-faint); }

.meta-row { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; font-size: 11px; }
.meta-box { border: 1px solid var(--border); padding: 0.6rem 0.75rem; }
.meta-box .k { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.strength-meter { display: flex; gap: 4px; }
.strength-meter i { width: 6px; height: 12px; transform: skewX(-12deg); background: #2b261e; }
.strength-meter i.on { background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f); }

.card-desc { margin-top: 1.25rem; font-size: 13px; line-height: 1.7; color: var(--text-dim); flex: 1; }
.card-foot {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #231f18;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pair-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); display: block; }
.pair-name { color: #d9b968; font-family: var(--font-display); font-style: italic; font-size: 15px; }
.btn-mini {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #e6dfd2; background: transparent;
  border: 1px solid rgba(212,175,55,0.4); padding: 0.5rem 1rem;
  transition: all 0.25s; white-space: nowrap;
}
.btn-mini:hover { background: var(--gold); color: #000; }

/* 品牌跑马灯 */
.marquee { margin-top: 5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.25rem 0; overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 36s linear infinite; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.marquee-track span { display: flex; align-items: center; gap: 3rem; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- 搭配区 ---------- */
.pairing-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .pairing-grid { grid-template-columns: 1fr 1fr; } }
.pairing-img-wrap { position: relative; }
.pairing-img-wrap .frame { border: 1px solid rgba(212,175,55,0.4); padding: 0.5rem; box-shadow: 0 0 48px rgba(212,175,55,0.12); }
.pairing-img-wrap img { width: 100%; height: 560px; object-fit: cover; }
.rule-card {
  position: absolute; bottom: -2rem; right: -0.5rem;
  background: #0d0b09; border: 1px solid rgba(212,175,55,0.4);
  padding: 1.5rem; max-width: 260px;
}
@media (min-width: 768px) { .rule-card { right: -2rem; } }
.rule-card .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.rule-card p { margin-top: 0.5rem; font-size: 12px; line-height: 1.7; color: var(--text-dim); }
.pairing-copy p.lead { margin-top: 1.5rem; font-size: 14px; line-height: 1.8; color: var(--text-dim); max-width: 32rem; }
.whisky-list { margin-top: 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.whisky-item { padding: 1rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; transition: color .25s; }
.whisky-item:last-child { border-bottom: none; }
.whisky-item .w-name { font-family: var(--font-display); font-size: 1.15rem; color: #ede7da; }
.whisky-item:hover .w-name { color: #dfc275; }
.whisky-item .w-meta { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }
.whisky-item .w-notes { font-size: 11px; font-style: italic; color: var(--text-dim); max-width: 220px; text-align: right; display: none; }
@media (min-width: 640px) { .whisky-item .w-notes { display: block; } }

/* ---------- 文化专栏 ---------- */
.journal-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .journal-grid { grid-template-columns: 2fr 3fr; gap: 3.5rem; } }
.journal-side img { width: 100%; height: 320px; object-fit: cover; }
.journal-side .frame { border: 1px solid rgba(212,175,55,0.4); padding: 0.5rem; }
.journal-side .caption { margin-top: 1.25rem; font-size: 12px; color: var(--text-faint); line-height: 1.7; }
.article { padding: 2.25rem 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.article:first-child { padding-top: 0; }
.article-meta { display: flex; justify-content: space-between; }
.article-tag { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-bright); }
.article-time { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.article h3 { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.3; color: #ede7da; transition: color 0.25s; }
.article:hover h3 { color: #dfc275; }
.article p { margin-top: 0.75rem; font-size: 13px; line-height: 1.75; color: var(--text-dim); max-width: 42rem; }

/* ---------- 奖励 / 转盘 ---------- */
#rewards .center { text-align: center; }
#rewards .intro { margin: 1.5rem auto 0; max-width: 36rem; font-size: 13px; color: var(--text-dim); line-height: 1.75; }
.rewards-grid { display: grid; gap: 4rem; align-items: center; margin-top: 4rem; }
@media (min-width: 1024px) { .rewards-grid { grid-template-columns: 1fr 1fr; } }

.wheel-zone { display: flex; flex-direction: column; align-items: center; }
.wheel-pointer {
  width: 0; height: 0; margin: 0 auto -6px; position: relative; z-index: 5;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 20px solid var(--gold);
  filter: drop-shadow(0 2px 6px rgba(212,175,55,0.6));
}
.wheel-wrap {
  width: 380px; max-width: 88vw; aspect-ratio: 1;
  border: 1px solid rgba(212,175,55,0.4); border-radius: 50%;
  padding: 6px; background: #0a0a0a;
  box-shadow: 0 0 24px rgba(212,175,55,0.15);
  transition: transform 5.2s cubic-bezier(0.12, 0.8, 0.08, 1);
}
.wheel-wrap svg { width: 100%; height: 100%; display: block; }
#spinBtn { margin-top: 2.5rem; }
.result-box { margin-top: 1.5rem; text-align: center; border: 1px solid rgba(212,175,55,0.4); background: var(--bg-card); padding: 1rem 2rem; display: none; }
.result-box.show { display: block; animation: fadeup .6s both; }
.result-box .k { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-faint); }
.result-box .v { font-family: var(--font-display); font-size: 1.5rem; color: #f2ede3; margin-top: 4px; }
.result-box .v.grand { font-size: 1.9rem; font-weight: 700; }
@keyframes fadeup { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform:none;} }

.invite-card { border: 1px solid rgba(212,175,55,0.4); background: var(--bg-card); padding: 2rem; }
.invite-card h3 { font-family: var(--font-display); font-size: 1.6rem; color: #f2ede3; margin-bottom: 1.25rem; }
.invite-row { display: flex; align-items: center; gap: 0.5rem; background: #0d0b09; border: 1px solid var(--border); padding: 0.75rem 1rem; }
.invite-row .link { flex: 1; font-size: 12px; color: #d9b968; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-row button { background: none; border: none; color: var(--text-dim); font-size: 15px; transition: color .25s; }
.invite-row button:hover { color: var(--gold-bright); }
.invite-stats { margin-top: 1rem; display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; gap: 0.5rem; }
.invite-stats b { color: var(--gold-bright); }
.invite-stats .share-link { background:none; border:none; text-decoration: underline; text-underline-offset: 4px; font-size: 11px; color: var(--text-dim); }
.invite-stats .share-link:hover { color: var(--gold-bright); }

.prize-img { margin-top: 1.5rem; border: 1px solid rgba(212,175,55,0.4); padding: 0.5rem; }
.prize-img img { width: 100%; height: 208px; object-fit: cover; }
.prize-list { margin-top: 1.5rem; list-style: none; font-size: 12px; color: var(--text-dim); display: grid; gap: 0.75rem; }
.prize-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.prize-list li::before { content: '✦'; color: var(--gold); font-size: 10px; margin-top: 3px; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--border); padding: 3.5rem 0; background: #080706; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
footer h4 { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1rem; }
footer ul { list-style: none; display: grid; gap: 0.6rem; font-size: 12px; color: var(--text-dim); }
footer ul a:hover { color: #dfc275; }
footer .about { margin-top: 1rem; font-size: 12px; color: var(--text-dim); line-height: 1.7; max-width: 26rem; }
footer .warn { margin-top: 1rem; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1d1913; display: flex; flex-direction: column; gap: 0.75rem; justify-content: space-between; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- 登录弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-mask.open { display: flex; }
.modal {
  background: #0d0b09; border: 1px solid rgba(212,175,55,0.4);
  width: 100%; max-width: 28rem; padding: 2rem; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: var(--text-faint); font-size: 18px; }
.modal-close:hover { color: var(--text); }
.modal-head { text-align: center; }
.modal-head .brand-logo { margin: 0 auto 0.75rem; }
.modal-head h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; color: #f2ede3; }
.modal-head p { margin-top: 0.5rem; font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.tab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #161310; padding: 4px; margin-top: 1.5rem; }
.tab-row button {
  padding: 0.6rem; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  background: none; border: none; color: var(--text-dim); transition: all .25s;
}
.tab-row button.active { background: linear-gradient(115deg, #8a6420, #d4af37 45%, #f3d98b 55%, #b98a2f); color: #000; font-weight: 600; }
.form-pane { margin-top: 1.5rem; display: none; }
.form-pane.active { display: block; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.field input {
  width: 100%; background: #131009; border: 1px solid var(--border);
  color: #ede7da; padding: 0.65rem 0.9rem; font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--gold-dim); }
.form-error { color: #f87171; font-size: 12px; margin-bottom: 0.75rem; display: none; }
.form-error.show { display: block; }
.form-note { margin-top: 0.75rem; font-size: 10px; text-align: center; color: var(--text-faint); }
.modal .btn-gold { width: 100%; }

/* ---------- Toast 提示 ---------- */
#toasts { position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 0.5rem; width: min(24rem, 90vw); }
.toast {
  background: #14110d; border: 1px solid rgba(212,175,55,0.4);
  padding: 0.85rem 1.25rem; font-size: 13px; color: #ede7da;
  animation: fadeup .4s both; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.toast .t-title { font-weight: 500; }
.toast .t-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.toast.gold .t-title { color: var(--gold-bright); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33291c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
