.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-bottom: 40px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  background-color: #7A0E0E; /* Deep Red */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #FFD86A; /* Gold-like color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold-like text */
  border: 2px solid #F2B544; /* Border Gold */
  box-shadow: none;
}

.page-login__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1); /* Light gold transparent background */
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* General Container and Titles */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD86A; /* Gold for titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-login__login-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #F2B544; /* Border Gold */
}

.page-login__login-form {
  margin-bottom: 20px;
}

.page-login__form-group {
  margin-bottom: 20px;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #FFF5E1; /* Text Main */
  font-size: 1rem;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFF5E1;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 245, 225, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: #FFD86A;
  box-shadow: 0 0 0 3px rgba(255, 216, 106, 0.3);
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__btn-submit {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 1;
  min-width: 150px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__forgot-password {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.page-login__forgot-password:hover {
  color: #FFD86A;
  text-decoration: underline;
}

.page-login__no-account {
  text-align: center;
  font-size: 0.95rem;
  color: #FFF5E1;
  margin-top: 20px;
}

.page-login__no-account a {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: 600;
}

.page-login__no-account a:hover {
  color: #FFD86A;
  text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-login__benefit-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border Gold */
}

.page-login__benefit-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-login__benefit-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD86A; /* Gold for titles */
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 0.95rem;
  color: #FFF5E1; /* Text Main */
}

/* Guide Section */
.page-login__guide-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-login__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

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

.page-login__step-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border Gold */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red text */
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD86A; /* Gold for titles */
  margin-bottom: 15px;
}

.page-login__step-description {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-login__trouble-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border Gold */
}

.page-login__trouble-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD86A; /* Gold for titles */
  margin-bottom: 15px;
}

.page-login__trouble-description {
  font-size: 0.95rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
}

.page-login__trouble-link {
  display: inline-block;
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-login__trouble-link:hover {
  color: #FFD86A;
  text-decoration: underline;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

.page-login__why-choose-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__why-choose-text {
  flex: 1;
  color: #FFF5E1; /* Text Main */
}

.page-login__why-choose-text p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.page-login__why-choose-image-wrapper {
  flex-shrink: 0;
  width: 50%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544; /* Border Gold */
}

.page-login__why-choose-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-login__btn-about {
  margin-top: 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
}

.page-login__btn-about:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border Gold */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold for question text */
  font-weight: 600;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #E53935; /* Brighter Red on hover */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
}
.page-login__faq-toggle {
  font-size: 28px; /* Larger toggle */
  font-weight: bold;
  color: #FFD86A; /* Gold toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main for answer text */
  font-size: 0.95rem;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #7A0E0E; /* Deep Red */
}

/*
  ============================================================
  Mobile Responsive Styles (max-width: 768px) - MUST BE COMPLETE
  ============================================================
*/
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px 15px;
  }
  .page-login__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-login__description {
    font-size: 1rem;
  }
  .page-login__cta-buttons {
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-login__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__form-label {
    font-size: 0.95rem;
  }
  .page-login__form-input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .page-login__btn-submit {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .page-login__forgot-password,
  .page-login__no-account {
    font-size: 0.9rem;
  }
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__troubleshooting-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__trouble-title {
    font-size: 1.2rem;
  }
  .page-login__why-choose-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__why-choose-image-wrapper {
    width: 80%;
  }
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-qtext {
    font-size: 1rem;
  }
  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* General mobile padding and font sizes */
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 20px;
  }
  .page-login__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    margin-bottom: 30px;
  }
  .page-login__hero-image {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-content {
    padding: 20px 15px;
  }
  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust clamp for mobile */
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit,
  .page-login a[class*="button"],
  .page-login 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;
    font-size: 0.95rem; /* Slightly smaller font for buttons */
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container,
  .page-login__form-actions { /* Ensure form actions also wrap */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by button padding */
    padding-right: 0; /* Handled by button padding */
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Force vertical stacking for form buttons too */
  }
  .page-login__forgot-password {
    text-align: center;
    width: 100%;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__troubleshooting-section,
  .page-login__why-choose-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Titles */
  .page-login__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  /* Login Form Section */
  .page-login__form-section {
    padding: 40px 0;
  }
  .page-login__login-card {
    padding: 25px;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }

  /* Benefits Section */
  .page-login__benefits-section {
    padding: 40px 0;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-login__benefit-image {
    max-height: 150px;
  }
  .page-login__benefit-title {
    font-size: 1.1rem;
  }
  .page-login__benefit-description {
    font-size: 0.9rem;
  }

  /* Guide Section */
  .page-login__guide-section {
    padding: 40px 0;
  }
  .page-login__guide-steps {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-login__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
  .page-login__step-title {
    font-size: 1.2rem;
  }
  .page-login__step-description {
    font-size: 0.9rem;
  }

  /* Troubleshooting Section */
  .page-login__troubleshooting-section {
    padding: 40px 0;
  }
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-login__trouble-title {
    font-size: 1.1rem;
  }
  .page-login__trouble-description {
    font-size: 0.9rem;
  }

  /* Why Choose Section */
  .page-login__why-choose-section {
    padding: 40px 0;
  }
  .page-login__why-choose-content {
    flex-direction: column; /* Stack vertically */
    gap: 20px;
  }
  .page-login__why-choose-image-wrapper {
    width: 100%; /* Full width on mobile */
    order: -1; /* Image above text */
  }
  .page-login__why-choose-text p {
    font-size: 0.9rem;
  }
  .page-login__btn-about {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-login__faq-section {
    padding: 40px 0;
  }
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 15px;
  }
  .page-login__faq-qtext {
    font-size: 0.95rem;
  }
  .page-login__faq-toggle {
    font-size: 22px;
    width: 20px;
  }
  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.85rem;
  }

  /* CTA Section */
  .page-login__cta-section {
    padding: 40px 0;
  }
}

/* Ensure images in content areas are not smaller than 200px (desktop) */
.page-login__benefits-section img,
.page-login__why-choose-section img {
    min-width: 200px;
    min-height: 200px;
}