/**
 * @file
 * Education zone landing and tier pages — mobile-first, compact Apple-style.
 */

/* Override theme's .dx-content width constraint for education zone */
.dx-content:has(.edu-landing, .edu-vip, .edu-tier, .edu-tier-page, .edu-topic-page, .exam-result-page, .exam-list-page, .exam-take-page, .edu-doc-page) {
  max-width: 1600px;
  padding: 1rem;
  margin: 1rem auto 2rem;
}

/* ========== Document / Course Detail Pages — Apple-style ========== */
.edu-doc-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.edu-doc-nav {
  margin-bottom: 20px;
}

.edu-doc-nav a {
  display: inline-block;
  padding: 8px 16px;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.edu-doc-nav a:hover {
  background: #f0f4ff;
  text-decoration: none;
}

/* Content container */
.edu-doc-content {
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
  line-height: 1.75;
  color: #1d1d1f;
  font-size: 0.95rem;
}

/* Headings */
.edu-doc-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f5;
}

.edu-doc-content h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 32px 0 12px;
  color: #1d1d1f;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.edu-doc-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #333;
  line-height: 1.4;
}

.edu-doc-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 6px;
  color: #444;
}

/* Paragraphs */
.edu-doc-content p {
  margin: 0 0 14px;
  line-height: 1.75;
}

/* Links */
.edu-doc-content a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.edu-doc-content a:hover {
  border-bottom-color: #2563eb;
}

/* Lists */
.edu-doc-content ul,
.edu-doc-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.edu-doc-content li {
  margin-bottom: 6px;
  line-height: 1.65;
  color: #333;
}

.edu-doc-content li::marker {
  color: #d97706;
}

/* Blockquotes */
.edu-doc-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef9ee 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  color: #78350f;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

.edu-doc-content blockquote p {
  margin: 0;
}

/* Tables */
.edu-doc-content table,
.edu-doc-content .edu-doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.edu-doc-content table td,
.edu-doc-content .edu-doc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f5;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #333;
}

.edu-doc-content table tr:last-child td,
.edu-doc-content .edu-doc-table tr:last-child td {
  border-bottom: none;
}

.edu-doc-content table tr:nth-child(even) td,
.edu-doc-content .edu-doc-table tr:nth-child(even) td {
  background: #fafafa;
}

.edu-doc-content table tr:first-child td,
.edu-doc-content .edu-doc-table tr:first-child td {
  font-weight: 600;
  color: #1d1d1f;
  background: #f8f9fc;
}

/* Code */
.edu-doc-content code {
  padding: 2px 6px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.85em;
  color: #e11d48;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.edu-doc-content pre {
  margin: 16px 0;
  padding: 16px 20px;
  background: #1e293b;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

.edu-doc-content pre code {
  padding: 0;
  background: none;
  color: #e2e8f0;
  border-radius: 0;
}

/* Horizontal rule */
.edu-doc-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e5 30%, #e0e0e5 70%, transparent);
  margin: 28px 0;
}

/* Strong and emphasis */
.edu-doc-content strong {
  font-weight: 650;
  color: #1d1d1f;
}

.edu-doc-content em {
  font-style: italic;
  color: #555;
}

/* Responsive */
@media (max-width: 640px) {
  .edu-doc-content {
    padding: 16px;
    font-size: 0.9rem;
  }
  .edu-doc-content h1 {
    font-size: 1.25rem;
  }
  .edu-doc-content h2 {
    font-size: 1.08rem;
  }
  .edu-doc-content table,
  .edu-doc-content .edu-doc-table {
    display: block;
    overflow-x: auto;
  }
}

/* Landing page ---------------------------------------------------------- */
.edu-landing {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 16px);
}

.edu-landing__hero {
  text-align: center;
  padding: clamp(16px, 4vw, 32px) clamp(12px, 3vw, 20px);
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border-radius: 16px;
  margin-bottom: 16px;
}

.edu-landing__hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
}

.edu-landing__subtitle {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #666;
  line-height: 1.5;
}

/* Section groups */
.edu-landing__section {
  margin-bottom: 20px;
}

.edu-landing__section-title {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 600;
  color: #333;
  padding-left: 4px;
}

