/* style/tintc.css */

/* --- Base Styles --- */
.page-tintc {
  font-family: Arial, sans-serif;
  color: var(--text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--background-color, #0A0A0A); /* Assumed dark background */
  line-height: 1.6;
}

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

.page-tintc__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #F2C14E);
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tintc__section-subtitle {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
}

/* --- Buttons --- */
.page-tintc__btn-primary,
.page-tintc__btn-secondary,
.page-tintc__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for light button */
  border: none;
}

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

.page-tintc__btn-secondary {
  background: transparent;
  color: var(--primary-color, #F2C14E);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-tintc__btn-secondary:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111;
  border-color: var(--primary-color, #F2C14E);
}

.page-tintc__read-more-btn {
  background: transparent;
  color: var(--primary-color, #F2C14E);
  border: 1px solid var(--border-color, #3A2A12);
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-tintc__read-more-btn:hover {
  background: var(--primary-color, #F2C14E);
  color: #111111;
  border-color: var(--primary-color, #F2C14E);
}

/* --- Hero Section --- */
.page-tintc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

.page-tintc__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tintc__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--primary-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
}

/* --- News List Section --- */
.page-tintc__news-list-section {
  padding: 60px 0;
  background-color: var(--background-color, #0A0A0A);
}

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

.page-tintc__news-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tintc__news-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tintc__news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

.page-tintc__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tintc__news-date {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 10px;
}

.page-tintc__news-card-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-tintc__news-card-title a {
  color: var(--text-main, #FFF6D6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
  color: var(--primary-color, #F2C14E);
}

.page-tintc__news-card-summary {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
}

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

/* --- Highlights Section --- */
.page-tintc__highlights-section {
  padding: 60px 0;
  background-color: var(--background-color, #0A0A0A);
}

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

.page-tintc__highlight-item {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-tintc__highlight-title {
  font-size: 1.4em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-tintc__highlight-description {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- CTA Banner --- */
.page-tintc__cta-banner {
  padding: 80px 0;
  background-color: var(--card-bg, #111111);
  position: relative;
  overflow: hidden;
}

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

.page-tintc__cta-text {
  flex: 1;
  text-align: left;
}

.page-tintc__cta-title {
  font-size: 2.2em;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-tintc__cta-description {
  font-size: 1.1em;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
}

.page-tintc__cta-buttons {
  display: flex;
  gap: 15px;
}

.page-tintc__cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tintc__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

/* --- FAQ Section --- */
.page-tintc__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #0A0A0A);
}

.page-tintc__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tintc__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tintc__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  cursor: pointer;
  list-style: none; /* Remove default marker */
  outline: none;
}

.page-tintc__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tintc__faq-qtext {
  flex-grow: 1;
}

.page-tintc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #F2C14E);
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: "−";
}

.page-tintc__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #ccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tintc__faq-item[open] .page-tintc__faq-answer {
  max-height: 1000px; /* Sufficiently large for content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

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

/* @media (max-width: 1024px) for general adjustments */
@media (max-width: 1024px) {
  .page-tintc__section-title {
    font-size: 2em;
  }
  .page-tintc__hero-content {
    max-width: 700px;
  }
  .page-tintc__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-tintc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tintc__cta-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-tintc__cta-text {
    text-align: center;
  }
  .page-tintc__cta-buttons {
    justify-content: center;
  }
}

/* @media (max-width: 768px) - MOBILE SPECIFIC RULES */
@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-tintc__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-tintc__hero-content {
    padding: 0 15px;
  }
  .page-tintc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller on mobile */
    margin-bottom: 15px;
  }
  .page-tintc__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* 2. 产品展示图区域 (General content grid rules apply) */
  .page-tintc__news-grid,
  .page-tintc__highlights-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }
  .page-tintc__news-list-section,
  .page-tintc__highlights-section,
  .page-tintc__faq-section {
    padding: 30px 0;
  }
  .page-tintc__section-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-tintc__section-subtitle {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  /* 3. 通用图片与容器 */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tintc__container,
  .page-tintc__news-card,
  .page-tintc__highlight-item,
  .page-tintc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tintc__hero-image-wrapper {
    max-height: 300px;
  }
  .page-tintc__news-image-wrapper {
    height: 180px; /* Adjust card image height for mobile */
  }
  .page-tintc__news-card-image,
  .page-tintc__cta-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* 4. 按钮与按钮容器 */
  .page-tintc__btn-primary,
  .page-tintc__btn-secondary,
  .page-tintc__read-more-btn,
  .page-tintc a[class*="button"],
  .page-tintc 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;
    margin-bottom: 10px; /* Stack buttons */
  }
  .page-tintc__cta-buttons {
    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 */
    gap: 10px;
  }
  .page-tintc__view-all-wrapper {
    padding: 0 15px;
  }

  /* 5. 其他内容模块 */
  .page-tintc__cta-banner {
    padding: 40px 0;
  }
  .page-tintc__cta-content-wrapper {
    gap: 20px;
  }
  .page-tintc__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-tintc__cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tintc__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }
  .page-tintc__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

/* Color Contrast Safeguards (based on assumed dark body bg) */
.page-tintc {
  color: #FFF6D6; /* Main text color */
}

.page-tintc__card,
.page-tintc__highlight-item,
.page-tintc__faq-item {
  background-color: var(--card-bg, #111111);
  color: #FFF6D6; /* Text on card background */
}

.page-tintc__news-card-title a {
  color: #FFF6D6;
}
.page-tintc__news-card-title a:hover {
  color: var(--primary-color, #F2C14E);
}
.page-tintc__read-more-btn {
  color: var(--primary-color, #F2C14E);
}
.page-tintc__read-more-btn:hover {
  color: #111111;
}

/* Ensure images do not use filters */
.page-tintc img {
  filter: none !important;
}