/* ============================================================
   与飞同行 · 首页 v3
   在 style.css 的深色金调基础上重做首屏与信息结构
   只被 index.html 引用，不影响其他页面
   ============================================================ */

/* ============ 首屏 ============ */
.hero-v3 {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-v3::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.13), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--gold-light);
  border: 1px solid var(--card-border);
  background: rgba(212, 175, 55, 0.07);
  margin-bottom: 30px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.hero-copy h1 {
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-copy h1 .line-2 {
  display: block;
  margin-top: 6px;
}

.hero-copy .subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-copy .subtitle b {
  color: var(--gold-pale);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 首屏悬浮截图组 ============ */
.shot-stage {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  height: 430px;
  margin: 56px auto 0;
  padding: 0 24px;
  perspective: 1400px;
}

.shot-stage .s {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow:
    0 34px 70px -18px rgba(0, 0, 0, 0.8),
    0 0 42px rgba(212, 175, 55, 0.12);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, border-color 0.5s;
  will-change: transform;
}

.shot-stage .s img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-stage .s::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 22, 0.55));
  pointer-events: none;
}

.shot-stage .s-main {
  width: 460px;
  height: 300px;
  left: 50%;
  top: 24px;
  margin-left: -230px;
  z-index: 3;
  animation: floatY 7s ease-in-out infinite;
}

.shot-stage .s-left {
  width: 320px;
  height: 250px;
  left: 6%;
  top: 62px;
  transform: rotate(-7deg);
  z-index: 2;
  animation: floatY 8.5s ease-in-out infinite 0.6s;
}

.shot-stage .s-right {
  width: 320px;
  height: 250px;
  right: 6%;
  top: 62px;
  transform: rotate(7deg);
  z-index: 2;
  animation: floatY 8.5s ease-in-out infinite 1.2s;
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.shot-stage .s:hover {
  z-index: 9;
  transform: rotate(0deg) scale(1.06);
  border-color: var(--card-border-hi);
  box-shadow:
    0 46px 90px -18px rgba(0, 0, 0, 0.9),
    0 0 64px rgba(212, 175, 55, 0.3);
}

.shot-stage .s-tag {
  position: absolute;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(6, 10, 30, 0.88);
  color: var(--gold-light);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.s-main .s-tag { top: 12px; left: 12px; }
.s-left .s-tag { bottom: 12px; left: 12px; }
.s-right .s-tag { bottom: 12px; right: 12px; }

/* ============ 数据条 ============ */
.metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.metric {
  padding: 22px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }

.metric .n {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric .n small {
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
  color: var(--gold-light);
}

.metric .t {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--text-low);
}

/* ============ 能力矩阵 ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  background: linear-gradient(160deg, var(--card-top), var(--card-bot));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: var(--card-shadow);
  transition: transform .35s cubic-bezier(0.22,1,0.36,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.tile:hover {
  transform: translateY(-10px);
  border-color: var(--card-border-hi);
  box-shadow: var(--card-shadow-hi);
}

.tile .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
}

.tile .ico svg { width: 21px; height: 21px; }

.tile h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.tile p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-low);
  min-height: 3.4em;
}

.tile .cnt {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--gold);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
}

/* ============ 工具展示 ============ */
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tool {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  background: var(--card-bot);
  transition: transform .4s cubic-bezier(0.22,1,0.36,1), box-shadow .4s, border-color .4s;
}

.tool:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hi);
  box-shadow: var(--card-shadow-hi);
}

.tool img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.tool .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 24, 0.94) 58%);
}

.tool .cap h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tool .cap p {
  font-size: 12.5px;
  color: var(--text-low);
  line-height: 1.6;
}

/* ============ 学员见证墙 ============ */
.wall {
  columns: 5;
  column-gap: 16px;
}

.wall figure {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  transition: transform .35s cubic-bezier(0.22,1,0.36,1), box-shadow .35s, border-color .35s;
  background: var(--card-bot);
}

.wall figure:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--card-border-hi);
  box-shadow: var(--card-shadow-hi);
  z-index: 2;
}

.wall img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.wall img.tall { height: 380px; }

.wall figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--gold-pale);
  background: linear-gradient(180deg, transparent, rgba(6, 10, 24, 0.92));
}

/* ============ 课程卡（弱化，移除价格冲击） ============ */
.course {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.course .card {
  padding: 30px 28px;
}

.course h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}

.course ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.course ul li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.course ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wall { columns: 4; }
  .shot-stage { height: 380px; }
  .shot-stage .s-main { width: 380px; height: 250px; margin-left: -190px; }
  .shot-stage .s-left, .shot-stage .s-right { width: 260px; height: 205px; }
}

