/* 这里只存放 index.html 所需的样式 */
:root {
  --brand: #ff6b35;
  --brand-light: #ff8c42;
  --bg: #0f1115;
  --surface: #1e2329;
  --text: #ffffff;
  --text-muted: #8b949e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 单屏首页：html/body 不滚动；仅 .index-scrollport 内可滚，避免双滚动条 */
html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior: none;
}

/* hero + 底部 1px：滚过首屏时触发 IO，用于暂停背景视频 */
.index-scrollport {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* 隐藏滚动条，仍可滑动 / 滚轮滚动 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.index-scrollport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.index-scroll-trigger {
  height: 1px;
  width: 100%;
  background-color: #000;
  flex-shrink: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  touch-action: manipulation;
}

/* 首页右上角固定 logo */
.index-floating-logo {
  position: fixed;
  top: clamp(14px, 3.5vh, 32px);
  right: clamp(16px, 4vw, 52px);
  z-index: 50;
  display: block;
  line-height: 0;
}

.index-floating-logo img {
  display: block;
  height: clamp(30px, 4.8vw, 46px);
  width: auto;
  max-width: min(44vw, 200px);
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.index-floating-logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 1000;
  justify-content: space-between;
}

.brand-logo { height: 40px; }
.brand-logo-center { height: 40px; }
.header-nav { display: flex; gap: 40px; }
.header-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.3s; }
.header-nav a:hover { color: var(--brand); }
.header-right { display: flex; align-items: center; }

/* Hero */
.hero {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  /* 底部留白，flex-end 对齐点上移，整块文案（三行区域）真正往上走 */
  padding-bottom: clamp(72px, 13vh, 200px);
  box-sizing: border-box;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to top, rgba(10, 11, 15, 1) 0%, rgba(10, 11, 15, 0.4) 30%, transparent 70%),
    linear-gradient(to right, rgba(10, 11, 15, 0.8) 0%, transparent 50%);
  z-index: 2;
}

.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  /* 内部仅保留少量底边距；整体上移靠 .hero 的 padding-bottom */
  padding: 0 clamp(20px, 8vw, 120px) clamp(8px, 1.5vh, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-left: 5vw; /* 与下方 MANGO SUPERCAR 同一左参考线 */
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-eyebrow {
  font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 500; /* 变细 */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
  border: none;
  background: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  backdrop-filter: none;
  margin-bottom: 0;
  transform: none;
  display: inline-flex;
  align-items: baseline;
}

.hero-eyebrow-highlight {
  font-size: clamp(24px, 4vw, 42px); /* 比 racing 大，比下面 mango(40-90px) 小 */
  font-weight: 800;
  margin-left: 16px; /* 往右一点 */
  font-style: italic; /* 字体倾斜 */
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* 流光渐变样式 */
  background: linear-gradient(90deg, #ff6b35, #ffcc6a, #ff6b35, #ffcc6a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 4s linear infinite;
  
  /* 发光阴影效果 */
  filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.5));
  
  transform: scaleX(1) scaleY(1);
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

.hero-title {
  font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 500; /* 变细 */
  line-height: 1;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
  white-space: nowrap;
  font-style: normal;
  color: #fff;
  transform: scaleX(0.7) scaleY(1.3);
  transform-origin: left;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primary {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--brand), #ff3b00);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn-primary:hover::after {
  animation: sweepLight 0.8s ease-in-out;
}

@keyframes sweepLight {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Animations */
.animate-in {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .header-left, .header-right { flex: 1; }
  .header-center { flex: 2; display: flex; justify-content: center; }
  .header-nav { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; height: 64px; }
  .brand-logo, .brand-logo-center { height: 32px; }
  .index-floating-logo img {
    height: clamp(26px, 9vw, 36px);
  }
  .hero {
    padding-bottom: clamp(56px, 16vh, 160px);
  }
  .hero-content {
    /* 与桌面一致：与 MANGO SUPERCAR 左对齐 */
    text-align: left;
    align-items: flex-start;
    margin-left: clamp(12px, 4vw, 5vw);
    padding-left: clamp(16px, 5vw, 32px);
    padding-right: clamp(16px, 5vw, 32px);
    padding-bottom: clamp(8px, 2vh, 24px);
    gap: 22px;
  }
  .hero-header {
    align-items: flex-start;
    width: 100%;
  }
  /* 移动端缩小 RACING COMFORTABLE… 英文行 */
  .hero-eyebrow {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: clamp(10px, 2.9vw, 14px);
    letter-spacing: 0.35px;
    flex-wrap: wrap;
    line-height: 1.35;
    text-align: left;
  }
  .hero-eyebrow::before { display: none; }
  /* 移动端缩小「芒果超跑」 */
  .hero-eyebrow-highlight {
    font-size: clamp(16px, 5.2vw, 24px);
    margin-left: 6px;
  }
  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.25px;
  }
  .hero-eyebrow-highlight {
    font-size: clamp(15px, 5vw, 20px);
    margin-left: 4px;
  }
}