/* Tier cards grid */
.edu-landing__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.edu-landing__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 4vw, 28px) clamp(8px, 2vw, 12px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-landing__card:hover,
.edu-landing__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.edu-landing__icon {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.edu-landing__label {
  margin: 0;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 600;
  color: #1a1a1a;
}

/* Bottom links */
.edu-landing__links {
  text-align: center;
  padding: 12px 0;
  font-size: 0.9rem;
}

.edu-landing__links a {
  color: #0066cc;
  text-decoration: none;
}

.edu-landing__links a:hover {
  text-decoration: underline;
}

.edu-landing__sep {
  margin: 0 12px;
  color: #ccc;
}

/* Tier home pages (highschool, college) --------------------------------- */
.edu-tier-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 16px);
}

.edu-tier-header {
  text-align: center;
  padding: clamp(16px, 4vw, 28px) clamp(12px, 3vw, 20px);
  background: linear-gradient(135deg, #f5f7ff 0%, #fff5f0 100%);
  border-radius: 16px;
  margin-bottom: 16px;
}

.edu-tier-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
}

.edu-tier-header p {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #555;
}

/* Content cards */
.edu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.edu-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 18px);
}

.edu-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 600;
}

.edu-card p {
  margin: 0 0 8px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #555;
  line-height: 1.5;
}

.edu-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #444;
}

.edu-card li {
  margin-bottom: 4px;
}

/* Topic/BCI/Autocar/Drone/Universe pages -------------------------------- */
.edu-topic-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 16px);
}

.edu-topic-hero {
  text-align: center;
  padding: clamp(14px, 3.5vw, 24px) clamp(12px, 3vw, 20px);
  background: linear-gradient(135deg, #f0f5ff 0%, #f5f0ff 100%);
  border-radius: 16px;
  margin-bottom: 14px;
}

.edu-topic-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 700;
}

.edu-topic-hero p {
  margin: 0;
  font-size: clamp(0.8rem, 2.3vw, 0.95rem);
  color: #555;
}

/* Category sections */
.edu-category {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 18px);
  margin-bottom: 12px;
}

.edu-category h2 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.edu-category h3 {
  margin: 10px 0 6px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  color: #333;
}

.edu-category p {
  margin: 0 0 8px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #555;
  line-height: 1.5;
}

.edu-category ul {
  margin: 0;
  padding-left: 18px;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.edu-category li {
  margin-bottom: 4px;
  color: #444;
}

/* Resource links */
.edu-resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.edu-resource-link {
  display: inline-block;
  padding: 6px 12px;
  background: #f5f7ff;
  border: 1px solid #e0e5f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0066cc;
  text-decoration: none;
}

.edu-resource-link:hover {
  background: #e8edff;
}

/* K12 启蒙课高亮区块 --------------------------------------------------- */
.edu-tier__k12-highlight {
  margin-top: 28px;
  margin-bottom: 8px;
  padding: clamp(18px, 4vw, 28px);
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.edu-tier__k12-title {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: #1a1a1a;
}

.edu-tier__k12-desc {
  margin: 0 0 16px;
  font-size: clamp(0.82rem, 2.2vw, 0.92rem);
  color: #555;
  line-height: 1.5;
}

.edu-tier__k12-exam {
  text-align: center;
  margin: 16px 0 0;
}

.edu-tier__k12-exam p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #666;
}

.edu-tier__k12-exam-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #0066cc;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s;
}

.edu-tier__k12-exam-btn:hover {
  background: #0052a3;
}

