/* ============================================================
   PokeHD 首页 · 全新样式（暖色焕新版，与 forum.css 设计语言一致）
   依赖 style.css 的设计变量与导航样式，本文件仅作用于 index.html
   ============================================================ */

/* ==================== Hero 欢迎区 ==================== */
.hp-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 20px 100px;
  background:
    radial-gradient(ellipse at 15% 18%, rgba(224, 93, 68, 0.13) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 15%, rgba(217, 160, 43, 0.15) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 95%, rgba(77, 143, 184, 0.10) 0%, transparent 58%),
    linear-gradient(180deg, #f3ead9 0%, var(--bg) 100%);
}
.hp-hero::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.16;
  background: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='24' r='18' fill='none' stroke='%23d9b88a' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
/* 底部圆弧收边 */
.hp-hero::after {
  content: '';
  position: absolute; left: -5%; right: -5%; bottom: -36px; height: 72px;
  background: var(--bg);
  border-radius: 100% 100% 0 0;
  pointer-events: none;
}
.hp-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

/* 顶部状态徽章 */
.hp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 18px; border-radius: 20px;
  background: rgba(255, 253, 250, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.78rem; font-weight: 600; color: var(--text-soft);
  animation: hpFadeUp 0.6s ease-out both;
}
.hp-hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: hpPing 2s ease-out infinite;
}

.hp-hero h1 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.4;
  margin: 18px 0 10px;
}
.hp-hero .line1 {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: var(--text);
  letter-spacing: 2px;
  animation: hpFadeUp 0.7s 0.1s ease-out both;
}
.hp-hero .line2 {
  display: block;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  letter-spacing: 4px;
}
/* 副标题逐字入场：渐变直接挂在每个字上（父级 clip 会被子元素动画破坏） */
.hp-hero .line2 span {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 10%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: hpCharIn 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) both;
  animation-delay: calc(0.35s + var(--c) * 0.07s);
}
.hp-hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-dim);
  max-width: 480px; margin: 0 auto 34px;
  animation: hpFadeUp 0.7s 0.55s ease-out both;
}

/* 按钮组 */
.hp-hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: hpFadeUp 0.7s 0.65s ease-out both;
}
.hp-btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  font-size: 0.98rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: hpGlow 3.5s ease-in-out infinite;
}
.hp-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(224, 93, 68, 0.45); }
.hp-btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: hpShine 3.2s ease-in-out infinite;
}
.hp-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 28px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 253, 250, 0.75);
  color: var(--text-soft);
  font-size: 0.98rem; font-weight: 600; text-decoration: none;
  transition: all 0.25s;
}
.hp-btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(224, 93, 68, 0.18);
}

