.page-home {
  background: var(--color-light);
  color: var(--color-text);
  overflow-x: hidden;
}

.page-home .container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ===== 首屏 Hero ===== */
.page-home .home-hero {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--color-deep);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--color-white);
  padding: 3rem 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  z-index: -1;
  background: var(--color-accent);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.16;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 16%;
  width: 36%;
  height: 72%;
  z-index: -1;
  background: var(--color-gold);
  clip-path: polygon(8% 0, 100% 6%, 96% 100%, 0 92%);
  opacity: 0.08;
}

.page-home .hero-shell {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-home .hero-copy {
  padding-block: 1rem;
}

.page-home .hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(247, 183, 51, 0.45);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.25rem;
}

.page-home .hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--color-white);
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
  max-width: 56ch;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 10px 10px 0 var(--color-accent);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-home .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-home .stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 区块标题 ===== */
.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  line-height: 1;
}

.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.75vw, 2.125rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ===== 官方公告 ===== */
.page-home .home-notice {
  padding: 4rem 0;
  background: var(--color-light);
}

.page-home .notice-grid {
  display: grid;
  gap: 1rem;
}

.page-home .notice-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 30, 63, 0.08);
}

.page-home .notice-card--primary {
  border-top: 4px solid var(--color-accent);
}

.page-home .notice-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}

.page-home .notice-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0;
}

/* ===== 快速导览 Bento ===== */
.page-home .home-explore {
  padding: 4rem 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--color-deep);
  background-size: 48px 48px, 48px 48px, auto;
}

.page-home .home-explore .section-head h2 {
  color: var(--color-white);
}

.page-home .bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 1.5rem;
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .bento-card:hover,
.page-home .bento-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.page-home .bento-card__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.page-home .bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.page-home .bento-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  margin: 0;
}

.page-home .bento-card--apps {
  background: var(--color-gold);
  color: var(--color-deep);
}

.page-home .bento-card--apps p {
  color: #5A4A10;
}

.page-home .bento-card--news {
  background: var(--color-light);
}

.page-home .bento-card--support {
  background: var(--color-accent);
  color: var(--color-white);
}

.page-home .bento-card--support p {
  color: rgba(255, 255, 255, 0.92);
}

.page-home .bento-card--contact {
  background: var(--color-navy);
  color: var(--color-white);
}

.page-home .bento-card--contact p {
  color: rgba(255, 255, 255, 0.72);
}

/* ===== 我的分类 ===== */
.page-home .home-categories {
  padding: 4rem 0;
  background: var(--color-white);
}

.page-home .categories-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-home .categories-head .section-head {
  margin-bottom: 0;
}

.page-home .categories-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.page-home .categories-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.page-home .categories-main .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.page-home .category-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-home .category-item {
  background: var(--color-light);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
}

.page-home .category-item h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.page-home .category-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin: 0;
}

.page-home .categories-visual img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: -8px 8px 0 var(--color-gold);
}

/* ===== 帮助文档 ===== */
.page-home .home-help {
  padding: 4rem 0;
  background: var(--color-deep);
  color: var(--color-white);
}

.page-home .home-help .section-head h2 {
  color: var(--color-white);
}

.page-home .help-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .help-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-home .help-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
  max-width: 56ch;
}

.page-home .help-main .index-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.page-home .help-main .index-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.page-home .help-main .index-list a {
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .help-main .index-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-home .help-main .editor-note {
  border-left: 4px solid var(--color-gold);
  background: rgba(247, 183, 51, 0.08);
  padding: 1rem 1.25rem;
}

.page-home .help-main .editor-note .editor-note__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.page-home .help-main .editor-note p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== 版本信息 ===== */
.page-home .home-version {
  padding: 4rem 0;
  background: var(--color-light);
}

.page-home .version-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2rem;
  overflow: hidden;
}

.page-home .version-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  background: var(--color-gold);
  opacity: 0.1;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-home .version-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin: 0 0 1.5rem;
  max-width: 62ch;
}

.page-home .version-text strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 500;
}

.page-home .version-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .version-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-deep);
  background: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.75rem;
}

/* ===== 底部品牌视觉 ===== */
.page-home .home-banner {
  background: var(--color-deep);
}

.page-home .home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 平板与桌面布局 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .page-home .hero-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .page-home .hero-visual img {
    box-shadow: 14px 14px 0 var(--color-accent);
  }

  .page-home .notice-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .notice-card--primary {
    grid-column: span 6;
  }

  .page-home .notice-card--narrow {
    grid-column: span 3;
  }

  .page-home .categories-layout {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }

  .page-home .help-layout {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }

  .page-home .version-card {
    padding: 2.5rem;
  }
}

@media (min-width: 900px) {
  .page-home .home-explore {
    padding: 5rem 0;
  }

  .page-home .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .bento-card--brand {
    grid-column: span 6;
    min-height: 220px;
  }

  .page-home .bento-card--apps {
    grid-column: span 3;
  }

  .page-home .bento-card--news {
    grid-column: span 3;
  }

  .page-home .bento-card--support {
    grid-column: span 7;
  }

  .page-home .bento-card--contact {
    grid-column: span 5;
  }
}
