/* 首页导航样式 */

/* 主导航栏 */
.main-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  transition: all .2s;
}
.nav-link:hover { background: var(--bg); }
.nav-link.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* 页面切换 */
.page-content { display: none; }
.page-content.active { display: block; }

/* Hero区域 */
.hero-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
}
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  margin-bottom: 16px;
}
.hero-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.hero-subtitle { font-size: 1rem; opacity: .9; margin-bottom: 24px; }
.hero-actions { margin-bottom: 24px; }
.btn-start-hero {
  padding: 16px 40px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .3s;
}
.btn-start-hero:active { transform: scale(.96); }
.hero-stats { display: flex; justify-content: center; gap: 32px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: .8rem; opacity: .8; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; }

/* 通用区块 */
.section-quick, .section-types-preview, .section-features, .section-test {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
}
.section-header { text-align: center; margin-bottom: 24px; }
.section-header h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: .9rem; }

/* 快速介绍 */
.quick-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intro-card { background: white; padding: 24px 16px; border-radius: 16px; text-align: center; box-shadow: var(--shadow); }
.intro-icon { font-size: 2.5rem; margin-bottom: 12px; }
.intro-card h3 { font-size: 1rem; margin-bottom: 8px; }
.intro-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* 类型预览 */
.types-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-preview-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.type-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.type-preview-emoji { font-size: 2rem; margin-bottom: 8px; }
.type-preview-code { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.type-preview-name { font-size: .75rem; color: var(--text-muted); }
.type-preview-card .type-badge {
  display: inline-block;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}
.type-badge.e { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }
.type-badge.i { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white; }
.section-more { text-align: center; margin-top: 20px; }
.btn-more {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

/* 功能特点 */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { background: white; padding: 20px; border-radius: 16px; box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* 测试区域 */
.section-test { padding: 0 16px 40px; }
.test-header { margin-bottom: 0; border-radius: 16px 16px 0 0; }

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-header p { font-size: .9rem; opacity: .85; }

/* 类型完整列表 */
.types-full-grid { max-width: 800px; margin: 0 auto; padding: 20px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-full-card {
  background: white;
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
}
.type-full-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.type-full-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.type-full-code { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 4px; }
.type-full-name { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.type-full-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

/* 科普内容 */
.science-content { max-width: 700px; margin: 0 auto; padding: 20px 16px; }
.science-article {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.science-article h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--bg); }
.science-article p { font-size: .92rem; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.science-article ul { padding-left: 20px; }
.science-article li { font-size: .9rem; color: var(--text); line-height: 1.8; margin-bottom: 6px; }
.dim-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.dim-card { background: var(--bg); padding: 16px; border-radius: 12px; }
.dim-card h3 { font-size: .95rem; color: var(--primary); margin-bottom: 8px; }
.dim-card p { font-size: .85rem; color: var(--text); line-height: 1.6; margin-bottom: 6px; }

/* 关于页 */
.about-content-page { max-width: 600px; margin: 0 auto; padding: 20px 16px; }
.about-section-page { background: white; border-radius: 16px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.about-section-page h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: 12px; }
.about-section-page p { font-size: .92rem; color: var(--text); line-height: 1.7; }
.about-features { list-style: none; }
.about-features li { font-size: .92rem; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); line-height: 1.6; }
.about-features li:last-child { border-bottom: none; }

/* 结果页更多按钮 */
.btn-more-type {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,.2);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: .85rem;
}
.result-footer-actions { display: flex; gap: 12px; margin: 20px 0 40px; }
.result-footer-actions .btn-retry {
  flex: 1;
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}
.result-footer-actions .btn-more {
  flex: 1;
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: white; flex-direction: column; padding: 8px 16px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
  .nav-links.show { display: flex; }
  .nav-toggle { display: block; }
  .quick-intro { grid-template-columns: 1fr; }
  .types-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .types-full-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .dim-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
}
