/* style/cookies-policy.css */

/* Base styles for the page content */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Assuming body background is white from var(--secondary-color) */
}

/* Hero section */
.page-cookies-policy__hero-section {
  padding-top: 10px; /* Small top padding for non-homepage, relies on body padding-top */
  padding-bottom: 40px;
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #FFFFFF; /* White text for dark background */
  text-align: center;
}

.page-cookies-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-cookies-policy__container--hero {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cookies-policy__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cookies-policy__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Content section */
.page-cookies-policy__content-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content */
  color: #333333; /* Dark text */
}

.page-cookies-policy__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-cookies-policy__sub-section-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cookies-policy p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-cookies-policy ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-cookies-policy li {
  margin-bottom: 8px;
  font-size: 1.1em;
}

/* home_content-box adaptation for main policy content */
.page-cookies-policy__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #26A9E0; /* Brand primary color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.5); /* Shadow with brand color */
  height: 700px; /* Desktop fixed height */
  box-sizing: border-box;
  background-color: #FFFFFF;
}

.page-cookies-policy__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content for desktop */
  padding-right: 10px; /* Space for scrollbar */
}

/* Scrollbar styles for .page-cookies-policy__home-content-inner */
.page-cookies-policy__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-cookies-policy__home-content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.page-cookies-policy__home-content-inner::-webkit-scrollbar-thumb {
  background: #26A9E0;
  border-radius: 10px;
}

.page-cookies-policy__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #1e87b7;
}

/* Image blocks */
.page-cookies-policy__image-block {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Max width for content images */
}

.page-cookies-policy__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.page-cookies-policy__image-block figcaption {
  font-size: 0.95em;
  color: #666666;
  margin-top: 10px;
}

/* CTA Buttons */
.page-cookies-policy__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cookies-policy__btn-primary,
.page-cookies-policy__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-cookies-policy__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-cookies-policy__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-cookies-policy__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-cookies-policy__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* --- Placeholder for Guide Box Desktop Styles (for strict output compliance) --- */
.page-cookies-policy__guide-box {
  padding: 16px 20px 24px;
  background: #f5e6d3; /* Example light background */
  border-radius: 4px;
  margin-top: 40px; /* Example spacing */
  text-align: center;
}
.page-cookies-policy__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.page-cookies-policy__guide-card {
  flex: 0 0 calc(20% - 8px); /* 5 cards per row with gap */
  max-width: calc(20% - 8px);
  padding-top: 0; /* Base padding */
  box-sizing: border-box;
}
.page-cookies-policy__guide-card--pos-1, .page-cookies-policy__guide-card--pos-5 {
  padding-top: 50px; /* Example offset for desktop */
}
.page-cookies-policy__guide-card--pos-2, .page-cookies-policy__guide-card--pos-4 {
  padding-top: 25px; /* Example offset for desktop */
}
.page-cookies-policy__guide-card img {
  aspect-ratio: 250/350; /* Fixed aspect ratio for team cards */
  object-fit: cover; /* Cover ensures image fills the space */
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Placeholder for Blog Section Desktop Styles (for strict output compliance) --- */
.page-cookies-policy__blog-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Example light background */
}
.page-cookies-policy__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
  gap: 20px;
}
.page-cookies-policy__blog-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  display: block;
  transition: transform 0.3s ease;
}
.page-cookies-policy__blog-card:hover {
  transform: translateY(-5px);
}
.page-cookies-policy__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
}
.page-cookies-policy__blog-card-content {
  padding: 15px;
}
.page-cookies-policy__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}
.page-cookies-policy__blog-card-excerpt {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 10px;
}
.page-cookies-policy__blog-card-date {
  font-size: 0.8em;
  color: #999999;
}

/* --- Responsive Styles --- */

