/* ============================================================
   北京罗道罗量子科技集团有限公司 · 官网样式
   风格:纯黑 + 银色金属 + 象牙白 + 品牌红点缀
   ============================================================ */

:root {
  --bg: #000000;
  --card: #111111;
  --card-2: #161616;
  --zebra: #0d0d0d;
  --ivory: #f5f0e8;
  --ivory-70: rgba(245, 240, 232, 0.7);
  --ivory-55: rgba(245, 240, 232, 0.55);
  --ivory-45: rgba(245, 240, 232, 0.45);
  --silver: #c0c0c0;
  --silver-line: rgba(192, 192, 192, 0.25);
  --red: #e01a1a;
  --font: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; width: auto; }
.brand span { font-size: 15px; font-weight: 600; letter-spacing: 2px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { font-size: 14px; color: var(--ivory-70); transition: color 0.25s; }
.nav a:hover { color: var(--ivory); }
.nav a.active { color: var(--red); font-weight: 500; }
.nav a.nav-cta { color: var(--ivory); font-weight: 500; }

/* ---------------- 通用 ---------------- */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
}
.section { padding: 72px 0; }
.section-title { font-size: 32px; font-weight: 700; margin-top: 14px;}
.section-desc { font-size: 15px; color: var(--ivory-70); margin-top: 16px; max-width: 860px; line-height: 1.8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: rgba(192, 192, 192, 0.35); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--silver); }

/* ---------------- 首页 Hero + 轮播 ---------------- */
.home-hero { padding: 72px 0 40px; text-align: center; }
.home-hero h1 { font-size: 44px; font-weight: 700; margin-top: 16px; }
.home-hero .sub { font-size: 16px; color: var(--ivory-55); margin-top: 14px; }

.carousel { padding: 24px 0 56px; }
.carousel-stage {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 840 / 460;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide img.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide-qr-card {
  width: 100%;
  height: 100%;
  /* background: #0a0a0a;*/
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-qr-inner {
  width: 180px;
  height: 180px;
  /* background: #fff; */
  border-radius: 12px;
  padding: 12px;
}
.slide-qr-inner img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

.carousel-meta {
  max-width: 960px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ivory-70);
}
.carousel-counter { letter-spacing: 2px; }
.carousel-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
}
.ctrl-btn:hover { border-color: var(--silver); background: rgba(255, 255, 255, 0.06); }
.ctrl-btn svg { width: 14px; height: 14px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(192, 192, 192, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}
.dot.active { width: 22px; background: var(--red); }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid rgba(192, 192, 192, 0.15); }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--ivory-45);
}

/* ---------------- 产品页 ---------------- */
.page-hero { padding: 96px 0 64px; }
.page-hero h1 { font-size: 56px; font-weight: 700; margin-top: 16px; }
.page-hero .sub { font-size: 17px; color: var(--ivory-55); margin-top: 18px; max-width: 640px; line-height: 1.8; }
.product-hero-row { display: flex; align-items: center; gap: 80px; }
.product-hero-text { flex: 1; }
.product-hero-text .btn-row { display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.product-hero-img {
  flex: 0 0 46%;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0a;
}
.product-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip {
  padding: 8px 18px;
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ivory-70);
}

.card-row { display: flex; gap: 16px; margin-top: 32px; }
.card {
  flex: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
}
.card .card-tag { font-size: 12px; letter-spacing: 2px; color: var(--silver); }
.card .card-step { font-size: 12px; letter-spacing: 2px; color: var(--red); font-weight: 500; }
.card h3 { font-size: 18px; font-weight: 600; margin-top: 12px; }
.card p { font-size: 14px; color: var(--ivory-55); margin-top: 10px; line-height: 1.75; }

.compare-row { display: flex; gap: 24px; margin-top: 32px; }
.compare-item { flex: 1; }
.compare-item img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; background: var(--card); }
.compare-item figcaption { font-size: 13px; color: var(--ivory-55); margin-top: 12px; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.app-item img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; background: var(--card); }
.app-item figcaption { font-size: 14px; font-weight: 500; margin-top: 10px; }
.more-fields { font-size: 13px; color: var(--ivory-45); margin-top: 24px; line-height: 1.8; }

.spec-table-wrap { margin-top: 32px; border: 1px solid rgba(192, 192, 192, 0.15); border-radius: 16px; overflow: hidden; overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; font-size: 13px; }
.spec-table thead th { background: var(--card-2); font-weight: 600; color: var(--ivory); white-space: nowrap; }
.spec-table tbody td { color: var(--ivory-70); white-space: nowrap; }
.spec-table tbody tr:nth-child(even) { background: var(--zebra); }
.spec-note { font-size: 13px; color: var(--ivory-45); margin-top: 16px; }

.cta-row { display: flex; align-items: center; gap: 80px; }
.cta-text { flex: 1; }
.qr-block { text-align: center; }
.qr-card { width: 160px; height: 160px; /* background: #fff; */border-radius: 16px; padding: 12px; }
.qr-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.qr-block figcaption { font-size: 13px; color: var(--ivory-55); margin-top: 12px; }

/* ---------------- 联系页 ---------------- */
.contact-row { display: flex; gap: 16px; margin-top: 8px; }
.contact-card {
  flex: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
}
.contact-card h3 { font-size: 18px; font-weight: 600; }
.contact-list { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.contact-item .label { font-size: 12px; color: var(--ivory-45); }
.contact-item .value { font-size: 15px; margin-top: 4px; word-break: break-all; }
.contact-card-inner { display: flex; gap: 32px; align-items: flex-start; }
.contact-card-inner .info { flex: 1; }
.contact-qr { text-align: center; }
.contact-qr .qr-card { width: 120px; height: 120px; border-radius: 12px; padding: 10px; }
.contact-qr figcaption { font-size: 12px; color: var(--ivory-55); margin-top: 10px; }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.region-card { background: var(--card); border-radius: 16px; padding: 24px; }
.region-card h3 { font-size: 16px; font-weight: 600; }
.region-card .person { font-size: 13px; color: var(--red); font-weight: 500; margin-top: 8px; }
.region-card .areas { font-size: 13px; color: var(--ivory-55); margin-top: 8px; line-height: 1.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .product-hero-row { gap: 40px; }
  .cta-row { gap: 40px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header .wrap { height: 60px; }
  .brand span { display: none; }
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }

  .home-hero { padding: 48px 0 24px; }
  .home-hero h1 { font-size: 30px; }
  .home-hero .sub { font-size: 14px; }
  .carousel-stage { aspect-ratio: 4 / 3; }
  .slide-qr-inner { width: 150px; height: 150px; }
  .carousel-meta { font-size: 12px; }

  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .sub { font-size: 15px; }

  .product-hero-row { flex-direction: column-reverse; gap: 32px; }
  .product-hero-img { flex: none; width: 100%; }
  .card-row, .compare-row, .contact-row, .cta-row { flex-direction: column; }
  .compare-item img { height: 220px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-item img { height: 220px; }
  .region-grid { grid-template-columns: 1fr; }
  .contact-card-inner { flex-direction: column; }
  .cta-row { text-align: left; }
  .qr-block { align-self: flex-start; }

  .site-footer .wrap { flex-direction: column; text-align: center; gap: 6px; }
}
