/* ========== CSS变量 ========== */
:root {
  --brand-blue: #1A9FE0;
  --brand-blue-dark: #0D7BC5;
  --brand-orange: #F47920;
  --bg-dark: #0A0A0A;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #888888;
  --text-white: #FFFFFF;
  --gradient-brand: linear-gradient(135deg, #1A9FE0, #0D7BC5);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ========== 通用容器 ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar .logo img { height: 40px; width: auto; }
.navbar .logo span {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  transition: var(--transition);
}
.navbar.scrolled .logo span { color: var(--text-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-white);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-primary); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text-primary); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-white);
  padding: 80px 32px 32px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-close:hover { background: #e0e0e0; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  color: var(--text-primary);
  border-bottom: 1px solid #eee;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}
.mobile-overlay.show { display: block; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  gap: 8px;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 159, 224, 0.35);
}
.btn-outline {
  border: 2px solid var(--text-white);
  color: var(--text-white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--text-white);
  color: var(--brand-blue);
}
.btn-outline-dark {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--brand-blue);
  color: var(--text-white);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-dark);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0a0a0a 100%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content h1 .highlight { color: var(--brand-blue); }
.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== 产品卡片 ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.product-card .card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-light);
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-image img { transform: scale(1.05); }
.product-card .card-body { padding: 32px; }
.product-card .card-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.product-card .card-body .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(26, 159, 224, 0.1);
  color: var(--brand-blue);
  border-radius: 20px;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}
.product-card .card-body p { color: var(--text-secondary); margin-bottom: 20px; }
.card-link {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }

/* ========== 技术亮点 六宫格 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-item {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(26, 159, 224, 0.1);
  color: var(--brand-blue);
  font-size: 1.5rem;
}
.feature-item h4 { font-size: 1.125rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* ========== 应用场景 ========== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scenario-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.scenario-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: var(--transition);
}
.scenario-card:hover .overlay { background: linear-gradient(to top, rgba(26,159,224,0.8) 0%, transparent 80%); }
.scenario-card h4 { color: var(--text-white); font-size: 1.125rem; }
.scenario-card img { width: 100%; height: 100%; object-fit: cover; }

/* ========== 数据统计 ========== */
.stats {
  background: var(--bg-dark);
  color: var(--text-white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item .number {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 8px;
}
.stat-item .label { font-size: 0.9375rem; color: rgba(255,255,255,0.7); }

/* ========== APP下载 ========== */
.app-download {
  background: var(--bg-light);
}
.download-content {
  display: flex;
  align-items: center;
  gap: 60px;
}
.download-text { flex: 1; }
.download-text h2 { font-size: 2rem; margin-bottom: 16px; }
.download-text p { color: var(--text-secondary); margin-bottom: 32px; }
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.download-image { flex: 1; text-align: center; }
.download-image img { max-height: 400px; }

/* ========== 产品详情页 ========== */
.product-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}
.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-hero .text h1 { font-size: 2.75rem; margin-bottom: 16px; }
.product-hero .text .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.product-hero .text .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 32px;
}
.product-hero .image img { border-radius: var(--radius); }
.product-hero-dark { background: var(--bg-dark); color: var(--text-white); }
.product-hero-dark .text .subtitle { color: rgba(255,255,255,0.65); }

.product-gallery { padding: 60px 0; background: var(--bg-light); }
.product-gallery .swiper-slide img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius);
}

.selling-point {
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.selling-point .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.selling-point.reverse .container { direction: rtl; }
.selling-point.reverse .container > * { direction: ltr; }
.selling-point .sp-text h2 { font-size: 2rem; margin-bottom: 12px; }
.selling-point .sp-text h3 {
  font-size: 1.25rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.selling-point .sp-text p { color: var(--text-secondary); line-height: 1.8; }
.selling-point .sp-image img { border-radius: var(--radius); width: 100%; }
.selling-point:nth-child(even) { background: var(--bg-light); }

.specs-table { max-width: 800px; margin: 0 auto; }
.specs-table table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table th,
.specs-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.specs-table th {
  width: 35%;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== 关于我们 ========== */
.about-hero {
  background: var(--gradient-brand);
  color: var(--text-white);
  text-align: center;
  padding: 160px 0 100px;
}
.about-hero h1 { font-size: 3rem; margin-bottom: 16px; }
.about-hero p { font-size: 1.125rem; opacity: 0.85; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-text h2 { font-size: 2rem; margin-bottom: 16px; }
.story-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #e0e0e0;
}
.timeline-item {
  position: relative;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item .content {
  width: 45%;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.timeline-item .dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid var(--bg-white);
  z-index: 1;
}
.timeline-item .year {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq-question i { transition: transform 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 500px; padding-top: 12px; }

/* ========== 联系表单 ========== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo img { height: 36px; }
.footer-brand .logo span { color: var(--text-white); font-weight: 700; font-size: 1.125rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--brand-blue); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--brand-blue); }
.social-links { display: flex; gap: 16px; }
.social-links a { font-size: 1.125rem; }

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-blue-dark); transform: translateY(-3px); }
