/* V3.4 首页 · 全屏背景 + 圆形科目按钮 */

.page--home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background-color: #ff9a3c;
  background-image: url("../images/background-babahomework-cn.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 62% center;
}

.home-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 248, 240, 0.72) 0%,
    rgba(255, 248, 240, 0.42) 42%,
    rgba(255, 236, 210, 0.18) 68%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.home-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(20px, 9vw, 155px) 0 clamp(20px, 9vw, 155px);
}

.logo-link,
.logo-wrapper,
.home-header__logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.site-logo {
  display: block;
  width: clamp(150px, 10vw, 205px);
  height: auto;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.home-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.home-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #2b211c;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(43, 33, 28, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background 0.12s ease;
}

.home-header__icon {
  margin-right: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06));
}

.home-header__link:hover,
.home-header__link:focus-visible {
  color: #2b211c;
  background: rgba(255, 255, 255, 0.92);
  outline: 2px solid rgba(255, 138, 31, 0.35);
  outline-offset: 2px;
}

.home-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 24px 0 120px;
}

.hero-left-content {
  position: relative;
  z-index: 2;
  width: min(56vw, 820px);
  margin-left: clamp(70px, 9vw, 155px);
}

.hero-copy {
  width: 100%;
}

.home-hero__title {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.home-hero__tagline {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.home-subject-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.home-subject-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-subject-card:hover,
.home-subject-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  outline: none;
}

.home-subject-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
}

.home-subject-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-subject-card__name {
  font-size: 20px;
  font-weight: 900;
  color: #382d27;
  line-height: 1.1;
}

.home-subject-card__desc {
  font-size: 12px;
  font-weight: 700;
  color: #6b5b52;
  line-height: 1.35;
}

.home-subject-card--math .home-subject-card__icon {
  filter: hue-rotate(-8deg) saturate(1.1);
}

.home-subject-card--chinese .home-subject-card__icon {
  filter: hue-rotate(180deg) saturate(1.05);
}

.home-subject-card--english .home-subject-card__icon {
  filter: hue-rotate(20deg) saturate(1.05);
}

.home-hero__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.home-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #5a4a3a;
}

.home-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  color: var(--color-primary);
  background: #fff3e8;
  border-radius: 50%;
}

.home-secondary {
  background: var(--color-bg);
  padding: 28px 20px 36px;
}

.home-secondary__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.home-secondary__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-text);
}

.home-secondary__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-secondary__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.home-secondary__item + .home-secondary__item {
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.home-secondary__subject {
  font-weight: 800;
  color: #444;
}

.home-secondary__value {
  font-weight: 600;
  color: #777;
}

.home-secondary__total {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 900;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .home-hero {
    background-position: 78% center;
  }

  .home-header {
    padding: 14px 20px 0;
  }

  .hero-left-content {
    width: 100%;
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero__body {
    padding-bottom: 140px;
  }

  .subject-buttons,
  .home-orbs,
  .home-subject-cards {
    margin-left: 0;
    justify-content: stretch;
  }

  .home-subject-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-subject-card {
    min-height: 80px;
    padding: 12px 14px;
  }
}

@media (max-width: 375px) {
  .home-header {
    padding: 10px 12px 0;
  }

  .site-logo {
    width: min(148px, 46vw);
  }

  .hero-left-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-hero__body {
    padding-bottom: 150px;
  }

  .subject-buttons,
  .home-orbs,
  .home-subject-cards {
    gap: 8px;
  }

  .home-subject-card {
    min-height: 72px;
  }

  .home-subject-card__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .home-subject-card__name {
    font-size: 18px;
  }

  .home-hero__strip {
    gap: 6px 12px;
    padding: 12px 10px 14px;
  }

  .home-strip__item {
    font-size: 12px;
  }
}

/* Beian footer */
.home-beian {
  text-align: center;
  padding: 14px 16px 18px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  background: #f9f6f2;
  border-top: 1px solid #ebe5dc;
}

.home-beian__text {
  display: inline;
}

.home-beian__separator {
  margin: 0 8px;
  color: #ccc;
}

.home-beian__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #555;
  text-decoration: none;
}

.home-beian__link:hover {
  color: #333;
}

.home-beian__icon {
  vertical-align: middle;
}

@media (max-width: 480px) {
  .home-beian {
    font-size: 11px;
    padding: 10px 12px 14px;
  }

  .home-beian__separator {
    margin: 0 4px;
  }
}
