/* ============================================================
   HVAC Exam Master — 首页专用样式
   变量覆盖 / 按钮覆盖 / Hero / Trust Bar / Features / Showcase
   Comparison / Pricing / Exam Path / FAQ / Testimonials / Blog
   / 首页移动端响应式

   在 shell.css 之后加载。
   ============================================================ */

/* ================= 首页变量覆盖（仅与 shell.css 不同的值） ================= */
:root {
  --primary-blue: #0ea5e9;
  --text-light: #64748b;
}

body {
  line-height: 1.6;
}

/* === 首页按钮覆盖（仅覆盖与 shell.css 不同的属性） === */
.btn {
    padding: 16px 36px;
}

.btn-primary {
    border: none;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

/* ================= Hero ================= */
.hero {
  min-height: 85vh;
  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.75)),
    url('/image/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  background: rgba(249, 115, 22, 0.2);
  color: #ffad66;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  display: inline-block;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 20px;
  color: #e2e8f0;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ================= Trust Bar ================= */
.trust-bar {
  background: var(--bg-light);
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.trust-text {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ================= Features ================= */
.features {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
}

.feature-item {
  flex: 1;
}

.icon-wrapper {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 24px;
}

.feature-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-item p {
  color: var(--text-light);
  max-width: 300px;
  margin: 0 auto;
}

/* ================= Showcase ================= */
.showcase {
  padding: 100px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.showcase .container {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
}

.showcase-text {
  flex: 1;
  padding-right: 20px;
}

.showcase-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.showcase-text p {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 30px;
}

.check-list li {
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--primary-dark);
  font-size: 16px;
}

.check-list i {
  color: var(--accent);
  margin-top: 4px;
}

.showcase-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.showcase-img img {
  width: auto;
  max-width: 100%;
  max-height: 550px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15);
}

/* ================= Comparison ================= */
.comparison {
  padding: 100px 0;
  background: white;
}

.comparison-wrapper {
  display: flex;
  max-width: 900px;
  margin: 60px auto 0;
  align-items: stretch;
}

.comp-labels {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  padding-top: 130px;
  padding-right: 20px;
  text-align: right;
  font-weight: 700;
  color: var(--text-light);
}

.comp-label {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.comp-card-others {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 40px 0;
  text-align: center;
}

.comp-header-others {
  height: 90px;
  color: var(--text-light);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-card-winner {
  flex: 1.2;
  background: var(--primary-dark);
  color: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.4);
  padding: 40px 0;
  text-align: center;
  position: relative;
  transform: scale(1.05);
  z-index: 10;
}

.winner-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.comp-header-winner {
  height: 90px;
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-row {
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comp-card-winner .comp-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.val-bad {
  color: #64748b;
  font-weight: 600;
  font-size: 16px;
}

.val-bad span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

.val-good {
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.val-good span {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* ================= Pricing ================= */
.pricing {
  padding: 100px 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: flex-start;
}

.pricing-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  width: 320px;
  border: 1px solid var(--border);
  text-align: center;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.recommended {
  border: 2px solid var(--accent);
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.pricing-card.featured {
  background: linear-gradient(160deg, #0f172a 0%, #111827 100%);
  border: 1px solid #1e293b;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  position: relative;
  z-index: 2;
}

.pop-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-transform: uppercase;
  border-radius: 999px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.pop-tag.pop-tag-dark {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.price {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 18px 0 8px;
  line-height: 1;
}

.pricing-card.featured .price {
  color: white;
}

.price-note {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
  font-weight: 600;
}

.pricing-card.featured .price-note {
  color: #cbd5e1;
}

.pricing-card h3 {
  font-size: 28px;
  margin-top: 10px;
}

.pricing-blurb {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.pricing-card.featured .pricing-blurb {
  color: #cbd5e1;
}

.p-list {
  text-align: left;
  margin: 30px 0;
  padding: 0 10px;
}

.p-list li {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.p-list i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.feature-label {
  display: block;
  font-weight: 800;
}

.feature-desc {
  display: block;
  margin-top: 2px;
}

.pricing-card.featured .p-list li {
  color: #e2e8f0;
}

.pricing-card.featured .p-list i {
  color: #fbbf24;
}

.pricing-card.recommended .p-list i {
  color: #2563eb;
}

.ai-icon {
  color: #2563eb;
  animation: aiPulse 1.8s ease-in-out infinite;
}

.feature-key {
  font-weight: 800;
}

.pricing-cta-dark {
  background: white;
  color: #0f172a;
  border: 2px solid white;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.pricing-cta-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.22);
}

@keyframes aiPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.08);
    text-shadow: 0 0 14px rgba(37, 99, 235, 0.26);
  }
}

/* ================= Exam Path ================= */
.exam-path {
  padding: 100px 0;
  background: var(--bg-light);
}

.exam-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.exam-path-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.exam-path-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.exam-path-card p {
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

.exam-path-list li {
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  gap: 10px;
}

.exam-path-list i {
  color: var(--accent);
  margin-top: 4px;
}

.exam-compare {
  width: 100%;
  margin-top: 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
}

.exam-compare th,
.exam-compare td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.exam-compare thead th {
  background: var(--primary-dark);
  color: white;
  font-weight: 800;
  border-top: 0;
}

.exam-compare th:first-child,
.exam-compare td:first-child {
  width: 22%;
  border-left: 0;
  font-weight: 800;
}

/* ================= Home FAQ ================= */
.home-faq {
  padding: 100px 0;
  background: var(--bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.faq-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.65;
}

/* ================= Testimonials ================= */
.testimonials {
  padding: 100px 0;
  background: var(--primary-dark);
  color: white;
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.testi-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.testi-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  border: 1px solid #334155;
}

.stars {
  color: #f59e0b;
  margin-bottom: 15px;
  font-size: 14px;
}

.quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.author {
  font-weight: 700;
  color: white;
}

.author span {
  display: block;
  font-weight: 400;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 4px;
}

/* ================= Blog Feed ================= */
.blog-section {
  padding: 100px 0;
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-img-wrapper {
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
}

.blog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: block;
}

.blog-title:hover {
  color: var(--primary-blue);
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================= 首页移动端响应式 ================= */
@media (max-width: 768px) {
  /* --- 布局通用修正 --- */
  .hero h1 {
    font-size: 34px !important;
    line-height: 1.2;
  }

  .hero-content,
  .features-grid,
  .exam-path-grid,
  .pricing-grid,
  .footer-top,
  .testi-grid,
  .showcase .container {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card,
  .testi-card,
  .exam-path-card {
    width: 100%;
  }

  .exam-compare {
    table-layout: auto;
  }

  .exam-compare thead {
    display: none;
  }

  .exam-compare tr {
    display: block;
    border-top: 1px solid var(--border);
  }

  .exam-compare tbody tr:first-child {
    border-top: 0;
  }

  .exam-compare th,
  .exam-compare td {
    display: block;
    width: auto;
    border-left: 0;
    border-top: 0;
    padding: 12px 16px;
  }

  .exam-compare td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 800;
    color: var(--primary-dark);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .showcase-text {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .showcase-img img {
    max-width: 100%;
    height: auto;
  }

  /* --- 首页 Hero 按钮修正 (扁平胶囊) --- */
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 25px;
  }

  .hero-main-btn {
    background-color: #ffa500 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 50px !important;
    width: 90% !important;
    max-width: 320px;
    padding: 16px 0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .hero-main-btn i {
    color: #000 !important;
  }

  /* --- 表格修正 (保持之前做好的并排效果) --- */
  .comparison-wrapper {
    flex-direction: row !important;
    align-items: stretch;
    gap: 0;
    margin-top: 30px;
    width: 100%;
    overflow: visible;
  }

  .comp-labels {
    display: none !important;
  }

  .comp-card-others,
  .comp-card-winner {
    display: block !important;
    flex: 1;
    width: 50%;
    margin: 0;
  }

  .comp-card-others {
    border-radius: 12px 0 0 12px;
    border-right: none;
    background: #f9f9f9;
  }

    .comp-card-winner {
        border-radius: 0 12px 12px 0;
        transform: none;
        box-shadow: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .comp-row {
    padding: 12px 2px;
    font-size: 13px;
    height: auto;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
  }

  .winner-badge {
    top: -12px;
    font-size: 10px;
    padding: 4px 10px;
  }

    .comp-row i {
        font-size: 16px;
    }
}
