/* ========== Home Page Styles ========== */

/* Hero */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #e8e9ef 0%, #f2f3f7 50%, #ffffff 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border, #f0f0f0);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-tag .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  /* 流光扫过动画 */
  background: linear-gradient(90deg,
    #1a1a1a 0%, #1a1a1a 30%,
    #6366f1 48%, #a5b4fc 50%, #6366f1 52%,
    #1a1a1a 70%, #1a1a1a 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4.5s ease-in-out infinite;
}
.hero p {
  font-size: 1.15rem;
  color: #4b5563;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
/* 统一按钮类 .btn-hero，不跟 style.css 的 .btn-primary/.btn-ghost 冲突 */
.btn-hero {
  padding: 12px 28px;
  background: transparent;
  color: #555;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-hero .btn-text,
.btn-hero .btn-arrow { position: relative; z-index: 2; }
.btn-arrow { transition: opacity 0.3s; }
.btn-hero,
.btn-hero:link,
.btn-hero:visited,
.btn-hero:hover,
.btn-hero:focus,
.btn-hero:active { color: #555; text-decoration: none; outline: none; }

/* 液态填充块 */
.btn-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 100%;
  background: linear-gradient(135deg, #2d2d2f 0%, #3a3a3d 100%);
  border-radius: 100px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 默认：fill 在「开始阅读」上 → 开始阅读白色 */
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"],
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"]:link,
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"]:visited,
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"]:hover,
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"]:focus,
.hero-actions:not(.fill-on-about) .btn-hero[data-btn="start"]:active { color: #fff; }

/* fill 在「关于我」上 → 关于我白色 */
.hero-actions.fill-on-about .btn-hero[data-btn="about"],
.hero-actions.fill-on-about .btn-hero[data-btn="about"]:link,
.hero-actions.fill-on-about .btn-hero[data-btn="about"]:visited,
.hero-actions.fill-on-about .btn-hero[data-btn="about"]:hover,
.hero-actions.fill-on-about .btn-hero[data-btn="about"]:focus,
.hero-actions.fill-on-about .btn-hero[data-btn="about"]:active { color: #fff; }

.hero-actions.fill-on-about .btn-hero[data-btn="start"] .btn-arrow { opacity: 0; }

/* Section Common */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-block { padding: 80px 0; }
.section-divider {
  border: none;
  border-top: 0.5px solid #d8d9db;
  margin: 0 auto;
  max-width: 1080px;
  width: calc(100% - 48px);
}
@media (max-width: 768px) {
  .section-divider { width: calc(100% - 48px); }
}
.home-about-section { max-width: 100%; padding: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-head-left .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}
.section-head-left h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}
.section-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.section-more:hover { color: #1a1a1a; gap: 8px; text-decoration: none; }

/* Featured Articles */
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.featured-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.featured-main:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.featured-main .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.featured-main .bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.45) 65%, rgba(0,0,0,0.6) 100%);
}
.featured-main .content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.featured-main .pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.featured-main .pin-badge svg {
  width: 12px; height: 12px;
  fill: rgba(255,255,255,0.9);
}
.featured-main h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.featured-main p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}
.featured-main .meta {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.7;
}
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-card {
  flex: 1;
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.featured-card:hover {
  background: #fff;
  border-color: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateX(4px);
  text-decoration: none;
}
.featured-card .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #d1d5db;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  font-style: italic;
}
.featured-card .body { flex: 1; min-width: 0; }
.featured-card .pin-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.featured-card .pin-tag svg {
  width: 10px; height: 10px;
  fill: #9ca3af;
}
.featured-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
  line-height: 1.35;
}
.featured-card .desc {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article List (home) */
.home-article-list { display: flex; flex-direction: column; }
.home-article-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: none;
  background: repeating-linear-gradient(to right, #dddddd 0, #dddddd 3px, transparent 3px, transparent 7px) bottom / 100% 1px no-repeat;
  align-items: flex-start;
  transition: all 0.2s;
}
.home-article-item:last-child { background: none; }
.home-article-item:hover { padding-left: 8px; }
.home-article-item .date-block {
  flex-shrink: 0;
  text-align: center;
  width: 56px;
  padding-top: 2px;
}
.home-article-item .date-block .day {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}
.home-article-item .date-block .month {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.home-article-item .body { flex: 1; min-width: 0; }
.home-article-item .cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.home-article-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.home-article-item h3 a { color: #1a1a1a; }
.home-article-item h3 a:hover { color: #9ca3af; text-decoration: none; }


/* Article list clickable areas */
.home-article-item .summary-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-article-item .thumb-link {
  display: block;
  flex-shrink: 0;
}

.home-article-item .summary-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-article-item .thumb-link {
  display: block;
  flex-shrink: 0;
}
.home-article-item .summary {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.home-article-item .item-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: #9ca3af;
  align-items: center;
  flex-wrap: wrap;
}
.home-article-item .item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.home-article-item .thumb {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}
.home-article-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.home-article-item:hover .thumb img { transform: scale(1.06); }
.badge-orig { background: #f0fdf4; color: #15803d; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.badge-reprint { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

/* About */
.about-block {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-block::before {
  content: '"';
  position: absolute;
  top: 10px; left: 24px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: #d1d5db;
  line-height: 1;
  opacity: 0.4;
}
.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  position: relative;
}
.about-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.about-block p {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.8;
  position: relative;
}
.about-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.about-tag {
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 100px;
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

/* Games Grid */
.home-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-game-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #f5f5f5;
  display: block;
}
.home-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-color: #f0f0f0;
  text-decoration: none;
}
.home-game-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.home-game-thumb.bg1 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.home-game-thumb.bg2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.home-game-thumb.bg3 { background: linear-gradient(135deg, #1e293b, #0f172a); }
.home-game-thumb.bg4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.home-game-thumb.bg5 { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.home-game-thumb.bg6 { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.home-game-thumb.bg7 { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.home-game-thumb.bg8 { background: linear-gradient(135deg, #faf5ff, #e9d5ff); }
.home-game-thumb .game-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-game-card .game-info { padding: 14px 16px; }
.home-game-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.home-game-card p { font-size: 0.75rem; color: #9ca3af; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Stats */
.stats-block {
  background: transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: none;
  border-bottom: none;
}
.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  position: relative;
}
.stat-item:nth-child(1) { background: linear-gradient(135deg, #f2f3f5 0%, #ffffff 100%); }
.stat-item:nth-child(2) { background: linear-gradient(135deg, #eff0f2 0%, #fdfdfd 100%); }
.stat-item:nth-child(3) { background: linear-gradient(135deg, #f4f4f6 0%, #ffffff 100%); }
.stat-item:nth-child(4) { background: linear-gradient(135deg, #f0f1f3 0%, #fcfcfc 100%); }
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .num .suffix { font-size: 1.2rem; font-weight: 600; color: #9ca3af; }
.stat-item .label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Albums */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.album-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #f5f5f5;
  display: block;
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-color: #f0f0f0;
  text-decoration: none;
}
.album-cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.album-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-cover .count-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a1a1a;
}
.album-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #f0f0f0;
}
.album-info { padding: 16px 20px; }
.album-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.album-info p { font-size: 0.8rem; color: #9ca3af; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section-block { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .section-head-left h2 { font-size: 1.4rem; }

  .featured-grid { grid-template-columns: 1fr; }
  .featured-main .bg { padding: 24px; }
  .featured-main h3 { font-size: 1.3rem; }

  .home-article-item { gap: 14px; padding: 20px 0; }
  .home-article-item .date-block { width: 44px; }
  .home-article-item .date-block .day { font-size: 1.2rem; }
  .home-article-item h3 { font-size: 1.05rem; }
  .home-article-item .thumb { width: 100px; height: 70px; }

  .about-block { padding: 16px 24px; }

  .home-games-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid { grid-template-columns: 1fr; }

  .stats-block { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { padding: 28px 12px; border-radius: 10px; border-bottom: none; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item .num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .home-games-grid { grid-template-columns: 1fr 1fr; }
  .album-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: column; }
}
