/* ============================
   home.css — 首页专属样式
   Version: 20260507-home-footer-1
   ============================ */

/* 首页导航配色覆盖 */

.subject-nav .inner {
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  border-bottom: none;
}

.subject-nav .library-nav-trigger,
.subject-nav .library-nav-link {
  color: #ffffff;
}

.subject-nav .library-nav-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.subject-nav .library-nav-trigger.is-active,
.subject-nav .library-nav-item.is-open .library-nav-trigger,
.subject-nav .library-nav-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* 搜索 Banner */

.home-hero {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  background: linear-gradient(90deg, #0d47a1 0%, #1976d2 100%);
  padding: 24px 24px 28px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 760px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 396px);
  gap: 20px;
  align-items: center;
}

.hero-copy-block {
  text-align: center;
  padding: 10px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "STKaiti", "KaiTi", "PingFang SC", sans-serif;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  margin: 0;
  font-size: 20px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "STKaiti", "KaiTi", "PingFang SC", sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #ffffffcc;
}

.hero-sub::before,
.hero-sub::after {
  color: #e0f0ff;
}

.hero-sub::before {
  content: "| ";
}

.hero-sub::after {
  content: " |";
}


.hero-promo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
  width: fit-content;
}

.hero-promo-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.hero-promo-item::before {
  content: "•";
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}

.hero-login-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(206, 226, 247, 0.92);
  box-shadow: 0 18px 36px rgba(15, 41, 82, 0.16);
  padding: 20px 18px 16px;
}

.hero-quick-entry {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(206, 226, 247, 0.92);
  box-shadow: 0 18px 36px rgba(15, 41, 82, 0.16);
  padding: 20px 18px 18px;
}

.hero-quick-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #1d2a3f;
}

.hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-entry-card {
  min-height: 116px;
  border: 1px solid #c9dff7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-entry-card:hover {
  transform: translateY(-2px);
  border-color: #7cb6ef;
  box-shadow: 0 8px 20px rgba(18, 99, 173, 0.16);
}

.hero-entry-name {
  font-size: 22px;
  font-weight: 700;
  color: #185f9f;
  letter-spacing: 1px;
}

.hero-entry-arrow {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 600;
  color: #1976d2;
}

.hero-hide {
  display: none !important;
}

.hero-login-guide {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: #1d2a3f;
}

.hero-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-login-input {
  width: 100%;
  height: 42px;
  border: 1px solid #c9d6eb;
  background: #f8fbff;
  color: #24364d;
  padding: 0 14px;
  font: inherit;
}

.hero-login-input:hover,
.hero-login-input:focus {
  outline: none;
  border-color: #1a73c9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 201, 0.10);
}

.hero-login-input-optional {
  opacity: 0.9;
  font-size: 13px;
  color: #48607d;
}

.hero-login-input.is-locked,
.hero-login-input:disabled {
  background: #f0f2f5;
  color: #5a6a7d;
  border-color: #d0d8e4;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #5a6a7d;
}

.hero-login-input.is-locked:hover,
.hero-login-input.is-locked:focus,
.hero-login-input:disabled:hover,
.hero-login-input:disabled:focus {
  border-color: #d0d8e4;
  background: #f0f2f5;
  box-shadow: none;
}

.hero-login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
}

.hero-send-code-btn {
  height: 42px;
  border: 1px solid #a7c8ed;
  background: #edf5ff;
  color: #1a73c9;
  font-size: 14px;
  font-weight: 700;
}

.hero-send-code-btn:hover:not(:disabled) {
  border-color: #1a73c9;
  background: #dcebff;
  color: #0f5da6;
}

