/**
 * 首页视觉增强（对齐 doubao-projects / 学无止境风格）
 * 主色 #4D7AFC，强调橙红渐变
 */
.page-home {
  --home-primary: #4d7afc;
  --home-primary-dark: #2d4db8;
  --home-accent-from: #f59e0b;
  --home-accent-to: #ef4444;
  --home-text: #1f2937;
  --home-muted: #6b7280;
  --home-radius: 14px;
  background: #f3f4f6;
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4d7afc 0%, #3b64d9 50%, #2d4db8 100%);
  padding: 134px 0 64px;
  margin-top: 0px;
}

.page-home .home-hero::before,
.page-home .home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.page-home .home-hero::before {
  width: 280px;
  height: 280px;
  background: #fff;
  top: -40px;
  left: 8%;
}

.page-home .home-hero::after {
  width: 360px;
  height: 360px;
  background: #93c5fd;
  bottom: -80px;
  right: 5%;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-home .home-hero-left {
  flex: 1 1 420px;
  min-width: 280px;
  color: #fff;
}

.page-home .home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-home .home-hero-tag {
  background: #eab308;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.page-home .home-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
}

.page-home .home-hero-count span.cd {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.page-home .home-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-home .home-hero h1 em {
  font-style: normal;
  color: #fde047;
}



.page-home .home-hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(219, 234, 254, 0.95);
  margin: 0 0 24px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .home-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(90deg, var(--home-accent-from), var(--home-accent-to));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.45);
}

.page-home .home-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease;
}

.page-home .home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-home .home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.page-home .home-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-hero-stats svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.page-home .home-vip-card {
  flex: 0 1 340px;
  background: linear-gradient(145deg, #fbbf24 0%, #f97316 45%, #ef4444 100%);
  border-radius: var(--home-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #fff;
}

.page-home .home-vip-card-inner {
  padding: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 40%);
  color: #fff;
}

.page-home .home-vip-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.page-home .home-vip-card .sub {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.75;
  color: #fff;
}

.page-home .home-vip-pricebox {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px 12px;
  color: var(--home-text);
  margin-bottom: 12px;
}

.page-home .home-vip-pricebox .row1 {
  text-align: center;
  margin-bottom: 6px;
}

.page-home .home-vip-pricebox .row1 .label {
  font-size: 12px;
  color: var(--home-muted);
}

.page-home .home-vip-pricebox .row1 .price {
  font-size: 32px;
  font-weight: 900;
  color: #dc2626;
  margin: 0 6px;
}

.page-home .home-vip-pricebox .row1 .orig {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

.page-home .home-vip-pricebox .row2 {
  text-align: center;
  font-size: 13px;
  color: var(--home-muted);
  margin-bottom: 8px;
}

.page-home .home-vip-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #b91c1c;
  margin-bottom: 10px;
}

.page-home .home-vip-count .cd {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
}

.page-home .home-vip-card .home-btn-primary {
  width: 100%;
  height: 42px;
  font-size: 15px;
  box-shadow: none;
}

.page-home .home-vip-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 13px;
  opacity: 0.95;
  padding-top: 4px;
  padding-bottom: 15px;
}

.page-home .home-vip-mini div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home #banner-box {
  position: relative;
  margin-top: 0;
}

.page-home .home-privileges {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 36px 0;
}

.page-home .home-privileges-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .page-home .home-privileges-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .page-home .home-privileges-inner {
    grid-template-columns: 1fr;
  }
}

.page-home .home-priv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.page-home .home-priv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(77, 122, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--home-primary);
  font-size: 30px;
}

.page-home .home-priv-item strong {
  display: block;
  font-size: 16px;
  color: var(--home-text);
  margin-bottom: 4px;
}

.page-home .home-priv-item span {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.45;
}

.page-home .home-cat-section {
  padding: 44px 0 8px;
}

.page-home .home-cat-head {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home .home-cat-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--home-text);
}

.page-home .home-cat-head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-primary) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-home .home-cat-head a:hover {
  text-decoration: underline !important;
}

.page-home .home-cat-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .page-home .home-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .page-home .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-home .home-cat-item {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--home-radius);
  padding: 20px 12px 16px;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .home-cat-item:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.page-home .home-cat-icon {
  font-size: 32px;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.page-home .home-cat-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--home-text);
  margin-bottom: 4px;
}

