:root {
  --bg: #050505;
  --text: #f2f2f2;
  --text-muted: #888888;
  --accent: #e63946;
  --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --grain-opacity: 0.06;
  --nav-height: 64px;
  --section-padding: clamp(4rem, 10vh, 12rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* 导航栏 */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }
#main-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem); height: var(--nav-height);
  background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(8px);
}
.nav-logo { font-weight: 800; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: clamp(1rem, 2vw, 2.5rem); list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* 通用 Section */
section { scroll-margin-top: var(--nav-height); position: relative; }
.section-padding { padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem); }
.section-fullscreen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.section-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,5,0.6), var(--bg)); z-index: 1; pointer-events: none; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }

/* 排版 */
h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: clamp(2rem, 5vh, 4rem);
  border-left: 4px solid var(--accent); padding-left: 1rem;
}
.hero-title { font-size: clamp(4rem, 12vw, 10rem); text-transform: uppercase; margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-muted); margin-bottom: 2rem; }
.manifesto-text { font-size: clamp(1.5rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.3; max-width: 900px; }
.quote { font-size: clamp(1.2rem, 2.5vw, 2rem); font-style: italic; border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0; color: #ccc; }

/* 作品网格 */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.work-card { position: relative; overflow: hidden; cursor: pointer; }
.work-card img { transition: transform 0.6s ease; }
.work-card:hover img { transform: scale(1.08); }
.work-info {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.work-info h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.work-info span { color: var(--accent); font-size: 0.9rem; letter-spacing: 1px; }

/* 导演理念 */
.vision-container { display: flex; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.vision-text { flex: 1; }
.vision-portrait { flex: 1; max-width: 400px; aspect-ratio: 3/4; overflow: hidden; }

/* 荣誉列表 */
.awards-list { list-style: none; display: grid; gap: 1.5rem; }
.awards-list li {
  font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 700; padding-left: 1rem; border-left: 3px solid #333;
  transition: border-color 0.3s, transform 0.3s;
}
.awards-list li:hover { border-color: var(--accent); transform: translateX(5px); }

/* 联系与底部 */
.contact-desc { max-width: 600px; margin-bottom: 2rem; color: var(--text-muted); font-size: 1.1rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link { color: var(--text); text-decoration: none; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; transition: color 0.3s; }
.contact-link:hover { color: var(--accent); }

footer {
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem; border-top: 1px solid #222;
  background: #020202; margin-top: 4rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-brand { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-addr, .footer-compliance { color: var(--text-muted); font-size: 0.9rem; }

/* 动效系统 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }

.bg-scale { transition: transform 8s linear; will-change: transform; }
.bg-scale.in-view { transform: scale(1.05); }

/* 全局颗粒叠加 */
#grain-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
#grain-overlay::before {
  content: ''; display: block; width: 100%; height: 100%;
  background-image: url('https://images.pexels.com/photos/18599094/pexels-photo-18599094.jpeg?auto=compress&cs=tinysrgb&w=1024');
  background-size: cover; opacity: var(--grain-opacity); mix-blend-mode: overlay;
}

/* 响应式与无障碍降级 */
@media (max-width: 768px) {
  .nav-links { display: none; } /* 极简移动端隐藏复杂导航，保留顶部品牌 */
  .vision-container { flex-direction: column; }
  .vision-portrait { width: 100%; max-width: 100%; aspect-ratio: 4/5; }
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .reveal, .bg-scale { transition: none !important; transform: none !important; opacity: 1 !important; }
  .stagger-1, .stagger-2, .stagger-3 { transition-delay: 0s !important; }
  .work-card img, .work-card:hover img { transform: none !important; }
}