/* =========================================================
   艺联公关策划 · AI 漫剧主题单页
   纯手写 CSS：无框架、无外链字体、无实拍图
   ========================================================= */

/* ---------- 变量 ---------- */
:root {
  --ink:        #06070a;
  --ink-2:      #0a0c11;
  --ink-3:      #0f1218;
  --ink-4:      #161a22;
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.055);
  --text:       #ece9e3;
  --text-2:     #adaaa3;
  --muted:      #78756f;
  --gold:       #c9a44c;
  --gold-lt:    #e6cc86;
  --violet:     #5a6bff;

  --shell:      1280px;
  --gutter:     clamp(20px, 5vw, 56px);

  --font-sans:  "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
                "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system,
                "Segoe UI", Roboto, sans-serif;
  --font-disp:  "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong",
                "SimSun", Georgia, serif;
  --font-mono:  ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
                Consolas, "Liberation Mono", monospace;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
em { font-style: normal; }

::selection { background: var(--gold); color: #06070a; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #06070a; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  font-size: 14.5px; letter-spacing: 0.06em;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: #07080a; font-weight: 600; }
.btn-gold:hover { background: var(--gold-lt); }

.btn-line { border: 1px solid rgba(255,255,255,.24); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-lt); }

.btn-ghost { color: var(--text-2); padding: 10px 0; }
.btn-ghost:hover { color: var(--gold-lt); }
.btn-ghost svg { width: 15px; height: 15px; fill: currentColor; }

.btn-full { width: 100%; margin-top: 26px; }

/* =========================================================
   导航
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 18px;
  transition: background .4s var(--ease), padding .4s var(--ease),
              border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  padding-block: 11px;
  background: rgba(6, 7, 10, .84);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand { flex: none; }
.brand img { height: 30px; width: auto; transition: height .4s var(--ease), opacity .3s; }
.site-header.is-stuck .brand img { height: 25px; }
.brand:hover img { opacity: .82; }

.nav {
  display: flex; align-items: center; gap: 30px;
  margin-left: auto;
  font-size: 14.5px; letter-spacing: .05em;
}
.nav a {
  position: relative; color: var(--text-2); padding-block: 4px;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 14px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.menu-toggle { display: none; width: 40px; height: 40px; position: relative; margin-right: -8px; }
.menu-toggle span {
  position: absolute; left: 9px; width: 22px; height: 1.5px; background: var(--text);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   首屏
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(1200px 700px at 74% 18%, #10131c 0%, var(--ink) 62%);
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .85;
}

.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(600px 420px at 78% 26%, rgba(201, 164, 76, .13), transparent 70%),
    radial-gradient(700px 500px at 18% 82%, rgba(90, 107, 255, .10), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  margin-top: auto;
  padding-top: clamp(140px, 24vh, 260px);
  padding-bottom: clamp(40px, 6vh, 64px);
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .26em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 26px;
}
.eyebrow .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: .65; }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 78px);
  line-height: 1.16;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-disp);
  font-weight: 500;
  color: var(--gold-lt);
  letter-spacing: .02em;
}

.hero-lede {
  margin-top: 26px;
  max-width: 42em;
  color: var(--text-2);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.95;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* 跑马灯 */
.hero-marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding-block: 15px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: 13px; letter-spacing: .16em; color: var(--muted);
}
.marquee-track i { color: var(--gold); opacity: .7; font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 96px; z-index: 3;
  width: 22px; height: 44px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  display: none;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px;
  background: var(--gold); border-radius: 2px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(16px); opacity: .2; }
}

/* =========================================================
   区块
   ========================================================= */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-alt { background: var(--ink-2); }

.sec-index {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .24em;
  color: var(--gold); margin-bottom: 22px; text-transform: uppercase;
}

.sec-head { max-width: 800px; margin-bottom: clamp(46px, 6vw, 74px); }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.26;
  letter-spacing: .01em;
  text-wrap: balance;
}
.sec-head h2 em { font-family: var(--font-disp); color: var(--gold-lt); font-weight: 500; }
.sec-desc { margin-top: 22px; color: var(--text-2); font-size: 15.5px; max-width: 46em; }

.sec-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; max-width: none;
}
.sec-head-row .sec-desc { margin-top: 0; max-width: 34em; flex: 0 1 460px; padding-bottom: 6px; }

/* =========================================================
   核心业务
   ========================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc {
  position: relative;
  background: var(--ink);
  padding: clamp(24px, 2.4vw, 36px);
  transition: background .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.svc:hover { background: var(--ink-3); }
.svc:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 44px; height: 44px;
  color: var(--muted);
  margin-bottom: 26px;
  transition: color .45s var(--ease), transform .6s var(--ease);
}
.svc-icon svg { width: 100%; height: 100%; }
.svc:hover .svc-icon { color: var(--gold-lt); transform: translateY(-2px); }

.svc-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .2em;
  color: var(--gold); opacity: .8;
  margin-bottom: 10px;
}
.svc h3 { font-size: clamp(18px, 1.6vw, 21px); margin-bottom: 12px; letter-spacing: .02em; }
.svc p { color: var(--text-2); font-size: 14px; line-height: 1.85; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.svc-tags li {
  font-size: 11.5px; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--line); padding: 3px 9px;
  transition: color .3s, border-color .3s;
}
.svc:hover .svc-tags li { color: var(--text-2); border-color: rgba(201,164,76,.26); }

/* =========================================================
   内容体系
   ========================================================= */
