/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97e;
  --dark: #0d0d0d;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(201,168,76,0.3);
  --text: #f0e6d3;
  --text-muted: #a89070;
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif TC', 'Georgia', serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(100,50,200,0.06) 0%, transparent 50%),
              linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #0d0d0d 100%);
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 4px 30px rgba(201,168,76,0.1);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span { font-size: 1.6rem; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bottles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  opacity: 0.08;
  font-size: 8rem;
  filter: blur(1px);
  animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0d0d0d;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SPIRITS GRID ===== */
.spirits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.spirit-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.spirit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.spirit-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201,168,76,0.15);
}

.card-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.spirit-card:nth-child(1) .card-icon { background: linear-gradient(135deg, #1a0a00, #3d1a00); }
.spirit-card:nth-child(2) .card-icon { background: linear-gradient(135deg, #0a0a1a, #1a1a3d); }
.spirit-card:nth-child(3) .card-icon { background: linear-gradient(135deg, #001a0a, #003d1a); }
.spirit-card:nth-child(4) .card-icon { background: linear-gradient(135deg, #1a0a0a, #3d0a1a); }
.spirit-card:nth-child(5) .card-icon { background: linear-gradient(135deg, #0a1a1a, #0a3d3d); }
.spirit-card:nth-child(6) .card-icon { background: linear-gradient(135deg, #1a1a0a, #3d3d0a); }

.card-icon .emoji {
  animation: float 4s ease-in-out infinite;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(201,168,76,0.3));
}

.spirit-card:nth-child(2) .emoji { animation-delay: 0.5s; }
.spirit-card:nth-child(3) .emoji { animation-delay: 1s; }
.spirit-card:nth-child(4) .emoji { animation-delay: 1.5s; }
.spirit-card:nth-child(5) .emoji { animation-delay: 2s; }
.spirit-card:nth-child(6) .emoji { animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 50px;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.card-body .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.card-stats {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== DETAIL MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

.modal-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: #1a1a2e;
  z-index: 1;
}

.modal-icon { font-size: 3.5rem; }

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--gold-light);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.modal-close {
  margin-left: auto;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.modal-body h3 {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

.cocktail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.cocktail-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.cocktail-item:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cocktail-item .ci-emoji { font-size: 1.5rem; display: block; margin-bottom: 4px; }

/* ===== TIMELINE ===== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; }

.timeline-content {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(201,168,76,0.1);
}

.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 3px var(--gold);
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 1;
}

.timeline-year {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.timeline-content h3 { color: var(--gold-light); margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== BUY PAGE ===== */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.buy-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.buy-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.buy-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 15px 50px rgba(201,168,76,0.12);
}

.buy-card-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.buy-card h3 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.buy-card .buy-type {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.buy-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.buy-card .price { font-size: 1.5rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 1.5rem; }

.tip-box {
  max-width: 700px;
  margin: 4rem auto 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.tip-box h3 { color: var(--gold); margin-bottom: 1rem; }
.tip-box p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

/* ===== STORIES PAGE ===== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.story-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.story-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(201,168,76,0.12);
}

.story-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.story-card:nth-child(1) .story-visual { background: linear-gradient(135deg, #1a0a1a, #3d1a3d); }
.story-card:nth-child(2) .story-visual { background: linear-gradient(135deg, #0a1a00, #1a3d00); }
.story-card:nth-child(3) .story-visual { background: linear-gradient(135deg, #00101a, #00203d); }
.story-card:nth-child(4) .story-visual { background: linear-gradient(135deg, #1a0500, #3d1500); }
.story-card:nth-child(5) .story-visual { background: linear-gradient(135deg, #0a0a1a, #1a1a4d); }
.story-card:nth-child(6) .story-visual { background: linear-gradient(135deg, #1a1500, #3d3300); }

.story-body { padding: 1.5rem; }
.story-cat {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.story-body h3 { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 0.8rem; }
.story-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.story-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-tag {
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 3px 10px;
  border-radius: 50px;
}

.story-read {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== QUOTE ===== */
.quote-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 50%, rgba(201,168,76,0.05) 100%);
}

blockquote {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

blockquote::before, blockquote::after {
  content: '"';
  color: var(--gold);
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.5rem;
  margin: 0 0.3rem;
}

cite { color: var(--text-muted); letter-spacing: 3px; font-size: 0.85rem; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 70px 0 0;
    background: rgba(13,13,13,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 50px;
  }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
  .timeline-dot {
    position: absolute;
    left: 12px;
  }
  .timeline-item { position: relative; }
}
