.page-home {
  --home-grid-gap: 1.5rem;
  --home-block-min: 280px;
  --home-radius: 6px;
  --home-glow-cyan: 0 0 12px rgba(0, 245, 212, 0.35), 0 0 30px rgba(0, 245, 212, 0.12);
  --home-glow-magenta: 0 0 12px rgba(255, 0, 110, 0.4), 0 0 30px rgba(255, 0, 110, 0.15);
  --home-border-style: 1px solid rgba(0, 245, 212, 0.2);
  position: relative;
  min-height: 100vh;
  padding: 0 1rem 3rem;
  margin-left: var(--nav-width, 200px);
  background: var(--bg-dark, #0a0b10);
  color: var(--text-primary, #e0e0e0);
  font-family: var(--font-body, 'Segoe UI', sans-serif);
  overflow-x: hidden;
}
/* 阅读进度条 */
.page-home__progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 9999;
  pointer-events: none;
}
[data-progress-bar]::after {
  content: '';
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan, #00f5d4), var(--primary-magenta, #ff006e));
  transition: width 0.15s ease-out;
}
/* 背景 */
.page-home__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.page-home__backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  filter: saturate(0.6) contrast(1.4);
}
.page-home__backdrop-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 245, 212, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(255, 0, 110, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
/* 拼贴网格 */
.page-home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-grid-gap);
  max-width: 1280px;
  margin: 2rem auto 0;
  position: relative;
}
/* 通用区块 */
.page-home__block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.8rem 1.5rem;
  border: var(--home-border-style);
  border-radius: var(--home-radius);
  background: var(--card-bg, rgba(18, 19, 26, 0.8));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.page-home__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient, linear-gradient(135deg, #00f5d4, #ff006e));
  opacity: 0.6;
}
.page-home__block:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-glow-cyan);
}
/* 区块标题 */
.page-home__block-heading {
  font-family: var(--font-heading, 'Arial Black', sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-cyan, #00f5d4);
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.5), 0 0 16px rgba(0, 245, 212, 0.2);
  margin: 0 0 0.3rem;
}
.page-home__block-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary, #888899);
  margin: 0;
}
.page-home__block-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-magenta, #ff006e);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
  margin-top: auto;
}
.page-home__block-link:hover,
.page-home__block-link:focus-visible {
  color: var(--primary-cyan, #00f5d4);
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}
/* 核心入口 —— 主视觉区 */
.page-home__hero {
  grid-column: 1 / -1;
  padding: 2.5rem 2rem;
  min-height: 320px;
  justify-content: center;
  border-width: 2px;
  border-image: linear-gradient(135deg, rgba(0, 245, 212, 0.4), rgba(255, 0, 110, 0.4)) 1;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-home__hero::before {
  display: none;
}
.page-home__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
}
.page-home__hero-heading {
  font-family: var(--font-heading, 'Arial Black', sans-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  background: var(--accent-gradient, linear-gradient(135deg, #00f5d4, #ff006e));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 245, 212, 0.3);
  line-height: 1.1;
}
.page-home__hero-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-primary, #e0e0e0);
  max-width: 500px;
  margin: 0;
}
.page-home__hero-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-code, 'Courier New', monospace);
  color: var(--text-secondary, #888899);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 1rem;
  border-radius: var(--home-radius);
  border: 1px solid rgba(0, 245, 212, 0.15);
}
.page-home__path-step {
  color: var(--text-secondary, #888899);
}
.page-home__path-step--active {
  color: var(--primary-cyan, #00f5d4);
  text-shadow: 0 0 6px rgba(0, 245, 212, 0.5);
}
.page-home__path-arrow {
  color: var(--primary-magenta, #ff006e);
  font-size: 0.7rem;
}
.page-home__hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading, 'Arial Black', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg-dark, #0a0b10);
  background: var(--accent-gradient, linear-gradient(135deg, #00f5d4, #ff006e));
  border: none;
  border-radius: var(--home-radius);
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.3s ease;
  text-decoration: none;
  align-self: flex-start;
  position: relative;
}
.page-home__hero-btn:hover,
.page-home__hero-btn:focus-visible {
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.5), 0 0 40px rgba(255, 0, 110, 0.3);
  transform: scale(1.03);
}
.page-home__btn-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}
/* 档案快报 */
.page-home__archive {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.page-home__archive-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.3));
}
.page-home__archive-content {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* 兼容速查 */
.page-home__compat {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.page-home__compat-content {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.page-home__compat-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.page-home__compat-tag {
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-family: var(--font-code, 'Courier New', monospace);
  color: var(--primary-cyan, #00f5d4);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 3px;
  background: rgba(0, 245, 212, 0.06);
}
.page-home__compat-img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.25));
}
/* 版本日志 */
.page-home__changelog {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.page-home__changelog-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.4));
}
.page-home__changelog-content {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home__changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home__changelog-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  padding: 0.4rem 0.6rem;
  border-left: 2px solid rgba(255, 0, 110, 0.3);
  background: rgba(255, 0, 110, 0.03);
}
.page-home__log-version {
  font-family: var(--font-code, 'Courier New', monospace);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-magenta, #ff006e);
  text-shadow: 0 0 4px rgba(255, 0, 110, 0.4);
  white-space: nowrap;
}
.page-home__log-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #888899);
  line-height: 1.4;
}
/* 装饰斜切条 */
.page-home__accent-strip {
  position: fixed;
  right: 0;
  top: 30%;
  width: 4px;
  height: 200px;
  background: linear-gradient(180deg, var(--primary-cyan, #00f5d4), var(--primary-magenta, #ff006e));
  transform: skewX(-8deg);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
/* 区块类型修饰 */
.page-home__block--primary {
  border-color: rgba(0, 245, 212, 0.3);
}
.page-home__block--secondary {
  border-color: rgba(255, 0, 110, 0.2);
}
.page-home__block--accent {
  border-color: rgba(0, 245, 212, 0.2);
}
.page-home__block--dark {
  background: rgba(10, 11, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
}
/* ===== 平板及以上 ===== */
@media (min-width: 640px) {
  .page-home {
    padding: 0 2rem 4rem;
  }
  .page-home__grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 3rem;
  }
  .page-home__hero {
    grid-column: 1 / -1;
    padding: 3rem 2.5rem;
    min-height: 380px;
  }
  .page-home__hero-heading {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
  }
  .page-home__archive {
    grid-column: 1 / 2;
  }
  .page-home__compat {
    grid-column: 2 / 3;
  }
  .page-home__changelog {
    grid-column: 1 / -1;
  }
  .page-home__block {
    padding: 2rem 1.8rem;
  }
  .page-home__archive-img {
    width: 100px;
    height: 100px;
  }
  .page-home__compat-img {
    width: 140px;
    height: 90px;
  }
}
/* ===== 桌面 ===== */
@media (min-width: 1024px) {
  .page-home {
    padding: 0 3rem 5rem;
  }
  .page-home__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
  }
  .page-home__hero {
    grid-column: 1 / 3;
    padding: 4rem 3.5rem;
    min-height: 420px;
  }
  .page-home__hero-heading {
    font-size: 4.5rem;
  }
  .page-home__hero-desc {
    font-size: 1.3rem;
  }
  .page-home__archive {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .page-home__compat {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .page-home__changelog {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .page-home__changelog-icon {
    width: 56px;
    height: 56px;
  }
  .page-home__block {
    padding: 2.2rem 2rem;
  }
  .page-home__archive-img {
    width: 120px;
    height: 120px;
  }
  .page-home__compat-img {
    width: 160px;
    height: 100px;
  }
  .page-home__accent-strip {
    height: 280px;
    opacity: 0.4;
  }
}
/* ===== 大屏微调 ===== */
@media (min-width: 1440px) {
  .page-home__grid {
    max-width: 1400px;
  }
  .page-home__hero {
    padding: 5rem 4rem;
  }
}
/* 窄屏安全 */
@media (max-width: 399px) {
  .page-home {
    margin-left: 0;
    padding: 0 0.75rem 2rem;
  }
  .page-home__hero {
    padding: 1.5rem 1rem;
    min-height: 260px;
  }
  .page-home__hero-heading {
    font-size: 1.8rem;
  }
  .page-home__hero-path {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
  .page-home__hero-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
  .page-home__archive-img {
    width: 56px;
    height: 56px;
  }
  .page-home__compat-img {
    width: 80px;
    height: 56px;
  }
  .page-home__changelog-icon {
    width: 36px;
    height: 36px;
  }
  .page-home__block {
    padding: 1.2rem 1rem;
  }
}
/* 无障碍焦点 */
.page-home__block-link:focus-visible,
.page-home__hero-btn:focus-visible {
  outline: 2px solid var(--primary-cyan, #00f5d4);
  outline-offset: 3px;
}
/* 动效减弱 */
@media (prefers-reduced-motion: reduce) {
  .page-home__block,
  .page-home__hero-btn {
    transition: none;
  }
  .page-home__block:hover {
    transform: none;
    box-shadow: none;
  }
  .page-home__hero-btn:hover {
    transform: none;
  }
  [data-progress-bar]::after {
    transition: none;
  }
}

.page-home {
  --progress: 1rem;
}
