/* ============ XXD TECH 智能科技官网样式 ============ */
:root {
  --bg: #060d1f;
  --bg-soft: #0a1530;
  --card: #0e1a3a;
  --card-border: rgba(56, 130, 246, 0.18);
  --text: #e8eefc;
  --text-dim: #8ba0c9;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-3: #38bdf8;
  --gradient: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  --shadow: 0 20px 50px rgba(0, 10, 40, 0.45);
  --radius: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 13, 31, 0.78);
  border-bottom: 1px solid rgba(56, 130, 246, 0.10);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 8px 30px rgba(0, 10, 40, 0.12); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; }
.logo img {
  height: 40px; width: auto; display: block;
  background: #fff; padding: 5px 12px; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 10, 40, 0.14);
  transition: transform 0.25s;
}
.logo:hover img { transform: scale(1.04); }
.footer-tag .footer-logo {
  height: 64px; width: auto; margin: 0 auto;
  background: #fff; padding: 8px 18px; border-radius: 14px;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.95rem; color: var(--text-dim);
  transition: color 0.25s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gradient);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

/* ---------- 语言切换器 ---------- */
.lang-switcher {
  display: flex; gap: 4px;
  background: rgba(56, 130, 246, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 999px; padding: 4px;
}
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font-size: 0.82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  transition: all 0.25s; font-family: var(--font);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--gradient); color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

/* ---------- Hero 轮播 ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  background: var(--bg);
  transform: scale(1);
}
.slide.active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(6, 13, 31, 0.92) 10%,
    rgba(6, 13, 31, 0.70) 45%,
    rgba(6, 13, 31, 0.15) 75%);
}
.slide-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.slide-content h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 0.9rem;
  max-width: 40rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.slide-tag {
  font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600;
  margin-bottom: 2.2rem;
  background: linear-gradient(120deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-badge {
  display: inline-block; width: fit-content;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.30);
  background: rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(6px);
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px;
  border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(59, 130, 246, 0.5); }
.btn-ghost {
  border: 1px solid rgba(56, 130, 246, 0.30); color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.14); }

/* 轮播控制 */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(56, 130, 246, 0.2);
  background: rgba(6, 13, 31, 0.5);
  backdrop-filter: blur(8px);
  color: var(--text); font-size: 1.2rem; cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.carousel-btn:hover { background: rgba(59, 130, 246, 0.2); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 26px; }
.carousel-btn.next { right: 26px; }
.carousel-dots {
  position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 10px;
}
.dot {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: rgba(56, 130, 246, 0.25); cursor: pointer;
  transition: all 0.35s;
}
.dot:hover { background: rgba(56, 130, 246, 0.45); }
.dot.active { width: 30px; background: var(--accent); box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.12em;
  animation: pulse-hint 2s infinite;
}
@keyframes pulse-hint { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- 通用 section ---------- */
section { padding: 96px 0; }
.section-label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.7rem;
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 0.8rem; }
.section-sub { color: var(--text-dim); max-width: 42rem; margin-bottom: 3rem; }

