/* style/index.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --bg-color: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

/* General styling for main content area */
.page-content.page-index {
  background-color: var(--bg-color);
  color: var(--text-main);
}

/* 🚨 Video Section Styles */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 页头整段高度由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止再写 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
}

.page-index__video-container {
  position: relative;
  width: 100%; /* 🚨 Desktop: Must include width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 🚨 Video click link style */
.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click */
}

/* 🚨 Video click hint overlay style */
.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

/* 🚨 Keyword Intro Section Styles */
.page-index__keyword-intro-section {
  padding: 80px 20px;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-index__keyword-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__keyword-intro-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-index__keyword-intro-visual {
  flex: 1;
  min-width: 300px;
}

.page-index__keyword-intro-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__keyword-intro-content {
  flex: 1.2;
}

.page-index__keyword-intro-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--primary-color);
}

.page-index__keyword-intro-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-index__keyword-intro-cta {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.page-index__keyword-intro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index__keyword-intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.page-index__keyword-intro-stat {
  background-color: var(--card-bg);
  padding: 25px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.page-index__keyword-intro-stat-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-index__keyword-intro-stat-label {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.4;
}

/* 🚨 Article Categories Section Styles */
.page-index__articles-section {
  padding: 60px 20px;
  background-color: var(--bg-color);
}

.page-index__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Main title - Left aligned, vertical stacking */
.page-index__articles-main-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 40px;
  text-align: left;
}

.page-index__articles-title-small {
  font-size: 16px;
  font-weight: 900;
  color: var(--secondary-color);
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-color);
}

/* Category section - Each category wrapped independently */
.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Category header */
.page-index__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-index__category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1;
  min-width: 0;
}

.page-index__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-index__category-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #000000;
}

.page-index__category-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-index__category-read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Article grid - 3 columns 2 rows layout */
.page-index__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

/* Article card - Only as container, no specific border/radius */
.page-index__article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.3s ease;
}

.page-index__article-card:hover {
  transform: translateY(-5px);
}

.page-index__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Article thumbnail - Image independent border-radius */
.page-index__article-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 0;
}

.page-index__article-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Game provider tag */
.page-index__article-provider-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

/* Article title link - Title below image */
.page-index__article-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 12px;
}

/* Article title */
.page-index__article-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
  transition: color 0.3s ease;
}

.page-index__article-title-link:hover .page-index__article-title {
  color: var(--primary-color);
}

/* 🚨 Partners Section Styles */
.page-index__partners-section {
  padding: 60px 20px;
  background: var(--bg-color);
}

.page-index__partners-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 2 rows 5 columns grid layout, 10 images */
.page-index__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.page-index__partner-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding-left: 19px;
  padding-right: 19px;
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
}

/* 🚨 Image size must be strictly adhered to: 167px width, 127px height */
.page-index__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
}

/* 🚨 Info Section Styles */
.page-index__info-section {
  padding: 60px 20px;
  background: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-index__info-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__info-main-title {
  font-size: 36px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 40px;
  color: #000000;
  line-height: 1.3;
}

.page-index__info-content {
  line-height: 1.8;
}