/* ============================================================
   七子影视 QIZI FILM PRODUCTION — 7zi.online
   视觉语言：国际电影制作公司 / 电影节 / 电影杂志
   色彩：黑 · 炭黑 · 暖白 · 浅灰 + 极少量暗红
   ============================================================ */

:root {
  --paper: #f2efe8;          /* 暖白 */
  --paper-2: #ebe8df;
  --ink: #16150f;            /* 近黑 */
  --ink-soft: #55524a;
  --line: rgba(22, 21, 15, .16);
  --black: #0c0b09;          /* 深黑 */
  --black-2: #14130f;        /* 炭黑 */
  --bone: #efece4;           /* 暗底上的暖白文字 */
  --gray-d: #969184;
  --line-d: rgba(239, 236, 228, .16);
  --red: #8f2b25;            /* 暗红强调 */

  --serif: "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 84px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .26, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--bone); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 400;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

section[id] { scroll-margin-top: 58px; }

/* 全局胶片颗粒 */
.grain {
  position: fixed; inset: -60px;
  z-index: 2200; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(7) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  14% { transform: translate(-18px,8px); }
  28% { transform: translate(12px,-14px); }
  42% { transform: translate(-8px,18px); }
  56% { transform: translate(16px,10px); }
  70% { transform: translate(-14px,-8px); }
  84% { transform: translate(8px,14px); }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 2.1em;
  font-size: .82rem; letter-spacing: .18em; font-weight: 500;
  border: 1px solid currentColor;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); font-family: var(--sans); }
.btn:hover .arr { transform: translateX(5px); }

.btn-solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

.btn-ghost { color: var(--bone); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }

.btn-cta {
  padding: .72em 1.5em; font-size: .78rem;
  color: var(--ink);
}
.btn-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn-cta { color: var(--bone); }
.on-dark .btn-cta:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 2000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--bone);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header.on-dark { color: var(--bone); }
.site-header.on-light { color: var(--ink); }
.site-header.scrolled.on-light { background: rgba(242, 239, 232, .93); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled.on-dark { background: rgba(12, 11, 9, .88); box-shadow: 0 1px 0 var(--line-d); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  overflow: hidden;
  flex: none;
  border-radius: 5px;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.06rem;
  letter-spacing: .34em; line-height: 1.15; display: flex; flex-direction: column;
}
.brand-name small {
  font-family: var(--mono); font-weight: 400;
  font-size: .54rem; letter-spacing: .3em; opacity: .62; margin-top: 3px;
}

.main-nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.main-nav a {
  font-size: .82rem; letter-spacing: .14em;
  padding: 6px 0; position: relative; opacity: .85;
  transition: opacity .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.main-nav a.is-active::after { background: var(--red); }

.header-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .35s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* 移动端全屏菜单 */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1900;
  background: var(--black); color: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s .5s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.menu-links { display: flex; flex-direction: column; gap: 2px; }
.menu-links a {
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 600;
  padding: .22em 0;
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.menu-links a i { font-style: normal; font-size: .7rem; color: var(--red); letter-spacing: .2em; }
body.menu-open .menu-links a { opacity: 1; transform: none; }
body.menu-open .menu-links a:nth-child(1) { transition-delay: .08s; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: .14s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: .20s; }
body.menu-open .menu-links a:nth-child(4) { transition-delay: .26s; }
body.menu-open .menu-links a:nth-child(5) { transition-delay: .32s; }
body.menu-open .menu-links a:nth-child(6) { transition-delay: .38s; }
.menu-links a:hover { color: var(--red); }
.menu-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--gray-d);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--bone);
  background: var(--black);
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; }
.hero-video, .hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.hero-video.is-active, .hero-image.is-active { opacity: 1; }
.hero-image.is-active { animation: heroStill 8s linear both; }
@keyframes heroStill { from { transform: scale(1); } to { transform: scale(1.035); } }