.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.work {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.work:hover { border-color: rgba(201,164,76,.35); transform: translateY(-3px); }

.work-art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.work-art svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 1s var(--ease);
}
.work:hover .work-art svg { transform: scale(1.04); }

.work-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,7,10,.9) 0%, rgba(6,7,10,.1) 42%, transparent 70%);
}

.work-body { padding: 20px 22px 24px; }
.work-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid rgba(201,164,76,.3);
  padding: 3px 8px;
  margin-bottom: 14px;
}
.work-body h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: .02em; }
.work-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.work-year {
  display: block; margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; color: var(--muted);
}

/* =========================================================
   制作流程
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
}
.steps li {
  position: relative;
  padding: 28px 18px 8px 0;
  border-right: 1px solid var(--line-soft);
}
.steps li:last-child { border-right: 0; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 26px; height: 1px;
  background: var(--gold);
}

.step-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .14em; color: var(--gold);
  margin-bottom: 12px;
}
.steps em {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 8px;
}
.steps h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: .02em; }
.steps p { font-size: 13px; color: var(--muted); line-height: 1.8; padding-right: 8px; }

/* =========================================================
   关于
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about-statement h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.28;
  position: sticky; top: 120px;
}
.about-body p { color: var(--text-2); font-size: 15.5px; line-height: 1.95; margin-bottom: 20px; }
.about-lede {
  color: var(--text) !important;
  font-size: clamp(17px, 1.6vw, 19px) !important;
  line-height: 1.85 !important;
  margin-bottom: 26px !important;
}

.facts { margin: 38px 0 34px; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; color: var(--muted);
  padding-top: 4px;
}
.facts dd { font-size: 14.5px; color: var(--text); line-height: 1.7; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; letter-spacing: .05em; color: var(--gold);
  border-bottom: 1px solid rgba(201,164,76,.4); padding-bottom: 4px;
  transition: gap .35s var(--ease), border-color .3s;
  width: fit-content;
}
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { gap: 16px; border-bottom-color: var(--gold); }

/* =========================================================
   动态
   ========================================================= */
.news { border-top: 1px solid var(--line); }
.news li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.news li:hover { padding-left: 10px; }
.news-date {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .12em; color: var(--muted);
  padding-top: 6px;
}
.news-cat {
  display: inline-block;
  font-size: 11px; letter-spacing: .12em; color: var(--gold);
  margin-bottom: 8px;
}
.news-main h3 {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500; letter-spacing: .01em;
  transition: color .3s;
}
.news li:hover .news-main h3 { color: var(--gold-lt); }

/* =========================================================
   联系
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.contact-lead h2 { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.26; }
.contact-lead h2 em { font-family: var(--font-disp); color: var(--gold-lt); font-weight: 500; }
.contact-lead p { margin-top: 24px; color: var(--text-2); font-size: 15.5px; max-width: 30em; }

.contact-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  padding: clamp(26px, 3vw, 38px);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}
.contact-card dl > div { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.contact-card dl > div:first-child { padding-top: 0; }
.contact-card dt {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px;
}
.contact-card dd { font-size: 15.5px; color: var(--text); line-height: 1.7; }
.contact-card dd a { transition: color .3s; }
.contact-card dd a:hover { color: var(--gold-lt); }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding-block: 46px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: start;
}
.footer-brand img { height: 26px; width: auto; opacity: .9; }
.footer-slogan {
  margin-top: 14px;
  font-family: var(--font-disp);
  font-size: 14px; letter-spacing: .06em; color: var(--muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; color: var(--text-2); padding-top: 4px; }
.footer-nav a { transition: color .3s; }
.footer-nav a:hover { color: var(--gold-lt); }
.footer-legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
.footer-legal a { transition: color .3s; }
.footer-legal a:hover { color: var(--text-2); }

/* =========================================================
   入场动画
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-hint span { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 1180px) {
  .scroll-hint { display: block; }
}

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-bottom: 26px; padding-right: 18px; }
  .steps li:nth-child(3n) { border-right: 0; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-statement h2 { position: static; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  /* 纵向排列后 flex-basis 会变成高度，必须重置，否则会撑出大块空白 */
  .sec-head-row .sec-desc { flex: 0 0 auto; max-width: 46em; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { gap: 22px; font-size: 14px; }
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .menu-toggle { display: block; }

  .nav {
    position: fixed; inset: 0 0 auto; top: 0;
    padding: 92px var(--gutter) 34px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(7, 8, 11, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform .55s var(--ease);
    margin-left: 0;
    font-size: 19px;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding-block: 14px; width: 100%; }
  .nav a::after { display: none; }

  .hero-lede br.br-wide { display: none; }
  .hero h1 { font-size: clamp(34px, 8vw, 54px); }
  .news li { grid-template-columns: 1fr; gap: 10px; }
  .news-date { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .svc-grid { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .work-art { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2n) { border-right: 0; }
  .steps li:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .eyebrow { font-size: 9.5px; letter-spacing: .2em; gap: 8px; }
  .contact-card { padding: 24px; }
}

/* 移动端首屏：内容在页头与跑马灯之间居中，避免上方大片空白 */
@media (max-width: 900px) {
  .hero-inner {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 120px;
  }
}
