.page-home {
  line-height: 1.6;
}

/* 面包屑 */
.page-home .breadcrumb {
  margin: 18px 0 0;
  padding: 0;
}

/* 首屏标题区 */
.page-home__masthead {
  padding: 30px 0 38px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.03) 63px 64px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(255, 255, 255, 0.03) 63px 64px);
}

.page-home__masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 20px;
}

.page-home__masthead-index {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: rgba(245, 197, 24, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
}

.page-home__masthead-tools {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.page-home__masthead h1 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-home__masthead-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.page-home__masthead-desc {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.page-home__masthead-btn {
  border-radius: 999px;
}

/* 区块共用 */
.page-home__section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 20px;
}

.page-home__section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home__section-heading h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.page-home__section-index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home__more-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(57, 255, 136, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.page-home__more-link:hover {
  background: rgba(57, 255, 136, 0.2);
}

/* 最新收录条目墙 */
.page-home__latest {
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.03) 47px 48px),
    linear-gradient(180deg, #0d2a24 0%, var(--bg-teal) 100%);
}

.page-home__latest .page-home__section-index {
  color: var(--lime);
}

.page-home__latest-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home__update-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  background: rgba(57, 255, 136, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
}

.page-home__update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(57, 255, 136, 0.8);
}

.page-home__view-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 17, 21, 0.4);
}

.page-home__view-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  color: rgba(240, 243, 248, 0.6);
  cursor: default;
  display: inline-flex;
  align-items: center;
}

.page-home__view-btn--active {
  background: var(--amber);
  color: #0f1115;
}

/* 卡片网格与卡片 */
.page-home__card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-top-style: solid;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home__card:hover {
  transform: translateY(-2px);
}

.page-home__card--amber {
  border-top-color: var(--amber);
}

.page-home__card--cyan {
  border-top-color: var(--c-cyan);
}

.page-home__card--pink {
  border-top-color: var(--c-pink);
}

.page-home__card--green {
  border-top-color: var(--c-green);
}

.page-home__card--orange {
  border-top-color: var(--c-orange);
}

.page-home__card--purple {
  border-top-color: var(--c-purple);
}

.page-home__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home__card-batch {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.page-home__card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.page-home__card-img,
.page-home__card-geo {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

.page-home__card-geo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18) 0 12px, transparent 13px),
    linear-gradient(135deg, transparent 0 60%, rgba(255, 255, 255, 0.08) 60% 62%, transparent 62%);
}

.page-home__card-geo--amber {
  background-color: rgba(245, 197, 24, 0.1);
}

.page-home__card-geo--cyan {
  background-color: rgba(0, 194, 255, 0.1);
}

.page-home__card-geo--pink {
  background-color: rgba(255, 46, 111, 0.12);
}

.page-home__card-geo--green {
  background-color: rgba(126, 211, 33, 0.1);
}

.page-home__card-geo--orange {
  background-color: rgba(255, 159, 28, 0.1);
}

.page-home__card-geo--purple {
  background-color: rgba(178, 134, 246, 0.12);
}

.page-home__card-info {
  flex: 1;
  min-width: 0;
}

.page-home__card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-cyan);
  background: rgba(0, 194, 255, 0.1);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}

.page-home__card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 4px;
  overflow-wrap: break-word;
}

.page-home__card-meta {
  font-size: 12px;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.page-home__card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
  transition: color 0.2s;
}

.page-home__card-link:hover {
  color: var(--amber);
}

/* 分类入口磁贴 */
.page-home__tiles {
  padding: 44px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(178, 134, 246, 0.16), transparent 26rem),
    linear-gradient(180deg, #1f1830 0%, var(--bg-purple) 100%);
}

.page-home__tiles .page-home__section-index {
  color: var(--amber);
}

.page-home__tiles-note {
  margin: -8px 0 22px;
  font-size: 13px;
  color: rgba(240, 243, 248, 0.7);
  max-width: 940px;
}

.page-home__tile-group {
  margin-bottom: 26px;
}

.page-home__tile-group-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home__tile-group-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
  flex: 0 0 8px;
}

.page-home__tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  border-radius: var(--radius-md);
  color: #10151c;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.page-home__tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.page-home__tile--amber {
  background: var(--amber);
}

.page-home__tile--cyan {
  background: var(--c-cyan);
}

.page-home__tile--pink {
  background: var(--c-pink);
}

.page-home__tile--green {
  background: var(--c-green);
}

.page-home__tile--orange {
  background: var(--c-orange);
}

.page-home__tile--purple {
  background: var(--c-purple);
}

.page-home__tile-icon,
.page-home__tile-geo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: rgba(15, 17, 21, 0.16);
}

.page-home__tile-geo {
  background:
    radial-gradient(circle at 70% 24%, rgba(15, 17, 21, 0.22) 0 10px, transparent 11px),
    linear-gradient(135deg, rgba(15, 17, 21, 0.18) 0 46%, transparent 46%);
}

.page-home__tile-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-home__tile-count {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 17, 21, 0.14);
  border-radius: 999px;
  padding: 2px 9px;
}

