/* =============================================
   EELE 智游馆 官网 · 全局样式
   ============================================= */

/* Noto Serif SC — 国内 CDN */
@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@200;300&display=swap');

/* Cinzel — 本地 */
@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/cinzel-v26-latin-regular.woff2') format('woff2'),
       url('../assets/fonts/cinzel-v26-latin-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Garamond — 本地 */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-garamond-v21-latin-300italic.woff2') format('woff2'),
       url('../assets/fonts/cormorant-garamond-v21-latin-300italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* =============================================
   设计 Token
   ============================================= */
:root {
  --bg:          #0C0B09;
  --gold:        #C6A96A;
  --gold-light:  #E8D5A0;
  --gold-dark:   #9E7B45;
  --text:        rgba(255, 255, 255, 0.75);
  --text-muted:  rgba(255, 255, 255, 0.40);
  --divider:     rgba(198, 169, 106, 0.08);
  --border:      rgba(198, 169, 106, 0.20);

  --font-cinzel:     'Cinzel', serif;
  --font-cormorant:  'Cormorant Garamond', serif;
  --font-noto:       'Noto Serif SC', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* =============================================
   滚动触发动效 — .reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* =============================================
   通用辅助
   ============================================= */
.section-tag {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* section-tag 作为 flex column 直接子元素时自动居中 */

.gold-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
}

/* =============================================
   导航栏
   ============================================= */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(12, 11, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-brand {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* =============================================
   Hero — Section 01
   ============================================= */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景细颗粒噪点 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* EXPLORE 副标 */
.hero-explore {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 2.0s;
}

/* 智游馆 — SVG 描边绘出动画 */
.hero-title-wrap {
  margin-bottom: 32px;
  font-size: 0; /* 消除 h1 默认文本间距 */
}

.hero-title-svg {
  display: block;
  width: min(88vw, 600px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.hero-char {
  stroke-dasharray: var(--len, 3000);
  stroke-dashoffset: var(--len, 3000);
  animation:
    strokeDraw 2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards,
    fillIn 0.8s ease 1.2s forwards;
}

@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes fillIn {
  to { fill-opacity: 1; }
}

/* 副标题 */
.hero-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 2.4s;
}

.hero-subtitle-zh {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.hero-subtitle-en {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* CTA 按钮 */
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 2.8s;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-noto);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  border-radius: 40px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* 滚动引导 — 外层只负责定位，不参与动画 */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* 内层负责动效 */
.hero-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 3.1s;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll-text {
  font-family: var(--font-cinzel);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* 补偿末尾 letter-spacing，视觉居中 */
  color: var(--text-muted);
}

/* =============================================
   Section 02 — What is EELE
   ============================================= */
#about {
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-inner {
  max-width: 820px;
  width: 100%;
}

.about-headline {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 2.2rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 32px;
}

.about-headline strong {
  font-weight: 300;
  color: var(--gold);
}

.about-en {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.about-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 32px;
}

.about-desc {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  max-width: 540px;
  margin: 0 auto;
}

/* =============================================
   Section 03 — Features
   ============================================= */
#features {
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#features > .section-tag {
  margin-bottom: 2.5rem;
}

.features-inner {
  max-width: 1100px;
  width: 100%;
}

.features-grid {
  display: flex;
  gap: 2px;
}

.feature-card {
  flex: 1;
  padding: 48px 36px;
  border: 1px solid var(--border);
  background: rgba(198, 169, 106, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  border-color: var(--gold);
  background: rgba(198, 169, 106, 0.06);
}

.feature-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.feature-title-zh {
  font-family: var(--font-noto);
  font-weight: 300;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.5;
}

.feature-title-en {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.feature-desc {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.feature-tag {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  border: 1px solid rgba(198, 169, 106, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

/* =============================================
   Section 04 — Museums
   ============================================= */
#museums {
  padding: 100px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#museums > .section-tag {
  margin-bottom: 48px;
}

.museums-scroll {
  width: 100%;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  padding: 0 40px 16px;
  padding-left: max(40px, calc((100% - 1100px) / 2));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.museums-scroll::-webkit-scrollbar {
  display: none;
}

.museum-card {
  flex: 0 0 260px;
  height: 340px;
  border: 1px solid var(--border);
  background: rgba(198, 169, 106, 0.02);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.museum-logo-wrap {
  width: 100%;
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.museum-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.museum-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.museum-card:hover {
  border-color: var(--gold);
}

.museum-card--soon {
  opacity: 0.6;
}

.museum-card--more {
  border-style: dashed;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 320px;
}

.museum-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-cinzel);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 3px 8px;
  border-radius: 20px;
}

.museum-name-zh {
  font-family: var(--font-noto);
  font-weight: 300;
  font-size: 1rem;
  color: #fff;
}

.museum-name-en {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.museum-count {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.museum-more-text {
  font-family: var(--font-cinzel);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.museums-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 40px;
}

.museums-footer-line {
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.museums-footer-text {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* =============================================
   Section 05 — Scan & Enter
   ============================================= */
#scan {
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* 金色光晕 */
#scan::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(198, 169, 106, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.scan-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.scan-title-zh {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.scan-title-en {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.scan-qr {
  width: 180px;
  height: 180px;
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
}

.scan-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scan-hint-zh {
  font-family: var(--font-noto);
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scan-hint-en {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
}

/* =============================================
   Footer
   ============================================= */
footer {
  border-top: 1px solid var(--divider);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-copy {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-icp {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* =============================================
   关键帧
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1023px) {
  .hero-title-svg { width: min(88vw, 405px); }
  #nav { padding: 0 24px; }
}

@media (max-width: 767px) {
  .hero-title-svg { width: min(88vw, 324px); }

  .features-grid {
    flex-direction: column;
  }

  #about, #features, #scan {
    padding: 80px 24px;
  }

  .museums-scroll {
    padding-left: 24px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }
}
