/* style/support.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-light: #F5F7FA;
  --border-color: #E0E0E0;
  --header-offset: 122px; /* Default value, assumed from shared.css */
}

.page-support {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  line-height: 1.6;
  background-color: var(--background-light); /* Assuming shared.css body background is light */
}

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

/* Hero Section */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 450px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
}

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-support__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-support__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-support__section {
  padding: 60px 0;
}

.page-support__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-main-color);
}

.page-support__highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Channel Section */
.page-support__channels-section {
  background-color: var(--background-light);
}

.page-support__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-support__channel-card {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-main-color);
  transition: transform 0.3s ease;
}

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

.page-support__card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-support__card-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-support__contact-number,
.page-support__contact-id {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1em;
}

.page-support__btn-channel {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 1em;
}

.page-support__btn-channel:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Issues Section */
.page-support__issues-section {
  background-color: var(--card-bg-color);
}

.page-support__issue-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-support__issue-text {
  flex: 2;
}

.page-support__issue-image-wrapper {
  flex: 1;
  max-width: 40%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__issue-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-support__issue-subtitle {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 10px;
}

.page-support__issue-subtitle:first-of-type {
  margin-top: 0;
}

.page-support__issue-paragraph {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-support__link-text {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-support__link-text:hover {
  color: var(--secondary-color);
}

/* FAQ Self-Help Section */
.page-support__faq-self-help-section {
  background: var(--primary-color);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__faq-self-help-section .page-support__section-title,
.page-support__faq-self-help-section .page-support__section-intro {
  color: #ffffff;
}

.page-support__faq-list {
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-support__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.page-support__faq-item[open] {
  background: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.3s ease;
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-support__link-inline {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.page-support__link-inline:hover {
  color: var(--secondary-color);
}

.page-support__faq-image-wrapper {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.page-support__faq-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Policies Section */
.page-support__policies-section {
  background-color: var(--background-light);
}

.page-support__policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-support__policy-card {
  background: var(--card-bg-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: var(--text-main-color);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__policy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__policy-card .page-support__card-title {
  font-size: 1.4em;
  text-align: left;
  margin-bottom: 10px;
}

.page-support__policy-card .page-support__card-text {
  font-size: 0.95em;
  text-align: left;
  margin-bottom: 0;
}

.page-support__policies-image-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__policies-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Tips & Commitment Section */
.page-support__tips-commitment-section {
  background: var(--primary-color);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-support__tips-commitment-section .page-support__section-title,
.page-support__tips-commitment-section .page-support__section-intro {
  color: #ffffff;
}

.page-support__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-support__tip-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.page-support__tip-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-support__tip-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-support__commitment-title {
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-support__commitment-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__commitment-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-support__issue-content {
    flex-direction: column;
    align-items: center;
  }

  .page-support__issue-text {
    order: 2;
    text-align: center;
  }

  .page-support__issue-image-wrapper {
    order: 1;
    max-width: 60%;
    margin-bottom: 30px;
  }

  .page-support__faq-image-wrapper {
    max-width: 80%;
  }

  .page-support__policies-image-wrapper {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-support__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-support__hero-image-wrapper {
    max-height: 250px;
    margin-bottom: 20px;
  }
  .page-support__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjusted for mobile */
    margin-bottom: 10px;
  }
  .page-support__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__btn,
  .page-support 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;
  }

  /* 2. 单栏长文容器 */
  .page-support__section {
    padding: 40px 0;
  }
  .page-support__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-support__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-support__channel-grid,
  .page-support__policy-grid,
  .page-support__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__channel-card,
  .page-support__policy-card,
  .page-support__tip-item {
    padding: 20px;
  }
  .page-support__card-title {
    font-size: 1.5em;
  }
  .page-support__issue-content {
    gap: 20px;
  }
  .page-support__issue-image-wrapper {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-support__issue-subtitle {
    font-size: 1.4em;
    margin-top: 25px;
  }

  /* 3. 通用图片与 figure */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-support__hero-image,
  .page-support__issue-image,
  .page-support__faq-image,
  .page-support__policies-image,
  .page-support__commitment-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-support__issue-image-wrapper,
  .page-support__faq-image-wrapper,
  .page-support__policies-image-wrapper,
  .page-support__commitment-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* 4. 按钮与按钮容器 - 已包含在顶区 CTA 样式中 */

  /* 5. 注册教程与 FAQ 区块 */
  .page-support__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-support__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
  .page-support__faq-list {
    margin-bottom: 30px;
  }
  .page-support__tips-grid {
    margin-top: 30px;
    margin-bottom: 40px;
  }
  .page-support__tip-title {
    font-size: 1.3em;
  }
  .page-support__commitment-title {
    margin-top: 40px;
  }
  .page-support__commitment-image-wrapper {
    margin-top: 30px;
  }
}