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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8fafc;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e293b;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1e293b;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.hero {
  margin-top: 80px;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content .highlight {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  color: #06b6d4;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: bold;
  color: #06b6d4;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 0.875rem;
  color: #cbd5e1;
}

section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.section-header p {
  font-size: 1.25rem;
  color: #64748b;
}

.platforms-section {
  background: white;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.platform-card {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: #06b6d4;
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.platform-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.platform-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.qr-code {
  width: 120px;
  height: 120px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin: 1.5rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.advantage-card {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advantage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.advantage-card p {
  color: #64748b;
  line-height: 1.8;
}

.challenges-section {
  background: #f1f5f9;
}

.challenge-card {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.challenge-icon {
  width: 56px;
  height: 56px;
  background: #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #dc2626;
  margin-bottom: 1.5rem;
}

.challenge-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.challenge-card .description {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.solution {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
}

.solution .icon {
  color: #10b981;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.solution p {
  color: #475569;
  font-size: 0.875rem;
}

.solution strong {
  color: #1e293b;
}

.cta-section {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  padding: 1rem 2rem;
  background: white;
  color: #3b82f6;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 模态框样式 */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000; /* 放在 dialog 下面 */
}

.modal-dialog {
  position: relative;
  background: white;
  color: #0f172a; /* 深色文字，保证可见 */
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  max-width: calc(100% - 2rem);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
  z-index: 2002; /* 明确高于 backdrop */
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #374151;
}

/* 确保链接在白底上有合适颜色 */
.modal-dialog a {
  color: #0369a1;
  text-decoration: underline;
}

.modal-dialog p {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.wechat-qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin: 1rem auto;
}

footer {
  padding: 3rem 2rem;
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: bold;
  color: white;
}

.btn-hero {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }
}