.page-home__register {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home__register-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber);
}

.page-home__register-text {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(240, 243, 248, 0.82);
}

/* 热门入口榜单 */
.page-home__hot {
  padding: 44px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.02) 63px 64px),
    linear-gradient(180deg, #193229 0%, var(--bg-green) 100%);
}

.page-home__hot .page-home__section-index {
  color: var(--pink);
}

.page-home__hot-note {
  font-size: 12px;
  color: rgba(240, 243, 248, 0.62);
}

.page-home__hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home__hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: rgba(15, 17, 21, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.page-home__hot-item--top {
  border-color: rgba(255, 46, 111, 0.5);
  background: rgba(255, 46, 111, 0.08);
}

.page-home__hot-list .rank-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-dim);
}

.page-home__hot-list .rank-num--top {
  color: var(--pink);
}

.page-home__hot-thumb-link {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.page-home__hot-thumb,
.page-home__hot-geo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

.page-home__hot-geo {
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(240, 243, 248, 0.08) 62% 64%, transparent 64%),
    radial-gradient(circle at 28% 30%, rgba(240, 243, 248, 0.22) 0 14px, transparent 15px);
}

.page-home__hot-geo--amber {
  background-color: rgba(245, 197, 24, 0.12);
}

.page-home__hot-geo--cyan {
  background-color: rgba(0, 194, 255, 0.12);
}

.page-home__hot-geo--pink {
  background-color: rgba(255, 46, 111, 0.14);
}

.page-home__hot-geo--green {
  background-color: rgba(126, 211, 33, 0.12);
}

.page-home__hot-geo--orange {
  background-color: rgba(255, 159, 28, 0.12);
}

.page-home__hot-geo--purple {
  background-color: rgba(178, 134, 246, 0.14);
}

.page-home__hot-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home__hot-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
}

.page-home__hot-name:hover {
  color: var(--lime);
}

.page-home__hot-cat {
  font-size: 11px;
  color: var(--ink-dim);
}

.page-home__hot-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.page-home__track {
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(160, 170, 184, 0.18);
  overflow: hidden;
  display: block;
}

.page-home__track .metric-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home__hot-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--lime);
}

.page-home__fill-96 { width: 96%; }
.page-home__fill-91 { width: 91%; }
.page-home__fill-87 { width: 87%; }
.page-home__fill-78 { width: 78%; }
.page-home__fill-72 { width: 72%; }
.page-home__fill-65 { width: 65%; }
.page-home__fill-58 { width: 58%; }
.page-home__fill-49 { width: 49%; }
.page-home__fill-37 { width: 37%; }
.page-home__fill-26 { width: 26%; }

/* 标签云索引 */
.page-home__tags {
  padding: 44px 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(0, 194, 255, 0.08), transparent 22rem),
    linear-gradient(180deg, #141922 0%, var(--bg-card) 100%);
}

.page-home__tags .page-home__section-index {
  color: var(--c-cyan);
}

.page-home__tag-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15, 17, 21, 0.45);
  padding: 26px 20px;
  margin-bottom: 16px;
}

.page-home__tag-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
  border-radius: inherit;
}

.page-home__tag-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home__tag-cloud .tag {
  text-decoration: none;
  transition: outline 0.2s, transform 0.2s;
}

.page-home__tag-cloud .tag:hover {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* 字母索引条与批次索引条 */
.page-home__index-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.page-home__index-bar--batch {
  margin-bottom: 0;
}

.page-home__index-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-right: 6px;
}

.page-home__index-item {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.page-home__index-item:hover {
  color: var(--lime);
}

.page-home__index-item--active {
  background: var(--amber);
  color: #0f1115;
  font-weight: 800;
}

/* 更新动态摘要 */
.page-home__updates {
  padding: 44px 0;
  background:
    radial-gradient(circle at 75% 90%, rgba(57, 255, 136, 0.08), transparent 24rem),
    var(--bg-page);
}

.page-home__updates .page-home__section-index {
  color: var(--lime);
}

.page-home__update-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home__update-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.page-home__update-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.page-home__update-pill--active {
  border-color: rgba(57, 255, 136, 0.55);
}

.page-home__update-batch {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--amber);
}

.page-home__update-pill--active .page-home__update-batch {
  color: var(--lime);
}

.page-home__update-text {
  font-size: 12px;
  color: var(--ink-dim);
}

.page-home__feedback-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 243, 248, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.page-home__feedback-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* 桌面与平板增强 */
@media (min-width: 640px) {
  .page-home__card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home__tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home__section-heading h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .page-home__masthead {
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .page-home__masthead h1 {
    font-size: 2.5rem;
  }

  .page-home__hot-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .page-home__update-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home__tag-wrap {
    padding: 32px 28px;
  }
}

@media (min-width: 992px) {
  .page-home__card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .page-home__tile-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home__masthead h1 {
    font-size: 3rem;
  }

  .page-home__hot-list {
    gap: 16px;
  }
}
