/* =========================================================
   AYD · 首页样式 (AMAT / TEL Industrial Style)
   ========================================================= */

/* ===== HERO · 全屏艺术作品摄影（含视频） ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background-color: #E5E5E4;
  color: var(--ink);
  overflow: hidden;
}

/* Hero 背景视频 - 替代原来的 .hero::after */
.hero-video {
  position: absolute;
  top: 0;
  left: 50%;              /* 从屏幕中间开始 */
  right: auto;
  bottom: 0;
  width: 50%;
  max-width: 700px;
  background-color: #E5E5E4;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) var(--pad-x) 120px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-left {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--brand);
}

/* 核心标题 */
.hero-title {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
  color: var(--ink);
}
.hero-title .we {
  color: var(--brand);
  font-weight: 600;
  display: inline-block;
}
.hero-title .deliver {
  color: var(--ink);
  font-weight: 600;
}
.hero-title .carbon {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.hero-title .accent {
  color: var(--brand);
}
.hero-title .serif-en {
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-serif-en);
  letter-spacing: -0.01em;
}

.hero-cn {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  max-width: 600px;
}
.hero-cn .accent { color: var(--brand); }

.hero-sub {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-cta .btn-red {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}
.hero-cta .btn-red:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.hero-cta .link-arrow {
  color: var(--ink);
  border-color: var(--ink);
}
.hero-cta .link-arrow:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* ===== Hero 底部最新动态条 ===== */
.hero-meta-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 3;
  overflow: hidden;
}
.hero-meta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.meta-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(206,4,5,0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(206,4,5,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(206,4,5,0); }
  100% { box-shadow: 0 0 0 0 rgba(206,4,5,0); }
}

.meta-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 40px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.meta-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s;
}
.ticker-item:hover {
  color: var(--brand);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); }
}

.meta-ticker.ticker-static {
  mask-image: none;
  -webkit-mask-image: none;
}
.meta-ticker.ticker-static .ticker-track {
  animation: none;
  gap: 0;
}
.meta-ticker.ticker-static .ticker-item:nth-child(n+2) {
  display: none;
}

/* ========== 响应式 ========== */

/* 平板（≤ 1020px） */
@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }
  .hero-video {
    width: 55%;
    max-width: 420px;
  }
  .hero-inner {
    padding: 56px var(--pad-x) 120px;
    min-height: auto;
    align-items: center;
  }
  .hero-meta-bar { position: absolute; }
}

/* 手机（≤ 640px）——文字在上、图在下的纵向堆叠，不再绝对定位浮动 */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px var(--pad-x) 24px;
    gap: 8px;
  }

  .hero-left {
    max-width: 100%;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 64px);
    margin-bottom: 28px;
  }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-cn { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }

  .hero-cta {
    width: 100%;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* 视频/图：从绝对定位浮右下，改成文字下方正常流式居中 */
  .hero-video {
    order: 2;
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    max-width: min(300px, 78vw);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 28px;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: 1;
  }
  .hero-video video {
    object-fit: contain;
  }

  .hero-meta-bar {
    position: relative;
    order: 3;
  }

  .hero-meta-inner {
    padding: 12px var(--pad-x);
    gap: 14px;
    font-size: 12px;
  }
  .meta-label {
    padding-right: 14px;
  }
}

/* =========================================================
   以下为内页区块样式（保留给内页使用）
   ========================================================= */

/* ===== 关键指标带 ===== */
.stats-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; padding-right: 0; }
.stat-cell:not(:first-child) { padding-left: 32px; }
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}
.stat-num .unit {
  font-size: 0.5em;
  color: var(--ink-40);
  margin-left: 4px;
  font-weight: 400;
  letter-spacing: 0;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.5;
}
.stat-label .en {
  display: block;
  font-size: 11px;
  color: var(--ink-40);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cell {
    padding: 32px 16px !important;
    border-bottom: 1px solid var(--line);
  }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-right: 1px solid var(--line); }
}

/* ===== 简介陈述区 ===== */
.section-intro {
  padding: 120px 0;
  background: var(--paper);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.intro-label {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.intro-label .eyebrow { margin-bottom: 16px; }
.intro-label h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.intro-body h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--ink);
}
.intro-body h2 .accent { color: var(--brand); }
.intro-body p {
  font-size: 17px;
  color: var(--ink-60);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 680px;
}
.intro-body p:last-of-type { margin-bottom: 40px; }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-label { position: static; }
}

