/*
 * YUAO WEBSITE STYLE — Tech Edition
 * 御螯科技 · 高科技感品牌视觉
 * 在典雅基础上融入 AI/科技元素
 */

/* ─── VARIABLES ────────────────────────────────────────────────── */
:root {
  --ink:         #0E0E09;
  --ink-mid:     #2C2C22;
  --ink-soft:    #5A5A48;
  --ink-faint:   #9A9A82;
  --cream:       #FAF7F2;
  --cream-mid:   #F2EDE4;
  --cream-dark:  #E6DFD4;
  --gold:        #A8782A;
  --gold-light:  #C9973E;
  --gold-bright: #D4AF60;
  --gold-faint:  #F5EDD8;
  --white:       #FFFFFF;

  /* ── 科技色系 ── */
  --ink-dark:    #070710;      /* Hero 深色背景 */
  --ink-deep:    #0D0D1A;      /* 深色区块背景 */
  --glow-gold:   rgba(212,175,96,0.35);
  --glow-gold-strong: rgba(212,175,96,0.65);
  --glow-cyan:  rgba(80,210,240,0.18);
  --grid-line:   rgba(168,120,42,0.07);
  --grid-line-strong: rgba(168,120,42,0.13);

  --font-serif:  'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-sans:   'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-latin:  'Cormorant Garamond', 'Garamond', serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ─── BASE & RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-light); }

img { display: block; max-width: 100%; }

/* ─── LAYOUT ───────────────────────────────────────────────────── */
.page-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 112px 80px;
}

.page-section + .page-section {
  border-top: 1px solid rgba(14,14,9,0.08);
}

@media (max-width: 768px) {
  .page-section { padding: 72px 40px; }
}
@media (max-width: 480px) {
  .page-section { padding: 56px 24px; }
}

/* ─── HEADER ───────────────────────────────────────────────────── */
.main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  background: rgba(7,7,16,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid rgba(168,120,42,0.12);
}

.main-header.scrolled {
  background: rgba(7,7,16,0.96);
  border-bottom: 1px solid rgba(168,120,42,0.18);
  padding: 16px 48px;
  box-shadow: 0 0 30px rgba(168,120,42,0.06), 0 2px 16px rgba(0,0,0,0.2);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo .logo-symbol {
  width: 28px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.header-logo:hover .logo-symbol {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px var(--glow-gold-strong));
}

.header-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.15em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.main-nav a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .main-header { padding: 18px 28px; }
  .main-header.scrolled { padding: 14px 28px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(7,7,16,0.97);
    border-bottom: 1px solid rgba(168,120,42,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 24px 28px;
    gap: 20px;
    align-items: flex-start;
  }
  .nav-toggle { display: block; }
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--ink-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 96px 96px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

/* 科技网格背景 */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* 纵向网格线 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      var(--grid-line-strong) 59px,
      var(--grid-line-strong) 60px
    ),
    /* 横向网格线 */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      var(--grid-line-strong) 59px,
      var(--grid-line-strong) 60px
    );
  animation: gridPulse 8s ease-in-out infinite;
}

/* 斜向动感线条 */
.hero-grid-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background:
    linear-gradient(125deg, transparent 35%, rgba(168,120,42,0.04) 50%, transparent 65%),
    linear-gradient(235deg, transparent 35%, rgba(80,210,240,0.02) 50%, transparent 65%);
  animation: gridShift 12s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}
@keyframes gridShift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%       { transform: translateX(8px) translateY(-4px); }
}

/* 浮动粒子 */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1)  { left: 8%;  top: 20%; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 18%; top: 70%; animation-duration: 11s; animation-delay: -3s; }
.particle:nth-child(3)  { left: 30%; top: 40%; animation-duration: 17s; animation-delay: -6s; }
.particle:nth-child(4)  { left: 45%; top: 15%; animation-duration: 13s; animation-delay: -2s; }
.particle:nth-child(5)  { left: 60%; top: 55%; animation-duration: 16s; animation-delay: -8s; }
.particle:nth-child(6)  { left: 72%; top: 30%; animation-duration: 12s; animation-delay: -4s; }
.particle:nth-child(7)  { left: 85%; top: 65%; animation-duration: 15s; animation-delay: -1s; }
.particle:nth-child(8)  { left: 92%; top: 10%; animation-duration: 18s; animation-delay: -7s; }
.particle:nth-child(9)  { left: 25%; top: 85%; animation-duration: 14s; animation-delay: -5s; }
.particle:nth-child(10) { left: 55%; top: 80%; animation-duration: 10s; animation-delay: -9s; }