/* 特性胶囊 */
.hp-hero-features {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.hp-feature {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px; border-radius: 22px;
  background: rgba(255, 253, 250, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600; color: var(--text-soft);
  opacity: 0;
  animation: hpFadeUp 0.6s ease-out both;
  animation-delay: calc(0.8s + var(--i) * 0.12s);
  transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.hp-feature:hover { transform: translateY(-4px); border-color: var(--primary); color: var(--primary); }
.hp-feature .fi { font-size: 1.05rem; }

/* 漂浮精灵 & 粒子 */
.hp-sprite {
  position: absolute; z-index: 1;
  pointer-events: none; user-select: none;
  opacity: 0.6;
  filter: drop-shadow(0 5px 10px rgba(92, 74, 56, 0.2));
  animation: hpSpriteFloat var(--d, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hp-particle {
  position: absolute; z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  bottom: -14px;
  background: radial-gradient(circle, rgba(217, 160, 43, 0.55), rgba(224, 93, 68, 0.22));
  animation: hpParticleRise var(--d, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
}
/* 向下探索 */
.hp-hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 0.76rem;
  animation: hpFadeUp 0.7s 1s ease-out both;
}
.hp-hero-scroll .arrow {
  width: 14px; height: 14px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: hpBounce 2s infinite;
}

/* ==================== 通用区块 ==================== */
.hp-section {
  position: relative;
  padding: 74px 20px;
}
.hp-section.alt { background: var(--bg-soft); }
.hp-container { max-width: var(--max-w); margin: 0 auto; }

/* 区块标题（滚动显现） */
.hp-section-header {
  text-align: center; margin-bottom: 42px;
}
.hp-section-header .hp-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hp-section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hp-section-title::before, .hp-section-title::after {
  content: '';
  height: 3px; width: 44px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary));
}
.hp-section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hp-section-desc { color: var(--text-dim); font-size: 0.92rem; margin-top: 10px; }

/* 滚动显现动效 */
.hp-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 0.8, 0.36, 1); }
.hp-reveal.in-view { opacity: 1; transform: translateY(0); }
/* 网格内卡片：进入视口时才播放入场动画 */
.hp-news-card, .hp-forum-item, .hp-dl-card { animation-play-state: paused; }
.in-view .hp-news-card, .in-view .hp-forum-item, .in-view .hp-dl-card { animation-play-state: running; }

/* ==================== 轮播 ==================== */
.hp-carousel {
  position: relative;
  max-width: 960px;
  margin: -30px auto 0;
  padding: 0 20px;
  z-index: 3;
}
.hp-carousel-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  animation: hpFadeUp 0.7s 0.2s ease-out both;
}
.hp-carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.3, 1); }
.hp-carousel-slide {
  width: 100%; flex-shrink: 0;
  position: relative; height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hp-carousel-slide .bg {
  position: absolute; inset: -22px;
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(0.45);
  transform: scale(1.12);
}
.hp-carousel-slide img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.hp-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(51, 36, 23, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 1.15rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.hp-carousel-arrow:hover {
  background: rgba(224, 93, 68, 0.85);
  border-color: transparent;
  transform: translateY(-50%) scale(1.12);
}
.hp-carousel-prev { left: 14px; }
.hp-carousel-next { right: 14px; }
.hp-carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.hp-carousel-dots span {
  width: 9px; height: 9px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.hp-carousel-dots span:hover { background: rgba(255, 255, 255, 0.8); }
.hp-carousel-dots span.active { width: 26px; background: #fff; }

/* ==================== 新闻资讯 ==================== */
.hp-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  padding: 4px;
  width: fit-content; margin: 0 auto 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.tab-btn {
  padding: 7px 18px;
  border: none; border-radius: 20px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  display: inline-flex; align-items: center; gap: 5px;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-soft); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff;
  box-shadow: 0 3px 10px rgba(224, 93, 68, 0.35);
  animation: hpPop 0.35s ease-out;
}

/* 新闻卡片网格 */
.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.hp-news-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  animation: hpCardIn 0.55s cubic-bezier(0.22, 0.8, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.hp-news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 93, 68, 0.3);
  box-shadow: var(--shadow-lg);
}
.hp-news-img {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-input));
}
.hp-news-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.45s ease; }
.hp-news-card:hover .hp-news-img img { transform: scale(1.07); }
.hp-news-img .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: var(--text-faint);
}
/* 图片上的分类角标 */
.hp-news-img .tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 11px; border-radius: 8px;
  backdrop-filter: blur(4px);
  font-size: 0.7rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(51, 36, 23, 0.18);
}
.tag-news    { background: rgba(77, 143, 184, 0.92); color: #fff; }
.tag-notice  { background: rgba(217, 160, 43, 0.94); color: #fff; }
.tag-update  { background: rgba(224, 93, 68, 0.94); color: #fff; }
.tag-event   { background: rgba(192, 57, 43, 0.94); color: #fff; }
.tag-poll    { background: rgba(61, 155, 110, 0.94); color: #fff; }
/* 置顶标 */
.hp-news-card .pin {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 8px;
  background: rgba(51, 36, 23, 0.72);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.68rem; font-weight: 700;
}
.hp-news-body { padding: 18px 20px 16px; }
.hp-news-body h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.25s;
  min-height: 3em;
}
.hp-news-card:hover h3 { color: var(--primary); }
.hp-news-body .sum {
  color: var(--text-dim); font-size: 0.83rem; line-height: 1.65;
  margin-top: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-news-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  font-size: 0.74rem; color: var(--text-faint);
}
.hp-news-foot .more {
  color: var(--primary); font-weight: 600; opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
}
.hp-news-card:hover .more { opacity: 1; transform: translateX(0); }

/* 新闻骨架屏 */
.hp-skel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
}
.hp-skel {
  background: linear-gradient(100deg, var(--bg-soft) 30%, #faf3e6 50%, var(--bg-soft) 70%);
  background-size: 200% 100%;
  animation: hpShimmer 1.4s linear infinite;
}
.hp-skel-card .img { height: 172px; }
.hp-skel-card .line { height: 13px; border-radius: 6px; margin: 14px 18px 0; }
.hp-skel-card .line.w70 { width: 70%; }
.hp-skel-card .line.w45 { width: 45%; margin-bottom: 18px; }

/* 分页 */
.hp-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 32px;
}
.page-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: 0.8rem; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.page-btn.active {
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px rgba(224, 93, 68, 0.35);
  animation: hpPop 0.3s ease-out;
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ==================== 论坛热帖 ==================== */
.hp-forum-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.hp-forum-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  opacity: 0;
  animation: hpCardIn 0.5s cubic-bezier(0.22, 0.8, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.hp-forum-item:hover {
  transform: translateX(6px);
  border-color: rgba(224, 93, 68, 0.3);
  box-shadow: var(--shadow-lg);
}
.hp-forum-chip {
  flex-shrink: 0;
  padding: 3px 10px; border-radius: 7px;
  font-size: 0.68rem; font-weight: 700;
}
.chip-chat    { background: var(--accent-soft); color: var(--accent); }
.chip-trade   { background: var(--gold-soft); color: #a07a1a; }
.chip-guide   { background: var(--primary-soft); color: var(--primary); }
.chip-checkin { background: rgba(61, 155, 110, 0.12); color: var(--success); }
.hp-forum-title {
  flex: 1; min-width: 0;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.25s;
}
.hp-forum-item:hover .hp-forum-title { color: var(--primary); }
.hp-forum-meta {
  flex-shrink: 0;
  font-size: 0.74rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.hp-forum-actions { text-align: center; margin-top: 26px; }
.hp-more-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 32px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff; font-size: 0.9rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hp-more-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(224, 93, 68, 0.45); }
.hp-more-btn::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: hpShine 3.2s ease-in-out infinite;
}

/* ==================== 下载中心 ==================== */
.hp-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.hp-dl-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  animation: hpCardIn 0.55s cubic-bezier(0.22, 0.8, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.hp-dl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 93, 68, 0.3);
  box-shadow: var(--shadow-lg);
}
.hp-dl-icon {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-soft), var(--gold-soft));
  transition: transform 0.3s;
}
.hp-dl-card:hover .hp-dl-icon { transform: scale(1.12) rotate(-6deg); }
.hp-dl-name {
  font-size: 0.92rem; font-weight: 700; color: var(--text);
  word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.hp-dl-plat {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 2px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.hp-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 26px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff; font-size: 0.84rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.hp-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }

/* 未登录提示卡 */
.hp-login-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px 52px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  animation: hpFadeUp 0.5s ease-out both;
}
.hp-login-tip .big { font-size: 2.8rem; display: block; margin-bottom: 10px; animation: hpFloatY 3s ease-in-out infinite; }
.hp-login-tip p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }

/* 空状态 */
.hp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 52px 20px 56px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  animation: hpFadeUp 0.5s ease-out both;
}
.hp-empty .icon { font-size: 2.8rem; display: block; margin-bottom: 10px; animation: hpFloatY 2.6s ease-in-out infinite; }
.hp-empty p { color: var(--text-dim); font-size: 0.9rem; }
.hp-empty a { color: var(--primary); font-weight: 600; }

