/* ============================================
   Tesla-Style - 锐科吉讯 官网
   Inspired by tesla.cn
   ============================================ */

/* ---- Reset & Base ---- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #fff; background: #000; overflow-x: hidden;
}
a { color: inherit; text-decoration: none }

/* ---- Navigation ---- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0 24px; transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled { background: #fff; color: #171a20; box-shadow: 0 1px 4px rgba(0,0,0,.1) }
.header-inner {
  max-width: 1200px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; height: 56px;
}
.logo { font-size: 20px; font-weight: 600; letter-spacing: 1px }
.desktop-nav { display: none; gap: 32px }
.desktop-nav a { font-size: 14px; font-weight: 500; position: relative; padding: 4px 0; transition: opacity .2s }
.desktop-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: currentColor; transition: width .3s;
}
.desktop-nav a:hover::after { width: 100% }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: .3s }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.menu-toggle.active span:nth-child(2) { opacity: 0 }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.mobile-nav {
  display: none; position: fixed; top: 0; right: 0; width: 300px;
  height: 100vh; background: #fff; color: #171a20; flex-direction: column;
  padding: 80px 32px 32px; gap: 24px;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -4px 0 12px rgba(0,0,0,.15);
}
.mobile-nav.open { display: flex; transform: translateX(0) }
.mobile-nav a { font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid #eee }

/* ---- Hero ---- */
.section.hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(0,100,200,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 20%, rgba(0,50,150,.2) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0d0d2b 100%);
}
.hero-sub { font-size: 16px !important; letter-spacing: 2px; color: rgba(255,255,255,.6) !important }
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .5;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%,100% { transform: translateX(-50%) translateY(0) }
  50% { transform: translateX(-50%) translateY(8px) }
}
.hero-scroll-hint span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase }

/* ---- Product Wrap (Hero + Spec) ---- */
.product-wrap { position: relative; width: 100% }

/* Product Hero (full-screen video section) */
.product-hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.product-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

/* ---- Shared Section Content ---- */
.section-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 640px; padding: 24px; display: flex;
  flex-direction: column; align-items: center; gap: 16px;
}
.section-content h1 {
  font-size: clamp(36px,7vw,64px); font-weight: 600;
  line-height: 1.1; letter-spacing: -.03em;
}
.section-content h2 {
  font-size: clamp(26px,4.5vw,44px); font-weight: 600;
  line-height: 1.15; letter-spacing: -.02em;
}
.section-content p {
  font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.7);
  max-width: 460px;
}
.product-label {
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ---- Buttons ---- */
.section-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; justify-content: center }
.btn {
  display: inline-block; padding: 11px 36px; border-radius: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: .5px;
  cursor: pointer; transition: all .2s; border: 2px solid transparent;
  min-width: 150px; text-align: center;
}
.btn-primary { background: rgba(255,255,255,.9); color: #171a20; border-color: rgba(255,255,255,.9) }
.btn-primary:hover { background: #fff; border-color: #fff }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45) }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1) }

/* ---- Product Specs Section ---- */
.product-spec {
  background: #fff; color: #171a20;
  padding: 80px 24px;
}
.spec-inner { max-width: 1000px; margin: 0 auto }
.spec-title {
  text-align: center; font-size: 28px; font-weight: 600;
  margin-bottom: 48px; letter-spacing: -.01em;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.spec-card {
  background: #fff; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.spec-card:nth-child(4n) { border-right: none }
.spec-card:hover { background: #f8f8f8 }
.spec-grid .spec-card:nth-last-child(-n+4) { border-bottom: none }
.spec-key {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(23,26,32,.5);
}
.spec-val {
  font-size: 16px; font-weight: 500; color: #171a20;
}
.spec-placeholder { visibility: hidden; border: none; background: transparent !important; padding: 0; min-height: 0; pointer-events: none }
.spec-grid-close { grid-template-columns: repeat(4, 1fr) }
.spec-grid-medium { grid-template-columns: repeat(4, 1fr) }
.spec-grid-far { grid-template-columns: repeat(4, 1fr) }
@media (max-width: 767px) {
  .spec-grid-close { grid-template-columns: repeat(2, 1fr) }
  .spec-grid-medium { grid-template-columns: repeat(2, 1fr) }
  .spec-grid-far { grid-template-columns: repeat(2, 1fr) }
}
.spec-card {
  background: #fff; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .2s;
}
.spec-card:hover { background: #f8f8f8 }
.spec-key {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(23,26,32,.5);
}
.spec-val {
  font-size: 16px; font-weight: 500; color: #171a20;
}

/* ---- Scene Section ---- */
.scene-section {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; overflow: hidden;
  background: #000;
  padding: 120px 24px 80px;
}
.scene-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .35;
}
.scene-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.8) 100%);
  pointer-events: none;
}
.scene-desc {
  font-size: 16px !important; max-width: 520px !important;
}

.scene-cards {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  width: 100%;
  margin: 40px auto 0;
  padding: 0 24px;
}
.scene-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s, border-color .3s, background .3s;
}
.scene-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.scene-card-num {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.2);
  letter-spacing: 2px;
}
.scene-card h3 {
  font-size: 18px; font-weight: 500;
  color: #fff;
  letter-spacing: -.3px;
}
.scene-card p {
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,.5);
  max-width: 100%;
  margin: 0;
}
.scene-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.scene-card-tags span {
  font-size: 11px; font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 4px 12px; border-radius: 3px;
  letter-spacing: .3px;
}

