/* ================================================
   光影档案 · 复古电影史料馆视觉系统
   ================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-cream: #FAF6EF;
  --bg-linen: #F2EBDD;
  --ink: #2F2A22;
  --coral: #E4572E;
  --green: #1F5A44;
  --gold: #D99A2B;
  --line: #E5DACA;
  --paper: #FFFDF8;
  --shadow: 0 6px 20px rgba(47, 42, 34, 0.06);
  --serif: Georgia, 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 6px;
  border: 2px solid var(--bg-cream);
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(47, 42, 34, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ===== 核心布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 5px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}

.section:nth-child(even) {
  background: var(--bg-linen);
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 246, 239, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px var(--green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--coral);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--coral);
  padding: 10px 24px !important;
  border-radius: 24px;
  color: var(--paper) !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(228, 87, 46, 0.28);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 87, 46, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}

.menu-toggle:hover {
  border-color: var(--coral);
}

/* ===== Hero ===== */
.hero {
  min-height: 70vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border: 2px dashed rgba(217, 154, 43, 0.35);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  border: 2px dashed rgba(228, 87, 46, 0.22);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  flex: 1 1 52%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 18px;
  box-shadow: 4px 4px 0 rgba(31, 90, 68, 0.15);
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 800;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(47, 42, 34, 0.72);
  max-width: 560px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 36%;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.06), rgba(217, 154, 43, 0.14)), var(--bg-linen);
  border: 8px solid var(--paper);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(47, 42, 34, 0.12);
  transform: rotate(1.5deg);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.15) saturate(1.1);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(228, 87, 46, 0.3);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(31, 90, 68, 0.15);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--bg-cream);
}

/* ===== 标题 ===== */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--green);
  color: var(--bg-cream);
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56px;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
}

.section-desc {
  max-width: 620px;
  color: rgba(47, 42, 34, 0.7);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(47, 42, 34, 0.1);
}

.category-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.card-link::after {
  content: '→';
}

.card-link:hover {
  gap: 10px;
}

/* ===== 特性块 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  border-radius: 16px;
  overflow: hidden;
  border: 8px solid var(--paper);
  box-shadow: 0 16px 40px rgba(47, 42, 34, 0.1);
  background: var(--bg-linen);
  min-height: 220px;
}

.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.12) contrast(1.04);
}

.feature-text h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-text > p {
  color: rgba(47, 42, 34, 0.7);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: '▸';
  color: var(--coral);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== 数据条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--paper);
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(47, 42, 34, 0.08);
}

.stat-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--bg-cream);
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(47, 42, 34, 0.6);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ===== 内容墙 ===== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-wall-item:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 14px 32px rgba(47, 42, 34, 0.12);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: sepia(0.15) contrast(1.05);
  transition: transform 0.4s ease;
}

.content-wall-item:hover img {
  transform: scale(1.06);
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: rgba(47, 42, 34, 0.65);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(47, 42, 34, 0.05);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--coral);
  font-weight: 400;
  transition: transform 0.25s ease;
  margin-left: 12px;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  color: rgba(47, 42, 34, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== CTA横幅 ===== */
.cta-banner {
  background: var(--green);
  padding: 64px 36px;
  text-align: center;
  border-radius: 24px;
  color: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 2px dashed rgba(217, 154, 43, 0.4);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(228, 87, 46, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--serif);
  color: var(--bg-cream);
  font-size: 2rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(250, 246, 239, 0.8);
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--green);
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #EFE6D5;
  padding: 64px 0 28px;
  border-top: 3px solid var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(47, 42, 34, 0.75);
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--serif);
  color: var(--green);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 0;
  font-size: 0.9rem;
  opacity: 0.78;
  transition: opacity 0.2s, color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--coral);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(47, 42, 34, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(47, 42, 34, 0.65);
}

/* ===== 工具类 ===== */
.text-accent {
  color: var(--coral);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: rgba(47, 42, 34, 0.7);
  line-height: 1.7;
  font-size: 0.98rem;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero {
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .feature-block {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-cream);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(47, 42, 34, 0.12);
    gap: 14px;
    z-index: 999;
  }

  .main-nav.open a {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
  }

  .main-nav.open .nav-cta {
    text-align: center;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    padding: 110px 0 64px;
    gap: 36px;
  }

  .hero-content {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .section {
    padding: 52px 0;
  }

  .cta-banner {
    border-radius: 16px;
  }
}