.breadcrumb-nav {
  display: none;
}

.home-page {
  padding-bottom: 8px;
}

/* —— Hero —— */
.home-hero {
  position: relative;
  margin-bottom: 20px;
  background: url(/static/assets/banner/home-banner.jpg) center / cover no-repeat;
  color: #fff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(62, 39, 35, 0.82) 0%,
    rgba(78, 52, 46, 0.72) 45%,
    rgba(62, 39, 35, 0.88) 100%
  );
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 16px 36px;
  max-width: 720px;
}

.home-hero-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-search {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.home-search-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
}

.home-search-btn {
  flex-shrink: 0;
  min-height: 40px;
  white-space: nowrap;
}

/* —— Quick nav —— */
.home-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-quick-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(121, 85, 72, 0.25);
  background: #faf8f6;
  color: #5d4037;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.home-quick-nav-item:hover {
  border-color: #795548;
  color: #4e342e;
  background: #fff;
}

/* —— Section headers —— */
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.home-section-title {
  margin: 0;
  font-family: "SiYuanSongTi", serif;
  font-size: 18px;
  font-weight: normal;
  color: #4e342e;
  line-height: 1.5;
}

.home-section-more {
  font-size: 14px;
  color: #795548;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

.home-section-more:hover {
  color: #5d4037;
  text-decoration: underline;
}

/* —— 首页主推区块（文汇 / 热门工具等） —— */
.home-spotlight-panel {
  padding: 18px 16px 20px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid rgba(200, 165, 122, 0.5);
  background: linear-gradient(165deg, #fff9f0 0%, #fff 55%);
  box-shadow: 0 4px 16px rgba(74, 47, 29, 0.07);
}

.home-spotlight-panel .home-section-head {
  margin-bottom: 4px;
}

.home-tools-spotlight .home-tools-grid {
  margin-top: 12px;
}

.home-left-col > .home-spotlight-panel {
  margin-bottom: 0;
}

.home-articles-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-left-col .home-article-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* —— Tool cards —— */
.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 14px 14px 12px;
  border-radius: 4px;
  border: 1px solid rgba(121, 85, 72, 0.18);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-tool-card:hover {
  border-color: rgba(121, 85, 72, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-tool-card--featured {
  border-color: rgba(121, 85, 72, 0.35);
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}

.home-tool-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 3px 10px 3px 12px;
  border-radius: 0 4px 0 10px;
  background: linear-gradient(135deg, #d84315 0%, #ff6f00 100%);
  color: #fff;
  font-family: "MicrosoftYaHei", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(216, 67, 21, 0.3);
  pointer-events: none;
}

.home-tool-card--featured .home-tool-name {
  padding-right: 52px;
}

.home-tool-name {
  font-family: "SiYuanSongTi", serif;
  font-size: 15px;
  color: #4e342e;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-tool-desc {
  font-family: "MicrosoftYaHei", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Main layout：左（古籍 + 文汇） / 右（黄历） —— */
.home-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.home-left-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-books-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.home-books-col {
  flex: 1;
  min-width: 0;
}

.home-side-col {
  flex: 0 0 340px;
  max-width: 100%;
}

.home-main-box {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
}

@media (min-width: 1101px) {
  .home-side-col {
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 1100px) {
  .home-layout {
    flex-direction: column;
  }

  .home-side-col {
    flex: none;
    width: 100%;
  }

  .home-books-row {
    flex-direction: column;
  }

  .home-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .home-hero-inner {
    padding: 28px 12px 24px;
  }

  .home-hero-lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .home-search {
    flex-direction: column;
    padding: 10px;
  }

  .home-search-btn {
    width: 100%;
    min-height: 44px;
  }

  .home-quick-nav {
    padding: 12px;
    gap: 8px;
  }

  .home-quick-nav-item {
    min-height: 40px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-card {
    min-height: 0;
  }

  .home-section-title {
    font-size: 17px;
  }

  .home-left-col .home-article-list {
    grid-template-columns: 1fr;
  }
}
