/* ============================================================
   荣绘星河 · 官网 v0.1
   近黑 × 暖白 × 金色点缀；思源宋体大字 + 真实 AI 影像
   ============================================================ */

@font-face {
  font-family: "Source Han Serif SC";
  src: url("../fonts/SourceHanSerifSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Han Serif SC";
  src: url("../fonts/SourceHanSerifSC-Bold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08070c;
  --bg-soft: #0e0c14;
  --ink: #f3ede3;
  --ink-2: #b7afa4;
  --ink-3: #857d72;
  --line: rgba(243, 237, 227, 0.14);
  --line-soft: rgba(243, 237, 227, 0.08);
  --gold: #c9a96a;
  --violet: #9b7cff;
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Source Han Serif SC", "Noto Serif SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #08070c; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #08070c; }
::-webkit-scrollbar-thumb { background: #2b2735; border-radius: 8px; border: 2px solid #08070c; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  transition: background 0.5s ease, padding 0.5s var(--ease), border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line-soft);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-cn {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.brand-en {
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", "Source Han Serif SC", serif;
  font-size: 8.5px;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 640px;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease 0.15s;
}
.hero-video.is-ready { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 72% 28%, rgba(8, 7, 12, 0) 0%, rgba(8, 7, 12, 0.5) 100%),
    linear-gradient(to bottom,
      rgba(8, 7, 12, 0.72) 0%,
      rgba(8, 7, 12, 0.12) 32%,
      rgba(8, 7, 12, 0.38) 62%,
      rgba(8, 7, 12, 0.96) 100%);
}

.hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(118px, 17vh, 200px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  max-width: 16em;
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(112%);
  animation: hero-rise 1.25s var(--ease) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.16s; }

@keyframes hero-rise {
  to { transform: translateY(0); }
}

.hero-sub {
  margin-top: clamp(20px, 3vh, 34px);
  max-width: 44em;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 2;
  color: var(--ink-2);
  opacity: 0;
  animation: fade-up 1.1s var(--ease) 0.55s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: clamp(26px, 4vh, 42px);
  opacity: 0;
  animation: fade-up 1.1s var(--ease) 0.75s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}
.btn-primary .arr { transition: transform 0.4s var(--ease); font-size: 13px; }
.btn-primary:hover { background: var(--gold); }
.btn-primary:hover .arr { transform: translateY(3px); }

.btn-ghost {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(22px, 3.5vh, 40px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.hero-meta {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}

.video-toggle {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.video-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.video-toggle[aria-pressed="false"] { color: var(--gold); border-color: var(--gold); }

/* ---------- 宣言 ---------- */
.manifesto {
  padding-block: clamp(96px, 15vh, 190px);
  border-bottom: 1px solid var(--line-soft);
}
.manifesto-grid { display: block; }
.manifesto-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.42;
  letter-spacing: 0.02em;
}
.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  margin-top: clamp(36px, 6vh, 64px);
}
.manifesto-body p {
  font-size: clamp(16px, 1.15vw, 17px);
  line-height: 2.05;
  color: var(--ink-2);
}
.manifesto-body p + p { margin-top: 24px; }
.manifesto-body .small {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-3);
  padding-left: 18px;
  border-left: 1px solid var(--gold);
  align-self: start;
}

/* ---------- 区块通用 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.section-note {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

/* ---------- 作品 ---------- */
.works { padding-block: clamp(96px, 14vh, 180px); }

.work-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: end;
}
.work-row + .work-row { margin-top: clamp(84px, 12vh, 160px); }

.work-media {
  grid-column: 1 / span 5;
  grid-row: 1;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}
.work-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.3s var(--ease), filter 1.3s ease;
  filter: saturate(0.96);
}
.work-media:hover img { transform: scale(1.025); filter: saturate(1.05); }

.work-row .work-info {
  grid-column: 7 / span 5;
  grid-row: 1;
  padding-bottom: 4px;
}
.work-row-reverse .work-media {
  grid-column: 6 / span 7;
  grid-row: 1;
}
.work-row-reverse .work-info {
  grid-column: 1 / span 4;
  grid-row: 1;
  align-self: end;
}

