/* ============================================
   新诺儿童成长中心 · AI指挥官 官网样式
   配色：科技蓝 #1565C0 + 活力橙 #FF6D00
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #fff; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- CSS Variables ---------- */
:root {
  --blue: #1565C0;
  --blue-light: #1E88E5;
  --blue-dark: #0D47A1;
  --orange: #FF6D00;
  --orange-light: #FF9100;
  --orange-dark: #E65100;
  --gray-bg: #F5F7FA;
  --gray-text: #666;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --max-w: 1200px;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--gray-bg); }
.text-center { text-align: center; }
.section-title {
  font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--blue-dark);
}
.section-subtitle {
  text-align: center; color: var(--gray-text); font-size: 1.1rem; margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-wrap img { height: 44px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.logo-text span { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: .95rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--blue-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s; border: none; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  color: var(--white); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; bottom: -60px;
  width: 300px; height: 300px; background: var(--orange); opacity: .12; border-radius: 50%;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.hero h1 span { color: var(--orange-light); }
.hero p { font-size: 1.25rem; opacity: .9; margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .btn { margin: 0 8px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px;
}
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 28px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px; color: var(--white);
}
.card-icon.blue { background: var(--blue); }
.card-icon.orange { background: var(--orange); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--blue-dark); }
.card p { color: var(--gray-text); font-size: .95rem; line-height: 1.7; }

/* ---------- Stats ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; padding: 60px 0;
}
.stat-item h3 { font-size: 2.8rem; font-weight: 800; color: var(--orange); }
.stat-item p { color: var(--gray-text); font-size: 1rem; margin-top: 8px; }

/* ---------- Course Level Timeline ---------- */
.course-timeline { position: relative; padding-left: 40px; }
.course-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--orange));
  border-radius: 3px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--blue);
}
.timeline-item.orange::before { background: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.timeline-item h3 { font-size: 1.3rem; color: var(--blue-dark); margin-bottom: 8px; }
.timeline-item .age-tag {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 2px 14px; border-radius: 20px; font-size: .85rem; margin-bottom: 12px;
}
.timeline-item.orange .age-tag { background: var(--orange); }
.timeline-item p { color: var(--gray-text); font-size: .95rem; }
.timeline-item .level-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.timeline-item .level-tag {
  background: var(--gray-bg); padding: 4px 14px; border-radius: 6px;
  font-size: .85rem; color: var(--blue-dark); font-weight: 500;
}

/* ---------- Philosophy Section ---------- */
.philosophy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px;
}
.philosophy-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 32px; border-left: 5px solid var(--blue);
}
.philosophy-card.orange-border { border-left-color: var(--orange); }
.philosophy-card h3 { font-size: 1.3rem; color: var(--blue-dark); margin-bottom: 16px; }
.philosophy-card ul { padding-left: 0; }
.philosophy-card ul li {
  position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--gray-text); font-size: .95rem;
}
.philosophy-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}
.philosophy-card.orange-border ul li::before { color: var(--orange); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.team-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 24px; text-align: center; transition: transform .25s;
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--white); font-weight: 700;
}
.team-card h3 { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 6px; }
.team-card .title { color: var(--orange); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { color: var(--gray-text); font-size: .9rem; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-icon.orange { background: var(--orange); }
.contact-item h4 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 4px; }
.contact-item p { color: var(--gray-text); font-size: .95rem; }
.map-placeholder {
  background: var(--gray-bg); border-radius: var(--radius); height: 100%; min-height: 320px;
  display: flex; align-items: center; justify-content: center; color: var(--gray-text); font-size: 1rem;
  border: 2px dashed #ccc;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 28px; background: none; border: none;
  text-align: left; font-size: 1.05rem; font-weight: 600; color: var(--blue-dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--orange); transition: transform .2s; flex-shrink: 0; }
.faq-question.open::after { content: '−'; }
.faq-answer { padding: 0 28px 20px; color: var(--gray-text); font-size: .95rem; line-height: 1.8; display: none; }
.faq-answer.open { display: block; }

/* ---------- Form ---------- */
.booking-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; font-size: .95rem; }
.form-group label .required { color: var(--orange); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid #e0e0e0; border-radius: 10px;
  font-size: 1rem; font-family: inherit; transition: border-color .2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { text-align: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a2e; color: rgba(255,255,255,.7); padding: 48px 0 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand .slogan { color: var(--orange-light); font-weight: 600; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-links a { display: block; padding: 4px 0; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange-light); }
.footer-contact p { font-size: .9rem; margin-bottom: 8px; }
.footer-bottom {
  text-align: center; padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 72px 0 60px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .header-inner { height: 64px; }
  .logo-wrap img { height: 36px; }
  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1.05rem; }
  .stat-item h3 { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
}

/* ---------- Attention Cards (专注力10维度) ---------- */
.attention-card {
  background: var(--white); border-radius: 10px; padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s;
  border-left: 4px solid var(--blue); position: relative;
}
.attention-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.attention-card:nth-child(even) { border-left-color: var(--orange); }
.attention-num {
  font-size: 1.8rem; font-weight: 800; color: var(--blue); opacity: .18;
  position: absolute; top: 8px; right: 14px; line-height: 1;
}
.attention-card:nth-child(even) .attention-num { color: var(--orange); }
.attention-card h4 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 6px; }
.attention-card p { font-size: .85rem; color: var(--gray-text); line-height: 1.6; }

@media (max-width: 768px) {
  .attention-card { padding: 16px 14px; }
}