.hero-send-code-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero-login-submit {
  height: 42px;
  border: none;
  background: linear-gradient(180deg, #1f8ef5 0%, #1b82eb 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.hero-login-submit:hover {
  background: linear-gradient(180deg, #197dde 0%, #126ec9 100%);
}

.hero-login-hint {
  margin: 0;
  min-height: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: #6f839d;
}

.hero-login-hint.is-success {
  color: #23815e;
}

.hero-login-hint.is-error {
  color: #c53d35;
}

/* 最新试卷 / 最新试题 */

.latest-section {
  padding: 18px 12px 0;
}

.latest-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.latest-card {
  background: #ffffff;
  border: 1px solid #dfe6f2;
  box-shadow: 0 4px 14px rgba(16, 52, 92, 0.05);
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 0;
  overflow: hidden;
}

.latest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.latest-title {
  margin: 0;
  font-size: 18px;
  color: #1d2a3f;
}

.latest-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 18px;
  background: #edf5ff;
  gap: 4px;
}

.latest-tab-btn {
  height: 30px;
  border: none;
  border-radius: 14px;
  padding: 0 14px;
  background: transparent;
  color: #4f6480;
  font-size: 13px;
  cursor: pointer;
}

.latest-tab-btn.is-active {
  background: #1976d2;
  color: #ffffff;
  font-weight: 700;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 332px;
}

.latest-item {
  border-bottom: 1px dashed #e7eef8;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  color: #1a73c9;
  text-decoration: none;
  line-height: 1.45;
  min-width: 0;
}

.latest-link:hover {
  color: #0e5ea9;
  text-decoration: underline;
}

.latest-question-link {
  min-width: 0;
}

.latest-index {
  flex: 0 0 30px;
  color: #5f7490;
  font-weight: 600;
}

.latest-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-question-link .latest-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-empty {
  padding: 10px 0;
  color: #74869e;
  font-size: 14px;
}

/* 学科导航区域 */

.subject-guide {
  padding: 28px 12px 48px;
}

.subject-guide-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.subject-guide-heading {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #1d2a3f;
}

.subject-section {
  background: #ffffff;
  border: 1px solid #dfe6f2;
  box-shadow: 0 4px 14px rgba(16, 52, 92, 0.05);
  margin-bottom: 16px;
  overflow: hidden;
}

.subject-section:last-child {
  margin-bottom: 0;
}

.subject-section-head {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #f4f8ff;
  border-bottom: 1px solid #dfe6f2;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 24px;
  background: #1a73c9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}

.subject-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 8px;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
}

.subject-item:hover {
  background: #f0f5ff;
}

.subject-name {
  font-size: 15px;
  font-weight: 600;
  color: #1d2a3f;
  white-space: nowrap;
  min-width: 28px;
}

.subject-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}

.subject-link {
  color: #1a73c9;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
}

.subject-link:hover {
  background: #ddeeff;
  color: #0e5ea9;
}

.subject-link-sep {
  color: #c9d6eb;
  font-size: 12px;
  user-select: none;
}

/* 响应式 */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-login-card,
  .hero-quick-entry {
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  .home-hero {
    width: calc(100% - 24px);
    padding: 18px 16px 22px;
  }

  .hero-title {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .hero-sub {
    font-size: 17px;
    letter-spacing: 1px;
    margin: 0;
  }

  .hero-promo-item {
    font-size: 15px;
  }

  .hero-login-card {
    padding: 18px 14px 14px;
  }

  .hero-quick-entry {
    padding: 18px 14px 14px;
  }

  .hero-quick-grid {
    grid-template-columns: 1fr;
  }

  .hero-login-code-row {
    grid-template-columns: 1fr;
  }

  .latest-section {
    padding: 10px 6px 0;
  }

  .latest-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .latest-list {
    min-height: auto;
  }

  .latest-card {
    padding: 10px 12px;
    border-radius: 6px;
  }

  .latest-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .latest-title {
    font-size: 16px;
  }

  .latest-tabs {
    max-width: 100%;
  }

  .latest-tab-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .latest-link {
    padding: 6px 0;
    gap: 6px;
  }

  .latest-index {
    flex-basis: 24px;
    font-size: 13px;
  }

  .latest-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .subject-guide {
    padding: 18px 6px 32px;
  }

  .subject-guide-heading {
    font-size: 18px;
  }

  .subject-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 6px;
    gap: 4px;
  }

  .subject-item {
    padding: 8px 10px;
    gap: 6px;
  }

  .subject-name {
    font-size: 14px;
  }

  .subject-links {
    font-size: 12px;
  }
}

/* ============================
   页脚 — 版权与备案信息
   ============================ */

.site-footer {
  background: #f5f7fa;
  border-top: 1px solid #e4e8ed;
  padding: 24px 16px;
  margin-top: 32px;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  color: #6b7b8e;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer-copy {
  margin: 0;
  color: #4a5568;
  font-size: 13px;
}

.site-footer-beian {
  margin: 4px 0 0;
}

.site-footer-beian a {
  color: #6b7b8e;
  text-decoration: none;
}

.site-footer-beian a:hover {
  color: #1b82eb;
  text-decoration: underline;
}

.site-footer-sep {
  margin: 0 8px;
  color: #c2cdd8;
}
