/* style.css */
:root {
  /* ==================================================
     清爽简洁的“薄荷天空蓝”配色方案
     ================================================== */
  --primary: #0EA5E9;       /* 核心主色：清澈的天空蓝 */
  --primary-light: #38BDF8; /* 辅助亮色：更明亮的蓝 */
  --bg-dark: #1E293B;       /* 柔和的深蓝灰，替代原先沉闷的深黑色 */
  
  /* 首屏渐变：从薄荷绿平滑过渡到天空蓝，像微风一样清爽透亮 */
  --gradient-hero: linear-gradient(135deg, #2DD4BF 0%, #0EA5E9 100%);
  
  --accent: #FDE047;        /* 强调色：明快的柠檬黄，与冷色背景形成清新对比 */
  --accent-light: #FEF08A;
  
  --bg-section: #F8FAFC;    /* 极浅的蓝灰色背景，保持页面通透 */
  --text-main: #334155;     /* 主文本色调柔和，避免纯黑色的生硬感 */
  --text-secondary: #64748B;
  --text-light: #FFFFFF;
  
  /* 阴影改为带有主色调的超浅蓝色，使卡片看起来像悬浮在干净的空气中 */
  --shadow-sm: 0 1px 3px rgba(14, 165, 233, 0.05);
  --shadow-md: 0 4px 20px rgba(14, 165, 233, 0.08);
  --shadow-lg: 0 10px 40px rgba(14, 165, 233, 0.12);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14, 165, 233, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(14, 165, 233, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-light); text-decoration: none; font-weight: 700; font-size: 1.2rem;
}
.logo-icon { height: 32px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--accent-light); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 600; opacity: 0.9; transition: opacity 0.2s; }
.nav-login:hover { opacity: 1; text-decoration: underline; }
.nav-cta {
  background: var(--accent); color: #451A03; border: none;
  padding: 8px 20px; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(253, 224, 71, 0.3); }
.nav-mobile-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(45, 212, 191, 0.2) 0%, transparent 40%);
  animation: heroGlow 20s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-2%, 2%) rotate(3deg); } }
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); animation: particleFloat linear infinite; }
@keyframes particleFloat { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.hero-content h1 { font-size: 3.8rem; font-weight: 800; color: var(--text-light); line-height: 1.2; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.hero-content h1 span { color: var(--accent-light); }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 540px; line-height: 1.8; }
.hero-badges { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 100px; 
  font-size: 0.85rem; color: var(--text-light); font-weight: 500; backdrop-filter: blur(8px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }

.hero-actions { display: flex; gap: 32px; align-items: center; }
.hero-qr-box {
  background: #ffffff; padding: 12px; border-radius: 16px;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); flex-shrink: 0;
}
.hero-qr-box img { width: 120px; height: 120px; display: block; border-radius: 8px; margin-bottom: 8px; border: 1px solid #f1f5f9; }
.hero-qr-box .qr-label { color: var(--text-main); font-size: 0.8rem; font-weight: 800; }

.hero-buttons { display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.25s; text-align: center;
}
.btn-primary { background: var(--accent); color: #451A03; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(253, 224, 71, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: var(--text-light); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-text { color: rgba(255,255,255,0.6); font-size: 0.9rem; text-decoration: none; margin-top: 4px; padding-left: 4px; transition: color 0.2s; }
.btn-text:hover { color: var(--text-light); text-decoration: underline; }

/* Mockup */
.mockup-container { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.mockup-screen {
  background: rgba(255, 255, 255, 0.15); 
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px; padding: 32px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(14, 165, 233, 0.2);
}
.mockup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.mockup-header h3 { color: var(--text-light); font-size: 1.1rem; }
.mockup-status span { display:inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left:6px;}
.mockup-status .r { background: #EF4444; } .mockup-status .y { background: #F59E0B; } .mockup-status .g { background: #22C55E; }
.mockup-participants { display: flex; gap: -8px; margin-bottom: 20px; }
.mockup-avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: white; margin-left: -10px;
}
.mockup-avatar:first-child { margin-left: 0; }
.mockup-count { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-left: 12px; display: flex; align-items: center; }
.mockup-question {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px; padding: 20px; margin-bottom: 24px;
}
.mockup-question p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 8px; }
.mockup-question h4 { color: var(--text-light); font-size: 1.1rem; line-height: 1.5; }
.mockup-timer { text-align: center; margin-bottom: 24px; }
.mockup-timer .time { font-size: 3rem; font-weight: 800; color: var(--accent-light); font-variant-numeric: tabular-nums; line-height: 1; }
.mockup-timer .label { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-top: 5px; }
.mockup-btn {
  width: 100%; padding: 16px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--accent), #FACC15);
  color: #451A03; font-weight: 800; font-size: 1.2rem; cursor: pointer;
  animation: pulseBtn 2s ease-in-out infinite;
}
@keyframes pulseBtn { 0%, 100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.5); } 50% { box-shadow: 0 0 0 15px rgba(253, 224, 71, 0); } }

/* ===== SECTION GLOBALS ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(14, 165, 233, 0.1);
  color: var(--primary); padding: 6px 16px; border-radius: 100px; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px;
}
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* ===== FEATURES ===== */
.features { padding: 100px 24px; background: var(--bg-section); }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: white; border-radius: var(--radius); padding: 40px 32px; border: 1px solid #E2E8F0; transition: all 0.3s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px; }
.fi-blue { background: rgba(14, 165, 233, 0.1); color: var(--primary); }
.feature-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }
.feature-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* ===== MODES ===== */
.modes { padding: 100px 24px; background: white; }
.modes-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.mode-card { border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 40px; transition: all 0.3s; background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%); }
.mode-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.mode-tag { display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; }
.mt-simple { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.mt-external { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.mt-internal-off { background: #F0F9FF; color: var(--primary); border: 1px solid #BAE6FD; }
.mt-internal-on { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }
.mode-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.mode-card .mode-desc { color: var(--text-secondary); margin-bottom: 24px; font-size: 1rem; }

/* ===== STATS ===== */
.stats { padding: 80px 24px; background: var(--gradient-hero); color: white; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item .stat-num { font-size: 3rem; font-weight: 900; color: var(--accent-light); margin-bottom: 8px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.stat-item .stat-label { font-size: 1rem; opacity: 0.9; font-weight: 500; }

/* ===== CTA ===== */
.cta { padding: 100px 24px; background: var(--gradient-hero); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%); }
.cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-light); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 40px; }
.cta-qr-box {
  background: white; padding: 20px 20px 16px; border-radius: 20px; display: inline-block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); margin-bottom: 32px;
}
.cta-qr-box img { width: 150px; height: 150px; border-radius: 8px; display: block; margin-bottom: 12px; border: 1px solid #f1f5f9;}
.cta-qr-box p { color: var(--bg-dark); font-weight: 800; font-size: 1rem; margin: 0; }
.cta-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 60px 24px; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-left p { color: rgba(248,250,252,0.5); font-size: 0.9rem; margin-bottom: 8px; }
.footer-left .icp-link a { color: rgba(248,250,252,0.4); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-left .icp-link a:hover { color: var(--text-light); text-decoration: underline; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: rgba(248,250,252,0.6); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--accent-light); }

/* 响应式调整 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 36px; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn-text { width: 100%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-dark); flex-direction: column; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.show { display: flex; }
  .nav-mobile-btn { display: block; }
  .nav-actions { display: none; } 
  
  .hero { padding: 120px 20px 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; gap: 24px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 2rem; }
}