/* 首页 v8.1：国内家长转化型教培官网 */
.home-v8 {
  --home-ink: #10203b;
  --home-title: #071933;
  --home-body: #53657d;
  --home-blue: #1672d8;
  --home-blue-deep: #0d4fb5;
  --home-cyan: #18b8d7;
  --home-orange: #ff9000;
  --home-orange-deep: #f07100;
  --home-green: #13b981;
  --home-line: #dce9f7;
  --home-soft: #f4f9ff;
  --home-warm: #fff8ee;
  background: #fff;
  color: var(--home-ink);
}

.home-v8 .section {
  padding: clamp(56px, 6vw, 92px) 0;
}

.home-hero {
  position: relative;
  min-height: min(740px, calc(100vh - 74px));
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, #f7fbff 0%, #eef7ff 45%, #fff7e8 100%);
}

.home-hero-media,
.home-hero-shade {
  position: absolute;
  inset: 0;
}

.home-hero-media {
  left: auto;
  width: 52%;
  height: calc(100% - 86px);
  top: 43px;
  right: clamp(18px, 5vw, 110px);
  object-fit: cover;
  border-radius: 34px;
  opacity: .92;
  box-shadow: 0 30px 90px rgba(15, 68, 130, .18);
}

.home-hero-shade {
  background:
    radial-gradient(circle at 13% 14%, rgba(22,114,216,.16), transparent 26%),
    radial-gradient(circle at 77% 18%, rgba(255,144,0,.2), transparent 24%),
    linear-gradient(90deg, rgba(247,251,255,.98) 0%, rgba(247,251,255,.94) 42%, rgba(247,251,255,.55) 70%, rgba(247,251,255,.18) 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  padding: clamp(44px, 7vw, 86px) 0 76px;
}

.home-kicker,
.home-section-head span,
.home-final-cta span,
.home-diagnosis > span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eaf4ff;
  border: 1px solid #d6e9fc;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-hero-copy {
  max-width: 760px;
}

.home-hero-copy h1 {
  margin: 20px 0 16px;
  color: var(--home-title);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--home-body);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.75;
}

.home-need-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-need-row span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #1c4778;
  background: rgba(255,255,255,.88);
  border: 1px solid #dbeafe;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(16,73,132,.08);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-hero-actions .btn,
.home-section-row .btn,
.home-campus-panel .btn,
.home-final-cta .btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
}

.home-hero-actions .btn-accent,
.home-final-cta .btn-accent {
  background: linear-gradient(135deg, var(--home-orange), var(--home-orange-deep));
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(255,144,0,.26);
}

.home-hero-actions .btn-white {
  color: var(--home-blue);
  background: #fff;
  border: 1px solid #d7e7f8;
  box-shadow: 0 14px 30px rgba(16,73,132,.08);
}

.home-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 30px;
}

.home-proof-row span {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #49617a;
  background: rgba(255,255,255,.84);
  border: 1px solid #dceaf8;
  box-shadow: 0 12px 28px rgba(16,73,132,.08);
}

.home-proof-row strong {
  color: var(--home-blue);
  font-size: 24px;
  font-weight: 900;
}

.home-diagnosis {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  border: 1px solid #d6e8f9;
  box-shadow: 0 24px 70px rgba(15, 68, 130, .16);
}

.home-diagnosis h2 {
  margin: 15px 0 8px;
  font-size: 27px;
  font-weight: 900;
  color: var(--home-title);
}

.home-diagnosis p {
  margin: 0 0 16px;
  color: var(--home-body);
  line-height: 1.7;
}

.home-diagnosis form {
  display: grid;
  gap: 11px;
}

.home-diagnosis input,
.home-diagnosis select {
  height: 50px;
  border-radius: 13px;
  border: 1px solid #d7e5f5;
  padding: 0 14px;
  background: #fbfdff;
  color: var(--home-ink);
}

.home-diagnosis input:focus,
.home-diagnosis select:focus {
  outline: none;
  border-color: var(--home-blue);
  box-shadow: 0 0 0 4px rgba(22,114,216,.1);
}

.home-diagnosis button {
  height: 52px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--home-orange), var(--home-orange-deep));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255,144,0,.25);
}

.home-form-note {
  margin-top: 12px;
  color: #6a7a90;
  font-size: 13px;
}

.home-form-note i {
  color: var(--home-green);
  margin-right: 6px;
}

.home-quick {
  padding: 0 0 46px;
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-quick-grid article {
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--home-line);
  box-shadow: 0 20px 46px rgba(11,49,91,.1);
}

.home-quick-grid i {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
  font-size: 20px;
}

.home-quick-grid strong {
  color: var(--home-title);
  font-size: 18px;
  font-weight: 900;
}

.home-quick-grid span {
  color: var(--home-body);
  font-size: 13px;
  line-height: 1.5;
}