/* Exam section (miniAuto K12 course exams) -------------------------------- */
.edu-tier__exam-section {
  margin-top: 32px;
  padding: clamp(18px, 4vw, 28px);
  background: linear-gradient(135deg, #fff8f0 0%, #f0f5ff 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.edu-tier__exam-title {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: #1a1a1a;
}

.edu-tier__exam-desc {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #666;
}

.edu-tier__exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.edu-tier__exam-btn {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.edu-tier__exam-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
  border-color: #0066cc;
}

.edu-tier__exam-num {
  font-size: 0.75rem;
  color: #0066cc;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Sub-section entry card (e.g. miniAuto inside autocar) ---------------- */
.edu-tier__subsection {
  margin-top: 32px;
  margin-bottom: 14px;
}

.edu-tier__subsection-card {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 16px);
  padding: clamp(12px, 3vw, 18px);
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border: 1px solid #e0e5f0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-tier__subsection-card:hover,
.edu-tier__subsection-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.edu-tier__subsection-icon {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  flex-shrink: 0;
}

.edu-tier__subsection-content {
  flex: 1;
  min-width: 0;
}

.edu-tier__subsection-content h3 {
  margin: 0 0 4px;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-weight: 600;
  color: #1a1a1a;
}

.edu-tier__subsection-content p {
  margin: 0;
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  color: #555;
  line-height: 1.4;
}

.edu-tier__subsection-arrow {
  font-size: 1.2rem;
  color: #0066cc;
  flex-shrink: 0;
}

/* Version comparison cards (miniAuto page) ------------------------------ */
.edu-tier__intro {
  margin-bottom: 14px;
}

.edu-tier__intro p {
  font-size: clamp(0.82rem, 2.3vw, 0.92rem);
  color: #444;
  line-height: 1.6;
}

.edu-tier__versions {
  margin-bottom: 14px;
}

.edu-tier__versions h2 {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.edu-tier__version-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 18px);
}

.edu-tier__version-card h3 {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 600;
}

.edu-tier__version-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
}

.edu-tier__version-card li {
  margin-bottom: 4px;
  color: #444;
}

.edu-tier__official {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 18px);
  margin-bottom: 12px;
}

.edu-tier__official h2 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 600;
}

.edu-tier__nav-sep {
  margin: 0 10px;
  color: #ccc;
}

/* Mobile compact -------------------------------------------------------- */
@media (max-width: 480px) {
  .edu-landing__tiers--student {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .edu-landing__tiers--frontier {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .edu-landing__card {
    padding: 12px 8px;
  }

  .edu-card-grid {
    grid-template-columns: 1fr;
  }

  .edu-landing__sep {
    margin: 0 8px;
  }
}

/* Exam pages ------------------------------------------------------------- */
.exam-list-page,
.exam-take-page,
.exam-result-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.exam-hero {
  text-align: center;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 24px);
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.exam-hero h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.2px;
}

.exam-subtitle {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Exam tabs */
.exam-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.exam-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f7;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.exam-tab.active {
  background: #0071e3;
  color: #fff;
}

/* Exam section headers */
.exam-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0071e3;
}

.exam-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 20px 0 12px;
}

.exam-section-gap {
  height: 24px;
}

/* Exam cards */
.exam-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.exam-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.exam-card__header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.exam-card__zone,
.exam-card__tier {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: #f0f5ff;
  color: #0071e3;
}

.exam-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.exam-card__desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.exam-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
}

.exam-card__history {
  font-size: 0.8rem;
  color: #0071e3;
  margin-bottom: 12px;
}

.exam-card__btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0071e3;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.exam-card__btn:hover {
  background: #0056b3;
}

.exam-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.exam-footer {
  text-align: center;
  padding: 24px 0 0;
  margin-top: 8px;
  border-top: 1px solid #f0f0f5;
}

.exam-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.exam-footer a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.exam-footer a:hover {
  text-decoration: underline;
}

.exam-back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
}

/* Exam take page */
.exam-take__header {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.exam-take__header h1 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d1d1f;
}

.exam-take__info {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.exam-take__timer {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0071e3;
}

.exam-take__timer .warning {
  color: #ff3b30;
}

.exam-question {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.02);
}

.exam-question__header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #666;
}

.exam-question__num {
  font-weight: 600;
  color: #333;
}

.exam-question__type {
  padding: 2px 8px;
  border-radius: 8px;
  background: #f0f5ff;
  font-size: 0.75rem;
}

.exam-question__content {
  margin-bottom: 16px;
  line-height: 1.6;
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exam-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.2s;
}

.exam-option:hover {
  background: #f0f5ff;
}

.exam-option input {
  margin: 0;
}

.exam-option__key {
  font-weight: 600;
  color: #0071e3;
}

.exam-fill-input,
.exam-essay-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 0.95rem;
}

.exam-submit-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.exam-submit-btn {
  padding: 12px 32px;
  border-radius: 12px;
  background: #0071e3;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.exam-submit-btn:hover {
  background: #0056b3;
}

.exam-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.exam-progress {
  font-size: 0.9rem;
  color: #666;
}

.exam-take__back {
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 16px;
}

.exam-back-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.exam-back-link:hover {
  color: #004d99;
  text-decoration: underline;
}

/* Exam result page */
.exam-result__header {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #fff8f0 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.exam-result__header h1 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d1d1f;
}