.hero-actions-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-top: 4.2vh;
}
.hero-video-meta {
  position: absolute;
  z-index: 4;
  top: calc(var(--header-h) + 60px);
  right: var(--gutter);
  max-width: min(35vw, 440px);
  display: grid; gap: 6px;
  text-align: right;
  opacity: 0; transform: translateY(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: auto;
}
.hero-video-meta[hidden] { display: none; }
.hero.has-video .hero-video-meta { opacity: 1; transform: none; }
.hero-video-meta strong { font-family: var(--serif); font-size: clamp(1rem, 1.65vw, 1.55rem); font-weight: 600; letter-spacing: .06em; line-height: 1.35; }
.hero-video-meta strong a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.hero-video-meta strong a:hover { color: var(--red); }
.hero-video-meta time { color: var(--bone); opacity: .68; font-size: 11px; letter-spacing: .18em; }
.hero-indicator {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}
.hero-indicator[hidden] { display: none; }
.hero-indicator span {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(242, 239, 232, .38);
  transition: width .45s var(--ease), background-color .3s var(--ease);
}
.hero-indicator span.is-active { width: 42px; background: var(--red); }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,9,.55) 0%, rgba(12,11,9,.12) 34%, rgba(12,11,9,.10) 62%, rgba(12,11,9,.72) 100%);
}

.hero-inner {
  position: relative; z-index: 3;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero-kicker { color: var(--bone); opacity: .85; margin-bottom: 2.2vh; }
.hero-kicker i { font-style: normal; color: var(--red); }
.hero-kicker-en { white-space: nowrap; }
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.4rem, 10.5vw, 9.8rem);
  line-height: 1.12;
  letter-spacing: .04em;
}
.hero-actions { display: flex; gap: 16px; margin: 0; flex-wrap: wrap; }

.hero-foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px var(--gutter) 26px;
  color: var(--gray-d);
}
.hero-foot .scroll-cue { position: relative; padding-left: 26px; color: var(--bone); opacity: .85; }
.hero-foot .scroll-cue::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 16px; height: 1px; background: var(--red);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============ 通用 SECTION ============ */
.section { position: relative; }
.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
[data-theme="light"] .container, .section[data-theme="light"] { background: transparent; }

.section { padding: clamp(90px, 14vh, 170px) 0; }
#about { padding-top: clamp(110px, 16vh, 190px); padding-bottom: clamp(72px, 11vh, 132px); }
#work { padding-top: clamp(72px, 11vh, 132px); }

.s-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(48px, 7vh, 90px);
}
.s-no { color: var(--red); font-size: clamp(.94rem, 1.08vw, 1.12rem); font-weight: 700; letter-spacing: .08em; line-height: 1; }
.s-rule { width: 50px; height: 1px; background: var(--line); flex: none; }
[data-theme="dark"] .s-rule, .ai .s-rule, .contact .s-rule { background: var(--line-d); }
.s-label { margin: 0; font-size: clamp(1rem, 1.22vw, 1.2rem); font-weight: 600; line-height: 1.35; letter-spacing: .13em; text-transform: uppercase; opacity: .92; }
.s-label i { font-style: normal; opacity: .52; margin-inline: .12em; }
.s-label [lang="en"] { display: inline-block; font-size: .7em; letter-spacing: .19em; opacity: .66; }
.s-side { margin-left: auto; font-size: .72rem; letter-spacing: .1em; opacity: .6; }
.red-dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  background: var(--red); margin-right: 12px; vertical-align: 1px;
}

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.3;
  letter-spacing: .045em;
}

/* 逐行揭示 */
.line { display: block; overflow: hidden; }
.line-in { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.is-in .line-in { transform: translateY(0); }
.is-in .line:nth-child(2) .line-in { transition-delay: .12s; }

/* 淡入上移 */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="lines"] { opacity: 1; transform: none; }

