/* ===== 首页专属样式 ===== */
.page-home {
  --home-gold: #D4AF37;
  --home-gold-light: #F0E68C;
  --home-red: #C41E3A;
  --home-dark: #1A1A1A;
  --home-mid: #2C2C2C;
  --home-white: #FFFFFF;
  --home-text: #F8F8F8;
  --home-font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --home-font-body: 'Noto Sans SC', sans-serif;
  --home-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* 移动端优先 */
.page-home .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 首屏 Hero ===== */
.page-home__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--home-dark);
  color: var(--home-text);
}

.page-home__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  display: block;
}

.page-home__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0;
  max-width: 800px;
}

.page-home__hero-title {
  font-family: var(--home-font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--home-gold);
  margin: 0 0 0.25em;
  border: 2px solid var(--home-gold);
  display: inline-block;
  padding: 0.2em 0.6em;
  line-height: 1.2;
}

.page-home__hero-subtitle {
  font-family: var(--home-font-body);
  font-size: 1.4rem;
  color: var(--home-gold-light);
  margin: 0.5em 0 0.3em;
  letter-spacing: 0.1em;
}

.page-home__hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2em;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-home__cta {
  display: inline-block;
  padding: 0.9em 2.2em;
  background: var(--home-red);
  color: var(--home-white);
  font-family: var(--home-font-body);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2.5em;
}

.page-home__cta:hover,
.page-home__cta:focus {
  background: #a0192f;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.page-home__hero-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2em 2em;
  font-size: 0.9rem;
}

.page-home__index-link {
  color: var(--home-gold-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  font-family: var(--home-font-body);
  letter-spacing: 0.05em;
}

.page-home__index-link:hover {
  border-bottom-color: var(--home-gold);
}

/* ===== 通用分区 ===== */
.page-home__section {
  padding: 60px 16px;
  background: var(--home-white);
  color: var(--home-dark);
}

.page-home__section:nth-child(odd) {
  background: #f8f8f8;
}

.page-home__section-header {
  margin-bottom: 2.5em;
  text-align: center;
}

.page-home__section-title {
  font-family: var(--home-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--home-dark);
  margin: 0 0 0.3em;
  letter-spacing: 0.06em;
}

.page-home__section-desc {
  font-size: 1rem;
  color: var(--home-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== 注册入口 ===== */
.page-home__register-card {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: center;
}

.page-home__register-info {
  text-align: center;
  max-width: 500px;
}

.page-home__register-info p {
  margin: 0 0 1.5em;
  font-size: 1.05rem;
}

.page-home__register-btn {
  display: inline-block;
  padding: 0.8em 2em;
  background: var(--home-red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.page-home__register-btn:hover {
  background: #a0192f;
}

.page-home__register-visual {
  max-width: 100%;
}

.page-home__register-img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  border: 2px solid var(--home-gold);
}

/* ===== 版本下载与旧版资料 ===== */
.page-home__download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
}

.page-home__download-card {
  border: 1px solid var(--home-gold);
  padding: 1.5em;
  background: white;
  transition: box-shadow 0.3s;
}

.page-home__download-card[data-expandable]:hover {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.page-home__download-card-header {
  margin-bottom: 1em;
}

.page-home__download-card-title {
  font-family: var(--home-font-heading);
  font-size: 1.2rem;
  margin: 0 0 0.2em;
  color: var(--home-dark);
}

.page-home__download-card-meta {
  font-family: var(--home-font-mono);
  font-size: 0.8rem;
  color: var(--home-mid);
  display: block;
  letter-spacing: 0.03em;
}

.page-home__download-card-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home__download-preview {
  margin-top: 1em;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__download-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--home-gold);
}

.page-home__archive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--home-font-body);
  font-size: 0.9rem;
  margin-bottom: 1em;
}

.page-home__archive-table th,
.page-home__archive-table td {
  border: 1px solid var(--home-gold);
  padding: 0.5em 0.8em;
  text-align: left;
}

.page-home__archive-table th {
  background: var(--home-gold);
  color: var(--home-dark);
  font-weight: 600;
}

.page-home__archive-table td {
  background: white;
}

.page-home__archive-note {
  font-size: 0.85rem;
  text-align: right;
}

.page-home__archive-note a {
  color: var(--home-red);
  text-decoration: underline;
}

/* ===== 站点动态 ===== */
.page-home__news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5em;
  max-width: 900px;
  margin: 0 auto;
}

.page-home__news-card {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  padding: 1.2em;
  border-left: 4px solid var(--home-gold);
  background: white;
  transition: transform 0.2s;
}

.page-home__news-card:hover {
  transform: translateX(4px);
}

.page-home__news-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home__news-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-home__news-card-content {
  flex: 1;
}

.page-home__news-card-title {
  font-family: var(--home-font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.3em;
  color: var(--home-dark);
}

.page-home__news-card-content p {
  margin: 0 0 0.5em;
  font-size: 0.95rem;
  color: var(--home-mid);
}

.page-home__news-link {
  font-size: 0.9rem;
  color: var(--home-red);
  text-decoration: none;
  font-weight: 500;
}

.page-home__news-link:hover {
  text-decoration: underline;
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .page-home .container {
    padding: 0 32px;
  }

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

  .page-home__hero-subtitle {
    font-size: 1.8rem;
  }

  .page-home__hero-desc {
    font-size: 1.1rem;
  }

  .page-home__register-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home__register-info {
    text-align: left;
    flex: 1;
  }

  .page-home__register-visual {
    flex: 1;
    max-width: 50%;
  }

  .page-home__download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home__news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
  }

  .page-home__news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-home__news-card-icon {
    margin-bottom: 0.5em;
  }

  .page-home__section {
    padding: 80px 32px;
  }

  .page-home__section-title {
    font-size: 2.4rem;
  }
}

/* 确保所有图片响应式 */
.page-home img {
  max-width: 100%;
  height: auto;
}