/* ===== 解决方案矩阵 ===== */
.section-solutions {
  padding: 120px 0;
  background: var(--surface);
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sol-card {
  background: var(--paper);
  padding: 48px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  grid-column: span 3;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-card:hover::before { transform: scaleX(1); }
.sol-card .sol-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-40);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.sol-card .sol-num .idx {
  color: var(--brand);
  margin-right: 12px;
}
.sol-card h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.sol-card .sol-en {
  font-size: 13px;
  color: var(--ink-40);
  margin-bottom: 20px;
  font-family: var(--font-serif-en);
  font-style: italic;
}
.sol-card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
  margin-bottom: 32px;
}
.sol-card .link-arrow {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.sol-card.sol-hero {
  grid-column: span 6;
  background: var(--ink);
  color: var(--paper);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
}
.sol-card.sol-hero:hover { background: #141824; }
.sol-card.sol-hero::before { display: none; }
.sol-card.sol-hero .sol-num { color: rgba(255,255,255,0.5); margin-bottom: 0; }
.sol-card.sol-hero h3 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sol-card.sol-hero .sol-en {
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  margin-bottom: 28px;
}
.sol-card.sol-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.sol-card.sol-hero .sol-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sol-card.sol-hero .link-arrow {
  color: var(--paper);
  border-color: var(--paper);
}
.sol-card.sol-hero .link-arrow:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.sol-card.sol-hero .sol-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-card.sol-hero .sol-visual svg {
  width: 100%;
  height: 100%;
  max-width: 380px;
}

@media (max-width: 1020px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-card { grid-column: span 1; padding: 32px 28px; min-height: 280px; }
  .sol-card.sol-hero {
    grid-column: span 2;
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
    min-height: auto;
  }
  .sol-card.sol-hero .sol-visual { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-card, .sol-card.sol-hero { grid-column: span 1; }
}

/* ===== 能力链 ===== */
.section-capability {
  padding: 120px 0;
  background: var(--paper);
}
.chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.chain li {
  padding: 48px 28px 0 0;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 320px;
}
.chain li:last-child { border-right: none; }
.chain li:not(:first-child) { padding-left: 28px; }
.chain .step-num {
  font-family: var(--font-serif-en);
  font-size: 14px;
  color: var(--brand);
  font-style: italic;
  display: block;
  margin-bottom: 32px;
  font-weight: 500;
}
.chain h4 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.chain .step-en {
  font-size: 12px;
  color: var(--ink-40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.chain .step-desc {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain li {
    padding: 32px 20px !important;
    border-bottom: 1px solid var(--line);
    min-height: auto;
  }
  .chain li:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .chain { grid-template-columns: 1fr; }
  .chain li { border-right: none !important; }
}

/* ===== 资质与荣誉 ===== */
.section-credentials {
  padding: 120px 0;
  background: var(--surface);
}
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.cred-left .eyebrow { margin-bottom: 32px; display: block; }
.cred-left h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cred-left h2 .accent { color: var(--brand); }
.cred-list {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.cred-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.cred-list li .cred-idx {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-size: 16px;
  color: var(--brand);
  font-weight: 500;
}
.cred-list li .cred-cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-40);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .cred-grid { grid-template-columns: 1fr; gap: 40px; }
  .cred-list li {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .cred-list li .cred-cat { display: none; }
}

/* ===== CTA 底部 ===== */
.section-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
}
.cta-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-grid h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 24px;
}
.cta-grid h2 .serif-en {
  color: var(--brand);
}
.cta-grid p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
}
.cta-grid p a {
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.cta-grid p a:hover { border-color: var(--paper); }

.cta-contacts {
  display: grid;
  gap: 24px;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}
.cta-contacts .c-item {
  display: grid;
  gap: 4px;
}
.cta-contacts .c-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.cta-contacts .c-value {
  font-size: 16px;
  color: var(--paper);
  font-weight: 500;
}
.cta-contacts .c-value a { color: var(--paper); }
.cta-contacts .c-value a:hover { color: var(--brand); }

@media (max-width: 1020px) {
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
}
