/* ===== 首页专属样式 ===== */
.page-home {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.page-home .home-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .page-home .home-wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 72px 0 80px;
  background: var(--bg-gradient);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(44, 76, 102, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 76, 102, 0.24) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--accent-orange) 0,
    var(--accent-orange) 72px,
    var(--accent-cyan) 72px,
    var(--accent-cyan) 144px,
    transparent 144px);
}
.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
  }
}
.page-home .home-hero-copy {
  max-width: 680px;
}
.page-home .home-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}
.page-home .home-kicker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0;
}
.page-home .home-hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .page-home .home-hero h1 {
    font-size: 48px;
  }
}
@media (min-width: 1440px) {
  .page-home .home-hero h1 {
    font-size: 54px;
  }
}
.page-home .home-hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.page-home .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.page-home .home-hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-home .home-hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent-orange);
}
.page-home .home-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.page-home .home-hero-btn {
  min-width: 160px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.page-home .home-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.page-home .home-hero-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.page-home .home-hero-frame {
  position: relative;
  background: rgba(17, 42, 68, 0.72);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}
.page-home .home-frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 3;
}
.page-home .home-frame-corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--accent-orange);
  border-left: 2px solid var(--accent-orange);
}
.page-home .home-frame-corner-br {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
}
.page-home .home-frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.page-home .home-frame-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
}
.page-home .home-frame-live .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: page-home-pulse 2s infinite;
}
.page-home .home-frame-figure {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}
.page-home .home-frame-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .home-frame-search {
  padding: 18px 16px 16px;
  background: var(--bg-secondary);
}
.page-home .home-frame-search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.page-home .home-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 8px 4px 14px;
}
.page-home .home-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
}
.page-home .home-search-input::placeholder {
  color: var(--text-secondary);
}
.page-home .home-search-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
}
.page-home .home-frame-search-tip {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------- 章节通用头部 ---------- */
.page-home .home-section-head {
  margin-bottom: 40px;
}
.page-home .home-section-index {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  text-transform: uppercase;
}
.page-home .home-section-index span {
  color: var(--border-color);
}
.page-home .home-section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-primary);
}
@media (min-width: 1024px) {
  .page-home .home-section-head h2 {
    font-size: 40px;
  }
}
.page-home .home-section-desc {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- 当前维护状态 ---------- */
.page-home .home-status {
  padding: 80px 0;
  background: var(--bg-primary);
}
@media (min-width: 1024px) {
  .page-home .home-status {
    padding: 104px 0;
  }
}
.page-home .home-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .page-home .home-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .page-home .home-status-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.page-home .home-status-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), background var(--transition);
}
.page-home .home-status-card[open] {
  border-color: rgba(46, 214, 180, 0.55);
  background: rgba(17, 42, 68, 0.85);
}
.page-home .home-status-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}
.page-home .home-status-card summary::-webkit-details-marker {
  display: none;
}
.page-home .home-status-card summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform var(--transition);
}
.page-home .home-status-card[open] summary::after {
  transform: rotate(45deg);
}
.page-home .home-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.page-home .home-status-badge-vip {
  color: var(--accent-orange);
  border-color: rgba(242, 101, 34, 0.45);
}
.page-home .home-status-badge-lib {
  color: var(--accent-cyan);
  border-color: rgba(46, 214, 180, 0.45);
}
.page-home .home-status-badge-dl {
  color: var(--accent-orange);
  border-color: rgba(242, 101, 34, 0.45);
}
.page-home .home-status-badge-login {
  color: var(--accent-cyan);
  border-color: rgba(46, 214, 180, 0.45);
}
.page-home .home-status-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-home .home-status-vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
}
.page-home .home-status-vote.is-alert {
  color: var(--accent-orange);
}
.page-home .home-status-vote .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: page-home-pulse 2s infinite;
}
.page-home .home-status-vote.is-alert .status-dot {
  background: var(--accent-orange);
  animation: page-home-pulse-alert 1.6s infinite;
}
.page-home .home-status-detail {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.page-home .home-status-detail p {
  margin: 0 0 12px;
}
.page-home .home-status-detail a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
}
.page-home .home-status-detail a:hover {
  text-decoration: underline;
}

