/* ========================================
   亿美教育 - 简洁严肃风格 v2
   ======================================== */

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

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #2d3748;
  --accent: #3182ce;
  --accent-light: #63b3ed;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --text-dark: #1a202c;
  --text-gray: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #38a169;
  --warning: #dd6b20;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-gray); }
.section-desc { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-gray); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary); }

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--primary); }

.header-phone {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
}

.header-phone:hover { background: var(--primary-light); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badges span {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary) !important;
}

.btn-primary:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover { border-color: white; }

/* Section */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 2rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
}

/* Stats */
.stats-section {
  padding: 48px 0 !important;
  background: var(--primary) !important;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.stat-item span {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

/* About Features */
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.course-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.course-tag-new { background: var(--success); }

.course-card h3 { margin-bottom: 10px; }

.course-card p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.course-link {
  font-weight: 600;
  font-size: 0.9375rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 { margin-bottom: 10px; }

.why-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Employment */
.employment-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  width: 180px;
}

.flow-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 12px;
}

.flow-step h3 { margin-bottom: 6px; }
.flow-step p { font-size: 0.875rem; margin: 0; }

.flow-arrow {
  font-size: 1.5rem;
  color: var(--accent);
}

.employment-companies {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.employment-companies p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.company-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.company-list span {
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding-bottom: 20px;
  font-size: 0.9375rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  display: block;
  margin-bottom: 8px;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

address {
  font-style: normal;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.contact-cta {
  text-align: center;
  margin-top: 40px;
  padding: 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
}

.contact-cta p {
  color: white;
  margin: 0;
  font-size: 1.0625rem;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 16px;
}

.footer-col p, .footer-col li {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-badges { flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .employment-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .section { padding: 48px 0; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Banner 轮播样式 */
.banner-carousel {
  position: relative;
  max-height: 480px;
  overflow: hidden;
  border-radius: 8px;
}
.banner-slides {
  position: relative;
}
.banner-slide {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: none;
  border-radius: 8px;
}
.banner-slide.active {
  display: block;
}
.banner-prev, .banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
  z-index: 2;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover, .banner-next:hover {
  background: rgba(0,0,0,0.7);
}
.banner-dots {
  text-align: center;
  padding: 10px 0;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}
.dot.active {
  background: #007bff;
}
