/* ===== 首页专属样式 · 赛博国潮 · 对角错位首屏 ===== */
.page-home {
  --hero-brand-width: 1fr;
  --hero-access-width: 1fr;
  --color-glow: rgba(46, 91, 255, 0.35);
  --color-orange-soft: rgba(255, 107, 53, 0.12);
  --color-gold-glow: rgba(249, 168, 37, 0.25);
  --particle-count: 10;
  color: var(--color-text);
}

/* ── 首屏：对角错位 ── */
.page-home .hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.page-home .hero-section::before {
  content: '';
  position: absolute;
  top: -8%;
  left: -6%;
  width: 58%;
  height: 72%;
  background: var(--color-background-dark);
  transform: skew(-6deg);
  z-index: 0;
  border-right: 2px solid var(--color-accent);
  box-shadow: 0 0 40px var(--color-glow);
}

.page-home .hero-section::after {
  content: '';
  position: absolute;
  bottom: -6%;
  right: -4%;
  width: 48%;
  height: 60%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  transform: skew(-6deg);
  opacity: 0.10;
  z-index: 0;
  border-left: 2px solid var(--color-accent);
  box-shadow: 0 0 60px var(--color-gold-glow);
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── 左侧品牌 ── */
.page-home .hero-brand {
  position: relative;
  padding: 1.5rem 1rem;
}

.page-home .hero-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 3.75rem;
  line-height: 1.05;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}

.page-home .hero-title-main {
  color: var(--color-text);
  text-shadow: 0 0 20px var(--color-glow), 0 0 60px rgba(46, 91, 255, 0.15);
}

.page-home .hero-title-sub {
  color: var(--color-secondary);
  font-size: 0.65em;
  margin-top: -0.1em;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-home .hero-tagline {
  font-size: 1.125rem;
  font-family: 'PingFang SC', 'Microsoft YaHei UI', sans-serif;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem;
}

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

.page-home .hero-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-background-dark);
  letter-spacing: 0.06em;
}

.page-home .hero-badge.badge-gold {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(249, 168, 37, 0.08);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

/* ── 粒子 ── */
.page-home .brand-particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.page-home .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.45;
  animation: particle-drift 8s infinite alternate ease-in-out;
}

.page-home .p1  { top: 10%; left: 5%;  animation-delay: 0.0s; animation-duration: 7s; }
.page-home .p2  { top: 25%; left: 60%; animation-delay: 0.6s; animation-duration: 9s; }
.page-home .p3  { top: 55%; left: 15%; animation-delay: 1.2s; animation-duration: 6s; }
.page-home .p4  { top: 70%; left: 70%; animation-delay: 0.3s; animation-duration: 8s; }
.page-home .p5  { top: 40%; left: 85%; animation-delay: 1.8s; animation-duration: 10s; }
.page-home .p6  { top: 80%; left: 30%; animation-delay: 2.4s; animation-duration: 7.5s; }
.page-home .p7  { top: 15%; left: 90%; animation-delay: 0.9s; animation-duration: 8.5s; }
.page-home .p8  { top: 60%; left: 45%; animation-delay: 1.5s; animation-duration: 9.5s; }
.page-home .p9  { top: 35%; left: 20%; animation-delay: 2.1s; animation-duration: 6.5s; }
.page-home .p10 { top: 88%; left: 75%; animation-delay: 2.7s; animation-duration: 11s; }

@keyframes particle-drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25%  { transform: translate(12px, -18px) scale(1.3); opacity: 0.7; }
  50%  { transform: translate(-8px, 10px) scale(0.9); opacity: 0.5; }
  75%  { transform: translate(20px, 8px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(-5px, -12px) scale(1); opacity: 0.4; }
}

/* ── 右侧登录 + 预览 ── */
.page-home .hero-access {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-home .hero-login-card {
  background: var(--color-background-dark);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.06);
}

.page-home .hero-login-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--gradient-nav-highlight);
}

.page-home .hero-login-label {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.page-home .hero-cta-btn {
  display: inline-block;
  font-size: 1rem;
  padding: 0.7rem 2rem;
  background: var(--gradient-primary);
  border: none;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  border-radius: 0;
}

.page-home .hero-cta-btn:hover,
.page-home .hero-cta-btn:focus-visible {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.25);
  transform: scale(1.02);
}

.page-home .hero-bookmark-tip {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  animation: pulse-tip 2.4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.page-home .hero-bookmark-tip kbd {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  font-family: monospace;
  background: var(--color-border);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  color: var(--color-text);
  line-height: 1.3;
}

@keyframes pulse-tip {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}

/* ── 版本预览卡片 ── */
.page-home .hero-preview-card {
  border: 1px solid var(--color-border);
  background: var(--color-background-dark);
  padding: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-home .hero-preview-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 24px var(--color-glow);
}

.page-home .hero-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-home .hero-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.page-home .hero-preview-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
  letter-spacing: 0.03em;
}

