@charset "utf-8";
/* ============================================================
   pages/home.css — 首页：首屏 / 简介 / 案例墙
   ============================================================ */

/* ============================================================
   1. 首屏
   ============================================================ */
.hero {
  --hero-pad: 120px;
  --hero-type: 5vw;
  --reel-w: 35vw;
  --reel-h: 22vw;
  --reel-gap: 20px;

  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 14% 26%, #be3410 0%, rgba(190, 52, 16, 0) 58%),
    radial-gradient(90% 80% at 84% 12%, #a02c0a 0%, rgba(160, 44, 10, 0) 60%),
    radial-gradient(100% 90% at 92% 94%, #d76e37 0%, rgba(215, 110, 55, 0) 55%),
    linear-gradient(135deg, #3a0d00 0%, #6f1f05 55%, #2b0900 100%);
  color: #fff;
}

/* 动态渐变底 */
/* 顶部压暗 + 四角收边：保证白字（尤其导航与标题）在亮橙背景上的对比度 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(48, 11, 1, 0.66) 0%, rgba(48, 11, 1, 0.28) 9%, rgba(48, 11, 1, 0) 20%),
    radial-gradient(135% 105% at 50% 42%, rgba(46, 10, 0, 0) 46%, rgba(46, 10, 0, 0.38) 100%);
}

.hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: blur(34px) saturate(1.25);
  transform: scale(1.14);
}

/* Art / Tech 侧标 */
.hero__side {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: heroSideIn 0.9s var(--ease) 1.35s forwards;
}

.hero__side--l {
  left: var(--hero-pad);
}

.hero__side--r {
  right: var(--hero-pad);
}

@keyframes heroSideIn {
  to {
    opacity: 0.92;
  }
}

/* 文字舞台 */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}

.hero__title {
  position: relative;
  width: 100%;
  padding-inline: var(--hero-pad);
  font-size: var(--hero-type);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.01em;
  display: grid;
  row-gap: calc(var(--reel-h) + var(--reel-gap) * 2);
}

.hero__line {
  display: block;
}

.hero__line--a {
  text-align: left;
  animation: heroLineA 1s var(--ease) 0.1s both;
}

.hero__line--b {
  text-align: right;
  animation: heroLineB 1s var(--ease) 0.1s both;
}

@keyframes heroLineA {
  from {
    opacity: 0;
    transform: translateX(-6vw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroLineB {
  from {
    opacity: 0;
    transform: translateX(6vw);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 首屏影像卡 */
.hero__reel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--reel-w);
  height: var(--reel-h);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #3c1002;
  box-shadow: 0 34px 90px -28px rgba(40, 9, 0, 0.7);
  transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px)));
  will-change: transform;
}

.reel__frames {
  position: absolute;
  inset: 0;
  display: block;
  animation: reelIn 1.2s var(--ease) 0.75s both;
}

@keyframes reelIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reel__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: reelCycle 18s linear infinite;
}

.reel__frame:nth-child(1) {
  animation-delay: 0s;
}
.reel__frame:nth-child(2) {
  animation-delay: 6s;
}
.reel__frame:nth-child(3) {
  animation-delay: 12s;
}

@keyframes reelCycle {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  6% {
    opacity: 1;
  }
  31% {
    opacity: 1;
    transform: scale(1);
  }
  37% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.reel__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 12, 2, 0.08) 0%, rgba(48, 12, 2, 0.62) 100%);
}

.reel__bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.reel__bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: 0 50%;
  animation: reelBar 18s linear infinite;
}

@keyframes reelBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.reel__cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel__cap-word {
  font-weight: 500;
}

.reel__cap-year {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

/* ============================================================
   2. 公司简介
   ============================================================ */
.intro {
  padding-top: 100px;
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro__lead {
  padding-right: 120px;
}

.intro__title {
  font-size: var(--fs-h2);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.intro__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intro__text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  color: var(--ink-4);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.intro__meta span {
  position: relative;
}

.intro__meta span + span::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  transform: translateY(-50%);
}

.intro__cta {
  margin-top: auto;
  padding-top: 50px;
}

/* ============================================================
   3. 案例墙
   ============================================================ */
.work {
  padding-top: 50px;
  padding-bottom: 70px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px 40px;
}

.card__link {
  display: block;
}

.card__frame {
  display: block;
  overflow: hidden;
  background: var(--paper-dim);
}

.card__frame img {
  width: 100%;
  transition: transform 0.85s var(--ease);
}

.card:hover .card__frame img,
.card__link:focus-visible .card__frame img {
  transform: scale(1.035);
}

.card__client {
  display: block;
  margin-top: 20px;
  color: var(--brand);
  font-size: 14px;
}

.card__title {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.card:hover .card__title,
.card__link:focus-visible .card__title {
  color: var(--brand);
}

/* ============================================================
   4. 响应式
   ============================================================ */
@media (max-width: 1440px) {
  .hero {
    --hero-pad: 60px;
  }
}

@media (max-width: 1366px) {
  .work__grid {
    gap: 40px 30px;
  }
}

@media (max-width: 960px) {
  .intro {
    padding-top: 70px;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro__lead {
    padding-right: 0;
  }

  .intro__cta {
    margin-top: 0;
    padding-top: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    --hero-pad: 24px;
    --hero-type: 7vw;
    --reel-w: 64vw;
    --reel-h: 40vw;
    --reel-gap: 16px;
    min-height: 520px;
  }

  .hero__side {
    font-size: 13px;
  }

  .hero__title {
    line-height: 1.35;
  }

  .reel__cap {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .reel__bar {
    left: 12px;
    right: 12px;
    bottom: 30px;
  }

  .intro {
    padding-top: 50px;
  }

  .intro__title {
    font-size: 22px;
  }

  .intro__text {
    font-size: 14px;
    line-height: 1.8;
  }

  .intro__meta {
    font-size: 12px;
    gap: 6px 16px;
  }

  .intro__meta span + span::before {
    left: -9px;
  }

  .work {
    padding-top: 36px;
  }

  .work__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card__client {
    margin-top: 14px;
    font-size: 13px;
  }

  .card__title {
    margin-top: 8px;
    font-size: 19px;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .hero {
    --hero-type: 7.6vw;
  }

  .pill--brand {
    height: 40px;
    font-size: 14px;
  }

  .link-arw {
    font-size: 13px;
  }
}

/* ============================================================
   5. 减弱动效：静态呈现，不留下空卡片
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__line,
  .hero__side,
  .reel__frames {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero__side {
    opacity: 0.92;
  }

  .reel__frame {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .reel__frame:nth-child(1) {
    opacity: 1;
  }

  .reel__bar i {
    animation: none !important;
    transform: scaleX(1);
  }
}
