/* ==================================================
   全局重置 & 基础样式
   ================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================================================
   导航栏
   ================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo 区域 */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.9);
}

.company-name {
  font-size: 11px;
  color: #8b949e;
  margin-top: 4px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* 导航链接 */
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00d4ff;
}

/* 搜索框 */
.search-box input {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  outline: none;
  transition: border 0.3s;
}

.search-box input:focus {
  border-color: #00d4ff;
}

/* ==================================================
   主视觉区 Hero（✅ 高度缩小约 1/3）
   ================================================== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* ✅ 核心改动：高度压缩 */
  padding: 48px 20px;      /* 原 70px → 48px */
  min-height: 45vh;        /* 原 70vh → 45vh */

  text-align: center;
}

.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}

.glow-left {
  background: #00d4ff;
  top: 10%;
  left: -10%;
}

.glow-right {
  background: #a855f7;
  bottom: 10%;
  right: -10%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 52px; /* ✅ 略微收敛（原 64px） */
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
  margin-bottom: 16px; /* ✅ 缩减间距 */
}

.hero-content p {
  font-size: 17px; /* ✅ 略微收敛（原 18px） */
  color: #9ca3af;
  margin-bottom: 28px; /* ✅ 缩减间距 */
}

/* ==================================================
   按钮系统（统一入口）
   ================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  border: 2px solid rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: rgba(0, 212, 255, 0.3);
  border-color: #00d4ff;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* 平台色系 */
.btn-android   { border-color: #10b981; background: rgba(16,185,129,.15); }
.btn-ios       { border-color: #3b82f6; background: rgba(59,130,246,.15); }
.btn-windows   { border-color: #f59e0b; background: rgba(245,158,11,.15); }
.btn-mac-intel { border-color: #ec4899; background: rgba(236,72,153,.15); }
.btn-mac-apple { border-color: #8b5cf6; background: rgba(139,92,246,.15); }

.btn-android:hover   { background: rgba(16,185,129,.3); border-color: #10b981; }
.btn-ios:hover       { background: rgba(59,130,246,.3); border-color: #3b82f6; }
.btn-windows:hover   { background: rgba(245,158,11,.3); border-color: #f59e0b; }
.btn-mac-intel:hover { background: rgba(236,72,153,.3); border-color: #ec4899; }
.btn-mac-apple:hover { background: rgba(139,92,246,.3); border-color: #8b5cf6; }

/* ==================================================
   邀请下载
   ================================================== */
.invite-download {
  padding: 0 20px 44px;
}

.invite-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 50px rgba(16, 185, 129, 0.12);
}

.invite-eyebrow {
  margin-bottom: 6px;
  color: #86efac;
  font-size: 14px;
  font-weight: 700;
}

.invite-panel h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.25;
}

#invite-code-text {
  color: #22c55e;
  letter-spacing: 2px;
}

.invite-copy {
  color: #cbd5e1;
}

.invite-actions {
  min-width: 280px;
}

.invite-status {
  grid-column: 1 / -1;
  min-height: 20px;
  color: #86efac;
  font-size: 14px;
}

.platform-preferred {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(34, 197, 94, 0.22);
}

/* ==================================================
   产品卡片（流光背景）
   ================================================== */
.product-section {
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.product-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #00d4ff;
  text-align: center;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

/* 流光层 */
.product-card::before {
  content: '';
  position: absolute;
  inset: -50% -50% auto auto;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 212, 255, 0.05),
    transparent,
    rgba(139, 92, 246, 0.05),
    transparent
  );
  animation: shimmer 8s infinite linear;
  z-index: -1;
  opacity: 0.6;
}

.product-card:hover::before {
  opacity: 0.9;
  animation-duration: 4s;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 卡片内容 */
.product-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

.product-card p {
  color: #9ca3af;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 下载按钮容器 */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* ==================================================
   通用玻璃卡片
   ================================================== */
.section {
  padding: 80px 20px;
}

.section h2 {
  font-size: 40px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  padding: 30px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

/* ==================================================
   优译图 AI 介绍区块
   ================================================== */
.ai-intro-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin: 40px auto;
  max-width: 900px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  letter-spacing: 1px;
}

.ai-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 功能列表 */
.ai-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ai-features .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #e2e8f0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid #8b5cf6;
  transition: all 0.3s ease;
}

.ai-features .feature-item:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateX(5px);
}

.ai-features .check {
  font-size: 18px;
  color: #10b981;
  font-weight: bold;
}

/* 应用场景标签 */
.app-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.scenario-tag {
  padding: 6px 14px;
  font-size: 13px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.scenario-tag:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.scenario-tag.highlight {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
}

/* ==================================================
   签乐购介绍区块
   ================================================== */
.qilegou-intro {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin: 40px auto;
  max-width: 900px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qilegou-intro .section-title {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.intro-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.intro-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #e2e8f0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid #00d4ff;
  transition: all 0.3s ease;
}

.intro-features .feature-item:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(5px);
}

.intro-features .check {
  font-size: 18px;
  color: #10b981;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 2px;
}

.feature-text {
  flex: 1;
  line-height: 1.6;
}

.feature-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ==================================================
   法律链接
   ================================================== */
.legal-links {
  padding-top: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.legal-links a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* ==================================================
   底部 Footer（备案合规 + 居中 + 响应式）
   ================================================== */
.footer {
  background-color: #000;
  padding: 15px 20px;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  line-height: 1.2;
}

/* 版权文字 */
.copyright {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

/* 备案号容器 */
.beian-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffffff;
}

/* 备案号链接 */
.beian-links a {
  color: #4da6ff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ✅ 合并后的公安备案图标（唯一来源） */
.gongan-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -1px;
}

.beian-links a:hover {
  text-decoration: underline;
}

/* ==================================================
   响应式布局（移动端优化）
   ================================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .nav-links {
    display: none;
  }

  .search-box {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .invite-panel {
    grid-template-columns: 1fr;
  }

  .invite-actions {
    min-width: 0;
  }

  .company-name {
    display: none;
  }

  .logo-area {
    flex-direction: row;
    align-items: center;
  }
}

/* ✅ 小屏下载按钮通栏 */
@media (max-width: 480px) {
  .download-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  /* Footer 小屏纵向排列 */
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .beian-links {
    flex-direction: column;
    gap: 6px;
  }
}

/* ==================================================
   无障碍 & 性能优化
   ================================================== */
@media (prefers-reduced-motion: reduce) {
  .product-card::before {
    animation: none;
  }
}
