/* ==========================================================================
   首页
   ========================================================================== */

/* ---------- 首屏：整屏背景视频 ---------- */
.hero-full {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 1080px;
  overflow: hidden;
  background: var(--dark) url('../../media/hero-poster.jpg') center / cover no-repeat;
  color: #fff;
}

.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--shade), 0.82) 0%, rgba(var(--shade), 0.45) 50%, rgba(var(--shade), 0.1) 100%),
    linear-gradient(0deg, rgba(var(--shade), 0.6) 0%, rgba(var(--shade), 0) 45%);
  pointer-events: none;
}

.hero-full video.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 40%;
  will-change: transform;
}

.hero-full .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(64px, 11vh, 128px);
  will-change: transform, opacity;
}

.hero-full .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero-full h1 {
  margin-top: 22px;
  color: #fff;
}

.hero-full .sub {
  max-width: 34em;
  margin-top: 26px;
  font: 400 clamp(15px, 1.3vw, 19px) / 1.6 var(--head);
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-full .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* 标签前的呼吸圆点 */
.dot-live {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 6px rgba(184, 40, 106, 0.25);
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px rgba(184, 40, 106, 0);
  }
}

/* 右下角“SCROLL”提示 */
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 11vh, 128px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 11px var(--label);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 64px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- 公司介绍：固定画面，图片向外飞散 ---------- */
.fly {
  position: relative;
  display: block;
  height: 320vh;
  background: #fff;
}

.fly-stage {
  position: sticky;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 图片位置由脚本计算；--w / --h 为图片尺寸 */
.fly .fl {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  border-radius: 4px;
  background: var(--dark);
  opacity: 0;
  will-change: transform, opacity;
}

.fly .fl:nth-child(1) {
  --w: 200px;
  --h: 240px;
}
.fly .fl:nth-child(2) {
  --w: 300px;
  --h: 200px;
}
.fly .fl:nth-child(3) {
  --w: 230px;
  --h: 280px;
}
.fly .fl:nth-child(4) {
  --w: 280px;
  --h: 190px;
}
.fly .fl:nth-child(5) {
  --w: 300px;
  --h: 210px;
}
.fly .fl:nth-child(6) {
  --w: 210px;
  --h: 210px;
}
.fly .fl:nth-child(7) {
  --w: 290px;
  --h: 200px;
}
.fly .fl:nth-child(8) {
  --w: 220px;
  --h: 260px;
}
.fly .fl:nth-child(9) {
  --w: 300px;
  --h: 205px;
}
.fly .fl:nth-child(10) {
  --w: 220px;
  --h: 220px;
}
.fly .fl:nth-child(11) {
  --w: 260px;
  --h: 200px;
}
.fly .fl:nth-child(12) {
  --w: 230px;
  --h: 230px;
}

.fly .fl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fly .statement {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 26px;
  max-width: 680px;
  padding: 0 20px;
  text-align: center;
}

.fly .statement h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.fly .statement p {
  font: 400 clamp(17px, 1.45vw, 22px) / 1.75 var(--head);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.js .fly [data-fly-in],
.js .fly [data-fly-link] {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- 产品与服务：叠字画面卡片 ---------- */
.focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.tile.big {
  grid-column: span 2;
  min-height: 560px;
}

.tile .pic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark);
}

.tile.big .pic {
  min-height: 360px;
}

.tile .pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.tile:hover .pic img {
  transform: scale(1.05);
}

.tile .pic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(var(--shade), 0.88) 0%,
    rgba(var(--shade), 0.45) 45%,
    rgba(var(--shade), 0) 75%
  );
}

.tile.brand .pic::after {
  background: linear-gradient(0deg, rgba(154, 27, 83, 0.95) 0%, rgba(154, 27, 83, 0.55) 45%, rgba(154, 27, 83, 0) 75%);
}

.tile .cap {
  position: relative;
  z-index: 1;
  flex: 0;
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 32px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.4s;
}

.tile .cap .meta {
  font: 500 12px var(--label);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.65);
}

.tile .n {
  font: 400 clamp(44px, 4.4vw, 64px) / 1 var(--head);
  letter-spacing: -0.04em;
  color: #fff;
}