/* ==================== 页脚 ==================== */
.hp-footer {
  position: relative;
  background: var(--bg-soft);
  padding: 46px 20px 26px;
}
.hp-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: hpFlow 8s linear infinite;
}
.hp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  max-width: var(--max-w); margin: 0 auto 30px;
}
.hp-footer-brand { display: flex; flex-direction: column; gap: 6px; }
.hp-footer-brand .logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.hp-footer-brand .logo .logo-icon { color: var(--primary); font-size: 1.5rem; }
.hp-footer-brand p { color: var(--text-dim); font-size: 0.82rem; max-width: 300px; }
.hp-footer-links h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 13px; }
.hp-footer-links a {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-soft); font-size: 0.83rem;
  margin-bottom: 9px;
  transition: color 0.25s, transform 0.25s;
}
.hp-footer-links a::before { content: '›'; color: var(--text-faint); transition: color 0.25s; }
.hp-footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.hp-footer-links a:hover::before { color: var(--primary); }
.hp-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: var(--max-w); margin: 0 auto;
}
.hp-footer-bottom p { color: var(--text-dim); font-size: 0.72rem; line-height: 2; }
.hp-footer-status { color: var(--success) !important; font-weight: 600; }
.hp-footer-beta { max-width: 760px; margin: 4px auto 0; }

/* ==================== 回到顶部 ==================== */
.hp-backtop {
  position: fixed; right: 20px; bottom: 26px;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.hp-backtop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.hp-backtop:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(224, 93, 68, 0.5); }
.hp-backtop.show:hover { transform: translateY(-3px); }

