/* ===== 电竞教育学院 - 全站样式 ===== */
/* Mobile-First Design | 藏青色+荣耀金+纯白 */

:root {
  --primary: #1A237E;
  --primary-dark: #0D1452;
  --gold: #FFD54F;
  --gold-dark: #F9A825;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #9E9E9E;
  --gray-dark: #424242;
  --text: #212121;
  --shadow: 0 2px 12px rgba(26,35,126,0.10);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header & Navigation ===== */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

.logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 16px 0;
  box-shadow: var(--shadow);
}

.main-nav.active {
  display: block;
}

.main-nav ul {
  list-style: none;
}

.main-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(255,213,79,0.08);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
  padding: 60px 16px;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249,168,37,0.4);
  color: var(--primary);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--primary);
}

/* ===== Section Common ===== */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-dark .section-title h2 {
  color: var(--gold);
}

.section-title p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,35,126,0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-light);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  background: rgba(26,35,126,0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 12px;
}

/* ===== Tutor Cards ===== */
.tutor-card {
  text-align: center;
  padding: 24px 16px;
}

.tutor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: var(--gray-light);
}

.tutor-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.tutor-card .tutor-title {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.tutor-card .tutor-desc {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

/* ===== Logo Wall ===== */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-wall-item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

/* ===== Form ===== */
.form-section {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,213,79,0.2);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

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

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== E-A-T Badge ===== */
.eat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,213,79,0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-top: 12px;
}

/* ===== Video Module ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 16px;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.page-banner h1 span {
  color: var(--gold);
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--gray);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.timeline-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

/* ===== Table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.info-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.info-table tr:hover td {
  background: rgba(26,35,126,0.03);
}

/* ===== Test Section ===== */
.test-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.test-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.test-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.test-step .step-num {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-wall {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .test-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav ul {
    display: flex;
    gap: 4px;
  }

  .main-nav li {
    border: none;
  }

  .main-nav a {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section {
    padding: 64px 0;
  }
}

/* ===== Lazy Load Placeholder ===== */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