@keyframes particleFloat {
  0%   { opacity: 0;    transform: translateY(0px) scale(1); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;    transform: translateY(-120px) scale(0.5); }
}

/* ── HERO 光扫：多层辉光拖尾 ────────────────────────────── */
.hero-scan-line {
  position: absolute;
  left: 0;
  top: -80px;
  width: 100%;
  height: 2px;
  pointer-events: none;
  /* 三层叠加：外晕 → 中光 → 亮核 */
  background:
    /* 亮核 */
    linear-gradient(90deg,
      transparent 0%,
      rgba(212,175,96,0.0)  8%,
      rgba(212,175,96,0.9)  48%,
      rgba(255,255,255,0.95) 50%,
      rgba(212,175,96,0.9)  52%,
      rgba(212,175,96,0.0)  92%,
      transparent 100%);
  animation: scanDown 6s ease-in-out infinite;
  z-index: 2;
}

/* 三层拖尾（叠加在扫线后面） */
.hero-scan-line::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,175,96,0.0)  5%,
    rgba(212,175,96,0.18) 48%,
    rgba(212,175,96,0.0) 95%,
    transparent 100%);
  animation: scanDown 6s ease-in-out infinite;
  top: -20px;
  z-index: 1;
  filter: blur(4px);
}

.hero-scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,175,96,0.0)  3%,
    rgba(212,175,96,0.06) 48%,
    rgba(212,175,96,0.0) 97%,
    transparent 100%);
  animation: scanDown 6s ease-in-out infinite;
  top: -40px;
  z-index: 0;
  filter: blur(10px);
}

@keyframes scanDown {
  0%   { top: -80px; opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 0.8; }
  100% { top: calc(100vh + 80px); opacity: 0; }
}

/* ── 全页滚动扫描线（随页面移动的主光条）──────────────────── */
.page-scan-line {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  z-index: 9999;
  /* 四层叠加：外辉 → 中辉 → 亮核 → 白尖 */
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(212,175,96,0.0)   5%,
      rgba(212,175,96,0.25) 47%,
      rgba(212,175,96,0.55) 49%,
      rgba(255,255,255,0.8) 50%,
      rgba(212,175,96,0.55) 51%,
      rgba(212,175,96,0.25) 53%,
      rgba(212,175,96,0.0)  95%,
      transparent 100%);
  filter: drop-shadow(0 0 6px rgba(212,175,96,0.5))
          drop-shadow(0 0 14px rgba(212,175,96,0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page-scan-line.active {
  opacity: 1;
}

/* ── SEC-NUM：数字流涌动效果 ─────────────────────────────── */
.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-shadow: 0 0 10px var(--glow-gold-strong);
  /* 默认脉冲呼吸 */
  animation: numPulse 3s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
  position: relative;
  transition: color 0.2s, text-shadow 0.2s;
}

/* 数字左右扫描高亮条 */
.sec-num::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212,175,96,0.6),
    transparent);
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

@keyframes numPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(212,175,96,0.4);
    color: var(--gold);
  }
  50% {
    text-shadow: 0 0 18px rgba(212,175,96,0.75), 0 0 35px rgba(212,175,96,0.2);
    color: var(--gold-bright);
  }
}

/* 激活态：数字流涌动 */
.sec-num.data-stream {
  animation: none;
  color: var(--gold-bright);
  text-shadow:
    0 0 12px rgba(212,175,96,0.9),
    0 0 28px rgba(212,175,96,0.5),
    0 0 50px rgba(212,175,96,0.2);
  letter-spacing: 0.35em;
}

.sec-num.data-stream::before {
  transform: translateY(-50%) scaleX(1);
  background: linear-gradient(90deg,
    transparent,
    rgba(212,175,96,0.8),
    rgba(255,255,255,0.9),
    rgba(212,175,96,0.8),
    transparent);
  animation: scanSweep 0.4s ease-out forwards;
}

