@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ============================================================
   CSS 变量 & 基础重置
   ============================================================ */
:root {
  --c-bg: #1a0a0f;
  --c-accent: #8b1a2f;
  --c-gold: #c9a84c;
  --c-text: #e8ddd0;
  --c-text-muted: #a09080;
  --c-surface: #2a0f18;
  --c-surface2: #3a1520;
  --c-border: #4a1f2a;
  --c-gold-dim: rgba(201,168,76,0.15);
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Infant', 'Georgia', 'Songti SC', serif;
  --nav-h: 64px;
  --radius: 0px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: #e0c070; }
ul { list-style: none; }
button, input { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   scroll-margin for anchored sections
   ============================================================ */
article[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ============================================================
   页面容器
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

/* ============================================================
   底部固定导航
   ============================================================ */
.bottom-nav-aside {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 10, 15, 0.97);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(139,26,47,0.25);
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  height: var(--nav-h);
  gap: 8px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-right { justify-content: flex-end; }
.nav-left { justify-content: flex-start; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

.brand-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 44px;
}

.brand-logo { height: 36px; width: auto; }

.brand-text-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--c-gold);
  white-space: nowrap;
  line-height: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--c-accent), #6a1020);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--c-gold);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #a52038, var(--c-accent));
  box-shadow: 0 0 16px rgba(139,26,47,0.6);
  color: #fff;
}

/* ============================================================
   Hero 区块
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,26,47,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    var(--c-bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text-col {
  flex: 1;
  min-width: 0;
}

.hero-img-col {
  flex: 0 0 400px;
  max-width: 400px;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-left: 3px solid var(--c-gold);
}

.hero-h1 {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(135deg, var(--c-gold) 0%, #e8d080 40%, var(--c-gold) 70%, #b8902c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 20px;
  animation: heroTextReveal 1.2s cubic-bezier(0.22,1,0.36,1) both;
}

.typing-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--c-gold);
  animation:
    typingCursor 1.2s steps(1) 1.2s infinite,
    typingExpand 1.2s steps(20, end) both;
}

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

@keyframes typingCursor {
  0%, 100% { border-color: var(--c-gold); }
  50% { border-color: transparent; }
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
  animation: fadeUp 1s 0.4s both;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #6a1020 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-gold);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: fadeUp 1s 0.6s both;
}

.hero-cta-btn:hover {
  box-shadow: 0 6px 32px rgba(139,26,47,0.55);
  transform: translateY(-2px);
  color: #fff;
}

/* Kinetic background words */
.hero-kinetic-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.k-word {
  position: absolute;
  font-family: var(--font-script);
  color: rgba(201,168,76,0.04);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  white-space: nowrap;
  animation: kFloat 12s ease-in-out infinite;
}

.k-w1 { top: 10%; left: 5%; animation-delay: 0s; font-size: 8rem; }
.k-w2 { top: 55%; left: 60%; animation-delay: 3s; font-size: 6rem; }
.k-w3 { top: 20%; right: 5%; animation-delay: 6s; font-size: 7rem; }
.k-w4 { bottom: 10%; left: 30%; animation-delay: 9s; font-size: 5rem; }

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

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

/* ============================================================
   主内容区 + 侧边栏布局
   ============================================================ */
.site-main {
  flex: 1;
  padding: 48px 24px 64px;
}

.site-main > .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* 正文容器契约: main > section.wrap > article > div */
.content-section {
  min-width: 0;
}

.content-article {
  min-width: 0;
}

/* ============================================================
   正文样式 (prose)
   ============================================================ */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}

.prose h2 {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--c-gold);
  margin: 2em 0 0.6em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(90deg, var(--c-gold), #e8d080);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.6em 0 0.5em;
}

.prose p {
  margin-bottom: 1.1em;
}

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.1em;
}

.prose ul { list-style: none; }
.prose ul li::before {
  content: '◆';
  color: var(--c-accent);
  font-size: 0.6em;
  margin-right: 8px;
  vertical-align: middle;
}