/* ── 装饰色块（对角错位强化） ── */
.page-home .hero-decor-block {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.page-home .decor-tl {
  top: 0;
  left: 0;
  width: 35%;
  height: 20%;
  border-bottom: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.15;
  transform: skewX(-4deg) translateX(-2%);
}

.page-home .decor-br {
  bottom: 0;
  right: 0;
  width: 40%;
  height: 25%;
  border-top: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
  opacity: 0.15;
  transform: skewX(-4deg) translateX(2%);
}

/* ── 共用的 section 头部 ── */
.page-home .section-label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.page-home .section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  padding: 0.1rem 0.6rem;
  background: rgba(249, 168, 37, 0.06);
}

.page-home .section-heading {
  font-family: Impact, 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-text);
}

/* ── 版本对照指南 ── */
.page-home .compare-section {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.page-home .compare-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* 标签页 radio hack */
.page-home .compare-tabs {
  display: flex;
  flex-wrap: wrap;
}

.page-home .tab-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page-home .tab-labels {
  display: flex;
  gap: 0;
  width: 100%;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.page-home .tab-label {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
  user-select: none;
}

.page-home .tab-radio#tab-mobile:checked ~ .tab-labels label[for="tab-mobile"],
.page-home .tab-radio#tab-desktop:checked ~ .tab-labels label[for="tab-desktop"] {
  color: var(--color-text);
  background: var(--color-background-dark);
  border-color: var(--color-border);
  border-bottom-color: var(--color-background-dark);
  position: relative;
}

.page-home .tab-radio#tab-mobile:checked ~ .tab-labels label[for="tab-mobile"]::after,
.page-home .tab-radio#tab-desktop:checked ~ .tab-labels label[for="tab-desktop"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.page-home .tab-panels {
  width: 100%;
}

.page-home .tab-panel {
  display: none;
  animation: fade-up 0.4s ease;
}

.page-home .tab-radio#tab-mobile:checked ~ .tab-panels .panel-mobile,
.page-home .tab-radio#tab-desktop:checked ~ .tab-panels .panel-desktop {
  display: block;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-home .panel-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-home .panel-img {
  flex-shrink: 0;
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--color-border);
  background: var(--color-background-dark);
}

.page-home .panel-text {
  flex: 1;
  min-width: 200px;
}

.page-home .panel-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.page-home .panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .panel-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.page-home .panel-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.page-home .compare-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-home .compare-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.page-home .compare-link:hover {
  color: var(--color-secondary);
}

/* ── 今日更新 ── */
.page-home .update-section {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.page-home .update-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-home .update-badge-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  background: rgba(249, 168, 37, 0.06);
  box-shadow: 0 0 24px var(--color-gold-glow);
}

.page-home .update-badge-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.page-home .update-content {
  flex: 1;
  min-width: 200px;
}

.page-home .update-intro {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.page-home .update-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.page-home .update-item {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.6;
}

.page-home .item-icon {
  color: var(--color-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── 旧版本资料 ── */
.page-home .legacy-section {
  padding: 2.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.page-home .legacy-body {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.page-home .legacy-icon-wrapper {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-background-dark);
  padding: 0.5rem;
}

.page-home .legacy-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-home .legacy-content {
  flex: 1;
  min-width: 200px;
}

.page-home .legacy-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.page-home .legacy-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.page-home .legacy-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* ── 响应式：窄屏 ── */
@media (max-width: 768px) {
  .page-home .hero-section {
    padding: 1.5rem 1rem 2rem;
    min-height: auto;
  }

  .page-home .hero-section::before,
  .page-home .hero-section::after {
    display: none;
  }

  .page-home .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-home .hero-title {
    font-size: 2.5rem;
  }

  .page-home .hero-title-sub {
    font-size: 0.7em;
  }

  .page-home .hero-tagline {
    font-size: 1rem;
  }

  .page-home .hero-login-card {
    padding: 1rem;
  }

  .page-home .hero-cta-btn {
    width: 100%;
    text-align: center;
  }

  .page-home .hero-preview-card {
    padding: 0.5rem;
  }

  .page-home .hero-preview-img {
    max-height: 180px;
    object-fit: cover;
  }

  .page-home .compare-section,
  .page-home .update-section,
  .page-home .legacy-section {
    padding: 1.5rem 1rem;
  }

  .page-home .section-heading {
    font-size: 1.35rem;
  }

  .page-home .panel-content {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .panel-img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .page-home .update-list {
    grid-template-columns: 1fr;
  }

  .page-home .update-badge-wrapper {
    width: 64px;
    height: 64px;
  }

  .page-home .legacy-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .tab-label {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .page-home .hero-decor-block {
    display: none;
  }
}

/* ── 桌面微调 ── */
@media (min-width: 769px) {
  .page-home .hero-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .page-home .hero-title {
    font-size: 4.5rem;
  }

  .page-home .hero-inner {
    gap: 3rem;
  }

  .page-home .compare-section,
  .page-home .update-section,
  .page-home .legacy-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── 大屏留白增强 ── */
@media (min-width: 1200px) {
  .page-home .hero-inner {
    gap: 4rem;
  }

  .page-home .hero-title {
    font-size: 5rem;
  }
}