.exam-result__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
}

.score-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.score-card--passed {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.score-card--failed {
  background: linear-gradient(135deg, #ffebee 0%, #fff3e0 100%);
}

.score-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.score-card__result {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.score-card__score {
  margin-bottom: 16px;
}

.score-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0071e3;
}

.score-card__total {
  font-size: 1.2rem;
  color: #666;
}

.score-card__details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
}

.review-section h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.review-question {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  border-left: 4px solid;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.review-question--correct {
  border-left-color: #34c759;
}

.review-question--wrong {
  border-left-color: #ff3b30;
}

.review-question__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-question__status {
  font-weight: 500;
}

.review-question__score {
  font-size: 0.85rem;
  color: #666;
}

.review-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.review-option {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-option--correct {
  background: #e8f5e9;
}

.review-option--wrong {
  background: #ffebee;
}

.review-option__mark {
  margin-left: auto;
  font-size: 0.75rem;
  color: #34c759;
}

.review-answer {
  margin: 12px 0;
  font-size: 0.9rem;
}

.review-answer__user {
  margin-bottom: 4px;
}

.review-answer__correct {
  color: #34c759;
}

.review-explanation {
  margin-top: 12px;
  padding: 12px;
  background: #f0f5ff;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.exam-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.exam-action-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: #0071e3;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s;
}

.exam-action-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.exam-action-btn--secondary {
  background: #f5f5f7;
  color: #333;
}

.exam-action-btn--secondary:hover {
  background: #e8e8ed;
}

/* VIP entry card on landing page */
.edu-landing__vip {
  margin-top: 8px;
}

.edu-landing__vip-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.edu-landing__vip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.edu-landing__vip-icon {
  font-size: 2rem;
}

.edu-landing__vip-content {
  flex: 1;
}

.edu-landing__vip-content h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.edu-landing__vip-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.edu-landing__vip-arrow {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Exam entry card on landing page */
.edu-landing__exam {
  margin-top: 8px;
}

.edu-landing__exam-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.edu-landing__exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.edu-landing__exam-icon {
  font-size: 2rem;
}

.edu-landing__exam-content {
  flex: 1;
}

.edu-landing__exam-content h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.edu-landing__exam-content p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.edu-landing__exam-arrow {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* ============================================================
 * Tier detail pages (highschool, college, autocar, drone, etc.)
 * ============================================================ */
.edu-tier {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 16px);
}

.edu-tier__hero {
  text-align: center;
  padding: clamp(20px, 5vw, 40px) clamp(12px, 3vw, 24px);
  background: linear-gradient(135deg, #f5f7ff 0%, #fff5f0 100%);
  border-radius: 16px;
  margin-bottom: 24px;
}

.edu-tier__hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #1a1a2e;
}

.edu-tier__subtitle {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: #666;
}

.edu-tier__section {
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.edu-tier__section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f5;
}

.edu-tier__section h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

/* File list (OSS resources) */
.edu-resources__file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-resources__file-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.edu-resources__file-list li:last-child {
  border-bottom: none;
}

.edu-resources__file-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edu-resources__file-list a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Reference resource list */
.edu-tier__references {
  margin-top: 32px;
}

.edu-tier__references-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8f0;
}

.edu-resources__ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-resources__ref-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.edu-resources__ref-list li:last-child {
  border-bottom: none;
}

.edu-resources__ref-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.edu-resources__ref-list a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.edu-resources__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Navigation back link */
.edu-tier__nav {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}

.edu-tier__nav a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.edu-tier__nav a:hover {
  text-decoration: underline;
}

/* Tier-specific accent colors */
.edu-tier--highschool .edu-tier__hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
}

.edu-tier--college .edu-tier__hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ede9fe 100%);
}

.edu-tier--autocar .edu-tier__hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.edu-tier--drone .edu-tier__hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);
}

.edu-tier--universe .edu-tier__hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
}

.edu-tier--universe .edu-tier__hero h1,
.edu-tier--universe .edu-tier__subtitle {
  color: #fff;
}