.tile .n small {
  margin-left: 8px;
  font: 300 14px var(--head);
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.tile .cap h3 {
  font-size: 22px;
  line-height: 1.5;
  color: #fff;
}

.tile.big .cap h3 {
  font-size: 26px;
}

.tile .cap .go {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.tile .cap .go svg {
  width: 18px;
  height: 18px;
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.tile:hover .cap .go svg {
  transform: translateX(4px);
}

/* ---------- 四种表达系统：固定画面 + 滚动高亮 ---------- */
.sticky-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.sf-visual {
  position: sticky;
  top: 120px;
  height: calc(100vh - 160px);
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
}

.sf-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.9s var(--ease),
    transform 6s linear;
}

.sf-visual img.on {
  opacity: 1;
  transform: scale(1);
}

.sf-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--shade), 0.55), rgba(var(--shade), 0) 40%);
  pointer-events: none;
}

.sf-visual .cap {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  font: 400 12px var(--num);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.sf-items {
  display: grid;
}

.sf-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 62vh;
  padding-block: 40px;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
}

.sf-item.on {
  opacity: 1;
}

.sf-item h3 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.sf-item ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--ink-2);
}

.sf-item li::before {
  content: '— ';
  color: var(--faint);
}

.sf-item .meta {
  font-size: 14px;
  color: var(--muted);
}

.sf-item .meta b {
  display: block;
  margin-bottom: 6px;
  font: 400 48px/1 var(--head);
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* 每项自带的配图：只在手机上显示 */
.sf-img-wrap,
.sf-img {
  display: none;
}

/* ---------- 企业精神：画面从小窗放大到整屏 ---------- */
.zoom {
  position: relative;
  height: 200vh;
  background: #fff;
}

.zoom .stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: hidden;
}

/* --z 缩放比例、--p 进度（0–1），由脚本设置 */
.zoom .frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(24px * (1 - var(--p, 0)));
  background: var(--dark) url('../../media/spirit-poster.jpg') center / cover no-repeat;
  transform: translate(-50%, -50%) scale(var(--z, 0.62));
  will-change: transform;
}

.zoom .frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom .words {
  position: relative;
  z-index: 2;
  font: 400 clamp(56px, 10vw, 168px) / 1.08 var(--head);
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 40px rgba(var(--shade), 0.5);
  pointer-events: none;
}

.zoom .under {
  position: absolute;
  left: 50%;
  bottom: 10vh;
  z-index: 2;
  width: min(640px, calc(100% - 40px));
  font-size: 15px;
  line-height: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  opacity: var(--p, 0);
  transform: translateX(-50%);
}

.zoom .under p {
  font-family: var(--head);
  font-size: 17px;
}

.zoom .under .values {
  justify-content: center;
  margin-top: 18px;
}

/* ---------- 技术服务列表 ---------- */
.svc-list {
  border-top: 1px solid var(--ink);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}

.svc-row h3 {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.025em;
  transition: color 0.3s;
}

.svc-row p {
  max-width: 46em;
  font-size: 15px;
  color: var(--muted);
}

.svc-row .go svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s var(--ease);
}

.svc-row:hover {
  padding-left: 20px;
}

.svc-row:hover h3 {
  color: var(--brand);
}

.svc-row:hover .go svg {
  color: var(--brand);
  transform: translateX(6px);
}

/* ---------- 新闻资讯 ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--ink);
}

.news a {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}

.news time {
  font: 500 12px var(--label);
  letter-spacing: 0.01em;
  color: var(--muted);
}

.news h3 {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  transition: color 0.3s;
}

.news a:hover h3 {
  color: var(--brand);
}

.news .link {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 合作伙伴 ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logos div {
  display: grid;
  place-items: center;
  height: 128px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logos img {
  width: auto;
  max-height: 52px;
  filter: grayscale(1);
  opacity: 0.55;
  mix-blend-mode: multiply;
  transition:
    filter 0.4s,
    opacity 0.4s;
}

.logos div:hover img {
  filter: none;
  opacity: 1;
}

.logos .logos-note {
  letter-spacing: 0.1em;
}

/* ---------- 结尾大标语 ---------- */
.closing {
  padding-block: clamp(96px, 12vw, 180px) 0;
  background: #fff;
}