@keyframes scanSweep {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* 数字流涌动关键帧（驱动 data-char） */
@keyframes dataStream {
  0%   { opacity: 0.4; letter-spacing: 0.5em; color: rgba(212,175,96,0.5); }
  30%  { opacity: 1;   letter-spacing: 0.45em; color: #fff; text-shadow: 0 0 20px rgba(212,175,96,1); }
  60%  { opacity: 0.8; letter-spacing: 0.3em;  color: var(--gold-bright); }
  80%  { opacity: 0.95; letter-spacing: 0.22em; color: var(--gold-bright); }
  100% { opacity: 1;   letter-spacing: 0.2em;  color: var(--gold); text-shadow: 0 0 10px var(--glow-gold-strong); }
}

/* 流数字效果：内部 span 快速替换 */
.sec-num-streaming {
  display: inline-block;
  animation: dataStream 0.6s ease-out forwards;
}

/* 径向光晕 */
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-glow-1 {
  top: -150px; left: 30%;
  background: radial-gradient(circle, rgba(168,120,42,0.12) 0%, transparent 70%);
}
.hero-glow-2 {
  bottom: 0; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(80,210,240,0.05) 0%, transparent 70%);
  animation-delay: -2.5s;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.08); }
}

/* 大装饰字符 */
.hero-section::after {
  content: '螯';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(280px, 35vw, 480px);
  font-weight: 300;
  color: rgba(255,255,255,0.018);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Hero 文字内容 */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.8;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 6px var(--glow-gold-strong);
}
.hero-eyebrow::after {
  content: 'AI AGENT GOVERNANCE';
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(212,175,96,0.5);
  border: 1px solid rgba(168,120,42,0.25);
  padding: 2px 8px;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(80px, 13vw, 140px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  /* 金色光晕文字效果 */
  text-shadow:
    0 0 40px rgba(212,175,96,0.15),
    0 0 80px rgba(212,175,96,0.05);
}

.hero-title em {
  font-style: normal;
  color: var(--gold-bright);
  text-shadow:
    0 0 20px rgba(212,175,96,0.5),
    0 0 50px rgba(212,175,96,0.2);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.15em;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.08em;
  line-height: 2;
  max-width: 520px;
  padding-top: 36px;
  border-top: 1px solid rgba(168,120,42,0.3);
  position: relative;
  z-index: 1;
}

.hero-tagline .sub-line {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  margin-top: 8px;
  display: block;
}

/* Hero 底部状态指示 */
.hero-status {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4AE3A7;
  box-shadow: 0 0 8px rgba(74,227,167,0.6);
  animation: statusBlink 2s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.hero-status span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-section { padding: 80px 40px 64px; justify-content: flex-end; }
  .hero-section::after { display: none; }
  .hero-status { display: none; }
}
@media (max-width: 480px) {
  .hero-section { padding: 80px 24px 56px; }
}

/* ─── SECTION HEADER ───────────────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  /* 发光效果 */
  text-shadow: 0 0 10px var(--glow-gold-strong);
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right,
    rgba(168,120,42,0.4) 0%,
    rgba(14,14,9,0.06) 60%);
}

.sec-title-en {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.sec-main-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin-bottom: 28px;
}

.sec-body-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 2.1;
  margin-bottom: 20px;
  max-width: 680px;
}

.sec-body-text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ─── SERVICES ─────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(14,14,9,0.06);
  margin-top: 56px;
  border: 1px solid rgba(168,120,42,0.15);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(168,120,42,0.04);
}

.services-grid .service-item:last-child {
  grid-column: 1 / -1;
}

.service-item {
  background: var(--cream);
  padding: 44px 40px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 顶部金色扫描线 */
.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: left 0.6s ease;
}
.service-item:hover::before {
  left: 100%;
}

.service-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transition: height 0.4s ease;
}
.service-item:hover::after {
  height: 100%;
}

.service-item:hover {
  background: #FDFBF6;
  box-shadow: inset 0 0 60px rgba(168,120,42,0.03);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-tag::before {
  content: '//';
  font-size: 9px;
  opacity: 0.5;
}

.service-item h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.service-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-item:last-child { grid-column: auto; }
  .service-item { padding: 32px 28px; }
}

/* ─── TEAM ─────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 40px;
  margin-top: 56px;
}

.team-member {
  text-align: center;
  transition: transform 0.3s ease;
}
.team-member:hover {
  transform: translateY(-4px);
}

.team-member-photo-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  position: relative;
}

.team-member-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(168,120,42,0.25);
  box-shadow: 0 0 12px rgba(168,120,42,0.08);
}

.team-member-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream-dark);
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member:hover .team-member-photo {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(168,120,42,0.15);
}

.team-member-photo.pos-top {
  object-position: center 20%;
}

.team-member h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.team-member .title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.team-member .bio {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.95;
  text-align: left;
}

/* ─── PULL QUOTE ───────────────────────────────────────────────── */
.pull-quote {
  margin: 64px 0;
  padding: 56px 64px;
  background: var(--ink-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168,120,42,0.12);
  box-shadow:
    0 0 60px rgba(168,120,42,0.05),
    inset 0 0 60px rgba(0,0,0,0.3);
}

