/* ═══════════════════════════════════════════
   智漲研究院 · Global Styles
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;600;700;900&family=Noto+Sans+TC:wght@300;400;500&family=DM+Mono:ital@0;1&display=swap');

:root {
  --ink:        #0f0e0c;
  --ink-soft:   #1c1a16;
  --paper:      #f4efe6;
  --paper-warm: #ede7db;
  --gold:       #c8953a;
  --gold-light: #e5b96a;
  --gold-muted: rgba(200,149,58,0.2);
  --rust:       #8c3a28;
  --cream:      #faf6ef;
  --text-main:  #1c1a16;
  --text-muted: rgba(28,26,22,0.72);
  --text-light: rgba(244,239,230,0.85);
  --border:     rgba(200,149,58,0.2);
  --shadow-sm:  0 2px 12px rgba(15,14,12,0.08);
  --shadow-md:  0 8px 32px rgba(15,14,12,0.14);
  --shadow-lg:  0 20px 60px rgba(15,14,12,0.2);
  --radius:     4px;
  --serif:      'Noto Serif TC', serif;
  --sans:       'Noto Sans TC', sans-serif;
  --mono:       'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
.site-nav {
  position: fixed; top:0; left:0; right:0; z-index:999;
  height: 60px;
  display: flex; align-items: center;
  padding: 0 40px;
  background: rgba(15,14,12,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,149,58,0.15);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.nav-logo-name {
  font-family: var(--serif); font-weight: 700;
  font-size: 15px; color: var(--paper);
  letter-spacing: 0.08em;
}
.nav-links {
  display: flex; gap: 8px; list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 400;
  color: rgba(244,239,230,0.65);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(200,149,58,0.1);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--paper); transition: 0.3s;
}

/* ── PAGE WRAPPER ── */
.page-content { padding-top: 60px; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--ink);
  overflow: hidden; text-align: center;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,149,58,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,149,58,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(200,149,58,0.12) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.25em; color: var(--gold);
  margin-bottom: 28px; opacity: 0;
  animation: slideUp 0.7s 0.1s ease forwards;
}
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 1; color: var(--paper);
  letter-spacing: 0.06em; margin-bottom: 28px;
  opacity: 0; animation: slideUp 0.7s 0.25s ease forwards;
}
.hero-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
  opacity: 0; animation: slideUp 0.7s 0.4s ease forwards;
}
.hero-desc {
  max-width: 560px; margin: 0 auto 40px;
  font-size: 17px; line-height: 2;
  color: rgba(244,239,230,0.88);
  opacity: 0; animation: slideUp 0.7s 0.5s ease forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid rgba(200,149,58,0.5);
  color: var(--gold-light);
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.15em; text-decoration: none;
  transition: all 0.25s;
  opacity: 0; animation: slideUp 0.7s 0.6s ease forwards;
}
.hero-cta:hover {
  background: rgba(200,149,58,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(244,239,230,0.5); font-size: 13px;
  font-family: var(--mono); letter-spacing: 0.15em;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(200,149,58,0.5), transparent);
}

/* ── SECTION ── */
.section { padding: 100px 40px; }
.section-dark { background: var(--ink-soft); }
.section-inner { max-width: 960px; margin: 0 auto; }

.section-tag {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 56px;
}
.section-tag::before {
  content: ''; flex: 0 0 32px; height: 1px;
  background: var(--gold);
}
.section-tag span {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase;
}
.section-tag-light::before { background: rgba(200,149,58,0.5); }
.section-tag-light span { color: var(--gold-light); }

/* ── SERIES CARD ── */
.series-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.series-card {
  display: block; text-decoration: none;
  background: var(--cream);
  border: 1px solid rgba(200,149,58,0.12);
  padding: 40px;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.series-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.series-card:hover::after { transform: scaleX(1); }
.card-num {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.25em; color: var(--gold);
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; line-height: 1.4;
  color: var(--text-main); margin-bottom: 16px;
}
.card-desc {
  font-size: 15px; line-height: 1.9;
  color: var(--text-muted);
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.15em; color: var(--gold);
  text-decoration: none;
}
.card-link::after { content: '→'; }
.card-link:hover { color: var(--rust); }

/* ── ACCORDION ── */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-header {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 0; cursor: pointer;
  transition: opacity 0.2s;
}
.acc-header:hover { opacity: 0.75; }
.acc-ep {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; color: var(--gold);
  min-width: 52px; padding-top: 3px;
}
.acc-ep-dark { color: var(--gold-light); }
.acc-title-text {
  flex: 1; font-family: var(--serif);
  font-size: 16px; font-weight: 600; line-height: 1.6;
  color: var(--text-main);
}
.acc-title-dark { color: var(--paper); }
.acc-chevron {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 9px;
  transition: transform 0.3s ease, background 0.2s;
}
.acc-item.open .acc-chevron {
  transform: rotate(180deg);
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-body.open { max-height: 640px; }
.acc-inner { padding: 4px 0 28px 72px; }
.acc-note {
  font-size: 15px; line-height: 1.9;
  color: var(--text-muted); margin-bottom: 20px;
  max-width: 560px;
}
.acc-note-dark { color: rgba(244,239,230,0.65); }
.video-frame {
  width: 100%; max-width: 540px;
  aspect-ratio: 16/9; border: none;
  background: #000; border-radius: var(--radius);
}

/* ── FEATURE LIST ── */
.feature-list { list-style: none; margin: 24px 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; line-height: 1.8; color: var(--text-muted);
}
.feature-list li::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: 10px;
}
.feature-list-dark li { color: rgba(244,239,230,0.6); border-color: rgba(200,149,58,0.15); }

/* ── CONTACT ── */
.contact-block {
  background: var(--ink-soft);
  border: 1px solid rgba(200,149,58,0.2);
  padding: 48px;
}
.contact-email {
  font-family: var(--mono); font-size: 18px;
  color: var(--gold-light); letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block; margin: 24px 0;
  border-bottom: 1px solid rgba(200,149,58,0.4);
  padding-bottom: 4px;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--gold); }
.example-box {
  background: rgba(200,149,58,0.06);
  border-left: 2px solid var(--gold);
  padding: 20px 24px; margin: 16px 0;
}
.example-box p {
  font-size: 14px; line-height: 1.9;
  color: rgba(244,239,230,0.55);
}
.example-box strong { color: var(--gold-light); font-weight: 500; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--ink);
  padding: 80px 40px 72px;
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,149,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,149,58,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner { max-width: 960px; margin: 0 auto; position: relative; }
.page-hero-tag {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 20px; display: block;
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--paper); letter-spacing: 0.05em;
  line-height: 1.1; margin-bottom: 20px;
}
.page-hero-desc {
  max-width: 600px;
  font-size: 16px; line-height: 1.9;
  color: rgba(244,239,230,0.85);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(200,149,58,0.15);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.15em; color: rgba(244,239,230,0.25);
}
.footer-links {
  display: flex; gap: 24px; list-style: none;
}
.footer-links a {
  font-size: 14px; color: rgba(244,239,230,0.55);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(15,14,12,0.97);
    padding: 16px 20px 24px; gap: 4px;
    border-bottom: 1px solid rgba(200,149,58,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .series-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .page-hero { padding: 56px 20px 48px; }
  .acc-inner { padding-left: 0; }
  .contact-block { padding: 28px 24px; }
  .site-footer { flex-direction: column; text-align: center; }
}
