/* 页面专属CSS，作用于 .page-home */
.page-home {
  --hero-bg-overlay: rgba(26, 19, 7, 0.6);
  --card-hover-glow: 0 0 15px rgba(201, 168, 76, 0.3);
}
/* 移动端优先 */
.page-home .hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) contrast(1.2);
}
.page-home .hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-home .hero-left {
  background: var(--color-bg-highlight);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.page-home .hero-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent-gold), transparent);
}
.page-home .hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid var(--color-border-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.page-home .hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}
.page-home .hero-cta {
  display: inline-block;
}
.page-home .hero-right {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  background: rgba(42, 34, 20, 0.5);
  backdrop-filter: blur(2px);
}
.page-home .hero-error-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent-gold);
  margin-bottom: 1rem;
}
.page-home .hero-error-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.page-home .hero-error-list li {
  margin-bottom: 0.5rem;
}
.page-home .error-link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color var(--transition);
  position: relative;
  padding-left: 1.2rem;
}
.page-home .error-link::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
}
.page-home .error-link:hover {
  color: var(--color-accent-gold);
}
.page-home .hero-cta-secondary {
  display: inline-block;
}
/* 版本对照表 */
.page-home .section-version {
  padding: 3rem 1rem;
  background: var(--color-bg-primary);
}
.page-home .section-version__image {
  margin-bottom: 1.5rem;
  text-align: center;
}
.page-home .version-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
}
.page-home .version-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.page-home .version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-highlight);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  position: relative;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.page-home .version-item:hover {
  border-color: var(--color-accent-gold);
  box-shadow: var(--card-hover-glow);
}
.page-home .version-old,
.page-home .version-new {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}
.page-home .version-arrow {
  color: var(--color-accent-gold);
  font-size: 1.2rem;
  margin: 0 0.5rem;
}
.page-home .version-hover-preview {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-highlight);
  border: 1px solid var(--color-accent-gold);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  z-index: 10;
}
.page-home .version-item:hover .version-hover-preview {
  display: block;
}
.page-home .section-version__cta {
  text-align: center;
  margin-top: 1.5rem;
}
.page-home .link-arrow {
  color: var(--color-accent-gold);
  font-family: var(--font-body);
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--transition);
}
.page-home .link-arrow:hover {
  opacity: 0.8;
}
.page-home .section-deco {
  text-align: center;
  margin-top: 2rem;
}
.page-home .deco-icon {
  max-width: 80px;
  height: auto;
  opacity: 0.6;
}
/* 错误代码索引 */
.page-home .section-errors {
  padding: 3rem 1rem;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-light);
}
.page-home .error-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.page-home .error-card {
  background: var(--color-bg-highlight);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.page-home .error-card:hover {
  border-color: var(--color-accent-red);
  transform: translateX(4px);
}
.page-home .error-code {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-accent-red);
  margin-bottom: 0.25rem;
}
.page-home .error-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}
.page-home .error-detail-link {
  color: var(--color-accent-gold);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
.page-home .section-errors__cta {
  text-align: center;
  margin-top: 1.5rem;
}
/* 最新动态 */
.page-home .section-updates {
  padding: 3rem 1rem;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-light);
}
.page-home .updates-content {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}
.page-home .updates-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.page-home .updates-footer-img {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--radius);
}
.page-home .footer-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 200px;
  display: block;
}
/* 桌面版 */
@media (min-width: 768px) {
  .page-home .hero-overlay {
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  .page-home .hero-left {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
  }
  .page-home .hero-title {
    font-size: 3rem;
  }
  .page-home .hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-home .version-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-home .version-item {
    flex: 1 1 200px;
    max-width: 280px;
  }
  .page-home .error-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-home .error-card {
    flex: 1 1 250px;
    max-width: 320px;
  }
  .page-home .section-version__image {
    margin-bottom: 2rem;
  }
  .page-home .section-deco {
    margin-top: 3rem;
  }
}
@media (min-width: 1024px) {
  .page-home .hero-title {
    font-size: 3.5rem;
  }
  .page-home .hero-subtitle {
    font-size: 1.1rem;
  }
  .page-home .hero-left {
    padding: 3rem;
  }
}
.page-home .section-title {
  color: var(--color-accent-gold);
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.page-home .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-accent-gold);
}
.page-home .btn-primary {
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  border: none;
}
.page-home .btn-secondary {
  background: transparent;
  color: var(--color-accent-red);
  border: 1px solid var(--color-accent-red);
}
.page-home .btn-primary,
.page-home .btn-secondary {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.page-home .btn-primary:hover {
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}
.page-home .btn-secondary:hover {
  background: var(--color-accent-red);
  color: var(--color-text-primary);
}