/* ============ 02 ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about-copy { padding-top: .6em; max-width: 34em; }
.about-copy p + p { margin-top: 1.4em; }
.about-copy p { color: var(--ink-soft); font-size: .95rem; }
.about-copy p:first-child { color: var(--ink); font-size: 1.06rem; }
.ai-note {
  border-left: 2px solid var(--red);
  padding-left: 1.2em;
}
.ai-note .tag {
  display: block; color: var(--red); margin-bottom: .5em; font-size: .62rem;
}

.facts {
  margin-top: clamp(64px, 10vh, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts li { padding: 30px 26px 6px 0; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 26px; }
.facts strong {
  display: block;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: .04em; line-height: 1.15;
}
.facts span { display: block; margin-top: 10px; color: var(--ink-soft); opacity: .8; }

/* ============ 03 WORK ============ */
.work { background: var(--paper); }
.work[data-theme="dark"] {
  background: var(--black);
  color: var(--bone);
}
.work[data-theme="dark"] .s-rule { background: var(--line-d); }
.work[data-theme="dark"] .work-filters .wf { color: var(--gray-d); }
.work[data-theme="dark"] .work-filters .wf:hover,
.work[data-theme="dark"] .work-filters .wf.is-active { color: var(--bone); }
.work[data-theme="dark"] .w-meta { color: var(--gray-d); }
.work[data-theme="dark"] .link-more { color: var(--bone); border-color: var(--line-d); }
.work-filters {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  margin: -28px 0 clamp(48px, 7vh, 84px);
}
.wf {
  padding: 6px 0; font-size: .74rem; letter-spacing: .16em;
  color: var(--ink-soft); position: relative;
  transition: color .3s;
}
.wf::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.wf:hover { color: var(--ink); }
.wf.is-active { color: var(--ink); }
.wf.is-active::after { transform: scaleX(1); }

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(38px, 5vw, 68px) clamp(18px, 2vw, 32px);
}
.work-item { position: relative; }
.work-item.filtered-out { display: none; }

.w-frame {
  position: relative; display: block; overflow: hidden;
  background: var(--black-2);
}
.w-frame img, .w-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.w-frame { aspect-ratio: 16 / 9; }
.w-frame img { transition: transform 1.1s var(--ease), opacity .5s; }
.w-frame video { opacity: 0; transition: opacity .5s; }
.work-item:hover .w-frame img { transform: scale(1.05); }
.work-item.is-playing .w-frame video { opacity: 1; }
.work-item.is-playing .w-frame img { transform: scale(1.05); }