/* ---- Power Section ---- */
.power-section {
  background: linear-gradient(135deg, #0a0a1a 0%, #111128 50%, #0d0d2b 100%);
  min-height: 80vh; height: auto;
  padding: 120px 24px 100px;
  display: flex; flex-direction: column; align-items: center;
}
.power-section .section-content h2 { white-space: nowrap }
@media (max-width: 480px) { .power-section .section-content h2 { white-space: normal; font-size: clamp(18px,4vw,26px) } }
.power-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  width: 100%;
  margin: 48px auto 0;
  padding: 0 24px;
}
.power-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 36px 28px 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
  transition: transform .3s, border-color .3s, background .3s;
}
.power-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
.power-val {
  font-size: clamp(24px,3.5vw,36px);
  font-weight: 600; color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.power-label {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.35);
  letter-spacing: 2px; text-transform: uppercase;
}
.power-desc {
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,.5);
  max-width: 100%;
}

/* ---- About ---- */
.section.about {
  background: linear-gradient(135deg, #0a0a1a, #111128, #0d0d2b);
  min-height: 80vh; height: auto; padding: 120px 24px 80px;
}
.about .section-content {
  gap: 28px;
  margin: 0 auto;
}
.about-text {
  font-size: 16px !important; line-height: 1.9 !important;
  max-width: 560px !important; color: rgba(255,255,255,.8) !important;
  text-align: center !important;
}
.contact-cards {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 480px; margin: 8px auto 0;
}
.contact-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
}
.contact-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}

/* ---- Footer ---- */
.site-footer {
  background: #000; border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 8px;
}
.footer-copyright { font-weight: 600; color: rgba(255,255,255,.6) }
.footer-links { display: flex; gap: 24px }
.footer-links a:hover { color: rgba(255,255,255,.7) }
.footer-icp a { color: rgba(255,255,255,.45); text-decoration: none; font-weight: 400 }
.footer-icp a:hover { color: rgba(255,255,255,.8) }

/* ---- Animations ---- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0) }

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .desktop-nav { display: flex }
  .menu-toggle { display: none }
  .header-inner { height: 60px }
  .section-content { gap: 20px }
  .section-content p { font-size: 16px }
  .btn { padding: 13px 44px; font-size: 15px; min-width: 170px }
  .spec-grid { grid-template-columns: repeat(4, 1fr) }
  .spec-grid-close { grid-template-columns: repeat(4, 1fr) }
  .spec-grid-medium { grid-template-columns: repeat(4, 1fr) }
  .spec-grid-far { grid-template-columns: repeat(4, 1fr) }
}
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr) }
}
@media (max-width: 767px) {
  .mobile-nav.open { display: flex }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 4px }
  .spec-grid { grid-template-columns: repeat(2, 1fr) }
}
