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

/* ===== CSS 变量 ===== */
:root {
  --cream: #f5e6c8;
  --caramel: #d4a574;
  --dark: #262117;
  --dark-80: rgba(38, 33, 23, 0.8);
  --dark-50: rgba(38, 33, 23, 0.5);
  --dark-20: rgba(38, 33, 23, 0.2);
  --caramel-light: #e8c9a0;
  --caramel-dark: #b8834e;
  --cream-dark: #edd9aa;
  --font-primary: 'Poppins', 'Open Sans', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Poppins', system-ui, sans-serif;
  --nav-height-brand: 64px;
  --nav-height-menu: 48px;
  --nav-total: 112px;
  --radius: 10px;
  --transition: 0.3s ease;
}

/* ===== 重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body.vintage-body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--caramel-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--dark); }

ul, ol { list-style: none; }

/* ===== Film Grain Overlay ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* ===== Light Leak ===== */
.light-leak {
  position: fixed;
  top: 0;
  left: -20%;
  width: 60%;
  height: 40%;
  z-index: 999;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 0%, rgba(212, 165, 116, 0.18) 0%, rgba(245, 230, 200, 0.08) 50%, transparent 75%);
  animation: lightLeakDrift 12s ease-in-out infinite alternate;
}

@keyframes lightLeakDrift {
  0%   { transform: translateX(0) scaleX(1); opacity: 0.7; }
  50%  { transform: translateX(8%) scaleX(1.1); opacity: 1; }
  100% { transform: translateX(-5%) scaleX(0.95); opacity: 0.6; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--dark);
  border-bottom: 2px solid var(--caramel);
  filter: sepia(0.15) contrast(1.05);
}

.brand-row {
  background-color: var(--dark);
  padding: 0 2rem;
  height: var(--nav-height-brand);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-link, .logo-text {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--caramel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-text:hover { color: var(--cream); }

.site-logo {
  max-height: 40px;
  width: auto;
}

.brand-tagline {
  font-size: 0.78rem;
  color: rgba(245, 230, 200, 0.55);
  letter-spacing: 0.06em;
  font-family: var(--font-primary);
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

/* ===== Main Nav ===== */
.main-nav {
  background-color: rgba(38, 33, 23, 0.95);
  padding: 0 2rem;
  height: var(--nav-height-menu);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: var(--nav-height-menu);
  padding: 0 1.1rem;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--caramel-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  min-height: 44px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--cream);
  border-bottom-color: var(--caramel);
  background-color: rgba(212, 165, 116, 0.1);
  outline: none;
}

/* scroll-margin for sticky nav */
section[id] {
  scroll-margin-top: calc(var(--nav-total) + 8px);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-family: var(--font-primary);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700;
  color: rgba(212, 165, 116, 0.07);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-figure {
  position: relative;
  height: 100%;
  min-height: 70vh;
  overflow: hidden;
}

.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) contrast(1.1) saturate(0.75);
  display: block;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  background: linear-gradient(135deg, #3a2d18 0%, #1e1810 40%, #2e2010 100%);
}

.hero-film-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.film-perf {
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 14px,
    var(--dark) 14px,
    var(--dark) 24px
  );
  opacity: 0.6;
}
.top-perfs { top: 0; }
.bottom-perfs { bottom: 0; }

.hero-aside {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--caramel);
  border: 1px solid var(--caramel);
  padding: 0.3em 0.8em;
  border-radius: 2px;
}

.hero-h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  text-align: left;
  max-width: 480px;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(245, 230, 200, 0.72);
  max-width: 420px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: var(--caramel);
  color: var(--dark);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--caramel);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  margin-top: 0.5rem;
  min-height: 44px;
}
.hero-cta:hover {
  background: transparent;
  color: var(--caramel);
  border-color: var(--caramel);
}

/* ===== Content Section ===== */
.content-section {
  display: grid;
  grid-template-columns: 60px 1fr 300px;
  gap: 0 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: start;
}

/* Film Strip (figure) */
.section-film-strip {
  width: 60px;
  position: sticky;
  top: calc(var(--nav-total) + 1rem);
  align-self: start;
}

.film-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strip-frame {
  width: 50px;
  height: 38px;
  border: 2px solid var(--caramel);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(212,165,116,0.15), rgba(38,33,23,0.4));
  opacity: 0.7;
  animation: stripFade 4s ease-in-out infinite alternate;
}
.strip-frame:nth-child(2) { animation-delay: 1s; }
.strip-frame:nth-child(3) { animation-delay: 2s; }
.strip-frame:nth-child(4) { animation-delay: 3s; }

@keyframes stripFade {
  0%   { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* Content Body */
.content-body {
  min-width: 0;
}

/* ===== page.content 内部样式 ===== */
.content-body h2 {
  font-family: var(--font-primary);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 0.5rem;
  line-height: 1.3;
  position: relative;
}

.content-body h2 + hr,
.content-body h3 + hr {
  border: none;
  border-top: 2px solid var(--caramel);
  margin: 0.4rem 0 1.2rem;
  opacity: 0.7;
}

.content-body h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin: 2rem 0 0.4rem;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a2e1c;
  margin-bottom: 1.1rem;
  max-width: 72ch;
}

.content-body ul, .content-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}
.content-body ol { list-style: decimal; }
.content-body li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.35rem;
  color: #3a2e1c;
}

