:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color-page: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-color-page);
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-beginner-guide a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-beginner-guide a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 40px;
  background-color: var(--bg-color-page);
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-beginner-guide__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  max-width: 100%;
}

.page-beginner-guide__intro-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Table of Contents */
.page-beginner-guide__table-of-contents {
  background-color: var(--card-bg-color);
  padding: 40px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-beginner-guide__toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  margin-top: 20px;
}

.page-beginner-guide__toc-list li a {
  color: var(--text-main-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-beginner-guide__toc-list li a:hover {
  color: var(--gold-color);
  text-decoration: none;
}

/* General Content Sections */
.page-beginner-guide__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-beginner-guide__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-beginner-guide__text-block {
  font-size: 1.05em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-beginner-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__action-area {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Game Types Grid */
.page-beginner-guide__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__game-type-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-beginner-guide__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  color: var(--text-main-color);
  margin-bottom: 10px;
}

.page-beginner-guide__card-description {
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

/* Tips List */
.page-beginner-guide__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-beginner-guide__tips-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.page-beginner-guide__tips-item p {
  color: var(--text-secondary-color);
  font-size: 0.98em;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-beginner-guide__faq-list {
  margin-top: 40px;
}

.page-beginner-guide__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main-color);
  font-size: 1.15em;
  list-style: none;
  outline: none;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-beginner-guide__faq-qtext {
  flex-grow: 1;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-beginner-guide__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary-color);
  font-size: 1em;
}

/* CTA Banner */
.page-beginner-guide__cta-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green-color);
}

.page-beginner-guide__cta-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-beginner-guide__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-beginner-guide__cta-title {
  font-size: 2.5em;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-beginner-guide__cta-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-beginner-guide__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Related Articles */
.page-beginner-guide__related-articles-section {
  padding: 60px 0;
}

.page-beginner-guide__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__article-card {
  display: block;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-beginner-guide__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.page-beginner-guide__article-card .page-beginner-guide__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.page-beginner-guide__article-card .page-beginner-guide__card-title {
  font-size: 1.3em;
  color: var(--text-main-color);
  padding: 15px 20px 0;
  text-align: left;
}

.page-beginner-guide__article-card .page-beginner-guide__card-excerpt {
  color: var(--text-secondary-color);
  font-size: 0.9em;
  padding: 0 20px 20px;
  text-align: left;
}

.page-beginner-guide__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 2.8em;
  }

  .page-beginner-guide__section-title {
    font-size: 2em;
  }

  .page-beginner-guide__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-beginner-guide__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-beginner-guide__hero-content {
    padding: 0 15px;
  }

  .page-beginner-guide__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-beginner-guide__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 产品展示图区域 */
  .page-beginner-guide__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__game-type-card {
    padding: 20px;
  }

  .page-beginner-guide__card-image {
    width: 100%;
    height: auto;
    max-width: 100% !important;
  }

  /* 通用图片与容器 */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-beginner-guide__container,
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide a[class*="button"],
  .page-beginner-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
  }

  /* 其他内容模块 */
  .page-beginner-guide__section {
    padding: 40px 0;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-beginner-guide__sub-title {
    font-size: 1.4em;
  }

  .page-beginner-guide__text-block,
  .page-beginner-guide__card-description,
  .page-beginner-guide__tips-item p,
  .page-beginner-guide__faq-answer p {
    font-size: 0.95em;
  }

  .page-beginner-guide__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-beginner-guide__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-beginner-guide__cta-title {
    font-size: 2em;
  }

  .page-beginner-guide__cta-description {
    font-size: 1em;
  }

  .page-beginner-guide__btn-large {
    padding: 15px 30px;
    font-size: 1em;
  }

  .page-beginner-guide__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__article-card .page-beginner-guide__card-title {
    font-size: 1.1em;
  }

  .page-beginner-guide__article-card .page-beginner-guide__card-excerpt {
    font-size: 0.85em;
  }

  .page-beginner-guide__toc-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}