/* 科技感引号背景 */
.pull-quote::before {
  content: '"';
  font-family: var(--font-latin);
  font-size: 160px;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.12;
  position: absolute;
  top: -20px; left: 32px;
  line-height: 1;
  pointer-events: none;
}

/* 右上角电路风格装饰 */
.pull-quote::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  border-top: 1px solid rgba(168,120,42,0.15);
  border-right: 1px solid rgba(168,120,42,0.15);
  border-top-right-radius: 0;
  pointer-events: none;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.pull-quote .attr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-top: 28px;
  display: block;
  text-align: right;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .pull-quote { padding: 40px 32px; }
  .pull-quote p { font-size: 18px; }
}

/* ─── FOOTER NAV ──────────────────────────────────────────────── */
.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer-nav-links a:hover {
  color: var(--gold-bright);
  border-bottom-color: rgba(168,120,42,0.4);
}

/* ─── FOOTER ───────────────────────────────────────────────────── */
.main-footer {
  background: #06060F;
  color: rgba(255,255,255,0.38);
  padding: 80px 96px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 底部电路板风格网格 */
.main-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(168,120,42,0.04) 39px,
      rgba(168,120,42,0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(168,120,42,0.04) 39px,
      rgba(168,120,42,0.04) 40px
    );
  pointer-events: none;
}

/* 顶部金色指示线 */
.main-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.35;
  box-shadow: 0 0 10px rgba(212,175,96,0.3);
}

.footer-contact h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.footer-contact p {
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 2.1;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}

.footer-contact a {
  display: inline-block;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(168,120,42,0.35);
  padding: 8px 24px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  background: rgba(168,120,42,0.05);
}

.footer-contact a:hover {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(168,120,42,0.12);
  box-shadow: 0 0 20px rgba(168,120,42,0.2), inset 0 0 20px rgba(168,120,42,0.05);
}

.footer-bottom {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  line-height: 2;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .main-footer { padding: 64px 40px 48px; }
}
@media (max-width: 480px) {
  .main-footer { padding: 56px 24px 40px; }
}

/* ─── SCROLL FADE-IN ANIMATION ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 科技感辅助类 ─────────────────────────────────────────────── */
.glow-text {
  text-shadow: 0 0 20px var(--glow-gold-strong);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid rgba(168,120,42,0.25);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
}


/* ─── LOGO WALL ──────────────────────────────────────────────────── */
.logo-wall {
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(28px, 3vw, 48px);
  background: var(--cream);
  border-top: 1px solid rgba(22,22,14,0.08);
  border-bottom: 1px solid rgba(22,22,14,0.08);
  position: relative;
}

.logo-wall-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.logo-wall-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 80px;
  flex-shrink: 0;
}

.logo-wall-track {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
  flex-shrink: 0;
}

.logo-wall-item:hover {
  transform: scale(1.8);
  opacity: 1;
  z-index: 100;
}

.logo-wall-item img {
  display: block !important;
  height: 44px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
}

/* 深色背景 logo（夏屋/华中科大）：白色底盒衬托 */
.logo-wall-item img.logo-on-dark {
  background: #fff;
  padding: 10px 16px;
  height: 38px;
}

.logo-wall-divider {
  height: 1px;
  background: rgba(22,22,14,0.06);
  margin: clamp(24px, 3vw, 40px) 0;
}

/* ─── 响应式：平板 & 手机 ─── */
@media (max-width: 900px) {
  .logo-wall-track {
    gap: 36px;
  }
  .logo-wall-item img {
    height: 38px;
    max-width: 130px;
  }
}

@media (max-width: 640px) {
  .logo-wall-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .logo-wall-label {
    min-width: unset;
    font-size: 10px;
    color: var(--gold);
  }
  .logo-wall-track {
    gap: clamp(18px, 6vw, 28px);
  }
  .logo-wall-item img {
    height: 30px;
    width: auto;
  }
  .logo-wall-item img.logo-on-dark {
    height: 26px;
    padding: 7px 12px;
  }
}

/* ─── H5 小屏极端优化 ─── */
@media (max-width: 375px) {
  .logo-wall {
    padding: 20px 16px;
  }
  .logo-wall-label {
    font-size: 9px;
  }
  .logo-wall-track {
    gap: 16px;
  }
  .logo-wall-item img {
    height: 26px;
    width: auto;
  }
}