@media (max-width: 860px) {
  .tools, .course { grid-template-columns: 1fr; }
  .wall { columns: 3; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .hero-v3 { padding-top: 48px; }
  .grid-4 { grid-template-columns: 1fr; }
  .wall { columns: 2; }
  .wall img { height: 240px; }
  .wall img.tall { height: 300px; }

  .shot-stage {
    height: 300px;
    margin-top: 40px;
  }
  .shot-stage .s-main {
    width: 78%;
    height: 200px;
    left: 11%;
    margin-left: 0;
    top: 8px;
  }
  .shot-stage .s-left,
  .shot-stage .s-right {
    width: 46%;
    height: 150px;
    top: 120px;
  }
  .shot-stage .s-left { left: -4%; }
  .shot-stage .s-right { right: -4%; }
  .shot-stage .s-tag { display: none; }
}

/* ============ 补位 ============ */
.shot-stage .s:hover { animation-play-state: paused; }

.search-bar {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 34px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(10, 17, 40, 0.72);
  border: 1px solid var(--card-border);
  color: var(--text-hi);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}

.search-bar input::placeholder { color: var(--text-low); }

.search-bar input:focus {
  border-color: var(--card-border-hi);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.search-bar .btn {
  height: 48px;
  padding: 0 28px;
  font-size: 14px;
  flex: none;
}

.cta-card {
  text-align: center;
  padding: 52px 30px;
  border-color: var(--card-border-hi);
}

.cta-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
  font-weight: 800;
}

.cta-card p {
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 14.5px;
  line-height: 1.8;
}

.footer-brand { margin-bottom: 10px; }
.footer-brand .name { font-size: 17px; }
.footer-col a { display: block; margin-bottom: 8px; }

/* 首屏压缩 + 侧图收敛 */
.hero-v3 { padding-top: 58px; }

.shot-stage {
  height: 392px;
  margin-top: 42px;
}

.shot-stage .s-left img,
.shot-stage .s-right img {
  
}

.shot-stage .s-main img {
  filter: saturate(1.04) contrast(1.02);
}

/* ============ 工具区：大图 + 列表 ============ */
.tool-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.tf-shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 56px rgba(212, 175, 55, 0.1);
  transition: transform .45s cubic-bezier(0.22,1,0.36,1), box-shadow .45s, border-color .45s;
}

.tf-shot:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hi);
  box-shadow:
    0 52px 96px -24px rgba(0, 0, 0, 0.9),
    0 0 72px rgba(212, 175, 55, 0.22);
}

.tf-shot img {
  width: 100%;
  display: block;
}

.tf-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(6, 10, 30, 0.82);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.tf-list {
  display: grid;
  gap: 4px;
}

.tf-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s, background .3s;
}

.tf-item:last-child { border-bottom: 0; }

.tf-item:hover { padding-left: 8px; background: rgba(212, 175, 55, 0.04); }

.tf-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  padding-top: 3px;
}

.tf-item h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.tf-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-low);
}

@media (max-width: 960px) {
  .tool-feature { grid-template-columns: 1fr; }
}

/* 学员墙修正：去掉遮挡文字，改错落高度 */
.wall figcaption { display: none; }

.wall figure::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 24, 0.78));
  pointer-events: none;
}

.wall img { height: 300px; }
.wall img.tall { height: 356px; }

/* 节奏收紧 */
.section { padding: 62px 0; }

/* 免费资料封面：统一比例 + 暗化融入夜色 */
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.82) contrast(1.08) saturate(0.9);
  transition: transform .5s cubic-bezier(0.22,1,0.36,1), filter .5s;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.06) 30%, rgba(10, 17, 40, 0.72) 100%);
  pointer-events: none;
}

.cover-card:hover .cover img {
  transform: scale(1.05);
  filter: brightness(0.95) contrast(1.05) saturate(1);
}

/* 学员墙轻微降饱和 */
.wall img { }
.wall figure:hover img { filter: saturate(1) brightness(1.02); }

/* 文字封面 */
.cover.ph {
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(64, 104, 200, 0.28), transparent 62%),
    linear-gradient(150deg, #1b2a52, #0b1228);
  border-bottom: 1px solid var(--line);
}

.cover.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
}

.cover.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 110%, rgba(212, 175, 55, 0.16), transparent 70%);
}

.ph-t {
  position: relative;
  z-index: 1;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(212, 175, 55, 0.34);
  transition: color .4s, transform .4s;
}

.cover-card:hover .ph-t {
  color: rgba(212, 175, 55, 0.72);
  transform: scale(1.06);
}

.ph-cat {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 15px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--gold);
  opacity: 0.85;
}

.course h3 {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  line-height: 1.5;
}

/* 移动端修正 */
@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 30px;
    letter-spacing: 0;
  }

  .hero-copy .subtitle {
    font-size: 14px;
  }

  .shot-stage {
    height: 232px;
    margin-top: 34px;
    padding: 0 20px;
  }

  .shot-stage .s-left,
  .shot-stage .s-right {
    display: none;
  }

  .shot-stage .s-main {
    position: relative;
    width: 100%;
    height: 220px;
    left: 0;
    top: 0;
    margin-left: 0;
  }

  .metric .n { font-size: 26px; }
}
