/* ==========================================================================
   尧图网站设计 - 首页专用样式 page-index.css
   布局：阶梯式高低错落 · 非通用三段式
   ========================================================================== */

/* ==========================================================================
   Hero 全屏 Banner（左右不对称 + 浮动卡片错落）
   ========================================================================== */
.hero {
  position: relative;
  padding: 60px 0 90px;
  background: var(--grad-macaron);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 168, 0.22) 0%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 168, 224, 0.18) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-ink);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.hero-text .hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.hero-text h1 .yel {
  color: var(--yellow-ink);
  position: relative;
  display: inline-block;
}

.hero-text h1 .yel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
  z-index: -1;
  border-radius: var(--r-pill);
}

.hero-text h1 .pink {
  color: var(--pink-deep);
}

.hero-sub {
  font-size: 16px;
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 540px;
}

.hero-stats .stat {
  padding: 18px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-stats .stat strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--pink-deep);
  font-family: var(--font-en);
  letter-spacing: 0.5px;
}

.hero-stats .stat:nth-child(2) strong { color: var(--blue-deep); }
.hero-stats .stat:nth-child(3) strong { color: var(--yellow-ink); }
.hero-stats .stat:nth-child(4) strong { color: var(--pink-deep); }

.hero-stats .stat span {
  font-size: 11.5px;
  color: var(--muted);
}

/* Hero 视觉区：错落浮动卡片 */
.hero-visual {
  position: relative;
  height: 480px;
}

.hero-main-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 340px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-card.fc-1 {
  bottom: 130px;
  left: 0;
  animation: floatY 4s ease-in-out infinite;
}

.hero-float-card.fc-2 {
  bottom: 30px;
  right: 10%;
  animation: floatY 4.5s ease-in-out infinite 0.5s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float-card .fc-ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-soft);
  flex-shrink: 0;
}

.hero-float-card.fc-2 .fc-ico { background: var(--blue-soft); }

.hero-float-card .fc-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.hero-float-card .fc-text span {
  font-size: 11.5px;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: var(--muted);
  font-family: var(--font-en);
  z-index: 3;
}

.hero-scroll .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
}

.hero-scroll .mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: var(--muted);
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   核心优势（错落卡片：高低不一）
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.adv-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
}

/* 阶梯错落：第2、4张下沉 */
.adv-card:nth-child(2), .adv-card:nth-child(4) {
  transform: translateY(34px);
}

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.adv-card:nth-child(2):hover, .adv-card:nth-child(4):hover {
  transform: translateY(28px);
}

.adv-no {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 56px;
  font-weight: 700;
  color: var(--pink-soft);
  font-family: var(--font-en);
  line-height: 1;
  z-index: 0;
}

.adv-card:nth-child(2) .adv-no { color: var(--blue-soft); }
.adv-card:nth-child(3) .adv-no { color: var(--yellow-soft); }
.adv-card:nth-child(4) .adv-no { color: var(--pink-soft); }

.adv-ico {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.adv-card:nth-child(2) .adv-ico { background: var(--blue-soft); }
.adv-card:nth-child(3) .adv-ico { background: var(--yellow-soft); }
.adv-card:nth-child(4) .adv-ico { background: var(--pink-soft); }

.adv-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.adv-card p {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.78;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   核心模块（图文交错行，沿用 components split-row）
   ========================================================================== */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.svc-row.reverse .svc-media { order: 2; }

.svc-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.svc-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.svc-row:hover .svc-media img { transform: scale(1.04); }

.svc-media .badge-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pink-ink);
  box-shadow: var(--shadow-xs);
}

.svc-body .step-no { margin-bottom: 10px; display: block; }

.svc-body h3 {
  font-size: 25px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.svc-body > p {
  font-size: 14.5px;
  color: var(--body);
  margin-bottom: 20px;
  line-height: 1.85;
}

.svc-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 26px;
}

.svc-feat li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.8px;
  color: var(--body);
}

.svc-feat li svg { flex-shrink: 0; color: var(--pink-deep); }

/* ==========================================================================
   快速入口（三身份卡片，高低错落）
   ========================================================================== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.quick-card {
  position: relative;
  padding: 38px 30px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.quick-card:nth-child(1) { background: var(--grad-pink); box-shadow: var(--shadow-pink); transform: translateY(20px); }
.quick-card:nth-child(2) { background: var(--grad-blue); box-shadow: var(--shadow-blue); transform: translateY(-10px); }
.quick-card:nth-child(3) { background: var(--grad-yellow); box-shadow: 0 10px 28px rgba(242, 192, 64, 0.3); color: var(--ink); transform: translateY(20px); }

.quick-card:hover { transform: translateY(0) !important; }

.quick-card .qc-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.quick-card h3 {
  font-size: 22px;
  color: inherit;
  margin-bottom: 10px;
}

.quick-card p {
  font-size: 13.8px;
  opacity: 0.92;
  margin-bottom: 20px;
  line-height: 1.75;
}

.quick-card .qc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   课程模块（首页精选，错落 bento 网格）
   ========================================================================== */
.course-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 22px;
}

.course-bento .bento {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--line);
  background: #fff;
}

.course-bento .bento:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.course-bento .bento.big {
  grid-column: span 2;
  grid-row: span 2;
}

.course-bento .bento.tall {
  grid-row: span 2;
}

.bento-img {
  position: absolute;
  inset: 0;
}

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

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(58, 61, 82, 0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}

.bento-overlay .b-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
  align-self: flex-start;
}

.bento-overlay h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 4px;
}

.bento-overlay p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.course-bento .bento.plain {
  background: #fff;
}

.course-bento .bento.plain .plain-inner {
  position: relative;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-bento .bento.plain .plain-ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-bento .bento.plain:nth-child(3) .plain-ico { background: var(--blue-soft); }
.course-bento .bento.plain:nth-child(5) .plain-ico { background: var(--yellow-soft); }

.course-bento .bento.plain h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.course-bento .bento.plain p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.course-bento .bento.plain .plain-more {
  font-size: 12.5px;
  color: var(--pink-deep);
  font-weight: 600;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 42px; }
  .hero-visual { height: 380px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-card:nth-child(2), .adv-card:nth-child(4) { transform: translateY(0); }
  .svc-row { grid-template-columns: 1fr; gap: 32px; }
  .svc-row.reverse .svc-media { order: 0; }
  .svc-media img { height: 300px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card:nth-child(n) { transform: translateY(0); }
  .course-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .course-bento .bento.big { grid-column: span 2; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 70px; }
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: 14.5px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 280px; }
  .hero-main-img { height: 220px; width: 88%; }
  .hero-float-card { padding: 12px 14px; }
  .hero-float-card .fc-ico { width: 32px; height: 32px; }
  .hero-float-card .fc-text strong { font-size: 12.5px; }
  .hero-float-card .fc-text span { font-size: 10.5px; }
  .adv-grid { grid-template-columns: 1fr; }
  .svc-feat { grid-template-columns: 1fr; }
  .svc-media img { height: 220px; }
  .course-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .course-bento .bento.big, .course-bento .bento.tall { grid-column: auto; grid-row: auto; }
  .course-bento .bento { min-height: 180px; }
}