.content-body a {
  color: var(--caramel-dark);
  border-bottom: 1px solid rgba(184,131,78,0.4);
  padding-bottom: 1px;
}
.content-body a:hover {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

.content-body strong, .content-body b {
  font-weight: 700;
  color: var(--dark);
}

.content-body blockquote {
  border-left: 3px solid var(--caramel);
  padding: 0.7rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(212, 165, 116, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #4a3a22;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.content-body th {
  background: var(--dark);
  color: var(--caramel);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
}
.content-body td {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--dark-20);
}
.content-body tr:nth-child(even) td {
  background: rgba(212, 165, 116, 0.06);
}

/* Section ids in content */
.content-body section {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(212, 165, 116, 0.25);
}
.content-body section:first-child {
  border-top: none;
}

/* ===== Aside ===== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-total) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: start;
}

.aside-widget {
  background: #f0d9b0;
  border: 2px solid var(--caramel);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.aside-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.aside-widget > * { position: relative; z-index: 1; }

.aside-title {
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.aside-widget hr {
  border: none;
  border-top: 1px solid var(--caramel);
  margin: 0.4rem 0 0.9rem;
}

.aside-nav-list li {
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}
.aside-nav-list li:last-child { border-bottom: none; }
.aside-nav-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 500;
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
  line-height: 1.5;
}
.aside-nav-list a:hover {
  color: var(--caramel-dark);
  padding-left: 0.5rem;
}

.aside-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #4a3a22;
}

/* VHS widget decoration */
.vhs-widget::after {
  content: '录像';
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-family: var(--font-primary);
  font-size: 0.65rem;
  color: rgba(212, 165, 116, 0.5);
  letter-spacing: 0.15em;
  animation: recBlink 2s step-end infinite;
}

@keyframes recBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--dark);
  color: var(--cream);
  margin-top: 4rem;
  border-top: 3px solid var(--caramel);
  filter: sepia(0.1);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-col h4.footer-col-title,
.footer-col h3.footer-brand-name {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--caramel);
  margin-bottom: 0.5rem;
}

.footer-col hr {
  border: none;
  border-top: 1px solid rgba(212, 165, 116, 0.3);
  margin: 0.5rem 0 1rem;
}

.footer-brand-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(245, 230, 200, 0.6);
}

.footer-col-nav ul li {
  margin-bottom: 0.3rem;
}
.footer-col-nav ul li a {
  font-size: 0.86rem;
  color: rgba(245, 230, 200, 0.7);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0;
}
.footer-col-nav ul li a:hover {
  color: var(--caramel);
}

address {
  font-style: normal;
}
.contact-item {
  font-size: 0.84rem;
  color: rgba(245, 230, 200, 0.65);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel);
  margin-bottom: 0.15rem;
}
.contact-item a {
  color: rgba(245, 230, 200, 0.7);
}
.contact-item a:hover { color: var(--caramel); }

.footer-legal-text {
  font-size: 0.8rem;
  color: rgba(245, 230, 200, 0.5);
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  text-align: center;
  padding: 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.5);
  margin-bottom: 0.3rem;
}
.footer-icp {
  font-size: 0.76rem;
  color: rgba(245, 230, 200, 0.35);
}

/* ===== Stagger List Animation ===== */
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content-body div {
  animation: staggerFadeUp 0.55s ease both;
}
.content-body div:nth-child(1) { animation-delay: 0.05s; }
.content-body div:nth-child(2) { animation-delay: 0.12s; }
.content-body div:nth-child(3) { animation-delay: 0.19s; }
.content-body div:nth-child(4) { animation-delay: 0.26s; }
.content-body div:nth-child(5) { animation-delay: 0.33s; }
.content-body div:nth-child(6) { animation-delay: 0.40s; }
.content-body div:nth-child(7) { animation-delay: 0.47s; }

/* ===== 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; }
  .light-leak { animation: none; }
  .strip-frame { animation: none; }
  .vhs-widget::after { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .content-section {
    grid-template-columns: 1fr 260px;
  }
  .section-film-strip {
    display: none;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height-brand: 56px;
    --nav-height-menu: 44px;
    --nav-total: 100px;
  }

  .brand-row { padding: 0 1rem; }
  .brand-tagline { display: none; }

  .main-nav { padding: 0 1rem; }
  .nav-links { gap: 0; }
  .nav-links a {
    padding: 0 0.7rem;
    font-size: 0.72rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-figure {
    min-height: 40vh;
    height: 40vh;
  }
  .hero-aside {
    padding: 2rem 1.5rem;
    background: var(--dark);
  }
  .hero-h1 {
    font-size: 1.6rem;
  }
  .hero-bg-text {
    display: none;
  }

  .content-section {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-widget {
    flex: 1 1 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 1.5rem;
  }

  .section-film-strip { display: none; }
}

@media (max-width: 480px) {
  .hero-sub { font-size: 0.9rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .content-body p { font-size: 0.97rem; }
  .aside-widget { flex: 1 1 100%; }
  .nav-links a {
    padding: 0 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}
