/* 电影感暗色 · 章节式作品集（2026-10-13 改版，上一版备份在 style.css.bak-20261013） */
:root {
  --text: #f2efe9;
  --muted: #9a958c;
  --dim: #5f5b55;
  --bg: #0b0b0c;
  --bg-soft: #111113;
  --card: #17171a;
  --border: #26262a;
  --accent: #ff7a3d;
  --accent-soft: #ff7a3d33;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { font-weight: 700; font-size: 17px; letter-spacing: 4px; }
.logo::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: 11px; vertical-align: middle; }
nav a { margin-left: 28px; font-size: 14px; letter-spacing: 1px; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--text); }

/* 首屏 */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  padding: 120px 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 30%, rgba(255, 122, 61, .2), transparent 55%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .78) 100%),
    var(--bg);
}
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; height: 44px; background: #000; }
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.hero .container { width: 100%; }
.hero-eyebrow { font-size: 12px; letter-spacing: 4px; color: var(--muted); margin: 0 0 24px; }
.rec {
  display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%;
  background: #ff3b30; vertical-align: 1px; animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(56px, 12vw, 128px); line-height: 1; margin: 0 0 20px; font-weight: 800; letter-spacing: 8px; }
.hero-role { font-size: clamp(14px, 2.2vw, 20px); color: var(--accent); letter-spacing: 4px; margin: 0 0 26px; }
.hero-sub { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 40px; }
.hero-cta {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--text); border-radius: 999px;
  font-size: 14px; letter-spacing: 2px; transition: all .2s;
}
.hero-cta:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* 数据条 */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-inner > div { padding: 36px 24px; border-left: 1px solid var(--border); }
.stats-inner > div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: 1px; }
.stats b small { font-size: 18px; color: var(--accent); margin-left: 2px; font-weight: 600; }
.stats span { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* 章节目录（吸顶） */
.chapter-nav {
  position: sticky; top: 53px; z-index: 15;
  background: rgba(11, 11, 12, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.chapter-nav-inner { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.chapter-nav-inner::-webkit-scrollbar { display: none; }
.chapter-nav a {
  flex: none; font-size: 14px; color: var(--muted); padding: 7px 16px; border: 1px solid var(--border);
  border-radius: 999px; transition: all .2s; white-space: nowrap;
}
.chapter-nav a b { color: var(--accent); font-weight: 600; margin-right: 6px; font-size: 12px; }
.chapter-nav a:hover { color: var(--text); border-color: var(--text); }

/* 章节 */
.chapter { padding: 96px 0 40px; }
.chapter-head { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 40px; }
.chapter-no {
  font-size: 96px; line-height: .85; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1px var(--dim); letter-spacing: -2px; flex: none;
}
.chapter-en { font-size: 12px; letter-spacing: 4px; color: var(--accent); margin: 0 0 6px; }
.chapter h2 { font-size: 34px; margin: 0 0 12px; font-weight: 700; letter-spacing: 2px; line-height: 1.3; }
.chapter-pitch { color: #bdb8af; font-size: 15px; max-width: 680px; margin: 0 0 16px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.roles li { font-size: 12px; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--border); padding: 3px 12px; border-radius: 999px; }

/* 作品网格：统一 3:4 竖卡，点开弹窗按原比例播放 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  all: unset; cursor: pointer; display: block;
  border-radius: 12px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.thumb { position: relative; display: block; aspect-ratio: 3 / 4; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .3s; opacity: .88; }
.card:hover .thumb img { transform: scale(1.05); opacity: 1; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 40%);
  pointer-events: none;
}
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .6);
  color: #fff; font-size: 16px; padding-left: 3px; opacity: 0; transition: all .3s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.play.zoom { padding-left: 0; font-size: 22px; }
.card:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--accent); border-color: var(--accent); color: #000; }
.dur {
  position: absolute; z-index: 2; right: 10px; bottom: 10px; font-size: 11px; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #ddd;
}
.card-meta { display: flex; gap: 10px; padding: 14px 16px 16px; align-items: baseline; }
.card-num { font-size: 11px; color: var(--accent); letter-spacing: 1px; flex: none; }
.card-title { font-size: 14px; line-height: 1.5; font-weight: 600; }

/* B站作品没有封面：做成片名卡 */
.title-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 24px; gap: 14px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 122, 61, .35), transparent 50%),
    linear-gradient(160deg, #1e1d22, #0e0e10);
}
.tc-label { font-size: 11px; letter-spacing: 3px; color: var(--accent); }
.tc-title { font-size: 22px; line-height: 1.45; font-weight: 800; letter-spacing: 1px; }

/* 关于 & 联系 */
.about { padding-bottom: 24px; }
.contact { padding: 96px 0 120px; text-align: center; border-top: 1px solid var(--border); margin-top: 72px; }
.contact h2 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 28px; }
.contact-line { font-size: 17px; color: #cfcac2; margin: 6px 0; letter-spacing: 1px; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--border); text-align: center; color: var(--dim); font-size: 12px; letter-spacing: 2px; }

/* 播放弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 56px 24px 24px; background: rgba(0, 0, 0, .92);
}
.modal.open { display: flex; }
.modal-body { max-width: 100%; max-height: 100%; display: flex; }
.modal-body video, .modal-body img {
  max-width: min(100%, 1100px); max-height: calc(100vh - 100px); border-radius: 8px; background: #000;
}
.modal-body iframe.bili {
  width: min(92vw, calc((100vh - 100px) * 9 / 16)); aspect-ratio: 9 / 16; max-height: calc(100vh - 100px);
  border: 0; border-radius: 8px; background: #000;
}
.modal-close {
  all: unset; cursor: pointer; position: absolute; top: 14px; right: 22px;
  font-size: 34px; line-height: 1; color: #ccc;
}
.modal-close:hover { color: var(--accent); }

/* 平板 */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-inner > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* 手机 */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 12px 16px; }
  nav a { margin-left: 14px; font-size: 13px; }
  .hero { min-height: 76vh; padding: 96px 0 80px; }
  .hero::before, .hero::after { height: 26px; }
  .hero h1 { letter-spacing: 4px; }
  .stats-inner > div { padding: 24px 12px; }
  .stats b { font-size: 32px; }
  .chapter-nav { top: 49px; }
  .chapter { padding: 64px 0 24px; }
  .chapter-head { gap: 16px; }
  .chapter-no { font-size: 56px; }
  .chapter h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-meta { padding: 10px 12px 12px; }
  .card-title { font-size: 13px; }
  .tc-title { font-size: 16px; }
  .play { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
}

/* 卡片尺寸：竖卡定行高，横版卡占两格，封面卡占 2×2 */
.grid { grid-auto-flow: dense; }
.card { display: flex; flex-direction: column; }
.thumb { flex: 1; min-height: 0; }
.thumb img { position: absolute; inset: 0; }
.card.wide { grid-column: span 2; }
.card.wide .thumb { aspect-ratio: 3 / 2; }
.card.feat { grid-column: span 2; grid-row: span 2; }
.card.feat .thumb { aspect-ratio: auto; }
.card.feat .card-title { font-size: 18px; }
.card.feat .play { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
@media (max-width: 600px) {
  .card.wide .thumb { aspect-ratio: 16 / 9; }
  .card.feat .thumb { aspect-ratio: 3 / 4; }
}

/* 首屏右侧：作品预览（三块竖屏错落叠放，静音循环） */
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.reel { position: relative; height: 520px; display: block; }
.phone {
  position: absolute; top: 50%; width: 210px; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  transition: transform .5s;
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.p1 { left: 4%; transform: translateY(-50%) rotate(-8deg) scale(.86); opacity: .8; }
.p3 { right: 4%; transform: translateY(-50%) rotate(8deg) scale(.86); opacity: .8; }
.p2 { left: 50%; z-index: 2; width: 240px; transform: translate(-50%, -50%); border-color: var(--accent); }
.reel:hover .p1 { transform: translateY(-50%) rotate(-12deg) scale(.88) translateX(-14px); opacity: 1; }
.reel:hover .p3 { transform: translateY(-50%) rotate(12deg) scale(.88) translateX(14px); opacity: 1; }
.reel-label, .reel-tc {
  position: absolute; z-index: 3; font-size: 11px; letter-spacing: 3px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reel-label { top: 0; left: 50%; transform: translateX(-50%); }
.reel-tc { bottom: 0; left: 50%; transform: translateX(-50%); }
.reel-tc b { color: var(--accent); font-weight: 500; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .reel { height: 380px; }
  .phone { width: 150px; }
  .p2 { width: 175px; }
}
@media (max-width: 600px) {
  .reel { height: 320px; }
  .phone { width: 120px; }
  .p2 { width: 145px; }
  .p1 { left: 0; }
  .p3 { right: 0; }
}
.hero-inner > * { min-width: 0; }
.reel { overflow: hidden; }
@media (max-width: 600px) {
  .hero-role { letter-spacing: 2px; }
  .reel { overflow: visible; }
}

/* 竖屏封面从顶部对齐，避免裁掉片头大标题 */
.thumb img { object-position: center top; }
.card.wide .thumb img { object-position: center; }

/* 章节介绍按句分行，不在词中间断开 */
.chapter-pitch { max-width: 820px; }
.chapter-pitch span { display: block; }