.page-home .home-cat-more {
  font-size: 12px;
  color: var(--home-muted);
}

.page-home .home-main-inner {
  position: relative;
  margin-top: 48px !important;
}

.page-home .live-title,
.page-home .course-title,
.page-home .bundle-title,
.page-home .consultation-title {
  margin-bottom: 4px;
}

.page-home .live-title-msg,
.page-home .course-title-msg,
.page-home .bundle-title-msg,
.page-home .consultation-title-msg {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--home-text) !important;
  border-left: none !important;
  padding-left: 0 !important;
}

.page-home .live-title-more a,
.page-home .course-title-more a,
.page-home .bundle-title-more a,
.page-home .consultation-title-more a {
  color: var(--home-primary) !important;
  font-weight: 600;
}

.page-home .course-item,
.page-home .live-item,
.page-home .bundle-item {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .course-item:hover,
.page-home .live-item:hover,
.page-home .bundle-item:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/* 热门资讯：grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5（Tailwind 等效） */
.page-home .consultation-box {
  padding: 44px 0 8px;
}

.page-home .consultation-title {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home ul.consultation-list.home-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1180px;
}

@media (min-width: 768px) {
  .page-home ul.consultation-list.home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home ul.consultation-list.home-news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-news-card {
  margin: 0;
  min-width: 0;
}

.page-home .home-news-card > a {
  display: block;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.page-home .home-news-card-inner {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--home-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .home-news-card:hover .home-news-card-inner {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.page-home .home-news-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.page-home .home-news-cover .consultation-item-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-news-card .consultation-item-content {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.page-home .home-news-card .consultation-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--home-text) !important;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .home-news-card .consultation-item-price {
  font-size: 13px;
  color: var(--home-muted) !important;
  margin: 0 0 12px;
  flex: 1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .home-news-meta.consultation-item-time {
  position: static !important;
  bottom: auto !important;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: var(--home-muted);
}

.page-home .home-news-meta .consultation-item-img {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-home .home-news-meta .consultation-item-img img {
  width: 14px;
  height: auto;
  vertical-align: middle;
}

.page-home .home-vip-cta {
  margin: 48px 0 0;
  padding: 56px 20px;
  text-align: center;
  background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
  color: #fff;
}

.page-home .home-vip-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
}

.page-home .home-vip-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.page-home .home-vip-cta p {
  margin: 0 0 24px;
  font-size: 17px;
  opacity: 0.95;
}

.page-home .home-vip-cta .home-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #dc2626 !important;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.page-home .home-vip-cta .home-btn-cta:hover {
  transform: translateY(-2px);
}

.page-home .home-vip-cta .cd {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  background: #fff;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 页脚增强：仅首页（.footer.home-footer） */
.footer.home-footer {
  background: #111827 !important;
  height: auto !important;
  min-height: auto;
  padding: 48px 0 28px;
  text-align: left;
}

.footer.home-footer .home-footer-grid {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .footer.home-footer .home-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer.home-footer .home-footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer.home-footer .home-footer-brand {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

.footer.home-footer .home-footer-brand .name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer.home-footer .home-footer-brand .logo-dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4d7afc, #3b64d9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer.home-footer .home-footer-col h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.footer.home-footer .home-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer.home-footer .home-footer-col li {
  margin-bottom: 10px;
}

.footer.home-footer .home-footer-col a {
  color: #9ca3af !important;
  font-size: 14px;
  text-decoration: none !important;
}

.footer.home-footer .home-footer-col a:hover {
  color: #fff !important;
}

.footer.home-footer .home-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 13px;
  color: #6b7280 !important;
}

.footer.home-footer .home-footer-bottom a {
  color: #9ca3af !important;
}

.footer.home-footer .home-footer-links-bar {
  max-width: 1180px;
  margin: 0 auto 12px;
  padding: 0 20px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

.footer.home-footer .home-footer-links-bar a {
  color: #d1d5db !important;
  margin: 0 4px;
}

.footer.home-footer .home-footer-links-bar .sep {
  margin: 0 6px;
  opacity: 0.5;
}

.footer.home-footer .home-footer-links-bar .lbl {
  color: #6b7280;
}