.home-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.home-section-head h2 {
  margin: 14px 0 10px;
  color: var(--home-title);
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.home-section-head p {
  color: var(--home-body);
  font-size: 17px;
  line-height: 1.8;
}

.home-section-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.home-path {
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.home-path-grid,
.home-course-grid,
.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-path-card,
.home-course-card,
.home-faq-grid article,
.home-faq-card {
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(11,49,91,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-decoration: none;
}

.home-path-card:hover,
.home-course-card:hover,
.home-campus-list a:hover,
.home-faq-grid article:hover,
.home-faq-card:hover {
  transform: translateY(-5px);
  border-color: #b9d7f4;
  box-shadow: 0 22px 58px rgba(11,49,91,.12);
}

.home-path-card {
  min-height: 318px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.home-path-card > i {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-cyan));
  font-size: 21px;
}

.home-path-card small {
  margin-top: 20px;
  color: var(--home-blue);
  font-weight: 900;
}

.home-path-card h3 {
  margin: 8px 0 10px;
  color: var(--home-title);
  font-size: 22px;
  font-weight: 900;
}

.home-path-card p {
  color: var(--home-body);
  line-height: 1.72;
}

.home-path-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.home-path-card div span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #436078;
  background: #eef5fd;
  font-size: 13px;
}

.home-path-card a,
.home-course-body a,
.home-more-link {
  margin-top: 18px;
  color: var(--home-blue);
  font-weight: 900;
  text-decoration: none;
}

.home-courses {
  background: #fff;
}

.home-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-course-card {
  overflow: hidden;
}

.home-course-cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #dff0ff, #fff4df);
}

.home-course-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(5, 38, 82, .48));
  pointer-events: none;
}

.home-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.home-course-card:hover img,
.home-campus-list a:hover img {
  transform: scale(1.05);
}

.home-course-cover span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--home-blue);
  background: rgba(255,255,255,.94);
  font-weight: 900;
  font-size: 13px;
}

.home-course-body {
  padding: 22px;
}

.home-course-body h3 {
  margin: 0 0 8px;
  color: var(--home-title);
  font-size: 22px;
  font-weight: 900;
}

.home-course-body p,
.home-meta {
  color: var(--home-body);
  line-height: 1.65;
}

.home-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
}

.home-meta i {
  color: var(--home-blue);
  margin-right: 7px;
}

.home-campus {
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.home-campus-panel {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 10%, rgba(22,114,216,.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(255,144,0,.12), transparent 24%),
    #fff;
  border: 1px solid var(--home-line);
  box-shadow: 0 22px 64px rgba(11,49,91,.08);
}

.home-campus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-campus-list a {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--home-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-campus-list img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  transition: transform .28s ease;
}

.home-campus-list strong,
.home-campus-list span {
  display: block;
  padding: 0 15px;
}

.home-campus-list strong {
  margin-top: 13px;
  color: var(--home-title);
  font-size: 18px;
  font-weight: 900;
}

.home-campus-list span {
  padding-bottom: 15px;
  margin-top: 7px;
  color: var(--home-body);
  font-size: 13px;
  line-height: 1.6;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: 24px;
}

.home-teacher-strip,
.home-news-list {
  border: 1px solid var(--home-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(11,49,91,.08);
  padding: 22px;
}

.home-teacher-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-teacher-strip article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--home-soft);
}

.home-teacher-strip img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
}

.home-teacher-strip strong,
.home-teacher-strip span {
  display: block;
}

.home-teacher-strip span {
  color: var(--home-body);
  font-size: 13px;
  margin-top: 4px;
}

.home-news-list {
  display: grid;
  gap: 10px;
}

.home-news-list a {
  padding: 14px 0;
  border-bottom: 1px solid #e8f0fa;
  color: inherit;
  text-decoration: none;
}

.home-news-list time {
  display: block;
  color: var(--home-blue);
  font-weight: 900;
  font-size: 13px;
}

.home-news-list strong {
  display: block;
  margin-top: 6px;
  color: var(--home-title);
  font-size: 18px;
}

.home-news-list span {
  display: block;
  margin-top: 6px;
  color: var(--home-body);
  line-height: 1.6;
}

.home-faq {
  background: var(--home-soft);
}

.home-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-faq-grid article,
.home-faq-card {
  padding: 24px;
  display: flex;
  min-height: 190px;
  flex-direction: column;
}

.home-faq-grid h3 {
  margin: 0 0 12px;
  color: var(--home-title);
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-faq-grid p {
  color: var(--home-body);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-faq-card span {
  margin-top: auto;
  color: var(--home-blue);
  font-weight: 800;
}

.home-final-cta {
  padding: clamp(64px, 7vw, 104px) 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,144,0,.22), transparent 28%),
    linear-gradient(135deg, #0b4f96, #1672d8 58%, #18b8d7);
}

.home-final-cta div div {
  max-width: 760px;
}

.home-final-cta span {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.home-final-cta h2 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
}

.home-final-cta p {
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  font-size: 18px;
}

@media (max-width: 1080px) {
  .home-hero-media {
    width: 58%;
    opacity: .34;
  }

  .home-hero-grid,
  .home-campus-panel,
  .home-trust-grid {
    grid-template-columns: 1fr;
  }

  .home-quick-grid,
  .home-path-grid,
  .home-course-grid,
  .home-campus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-media {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: .18;
  }

  .home-hero-grid {
    padding-top: 38px;
  }

  .home-hero-copy h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .home-proof-row {
    grid-template-columns: 1fr;
  }

  .home-hero-actions,
  .home-section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-quick {
    margin-top: 0;
    padding-top: 22px;
  }

  .home-quick-grid,
  .home-path-grid,
  .home-course-grid,
  .home-campus-list,
  .home-teacher-strip,
  .home-faq-grid {
    grid-template-columns: 1fr;
  }
}
