/*
Theme Name: Youth Interactive Learning
Theme URI: https://example.com/youth-interactive-learning
Author: 你的名字
Author URI: https://example.com
Description: 青少年互动学习网站主题，支持高度互动、游戏化和AI内容生成。集成Tailwind CSS、Three.js等现代前端库，提供丰富的教育互动体验。包含数学、物理、化学三大学科模块，支持3D实验模拟、进度追踪、学习工具等功能。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youth-interactive-learning
Tags: 教育, 互动, 游戏化, 响应式, AI, 3D, 实验模拟, 学习工具, 进度追踪

本主题为青少年互动学习网站定制，包含丰富的互动模块和现代前端技术集成。
特色功能：
- 三大学科模块（数学、物理、化学）
- 3D实验模拟器
- 学习进度追踪
- 互动练习系统
- 学习工具箱
- 社区互动功能
- 响应式设计
- AI内容生成支持
*/

/* ====== 基础重置 ====== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background: #f6f8fc;
  color: #222;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== 导航栏 ====== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: 2px;
  text-decoration: none;
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.site-nav {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav > li {
  display: flex;
}
.site-nav > li > a {
  display: inline-block;
  color: #2563eb;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 999px;
  background: #e0e7ff;
  margin: 0 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
.site-nav > li > a:hover, .site-nav > li.current-menu-item > a {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 24px rgba(37,99,235,0.13);
}

/* ====== 英雄区 ====== */
.hero {
  background: linear-gradient(90deg, #dbeafe 0%, #f0f9ff 100%);
  border-radius: 28px;
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.10);
  padding: 56px 24px 40px 24px;
  margin: 36px 0 44px 0;
  text-align: center;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  word-break: break-all;
  white-space: normal;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-desc {
  color: #64748b;
  font-size: 1.18rem;
  margin-bottom: 2.2rem;
}
.btn-main {
  background: linear-gradient(90deg, #34d399 0%, #2563eb 100%);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 18px 56px;
  font-size: 1.18rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(37,99,235,0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}
.btn-main:hover {
  background: linear-gradient(90deg, #2563eb 0%, #34d399 100%);
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
  transform: translateY(-2px) scale(1.07);
}

/* ====== 学科卡片区 ====== */
.subject-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  margin-bottom: 44px;
}
.subject-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.10);
  padding: 38px 24px 28px 24px;
  width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.subject-card:hover {
  box-shadow: 0 12px 36px 0 rgba(37,99,235,0.18);
  transform: translateY(-6px) scale(1.05);
}
.subject-icon {
  font-size: 3.2rem;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 2px 8px #bae6fd);
}
.subject-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.subject-link {
  color: #34d399;
  font-weight: 700;
  margin-top: 0.7rem;
  text-decoration: none;
  font-size: 1.08rem;
  border-radius: 999px;
  padding: 8px 24px;
  background: #e0f2fe;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.subject-link:hover {
  background: #34d399;
  color: #fff;
}

/* ====== 首页区块卡片 ====== */
.section-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(37,99,235,0.10);
  padding: 28px 22px;
  margin-bottom: 28px;
}

/* ====== 页脚 ====== */
footer {
  background: #1e293b;
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
footer h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .copyright {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 32px;
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
  .subject-cards {
    flex-direction: column;
    align-items: center;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
  }
  .hero-title { font-size: 2rem; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 1.2rem; }
  .hero { padding: 24px 8px 16px 8px; }
  .subject-card { width: 95%; padding: 20px 10px 16px 10px; }
  .section-card { padding: 12px 6px; }
  .site-header-inner { flex-direction: column; height: auto; gap: 8px; }
  .site-logo { font-size: 1.2rem; max-width: 180px; }
  .site-nav { gap: 8px; }
} 