.edu-tier--bci .edu-tier__hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.edu-tier--ai .edu-tier__hero {
  background: linear-gradient(135deg, #f0f0ff 0%, #e8f5e9 100%);
}

.edu-tier--submersible .edu-tier__hero {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

/* ========== VIP Courses Page — Apple-style refined ========== */
.edu-vip {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Hero */
.edu-vip__hero {
  position: relative;
  text-align: center;
  padding: 56px 24px 48px;
  border-radius: 20px;
  margin: 24px 0 40px;
  overflow: hidden;
  background: linear-gradient(160deg, #fef9ee 0%, #fde8c8 40%, #fcd9a6 100%);
}

.edu-vip__hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(251,191,36,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.edu-vip__hero-content {
  position: relative;
  z-index: 1;
}

.edu-vip__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.edu-vip__hero h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #451a03;
  letter-spacing: -0.2px;
}

.edu-vip__tagline {
  font-size: 1rem;
  color: #92400e;
  margin: 0 0 6px;
  font-weight: 500;
}

.edu-vip__desc {
  font-size: 0.9rem;
  color: #a16207;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Features strip */
.edu-vip__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .edu-vip__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-vip__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-vip__feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.edu-vip__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  color: #92400e;
}

.edu-vip__feature-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: #1f2937;
}

.edu-vip__feature-text p {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

/* Section headers */
.edu-vip__section-header {
  text-align: center;
  margin-bottom: 24px;
}

.edu-vip__section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1f2937;
}

.edu-vip__section-header p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0;
}

/* Course cards grid */
.edu-vip__courses {
  margin-bottom: 48px;
}

.edu-vip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.edu-vip__card {
  display: block;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.edu-vip__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.edu-vip__card-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.edu-vip__card-emoji {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.edu-vip__card-content {
  padding: 18px 20px 20px;
}

.edu-vip__card-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1f2937;
  line-height: 1.3;
}

.edu-vip__card-content p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.5;
}

.edu-vip__card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d97706;
  transition: color 0.15s;
}

.edu-vip__card:hover .edu-vip__card-link {
  color: #b45309;
}

/* Learning outcomes */
.edu-vip__outcomes {
  margin-bottom: 48px;
}

.edu-vip__outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .edu-vip__outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-vip__outcome {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.edu-vip__outcome:hover {
  transform: translateY(-2px);
}

.edu-vip__outcome-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.edu-vip__outcome h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1f2937;
}

.edu-vip__outcome p {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* CTA */
.edu-vip__cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 20px;
  margin-bottom: 32px;
}

.edu-vip__cta-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #166534;
}

.edu-vip__cta-content > p {
  font-size: 0.9rem;
  color: #15803d;
  margin: 0 0 16px;
}

.edu-vip__cta-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edu-vip__cta-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Wrong answers summary */
.wrong-answers-summary {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.wrong-answers-summary h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #dc2626;
}

.wrong-answers-summary__hint {
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.wrong-answers-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrong-answers-summary__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid #ef4444;
  font-size: 0.9rem;
}

.wrong-answers-summary__item:last-child {
  margin-bottom: 0;
}

.wrong-answers-summary__num {
  font-weight: 600;
  color: #dc2626;
  min-width: 50px;
}

.wrong-answers-summary__question {
  flex: 1;
  min-width: 200px;
  color: #374151;
}

.wrong-answers-summary__your-answer {
  color: #dc2626;
}

.wrong-answers-summary__correct-answer {
  color: #16a34a;
}

.wrong-answers-summary__your-answer strong,
.wrong-answers-summary__correct-answer strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .wrong-answers-summary__item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== miniAuto Password Gate Page ========== */
.miniauto-password-page {
  max-width: 480px;
  margin: 4rem auto;
  padding: 0 16px;
}

.miniauto-password-page__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: clamp(24px, 5vw, 40px);
  text-align: center;
}

.miniauto-password-page__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.miniauto-password-page__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1d1d1f;
}

.miniauto-password-page__desc {
  font-size: 0.95rem;
  color: #6e6e73;
  margin: 0 0 24px;
}

.miniauto-password-page__form .form-item {
  margin-bottom: 16px;
}

.miniauto-password-page__form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.miniauto-password-page__form input[type="password"]:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.miniauto-password-page__form .miniauto-password-submit,
.miniauto-password-page__form .form-actions input[type="submit"] {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: #0071e3;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.miniauto-password-page__form .form-actions input[type="submit"]:hover {
  background: #0056b3;
}

.miniauto-password-page__form .description {
  font-size: 0.85rem;
  color: #86868b;
  margin-top: 4px;
}
