/* URA 风格主题：深蓝斜向面板与白色编辑面 */
.tech-theme {
  --accent: var(--navy-3);
  --accent-glow: rgba(34, 62, 108, 0.12);
}

.tech-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 112px;
  background:
    linear-gradient(118deg, rgba(13, 23, 40, 0.98) 0%, rgba(22, 42, 75, 0.96) 46%, rgba(34, 62, 108, 0.92) 100%),
    linear-gradient(90deg, #0d1728 0%, #223e6c 100%);
  color: #ffffff;
}

.tech-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -90px;
  width: 520px;
  height: 520px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 0 100%);
  pointer-events: none;
}

.tech-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 92px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 62%, #eef3fa 62%, #eef3fa 100%);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 100%);
  pointer-events: none;
}

.tech-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 760px;
}

.tech-hero .eyebrow {
  margin-bottom: 14px;
}

.tech-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.04;
}

.tech-hero p.lead {
  max-width: 660px;
  margin: 0 0 30px;
  color: #c9d5e8;
  font-size: 16px;
  line-height: 1.8;
}

.tech-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-hero-actions .btn {
  min-height: 48px;
  padding: 0 24px;
}

.tech-hero-actions .btn.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #12141d;
  box-shadow: 0 12px 26px rgba(18, 20, 29, 0.24);
}

.tech-hero-actions .btn.primary:hover {
  background: #eef3fa;
  border-color: #eef3fa;
}

.tech-hero-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.tech-hero-actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

/* 统计数字 */
.tech-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: -40px auto 0;
}

.tech-stat {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(18, 20, 29, 0.12);
  text-align: left;
}

.tech-stat::before {
  content: "";
  position: absolute;
  right: -14px;
  top: -14px;
  width: 68px;
  height: 68px;
  background: var(--navy-soft);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.tech-stat strong {
  position: relative;
  display: block;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}

.tech-stat span {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* 区块 */
.tech-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.tech-section {
  padding: 48px 0 22px;
}

.tech-section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-left: 18px;
  color: #000000;
  font-size: 1.5rem;
  font-weight: 900;
}

.tech-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 30px;
  background: var(--red);
  transform: translateY(-50%) skewX(-14deg);
}

/* 轮播 */
.tech-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.tech-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.tech-carousel-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.tech-carousel-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 200px;
  max-height: 330px;
  background: var(--navy);
}

.tech-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #162a4b, #0d1728);
  opacity: 1;
}

.tech-carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px clamp(24px, 5vw, 64px);
  background: linear-gradient(90deg, rgba(13, 23, 40, 0.94) 0%, rgba(18, 31, 58, 0.78) 48%, rgba(18, 31, 58, 0.08) 100%);
  color: #ffffff;
}

.tech-carousel-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
  transform: skewX(-14deg);
}

.tech-carousel-overlay h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
}

.tech-carousel-overlay p {
  max-width: 560px;
  margin: 0 0 18px;
  color: #d2dceb;
  font-size: 15px;
  line-height: 1.7;
}

.tech-carousel-overlay .btn {
  align-self: flex-start;
  background: #ffffff;
  border-color: #ffffff;
  color: #12141d;
}

.tech-carousel-overlay .btn:hover {
  background: #eef3fa;
  border-color: #eef3fa;
  color: #12141d;
}

.tech-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.tech-carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.tech-carousel-dot.active {
  width: 24px;
  background: var(--red);
}

/* 轮播左右切换按钮 */
.tech-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(18, 20, 29, 0.58);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.tech-carousel-nav:hover {
  background: rgba(18, 20, 29, 0.82);
  border-color: var(--red);
}

.tech-carousel-prev {
  left: 16px;
}

.tech-carousel-next {
  right: 16px;
}

/* 图库 */
.tech-gallery {
  display: flex;
  gap: 14px;
  padding: 4px 20px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.tech-gallery::-webkit-scrollbar {
  display: none;
}

.tech-gallery.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.tech-gallery-item {
  position: relative;
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tech-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(18, 20, 29, 0.12);
}

.tech-gallery-item::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 54px;
  height: 54px;
  background: var(--red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.tech-media-stage {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #0d1728;
}

.tech-media-poster,
.tech-media-stage video,
.tech-media-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: #000000;
}

.tech-media-stage video {
  object-fit: contain;
}

.tech-video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #162a4b 0%, #0d1728 72%);
}

.tech-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 20, 29, 0.78);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 20, 29, 0.28);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.tech-video-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
}

.tech-video-play:hover {
  background: var(--red);
}

.tech-gallery-caption {
  padding: 15px 16px;
  color: #2a2f38;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

/* 精彩瞬间轮播大图 */
.tech-gallery-carousel {
  background: var(--navy);
}

.tech-gallery-slide {
  min-width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 200px;
  max-height: 330px;
  overflow: hidden;
  background: var(--navy);
}

.tech-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #162a4b, #0d1728);
  opacity: 1;
}

.tech-gallery-slide .tech-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 24px 18px;
  background: linear-gradient(0deg, rgba(13, 23, 40, 0.86) 0%, rgba(13, 23, 40, 0.16) 72%, transparent 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

/* 首页和报名页共用同一套轮播展示 */
.page-home .tech-gallery-item,
.page-apply .tech-gallery-item {
  flex: 0 0 min(82vw, 480px);
}

.page-home .tech-media-stage,
.page-apply .tech-media-stage {
  aspect-ratio: 21 / 9;
}

/* 空状态 */
.tech-empty {
  padding: 42px 20px;
  border: 1px dashed #b8c1cf;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
}

.tech-hidden {
  display: none !important;
}

/* 首页登录卡片 */
.tech-theme .auth-card {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(18, 20, 29, 0.1);
}

.tech-theme .auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 24%, var(--navy-3) 24% 62%, var(--navy) 62% 100%);
}

.tech-theme .auth-card h2 {
  margin: 6px 0 10px;
  font-size: 1.7rem;
}

.tech-theme .auth-form input {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: #2a2f38;
}

.tech-theme .auth-form input:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(34, 62, 108, 0.14);
}

@media (max-width: 720px) {
  .topbar {
    position: sticky;
    top: 0;
  }

  .tech-hero,
  .tech-stats {
    display: none;
  }

  .tech-container {
    width: min(100% - 24px, 1200px);
  }

  .tech-section {
    padding: 34px 0 18px;
  }

  .tech-section-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .tech-theme .auth-card {
    padding: 26px 20px;
  }

  .tech-carousel-slide {
    aspect-ratio: 16 / 9;
    min-height: 170px;
    max-height: 260px;
  }

  .tech-carousel-overlay {
    padding: 22px;
    justify-content: flex-end;
  }

  .tech-carousel-overlay p {
    margin-bottom: 14px;
  }

  .tech-carousel-overlay .btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .tech-carousel-dots {
    bottom: 14px;
  }

  .tech-carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .tech-carousel-prev {
    left: 10px;
  }

  .tech-carousel-next {
    right: 10px;
  }

  .tech-gallery {
    gap: 12px;
    padding: 4px 16px 18px;
    scroll-padding-left: 16px;
  }

  .tech-gallery-item {
    flex-basis: 76vw;
  }

  .page-home .tech-gallery-item,
  .page-apply .tech-gallery-item {
    flex-basis: 84vw;
  }

  .page-home .tech-media-stage,
  .page-apply .tech-media-stage {
    aspect-ratio: 16 / 10;
  }
}