/* ---------- 产品卡片 ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 24px 60px rgba(0, 10, 40, 0.16), 0 0 40px rgba(59, 130, 246, 0.08);
}
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.25rem; }
.product-tagline {
  font-size: 0.92rem; font-weight: 600; margin-bottom: 0.8rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.1rem; }
.product-features { list-style: none; margin-bottom: 1.4rem; }
.product-features li {
  font-size: 0.88rem; color: var(--text-dim);
  padding: 4px 0 4px 1.5rem; position: relative;
}
.product-features li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
}
.product-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.learn-link {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dim);
  transition: color 0.25s;
}
.product-card:hover .learn-link { color: var(--accent); }

/* ---------- 生产服务（视频展示区） ---------- */
.video-zone {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.video-stage {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.video-stage:hover { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08); }
.video-stage video {
  width: 100%; height: 100%; object-fit: contain;
  object-position: center;
  background: #000;
  display: none;
}
.video-stage video.video-bg {
  position: absolute; inset: 0;
  object-fit: cover; object-position: center;
  filter: blur(24px) brightness(0.5);
  transform: scale(1.2);
  pointer-events: none;
}
.video-stage video.video-main {
  position: relative; z-index: 2;
}
.video-stage.has-video video { display: block; }
.video-stage.has-video { border-style: solid; }
.video-upload-hint {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 2rem;
}
.video-upload-hint svg { color: var(--accent); }
.video-hint-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.video-hint-sub { color: var(--text-dim); font-size: 0.9rem; max-width: 30rem; }
.video-upload-btn { margin-top: 0.8rem; }
.video-stage.has-video .video-upload-hint { display: none; }
.video-reset {
  border: 1px solid var(--card-border); background: var(--card);
  color: var(--text-dim); border-radius: 999px; padding: 8px 20px;
  font-size: 0.85rem; cursor: pointer; font-family: var(--font);
  transition: color 0.25s, border-color 0.25s;
}
.video-reset:hover { color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }

/* ---------- 数据统计 ---------- */
.stats {
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid rgba(56, 130, 246, 0.08);
  border-bottom: 1px solid rgba(56, 130, 246, 0.08);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- 关于我们 ---------- */
.about-inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem; align-items: center;
}
.about-inner .thumb img {
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(56, 130, 246, 0.08);
}
.about-text p { color: var(--text-dim); font-size: 1.02rem; }
.about-text p + p { margin-top: 1.1rem; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
}
.contact-form {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2.2rem;
}
.form-row { margin-bottom: 1.2rem; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px; color: var(--text);
  font-family: var(--font); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none; margin-top: 1rem; padding: 12px 16px;
  border-radius: 12px; font-size: 0.92rem;
  color: #4ade80; background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.contact-info-item { margin-bottom: 1.8rem; }
.contact-info-item h4 {
  font-size: 0.9rem; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 0.3rem;
}
.contact-info-item p { color: var(--text-dim); }

/* ---------- 轮播整屏点击链接 ---------- */
.slide-link { position: absolute; inset: 0; z-index: 1; }

/* ---------- 产品详情页 ---------- */
.detail-hero {
  padding: 150px 0 80px;
  background:
    radial-gradient(ellipse 55% 45% at 75% 15%, rgba(37, 99, 235, 0.10), transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(59, 130, 246, 0.10), transparent 65%);
}
.detail-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.detail-thumb img {
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(56, 130, 246, 0.08);
}
.back-link {
  display: inline-block; margin-bottom: 1.3rem;
  color: var(--text-dim); font-size: 0.92rem;
  transition: color 0.25s;
}
.back-link:hover { color: var(--accent); }
.detail-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800; margin-bottom: 0.4rem;
}
.detail-price {
  font-size: 1.7rem; font-weight: 800;
  color: var(--accent); margin: 1.1rem 0 1.8rem;
}
.detail-overview p { color: var(--text-dim); font-size: 1.02rem; max-width: 56rem; }
.spec-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 15px 22px; text-align: left;
  border-bottom: 1px solid rgba(56, 130, 246, 0.08);
  font-size: 0.95rem;
}
.spec-table th {
  width: 34%; color: var(--text-dim); font-weight: 600;
  background: rgba(56, 130, 246, 0.04);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
@media (max-width: 900px) {
  .detail-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- 页脚 ---------- */
footer {
  padding: 3rem 0; text-align: center;
  border-top: 1px solid rgba(56, 130, 246, 0.10);
  color: var(--text-dim); font-size: 0.9rem;
}
footer .footer-tag {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .products-grid, .tech-grid, .stats-grid { grid-template-columns: 1fr; }
  .lang-btn { padding: 5px 9px; font-size: 0.76rem; }
  .hero { min-height: 540px; }
  .carousel-btn { display: none; }
  .slide::after {
    background: linear-gradient(180deg,
      rgba(6, 13, 31, 0.70) 0%,
      rgba(6, 13, 31, 0.45) 40%,
      rgba(6, 13, 31, 0.90) 90%);
  }
}