/* ==================== 新闻/投票弹窗 ==================== */
.news-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(51, 36, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: hpFadeIn 0.25s ease-out;
}
.news-modal-box {
  width: 100%; max-width: 700px;
  max-height: 85vh; overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 18px 56px rgba(51, 36, 23, 0.18);
  animation: hpZoomIn 0.32s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.news-modal-box::-webkit-scrollbar { width: 6px; }
.news-modal-box::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.news-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-soft); color: var(--text-dim);
  font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  z-index: 2;
}
.news-modal-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; transform: rotate(90deg); }
.news-modal-box h2 { font-size: 1.25rem; color: var(--text); margin: 0 0 8px; padding-right: 30px; }
.news-modal-box .date { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 16px; }
.news-modal-box .body { font-size: 0.92rem; color: var(--text); line-height: 1.8; white-space: pre-wrap; }
/* 正文表格（管理端配置行列与单元格样式） */
.news-modal-box .body .art-table-wrap { white-space: normal; overflow-x: auto; margin: 14px 0; }
.art-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; line-height: 1.5; }
.art-table td { border: 1px solid var(--border-strong); padding: 7px 11px; white-space: normal; word-break: break-word; text-align: left; }
.news-modal-box img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.news-category {
  display: inline-block; padding: 3px 11px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 10px;
}

/* 投票选项 */
.poll-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 9px; cursor: pointer;
  transition: all 0.25s;
}
.poll-option:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(4px); }
.poll-option.selected { border-color: var(--primary); background: var(--primary-soft); animation: hpPop 0.3s ease-out; }
.poll-option .opt-text { flex: 1; font-size: 0.88rem; }
.poll-option .opt-pct { font-size: 0.82rem; font-weight: 700; color: var(--primary); min-width: 48px; text-align: right; }
.poll-options.poll-voted .poll-option { cursor: default; pointer-events: none; }
.poll-result:hover { border-color: var(--border); background: transparent; transform: none; }
.poll-result.opt-max { border-color: var(--primary); background: var(--primary-soft); }
.poll-actions { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.poll-note { font-size: 0.74rem; color: var(--text-dim); }
.poll-actions .btn {
  padding: 10px 26px; border: none; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #e88a4a);
  color: #fff; font-size: 0.86rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; box-shadow: var(--shadow-btn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.poll-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224, 93, 68, 0.4); }

/* ==================== 动画 ==================== */
@keyframes hpFadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hpFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes hpZoomIn   { from { opacity: 0; transform: scale(0.88) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes hpCardIn   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hpCharIn   { from { opacity: 0; transform: translateY(18px) scale(0.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hpPop      { 0% { transform: scale(0.8); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes hpShine    { 0%, 55% { left: -80%; } 100% { left: 130%; } }
@keyframes hpShimmer  { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes hpPing     { 0% { box-shadow: 0 0 0 0 rgba(61, 155, 110, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(61, 155, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 155, 110, 0); } }
@keyframes hpGlow     { 0%, 100% { box-shadow: var(--shadow-btn); } 50% { box-shadow: 0 6px 26px rgba(224, 93, 68, 0.5); } }
@keyframes hpSpriteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-14px) rotate(5deg); }
  75% { transform: translateY(9px) rotate(-5deg); }
}
@keyframes hpParticleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-88vh) scale(0.3); opacity: 0; }
}
@keyframes hpBounce  { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(4px, 4px); } }
@keyframes hpFloatY  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hpFlow    { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .hp-hero { min-height: 80vh; padding: 80px 14px 90px; }
  .hp-hero .hp-hero-sub { margin-bottom: 28px; }
  .hp-hero-actions { flex-direction: column; align-items: center; }
  .hp-hero-actions .hp-btn-primary, .hp-hero-actions .hp-btn-outline { width: 230px; justify-content: center; }
  .hp-hero-features { margin-top: 32px; }
  .hp-feature { padding: 7px 15px; font-size: 0.76rem; }
  .hp-sprite { display: none; }
  .hp-hero-scroll { display: none; }
  .hp-carousel { margin-top: -26px; }
  .hp-carousel-slide { height: 210px; }
  .hp-carousel-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .hp-section { padding: 54px 14px; }
  .hp-section-header { margin-bottom: 30px; }
  .hp-news-grid, .hp-download-grid { grid-template-columns: 1fr; }
  .hp-news-img { height: 150px; }
  .hp-forum-item { padding: 13px 14px; gap: 9px; }
  .hp-forum-meta .hide-sm { display: none; }
  .hp-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hp-tabs { border-radius: 22px; }
  .tab-btn { padding: 6px 13px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .hp-section { padding: 46px 12px; }
  .hp-hero .line2 { letter-spacing: 2px; }
  .hp-carousel-slide { height: 170px; }
  .hp-download-grid { gap: 14px; }
  .hp-backtop { right: 14px; bottom: 18px; width: 42px; height: 42px; }
}

/* 动效减弱：尊重系统偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
  .hp-reveal { opacity: 1; transform: none; }
  .hp-news-card, .hp-forum-item, .hp-dl-card { opacity: 1; animation-play-state: running; }
}