.w-tc {
  position: absolute; right: 12px; bottom: 10px; z-index: 3;
  color: var(--bone); font-size: .6rem; letter-spacing: .14em;
  opacity: 0; transition: opacity .4s;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.w-tc::before {
  content: "●"; color: var(--red); margin-right: 8px;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.work-item.is-playing .w-tc { opacity: 1; }

/* 规整作品网格 */
.works .work-item { grid-column: auto; margin-top: 0; }
.works .work-item .w-frame { aspect-ratio: 16 / 9; }

.w-cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding-top: 16px;
}
.w-no { color: var(--red); font-size: .62rem; }
.w-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  letter-spacing: .06em;
}
.w-meta { grid-column: 2; color: var(--ink-soft); opacity: .75; font-size: .64rem; }
.w-meta .chip {
  font-style: normal;
  display: inline-block; margin-left: 10px;
  padding: 1px 7px;
  background: var(--red); color: var(--bone);
  font-size: .58rem; letter-spacing: .18em;
}
.w-type {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 5px 8px;
  color: var(--bone); background: rgba(12,11,9,.72);
  font-size: .55rem; font-weight: 400; letter-spacing: .1em;
  backdrop-filter: blur(6px);
}
.work-item.pop .w-frame { animation: popIn .6s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.more { margin-top: clamp(56px, 9vh, 100px); text-align: right; }
.link-more {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .2em;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.link-more .arr { display: inline-block; transition: transform .35s var(--ease); }
.link-more:hover { color: var(--red); border-color: var(--red); }
.link-more:hover .arr { transform: translateX(6px); }

/* ============ 04 SERVICES ============ */
.services .display { max-width: 14em; }
.svc-list {
  margin-top: clamp(44px, 7vh, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: clamp(48px, 5vw, 76px) minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-height: clamp(148px, 15vw, 190px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  outline: none;
}
.svc-row:nth-child(odd) { padding-right: clamp(18px, 3vw, 40px); }
.svc-row:nth-child(even) { padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--line); }
.svc-no {
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  line-height: 1; letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: .5;
  transition: opacity .4s, color .4s;
}
.svc-main h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  letter-spacing: .08em;
  transition: transform .45s var(--ease);
}
.svc-main p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(7px);
  transition: max-height .45s var(--ease), margin-top .45s var(--ease), opacity .35s var(--ease), transform .45s var(--ease);
}
.svc-en { grid-column: 2; color: var(--ink-soft); opacity: .6; font-size: .62rem; letter-spacing: .14em; }
.svc-row:hover .svc-no, .svc-row:focus-visible .svc-no { opacity: 1; -webkit-text-stroke-color: var(--red); }
.svc-row:hover .svc-main h3, .svc-row:focus-visible .svc-main h3 { transform: translateX(6px); }
.svc-row:hover .svc-main p, .svc-row:focus-visible .svc-main p { max-height: 8em; margin-top: .7em; opacity: 1; transform: none; }

/* ============ 05 AI ============ */
.ai { background: var(--black); color: var(--bone); }
.ai .s-rule { background: var(--line-d); }
.ai .display { max-width: 16em; }
.ai-intro {
  margin-top: clamp(30px, 5vh, 54px);
  max-width: 40em;
  color: var(--gray-d);
  font-size: .98rem;
}
.ai-list {
  margin-top: clamp(48px, 8vh, 90px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  border-top: 1px solid var(--line-d);
  padding-top: clamp(30px, 4vh, 48px);
}
.ai-list li { display: flex; gap: 18px; align-items: baseline; }
.ai-no { color: var(--red); font-size: .8rem; }
.ai-list h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: .1em; margin-bottom: .5em;
}
.ai-list p { color: var(--gray-d); font-size: .88rem; }

.ai-film { margin-top: clamp(56px, 9vh, 110px); }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.ai-film .film-frame { box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); }
.rec {
  position: absolute; left: 16px; top: 14px;
  color: var(--bone); font-size: .6rem; letter-spacing: .2em;
  display: flex; align-items: center; gap: 8px;
  opacity: .85;
}
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s steps(2) infinite; }
.ai-film figcaption { margin-top: 14px; color: var(--gray-d); }

/* ============ 06 YUNNAN ============ */
.yunnan {
  padding: 0 0 clamp(90px, 14vh, 170px);
  color: var(--ink);
}
.section.yunnan[data-theme="light"] { background: var(--paper); }
.yn-hero {
  position: relative;
  margin-top: 0;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  background: var(--black-2);
}
.yn-hero img {
  width: 100%; height: 118%;
  object-fit: cover;
  will-change: transform;
}
.yn-hero figcaption {
  position: absolute; z-index: 3;
  left: max(var(--gutter), calc((100vw - 1680px) / 2 + var(--gutter)));
  bottom: 18px;
  color: var(--bone); opacity: .85;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.yunnan-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(40px, 7vw, 110px);
  padding-inline: max(var(--gutter), calc((100vw - 1680px) / 2 + var(--gutter)));
  color: var(--bone);
  background: linear-gradient(90deg, rgba(8, 10, 12, .62) 0%, rgba(8, 10, 12, .26) 42%, rgba(8, 10, 12, .06) 72%, rgba(8, 10, 12, .18) 100%);
}
.yunnan-overlay .s-head { margin: 0 0 clamp(24px, 4vh, 48px); }
.yunnan-overlay .s-rule { background: rgba(239, 236, 228, .54); }
.yunnan-overlay .s-label { color: var(--bone); }
.yunnan-overlay .s-label [lang="en"] { opacity: .82; }
.yunnan-overlay .display { max-width: none; margin: 0; color: var(--bone); font-size: clamp(2rem, 3.8vw, 3.8rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.yunnan-overlay .display .line-in { white-space: nowrap; }
.yn-row {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(14px, 2vw, 32px);
}
.yn-works { margin-top: clamp(36px, 5vw, 68px); }
.yn-row figure { position: relative; }
.yn-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yn-row figcaption { margin-top: 12px; color: var(--ink-soft); }
.yn-feature { display:block; margin-top:0; }
.yn-feature figure { position:relative; margin:0; aspect-ratio:2.35/1; overflow:hidden; background:var(--black-2); }
.yn-feature figure>img { width:100%; height:112%; object-fit:cover; transition:transform .7s var(--ease),opacity .3s; }
.yn-feature:hover figure>img { opacity:.92; }
.yn-feature>div { padding-top:18px; }
.yn-feature span,.yn-work span { color:var(--ink-soft); font-size:.62rem; letter-spacing:.1em; }
.yn-feature h3 { margin:6px 0 0; font-family:var(--serif); font-size:clamp(1.8rem,3.4vw,3.5rem); line-height:1.25; }
.yn-work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(26px,3vw,48px) clamp(14px,2vw,30px); margin-top:clamp(36px,5vw,68px); }
.yn-work figure { position:relative; margin:0; aspect-ratio:4/3; overflow:hidden; background:var(--black-2); }
.yn-work img { width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease),opacity .3s; }
.yn-work:hover img { transform:scale(1.025); opacity:.88; }
.yn-work h3 { margin:5px 0 0; font-family:var(--serif); font-size:clamp(1.05rem,1.6vw,1.45rem); }
.yn-work>div { padding-top:12px; }