.work-info h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
}
.work-meta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.work-desc {
  margin-top: 18px;
  max-width: 30em;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.work-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.work-link span { display: inline-block; transition: transform 0.4s var(--ease); }
.work-link:hover { color: var(--ink); border-color: var(--gold); }
.work-link:hover span { transform: translateX(4px); }

.subsection-title {
  margin-top: clamp(72px, 11vh, 140px);
  margin-bottom: clamp(22px, 3vh, 34px);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: 0.05em;
}

.stills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(48px, 8vh, 110px);
}
.still { grid-column: span 4; }
.still:nth-child(1), .still:nth-child(2) { grid-column: span 6; }
.still-portrait { grid-column: span 4; }
.still img {
  width: 100%;
  height: auto;
  background: var(--bg-soft);
  transition: transform 1.2s var(--ease);
}
.still { overflow: hidden; }
.still:hover img { transform: scale(1.03); }
.still figcaption {
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.works-foot {
  margin-top: clamp(36px, 6vh, 64px);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ---------- 样片带 ---------- */
.film {
  position: relative;
  height: clamp(440px, 72vh, 780px);
  overflow: hidden;
  background: var(--bg-soft);
}
.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 7, 12, 0.92) 0%, rgba(8, 7, 12, 0.1) 38%, rgba(8, 7, 12, 0.25) 100%);
}
.film-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(26px, 4vh, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.film-caption p {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* ---------- 能力 ---------- */
.capabilities {
  padding-block: clamp(96px, 14vh, 180px);
  border-top: 1px solid var(--line-soft);
}
.cap-list { border-top: 1px solid var(--line); }
.cap-list li {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(20px, 5vw, 100px);
  padding: clamp(28px, 4.5vh, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.cap-list h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.cap-list li:hover h3 { color: var(--gold); }
.cap-list p {
  max-width: 52ch;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.95;
  color: var(--ink-2);
  align-self: center;
}

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: clamp(34px, 5vh, 56px);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.process li { display: flex; align-items: center; }
.process li:not(:last-child)::after {
  content: "→";
  margin: 0 clamp(12px, 2vw, 26px);
  color: var(--gold);
  opacity: 0.7;
}

/* ---------- 关于 ---------- */
.about {
  padding-block: clamp(96px, 14vh, 180px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.about-grid > h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: 0.04em;
}
.about-body { max-width: 50em; }
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.about-body p + p { margin-top: 18px; }
.about-body > p:not(.about-lead) {
  color: var(--ink-2);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 2;
}
.facts { margin-top: clamp(34px, 5vh, 56px); }
.facts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding-top: 3px;
}
.facts dd { font-size: 14.5px; letter-spacing: 0.04em; }

/* ---------- 联系 ---------- */
.contact { padding-block: clamp(110px, 18vh, 220px); }
.contact h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
  max-width: 15em;
}
.contact-sub {
  margin-top: 26px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2;
}
.contact-links { margin-top: clamp(34px, 6vh, 64px); }
.contact-big {
  display: inline-block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.contact-big:hover { color: var(--gold); }
.contact-note {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 26px 0; }
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
/* 版权与备案号同属左侧一行，用 gap 控间距而不是空格，窄屏能自然折行 */
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* 页脚只有备案号一个链接，全局 a 是 color:inherit，这里补一点 hover 反馈 */
.foot-inner a { transition: color .2s ease; }
.foot-inner a:hover,
.foot-inner a:focus-visible { color: var(--gold); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.work-row + .work-row { transition-delay: 0.08s; }
.stills .still:nth-child(2) { transition-delay: 0.08s; }
.stills .still:nth-child(3) { transition-delay: 0.14s; }
.stills .still:nth-child(4) { transition-delay: 0.2s; }
.cap-list li:nth-child(2) { transition-delay: 0.06s; }
.cap-list li:nth-child(3) { transition-delay: 0.12s; }
.cap-list li:nth-child(4) { transition-delay: 0.18s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .manifesto-grid { grid-template-columns: 1fr; align-items: start; }
  .work-media,
  .work-row-reverse .work-media { grid-column: 1 / span 7; }
  .work-row .work-info,
  .work-row-reverse .work-info { grid-column: 9 / span 4; }
  .stills { grid-template-columns: repeat(2, 1fr); }
  .still, .still:nth-child(1), .still:nth-child(2), .still-portrait { grid-column: auto; }
  .manifesto-body { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand-en { display: none; }
  .nav { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .brand-cn { font-size: 18px; letter-spacing: 0.12em; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.06em; }

  .hero { min-height: 560px; }
  .hero-inner { bottom: clamp(104px, 15vh, 150px); }
  .hero-title { font-size: clamp(2.2rem, 9.6vw, 3.4rem); max-width: none; }
  .hero-sub br { display: none; }
  .hero-actions { gap: 20px; flex-wrap: wrap; }

  .work-row { grid-template-columns: 1fr; gap: 20px; }
  .work-media,
  .work-row-reverse .work-media { grid-column: 1; grid-row: auto; }
  .work-row .work-info,
  .work-row-reverse .work-info { grid-column: 1; grid-row: auto; padding-top: 8px; }
  .work-info h3 { font-size: 1.35rem; }
  .work-desc { font-size: 14px; }

  .cap-list li { grid-template-columns: 1fr; gap: 12px; }
  .cap-list h3 { font-size: 1.35rem; }

  .facts > div { grid-template-columns: 96px 1fr; }

  .stills { grid-template-columns: 1fr; }

  .film { height: 62vh; min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { opacity: 1; }
  .hero-title .line span { transform: none; }
  .hero-sub, .hero-actions { opacity: 1; }
}