/* ---------- 常见异常路径 ---------- */
.page-home .home-issues {
  padding: 80px 0;
  background: rgba(17, 42, 68, 0.32);
  border-top: 1px solid var(--border-color);
}
@media (min-width: 1024px) {
  .page-home .home-issues {
    padding: 104px 0;
  }
}
.page-home .home-issues-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .page-home .home-issues-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 80px;
    align-items: start;
  }
}
.page-home .home-issues-content {
  min-width: 0;
}
.page-home .home-issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .page-home .home-issues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.page-home .home-issue-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition);
}
.page-home .home-issue-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}
.page-home .home-issue-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
}
.page-home .home-issue-card h3 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.page-home .home-issue-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-home .home-issue-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: color var(--transition);
}
.page-home .home-issue-card:hover .home-issue-link {
  color: var(--accent-orange);
}
.page-home .home-issues-figure {
  margin: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.page-home .home-issues-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .home-issues-figure figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- 七步修复流程 ---------- */
.page-home .home-steps {
  padding: 80px 0;
  background: var(--bg-gradient);
  border-top: 1px solid var(--border-color);
}
@media (min-width: 1024px) {
  .page-home .home-steps {
    padding: 104px 0;
  }
}
.page-home .home-steps-head {
  margin-bottom: 48px;
}
.page-home .home-steps-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .page-home .home-steps-body {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 64px;
    align-items: center;
  }
}
.page-home .home-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.page-home .home-step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(17, 42, 68, 0.65);
  border-left: 3px solid var(--border-color);
  transition: border-left-color var(--transition), background var(--transition);
}
.page-home .home-step-item:hover {
  border-left-color: var(--accent-orange);
  background: rgba(17, 42, 68, 0.95);
}
.page-home .home-step-num {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(10, 26, 47, 0.5);
}
.page-home .home-step-text {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-home .home-step-item small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.page-home .home-steps-figure {
  margin: 0;
  padding: 12px;
  background: rgba(17, 42, 68, 0.5);
  border: 1px solid var(--border-color);
}
.page-home .home-steps-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 快速入口 ---------- */
.page-home .home-entries {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}
@media (min-width: 1024px) {
  .page-home .home-entries {
    padding: 104px 0;
  }
}
.page-home .home-entries-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .page-home .home-entries-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.page-home .home-entries-head .home-section-head {
  flex: 1;
  margin-bottom: 0;
}
.page-home .home-entries-figure {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.page-home .home-entries-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
}
.page-home .home-entries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .page-home .home-entries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .page-home .home-entries-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.page-home .home-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 24px 20px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition);
}
.page-home .home-entry-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}
.page-home .home-entry-key {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.page-home .home-entry-code {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid rgba(46, 214, 180, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}
.page-home .home-entry-title {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-home .home-entry-desc {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---------- 帮助台搜索 ---------- */
.page-home .home-help {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
@media (min-width: 1024px) {
  .page-home .home-help {
    padding: 104px 0;
  }
}
.page-home .home-help-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .page-home .home-help-panel {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 80px;
  }
}
.page-home .home-help-text {
  min-width: 0;
}
.page-home .home-search-large {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-orange);
}
.page-home .home-search-large-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
}
.page-home .home-search-large-input::placeholder {
  color: var(--text-secondary);
}
.page-home .home-search-large-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.page-home .home-search-large-btn:hover {
  background: #d85718;
}
.page-home .home-help-tags {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-home .home-help-tags a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 13px;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.page-home .home-help-tags a:hover {
  border-color: var(--accent-cyan);
}
.page-home .home-help-trust {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  max-width: 560px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.page-home .home-help-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}
.page-home .home-help-stat {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 16px 12px;
}
@media (min-width: 1024px) {
  .page-home .home-help-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-home .home-help-stat {
    padding: 20px 16px;
  }
}
.page-home .home-help-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-orange);
}
.page-home .home-help-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 状态动画 ---------- */
@keyframes page-home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(46, 214, 180, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(46, 214, 180, 0);
  }
}
@keyframes page-home-pulse-alert {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(242, 101, 34, 0);
  }
}