.yn-state {
  margin-top: clamp(64px, 10vh, 130px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
}
.yn-line {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.35; letter-spacing: .05em;
}
.yn-sub { color: var(--ink-soft); font-size: .95rem; max-width: 30em; }

/* ============ 07 CONTACT ============ */
.contact {
  position: relative;
  background: var(--black);
  color: var(--bone);
  overflow: hidden;
  padding: clamp(110px, 16vh, 200px) 0;
}
.contact-bg { position: absolute; inset: 0; background: var(--black-2); }
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: contact-photo-cycle 32s linear infinite; }
.contact-photo:nth-of-type(1) { animation-delay: 0s; }
.contact-photo:nth-of-type(2) { animation-delay: -8s; }
.contact-photo:nth-of-type(3) { animation-delay: -16s; }
.contact-photo:nth-of-type(4) { animation-delay: -24s; }
@keyframes contact-photo-cycle {
  0%, 20% { opacity: 1; transform: scale(1.015); }
  25%, 95% { opacity: 0; transform: scale(1.055); }
  100% { opacity: 1; transform: scale(1.015); }
}
.contact-bg .hero-shade {
  background: linear-gradient(180deg, rgba(12,11,9,.84), rgba(12,11,9,.62) 50%, rgba(12,11,9,.88));
}
.contact-inner { position: relative; z-index: 2; }
.c-en { margin-top: clamp(24px, 4vh, 40px); color: var(--gray-d); letter-spacing: .3em; }
.btn-big {
  margin-top: clamp(36px, 6vh, 60px);
  padding: 1.25em 3em;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  background: var(--bone); color: var(--ink); border-color: var(--bone);
}
.btn-big:hover { background: var(--red); border-color: var(--red); color: var(--bone); }
.c-rows { margin-top: clamp(48px, 8vh, 90px); display: grid; gap: 0; max-width: 560px; }
.c-rows li {
  display: flex; gap: 28px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-d);
}
.c-rows li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.c-k { color: var(--red); width: 3.5em; flex: none; }
.c-rows a { transition: color .3s; }
.c-rows a:hover { color: var(--red); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black); color: var(--bone);
  padding: clamp(70px, 10vh, 120px) 0 40px;
  border-top: 1px solid var(--line-d);
}
.f-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: clamp(40px, 6vh, 70px);
}
.f-mark {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: .18em; line-height: 1;
}
.f-slogan {
  font-family: var(--serif); font-size: .95rem; font-weight: 500;
  color: var(--gray-d); letter-spacing: .12em; line-height: 2;
  text-align: right;
}
.f-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px clamp(30px, 5vw, 90px);
  padding: clamp(36px, 5vh, 56px) 0;
  border-top: 1px solid var(--line-d);
}
.f-label { display: block; color: var(--gray-d); margin-bottom: 20px; font-size: .62rem; }
.f-company .f-name { font-size: 1rem; letter-spacing: .1em; margin-bottom: 8px; }
.f-company .mono { color: var(--gray-d); display: block; line-height: 2.1; }
.f-est { opacity: .5; }
.f-nav { display: flex; flex-direction: column; gap: 12px; }
.f-nav a, .f-contact > a, .f-contact > span {
  font-size: .9rem; letter-spacing: .1em;
  width: fit-content;
}
.f-nav a { transition: color .3s; }
.f-nav a:hover { color: var(--red); }
.f-contact .mono { color: var(--gray-d); margin-bottom: 12px; display: block; }
.f-contact > span { overflow-wrap: anywhere; }
.f-contact > a.mono { transition: color .3s; }
.f-contact > a.mono:hover { color: var(--bone); }
.f-social { display: flex; gap: 20px; margin-top: 8px; }
.f-social a { font-size: .8rem; letter-spacing: .14em; border-bottom: 1px solid var(--line-d); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.f-social a:hover { color: var(--red); border-color: var(--red); }

.f-bottom {
  display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line-d);
  color: var(--gray-d); opacity: .8;
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .ai-list { grid-template-columns: 1fr; gap: 28px; }
  .yn-state { grid-template-columns: 1fr; align-items: start; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-kicker { font-size: .68rem; letter-spacing: .08em; }
  .hero-kicker-cn, .hero-kicker-sep, .hero-kicker-since { display: none; }
  .hero-kicker-en { letter-spacing: .08em; }
  .s-head { align-items: flex-start; gap: 12px; }
  .s-rule { width: 32px; margin-top: .72em; }
  .s-label { font-size: 1rem; letter-spacing: .1em; }
  .s-label [lang="en"] { display: block; margin-top: 4px; font-size: .68em; }
  .s-side { display: none; }
  .works { row-gap: 52px; }
  .work-item { grid-column: 1 / 13 !important; margin-top: 0 !important; }
  .wi-3 .w-frame, .wi-7 .w-frame, .wi-9 .w-frame, .wi-10 .w-frame { aspect-ratio: 4 / 5; }
  .wi-2 .w-frame, .wi-4 .w-frame { aspect-ratio: 2.35 / 1; }
  .facts { grid-template-columns: 1fr; border-top: 0; }
  .facts li { border-top: 1px solid var(--line); padding: 22px 0 8px; }
  .facts li + li { border-left: 0; padding-left: 0; }
  .svc-list { grid-template-columns: 1fr; margin-top: 42px; }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); min-height: 0; }
  .svc-row:nth-child(odd), .svc-row:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .svc-main p { max-height: 10em; margin-top: .65em; opacity: 1; transform: none; }
  .svc-en { display: none; }
  .yn-row { grid-template-columns: 1fr; }
  .yn-row img { aspect-ratio: 16 / 10; }
  .yn-hero { aspect-ratio: 16 / 10; }
  .yn-hero img { height: 112%; }
  .yunnan-overlay { justify-content:flex-start; padding-top:clamp(42px,12vw,76px); background:linear-gradient(90deg,rgba(8,10,12,.64),rgba(8,10,12,.18) 100%); }
  .yunnan-overlay .s-head { margin-bottom:24px; }
  .yunnan-overlay .display { max-width:none; font-size:clamp(1.45rem,7vw,2.25rem); }
  .yn-feature figure { aspect-ratio:16/10; }
  .yn-work-grid { grid-template-columns:1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .f-slogan { text-align: left; }
  .hero-actions-row { gap: 16px; margin-top: 34px; }
  .hero-video-meta { top: calc(var(--header-h) + 28px); right: 20px; max-width: min(62vw, 300px); }
  .hero-indicator { right: 20px; gap: 8px; }
  .hero-indicator span { width: 14px; }
  .hero-indicator span.is-active { width: 30px; }
  .btn-cta { display: none; }
  .work-filters { gap: 4px 18px; }
}

/* 大屏字距微调 */
@media (min-width: 1800px) {
  body { font-size: 17px; }
}

/* ============ 动效减弱 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .contact-photo { animation: none; }
  .contact-photo:not(:first-child) { display: none; }
  [data-reveal], .line-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-foot .scroll-cue::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