.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4em; }

.prose a {
  color: var(--c-gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color var(--transition);
}

.prose a:hover { border-bottom-color: var(--c-gold); }

.prose strong { color: var(--c-gold); font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-style: italic;
}

.prose article {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-border);
}

.prose article:last-child { border-bottom: none; }

/* Scroll-reveal for sections */
.prose article {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.prose article.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar-aside {
  position: sticky;
  top: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-gold);
}

.sidebar-inner {
  padding: 24px 20px;
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.sidebar-title {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--c-gold);
  margin-bottom: 16px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.sidebar-link:hover {
  color: var(--c-gold);
  border-left-color: var(--c-gold);
  background: var(--c-gold-dim);
}

.sidebar-tagline {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  margin-top: 4px;
}

.sidebar-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 6px 0 8px;
}

.sidebar-tagline p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-bottom: 0;
}

/* footer > article×n 契约 */
.footer-contact,
.footer-nav-section,
.footer-info-section {
  border-bottom: 1px solid var(--c-border);
}

.footer-contact-inner,
.footer-nav-inner,
.footer-info-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* 三栏布局 */
.site-footer > article {
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer {
    display: grid;
    grid-template-rows: auto auto;
  }

  .footer-three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Desktop: 三个 article 并排 */
@media (min-width: 900px) {
  .site-footer {
    display: flex;
    flex-direction: column;
  }

  .footer-cols-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-contact,
  .footer-nav-section,
  .footer-info-section {
    border-bottom: none;
    border-right: 1px solid var(--c-border);
  }

  .footer-info-section { border-right: none; }
}

.footer-section-title {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--c-gold);
  margin: 6px 0 16px;
}

.footer-contact-detail {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}

.footer-contact-detail span {
  color: var(--c-text);
}

.footer-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.footer-input:focus { border-color: var(--c-gold); }
.footer-input::placeholder { color: var(--c-text-muted); }

.footer-submit-btn {
  padding: 10px 24px;
  min-height: 44px;
  background: linear-gradient(135deg, var(--c-accent), #6a1020);
  color: #fff;
  border: 1px solid var(--c-gold);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: box-shadow var(--transition);
}

.footer-submit-btn:hover {
  box-shadow: 0 4px 20px rgba(139,26,47,0.5);
}

.footer-nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  padding: 8px 4px;
  min-height: 40px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.footer-nav-link:hover {
  color: var(--c-gold);
  border-bottom-color: rgba(201,168,76,0.3);
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid var(--c-border);
  background: rgba(0,0,0,0.2);
}

.footer-copy {
  font-size: 0.83rem;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}

/* ============================================================
   卡片 (通用)
   ============================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--c-accent);
  padding: 20px;
  transition: border-bottom-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-bottom-color: var(--c-gold);
  box-shadow: 0 4px 24px rgba(139,26,47,0.2);
}

/* ============================================================
   Intersection Observer — scroll reveal
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   移动端响应式
   ============================================================ */
@media (max-width: 900px) {
  .site-main > .wrap {
    grid-template-columns: 1fr;
  }

  .sidebar-aside {
    position: static;
    order: -1;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-img-col {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero-img {
    height: 280px;
    border-left: none;
    border-top: 3px solid var(--c-gold);
  }

  .hero-section {
    padding: 60px 16px 48px;
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  .bottom-nav {
    padding: 0 4px;
    gap: 2px;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 8px 4px;
  }

  .brand-text-logo {
    font-size: 1.2rem;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .hero-h1 {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .footer-nav-list {
    grid-template-columns: 1fr;
  }

  .footer-form {
    flex-direction: column;
  }

  .footer-input,
  .footer-submit-btn {
    width: 100%;
  }
}

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@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; }

  .typing-line {
    width: 100% !important;
    border-right: none;
    animation: none !important;
  }

  .prose article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
