/* style/g.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --border-color: #E0E0E0;
  --background-light: #F5F7FA;
  --background-dark: #1a1a1a; /* Assuming a dark background for dark sections for contrast */
}

.page-g {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-g__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: var(--background-dark); /* Fallback for dark section if image fails */
}

.page-g__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-g__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-g__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Buttons */
.page-g__btn-primary,
.page-g__btn-secondary,
.page-g a[class*="btn"] {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-g__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Section Titles */
.page-g__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

.page-g__dark-bg .page-g__section-title {
  color: #ffffff;
}

.page-g__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-g__dark-bg .page-g__text-block {
  color: #f0f0f0;
}

/* Introduction Section */
.page-g__introduction-section {
  background: var(--background-light);
  padding: 60px 0;
}

/* History Section */
.page-g__history-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: #ffffff;
}

.page-g__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-g__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-g__text-content {
  flex: 1;
}

.page-g__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-g__feature-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Types Section */
.page-g__types-section {
  background: var(--card-bg-color);
  padding: 60px 0;
}

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

.page-g__card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main-color);
}

.page-g__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-g__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-g__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-g__card-description {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

/* Guide Section */
.page-g__guide-section {
  background: var(--background-dark);
  padding: 60px 0;
  color: #ffffff;
}

.page-g__guide-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-g__guide-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  border-left: 4px solid var(--secondary-color);
}

.page-g__guide-list li strong {
  color: #ffffff;
}

/* Strategy Section */
.page-g__strategy-section {
  background: var(--background-light);
  padding: 60px 0;
}

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

/* Promotions Section */
.page-g__promotions-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: #ffffff;
}

.page-g__promotions-section .page-g__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-g__promotions-section .page-g__card-title {
  color: var(--secondary-color);
}

.page-g__promotions-section .page-g__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

.page-g__promotions-section .page-g__btn-secondary:hover {
  background: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

/* Commitment Section */
.page-g__commitment-section {
  background: var(--background-light);
  padding: 60px 0;
}

/* Conclusion Section */
.page-g__conclusion-section {
  background: var(--background-dark);
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

/* FAQ Section */
.page-g__faq-section {
  background: var(--background-light);
  padding: 60px 0;
}

.page-g__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-g__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

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

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

.page-g__faq-qtext {
  flex-grow: 1;
  color: var(--primary-color);
}

.page-g__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−';
}

.page-g__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-g__faq-answer p {
  margin: 0;
}

/* General image rules */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-g__hero-image-wrapper {
    height: 500px;
  }

  .page-g__main-title {
    font-size: 2.8em;
  }

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

  .page-g__content-grid {
    flex-direction: column;
  }

  .page-g__content-grid--reverse {
    flex-direction: column;
  }

  .page-g__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile Styles (max-width: 768px) - 必写清单 */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-g__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-g__hero-image-wrapper {
    height: 300px !important;
    margin-bottom: 20px !important;
  }

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

  .page-g__main-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-g__subtitle {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 产品展示图区域 (Types Section) - General card grid applies */
  .page-g__card-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-g__card {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__card-image {
    height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-g__container,
  .page-g__section,
  .page-g__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  /* 按钮与按钮容器 */
  .page-g__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g 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 !important;
    padding-right: 15px !important;
  }

  /* 其他内容模块 */
  .page-g__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-g__text-block {
    font-size: 0.95em !important;
  }

  .page-g__guide-list li {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-g__faq-item summary {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-g__faq-answer {
    padding: 0 20px 15px !important;
  }
}