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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0b0f1e;
  color: #e9f1fc;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(0, 180, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(170, 0, 255, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(0, 255, 200, 0.1) 0%, transparent 40%);
  z-index: -2;
}

#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem;
  position: relative;
  z-index: 2;
}

/* ===== 导航 ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-emoji { font-size: 1.9rem; line-height: 1; }

.logo span {
  background: linear-gradient(135deg, #ffffff, #a0e9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  background: linear-gradient(145deg, #1e2b4f, #0f1a32);
  border: 1px solid rgba(110, 230, 200, 0.5);
  padding: 0.65rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  color: #dcf2ff;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  text-decoration: none;
}

.btn:hover {
  background: #1e3b5a;
  border-color: #6ae2c0;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(106, 226, 192, 0.4);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin: 1.5rem 0 4.5rem;
  flex-wrap: wrap;
}

.hero-content { flex: 1 1 350px; }

.hero-badge {
  display: inline-block;
  background: rgba(61, 214, 176, 0.12);
  border: 1px solid rgba(61, 214, 176, 0.4);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #8effe0;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(120deg, #c2f0ff, #6ae2c0, #b794f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #b3c7e3;
  margin-bottom: 2rem;
  max-width: 540px;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stat-item h3 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-item p {
  font-size: 0.9rem;
  color: #8ba1c0;
  margin: 0;
}

.hero-visual {
  flex: 1 1 360px;
  background: rgba(20, 30, 55, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 40px -20px #00000080;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-snippet {
  background: #0d1226;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  border-left: 4px solid #6ae2c0;
  color: #cfdfff;
  box-shadow: inset 0 0 20px #00000030;
}

.code-snippet .keyword { color: #b794f4; }
.code-snippet .func { color: #6ae2c0; }
.code-snippet .comment { color: #64748b; }

/* ===== 交互式功能展示区 ===== */
.feature-section { margin: 5rem 0 6rem; }

.feature-header {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0.8rem;
}

.feature-header p {
  color: #9fb0d0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: #9fb0d0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  text-align: left;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.feature-tab .tab-icon {
  font-size: 1.3rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(110, 230, 200, 0.08);
  transition: all 0.3s;
  flex-shrink: 0;
}

.feature-tab:hover {
  color: #e9f1fc;
  background: rgba(255, 255, 255, 0.03);
}

.feature-tab.active {
  background: rgba(18, 26, 46, 0.9);
  border-color: rgba(110, 230, 200, 0.4);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(106, 226, 192, 0.12);
}

.feature-tab.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%;
  width: 3px;
  background: linear-gradient(#6ae2c0, #b794f4);
  border-radius: 0 3px 3px 0;
}

.feature-tab.active .tab-icon {
  background: rgba(110, 230, 200, 0.2);
  transform: scale(1.1);
}

.feature-panel-wrap {
  position: relative;
  min-height: 500px;
}

.feature-panel {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 46, 0.8);
  border: 1px solid rgba(110, 230, 200, 0.2);
  border-radius: 28px;
  padding: 2.4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 50px -20px #00000090;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.feature-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feature-panel .panel-emoji {
  font-size: 2.8rem;
  line-height: 1;
}

.feature-panel h3 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(120deg, #ffffff, #a0e9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-panel > p {
  font-size: 1.05rem;
  color: #b3c7e3;
  line-height: 1.7;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  padding: 0.6rem 0.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.metric:hover { background: rgba(110, 230, 200, 0.06); }

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #a0e9ff, #6ae2c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  word-break: break-word;
}

.metric-label {
  font-size: 1rem;
  color: #7b90b3;
  letter-spacing: 0.2px;
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  color: #6e85a8;
  font-size: 0.9rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6ae2c0, transparent);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #8ba1c0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.25s, transform 0.25s;
  cursor: pointer;
}

.footer-link:hover {
  color: #6ae2c0;
  transform: translateY(-1px);
}

.footer-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  transition: fill 0.25s;
}

.footer-copyright {
  color: #5a6e8c;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.email-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 26, 46, 0.95);
  border: 1px solid rgba(110, 230, 200, 0.5);
  color: #6ae2c0;
  padding: 0.75rem 1.4rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px #000000cc, 0 0 20px rgba(106, 226, 192, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1100;
  backdrop-filter: blur(8px);
}

.email-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 题目卡片区域 ===== */
.card-list-section {
  padding: 20px 2% 60px 2%;
  margin-top: 20px;
  box-sizing: border-box;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px;
}

.test-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.8);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.year-badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: #9fb0d0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-weight: 700;
  position: relative;
  padding-left: 12px;
}

.card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #4a90e2;
  border-radius: 2px;
}

.card-desc {
  color: #9fb0d0;
  font-size: 0.9rem;
  margin: 0 0 24px 0;
}

.card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.card-action:hover {
  opacity: 0.8;
}

.card-action .arrow {
  margin-left: 6px;
  transition: transform 0.2s;
}

.card-action:hover .arrow {
  transform: translateX(4px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; gap: 2rem; }
  .feature-panel-wrap { min-height: 420px; }
  .feature-tab { padding: 0.9rem 1.2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
    gap: 0.4rem;
    letter-spacing: -0.3px;
  }
  .logo-emoji {
    font-size: 1.4rem;
  }

  .navbar .btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .stats { flex-wrap: wrap; gap: 1.5rem; }
  .feature-header h2 { font-size: 2rem; }
  .feature-panel { padding: 1.8rem; }
  .feature-panel h3 { font-size: 1.5rem; }
  .feature-panel-wrap { min-height: 400px; }
  .panel-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .metric-value { font-size: 1.2rem; }
  .footer-info { gap: 1rem; }

  /* 题目卡片小屏适配 */
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
    gap: 0.3rem;
  }
  .logo-emoji {
    font-size: 1.2rem;
  }

  .navbar .btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .feature-tab { font-size: 0.95rem; }
  .feature-panel-wrap { min-height: 380px; }
  .footer-info { flex-direction: column; gap: 0.8rem; }

  .panel-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; }
  .metric { padding: 0.45rem 0.15rem; }
  .metric-value { font-size: 1rem; }
  .metric-label { font-size: 0.8rem; }
}