/* Mobile general styles (for all images and buttons) */
@media (max-width: 768px) {
  .page-cookies-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Universal image responsive styles */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important; /* Ensure block display for proper max-width */
  }

  /* Universal image container responsive styles */
  .page-cookies-policy__section,
  .page-cookies-policy__card,
  .page-cookies-policy__container,
  .page-cookies-policy__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Universal button responsive styles */
  .page-cookies-policy__cta-button,
  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary,
  .page-cookies-policy a[class*="button"],
  .page-cookies-policy 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; /* Add padding for mobile buttons */
    padding-right: 15px;
  }

  /* Button container responsive styles */
  .page-cookies-policy__cta-buttons,
  .page-cookies-policy__button-group,
  .page-cookies-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  /* Hero section mobile */
  .page-cookies-policy__hero-section {
    padding-top: 10px !important; /* Fixed top padding for non-homepage */
    padding-bottom: 30px;
  }

  .page-cookies-policy__container--hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-cookies-policy__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  /* Content section mobile */
  .page-cookies-policy__content-section {
    padding: 30px 0;
  }

  .page-cookies-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cookies-policy__sub-section-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-cookies-policy p,
  .page-cookies-policy li {
    font-size: 1em;
  }

  /* home_content-box mobile */
  .page-cookies-policy__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    padding: 10px;
    border-width: 3px; /* Slightly thinner border for mobile */
    box-shadow: 0 0 10px rgba(38, 169, 224, 0.3); /* Lighter shadow for mobile */
  }

  .page-cookies-policy__home-content-inner {
    height: auto;
    overflow: visible; /* No scrollbar for mobile */
    padding-right: 0;
  }

  /* Specific elements from the "必写清单" that might not exist on this page, but must have media queries */
  /* 1. 顶区轮播 (Hero Carousel) - Placeholder for required output */
  .page-cookies-policy__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 20px;
    /* Other carousel specific styles if it were present */
  }
  .page-cookies-policy__hero-slider {
    /* Placeholder for slider styles */
    display: block; /* Example */
  }
  .page-cookies-policy__hero-slide {
    /* Placeholder for slide styles */
    width: 100%; /* Example */
  }
  .page-cookies-policy__hero-slider-prev,
  .page-cookies-policy__hero-slider-next {
    /* Placeholder for navigation buttons */
    display: none; /* Hide on mobile example */
  }

  /* 2. 操作指引外框 + 五张 team 竖型卡 (Guide Box with 5 Team Cards) - Placeholder for required output */
  .page-cookies-policy__guide-box {
    padding: 15px;
    background: #f5f5f5; /* Example light background */
    border-radius: 0;
  }
  .page-cookies-policy__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Required grid setup for mobile */
    gap: 10px;
  }
  .page-cookies-policy__guide-card {
    padding-top: 0 !important; /* Reset specific padding */
    grid-column: span 3; /* Default to 2 columns (span 3 out of 6) */
  }
  .page-cookies-policy__guide-card--pos-1,
  .page-cookies-policy__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards take 3 columns each (2 per row) */
  }
  .page-cookies-policy__guide-card--pos-3,
  .page-cookies-policy__guide-card--pos-4,
  .page-cookies-policy__guide-card--pos-5 {
    grid-column: span 2; /* Bottom three cards take 2 columns each (3 per row) */
  }
  .page-cookies-policy__guide-card img {
    aspect-ratio: 250/350; /* Maintain aspect ratio */
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  /* 4. 博客卡片区 (Blog Card Section) - Placeholder for required output */
  .page-cookies-policy__blog-section {
    padding: 30px 0;
  }
  .page-cookies-policy__blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    gap: 20px;
  }
  .page-cookies-policy__blog-card {
    /* Placeholder for blog card styles */
    width: 100%; /* Example */
  }
}

/* @media for tablet (optional, but good practice if needed) */
@media (max-width: 1024px) {
  .page-cookies-policy__container {
    padding: 0 20px;
  }

  .page-cookies-policy__home-content-box {
    max-width: 95%;
  }

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

  .page-cookies-policy__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  /* Placeholder for other tablet specific styles if needed, especially for blog grid 4->2 columns */
  .page-cookies-policy__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

/* Contrast fix classes */
.page-cookies-policy__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cookies-policy__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}