.closing h2 {
  margin-top: 24px;
  font-size: clamp(48px, 7.6vw, 124px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.closing h2 em {
  font-style: normal;
  color: var(--brand);
}

.closing .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 32px;
  margin-top: 56px;
  padding-bottom: clamp(64px, 8vw, 120px);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 底部渐变色带与 AINOD 大字 */
.band {
  position: relative;
  height: clamp(180px, 22vw, 320px);
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 0%, #c2336f 0%, #9a1b53 38%, #5e2a8c 72%, #2b3e9a 100%);
}

.band span {
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  font: 400 clamp(140px, 26vw, 420px) / 1 var(--head);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .focus {
    grid-template-columns: 1fr 1fr;
  }

  .tile.big {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .news {
    grid-template-columns: 1fr 1fr;
  }

  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fly {
    height: 260vh;
  }

  .fly-stage {
    height: 100svh;
    padding: 0;
  }

  /* 手机竖屏：图片缩小，只用前 8 张，从文字上下方飞散 */
  .fly .fl {
    width: calc(var(--w) * 0.62);
    height: calc(var(--h) * 0.62);
  }

  .fly .fl:nth-child(n + 9) {
    display: none;
  }

  .fly .statement {
    max-width: 340px;
    gap: 18px;
  }

  .fly .statement h2 {
    font-size: 26px;
  }

  .fly .statement p {
    font-size: 16px;
    line-height: 1.75;
  }

  .sticky-feature {
    grid-template-columns: 1fr;
  }

  .sf-visual {
    position: relative;
    top: 0;
    height: 360px;
    min-height: 0;
  }

  .sf-item {
    min-height: 0;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .svc-row {
    grid-template-columns: 1fr 32px;
    gap: 10px 20px;
  }

  .svc-row p {
    grid-column: 1;
  }

  .svc-row .go {
    grid-row: 1 / 3;
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .hero-full {
    height: calc(100svh - var(--mbar));
    min-height: 600px;
  }

  .hero-full .wrap {
    padding-bottom: 40px;
  }

  .hero-full .sub {
    font-size: 15px;
  }

  .hero-full .ctas {
    margin-top: 28px;
  }

  .hero-full .ctas .btn {
    flex: 1;
  }

  .scroll-cue {
    display: none;
  }

  /* 产品与服务、新闻：横向滑动卡片，居中的完整显示，两侧略缩小（--cs / --co 由脚本设置） */
  .focus,
  .news {
    display: flex;
    gap: 12px;
    margin-inline: -20px;
    padding: 0 20px 6px;
    border-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .focus::-webkit-scrollbar,
  .news::-webkit-scrollbar {
    display: none;
  }

  .focus > .tile,
  .news > a {
    opacity: var(--co, 1);
    transform: scale(var(--cs, 1));
    transform-origin: 50% 60%;
    transition:
      transform 0.35s var(--ease),
      opacity 0.35s var(--ease);
    scroll-snap-align: start;
  }

  .focus > .tile {
    flex: 0 0 82%;
    min-height: 420px;
  }

  .tile.big {
    min-height: 420px;
  }

  .tile .cap h3 {
    font-size: 18px;
  }

  .tile.big .cap h3 {
    font-size: 20px;
  }

  .news > a {
    flex: 0 0 78%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  /* 四种表达系统：不用左侧固定画面，每项显示自己的配图 */
  .sf-visual {
    display: none;
  }

  .sf-item {
    gap: 14px;
    padding-block: 24px;
  }

  .sf-item .sf-img-wrap {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 6px;
  }

  .sf-item .sf-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
  }

  .sf-item .sf-img-wrap .sf-img {
    margin: 0;
    transform: scale(var(--ps, 1.15));
    transform-origin: 50% 50%;
    will-change: transform;
  }

  .sf-item h3 {
    font-size: 26px;
  }

  .sf-item .meta b {
    font-size: 36px;
  }

  .zoom {
    height: 190vh;
  }

  .zoom .stage {
    height: 100svh;
  }

  .zoom .frame {
    border-radius: calc(20px * (1 - var(--p, 0)));
  }

  .zoom .words {
    font-size: 46px;
  }

  .zoom .under {
    bottom: 14vh;
  }

  .svc-row {
    padding: 22px 0;
  }

  .svc-row h3 {
    font-size: 22px;
  }

  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logos div {
    height: 84px;
    padding: 12px;
  }

  .closing {
    padding-top: 72px;
  }

  .closing h2 {
    font-size: 40px;
  }

  .closing .row {
    margin-top: 32px;
    padding-bottom: 56px;
  }
}

@media (max-width: 640px) {
  .tile.big .pic {
    min-height: 240px;
  }
}
