/* style/news-system-upgrade-notice.css */

/* Base styles for the page content */
.page-news-system-upgrade-notice {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f9fa; /* Slightly off-white for main background */
}

/* Container for content sections */
.page-news-system-upgrade-notice__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news-system-upgrade-notice__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-news-system-upgrade-notice__hero-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-news-system-upgrade-notice__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-news-system-upgrade-notice__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #e0e0e0;
}

.page-news-system-upgrade-notice__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news-system-upgrade-notice__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-news-system-upgrade-notice__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news-system-upgrade-notice__cta-button:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-news-system-upgrade-notice__content-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for content */
    color: #333333;
}

.page-news-system-upgrade-notice__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news-system-upgrade-notice__sub-title {
    font-size: 1.5em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.page-news-system-upgrade-notice__paragraph {
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.7;
}

.page-news-system-upgrade-notice__list,
.page-news-system-upgrade-notice__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

.page-news-system-upgrade-notice__ordered-list {
    list-style-type: decimal;
}

.page-news-system-upgrade-notice__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-news-system-upgrade-notice__image-wrapper {
    margin: 30px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-system-upgrade-notice__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news-system-upgrade-notice__call-to-action {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news-system-upgrade-notice__btn-primary,
.page-news-system-upgrade-notice__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news-system-upgrade-notice__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-news-system-upgrade-notice__btn-primary:hover {
    background: #e06c00;
    border-color: #e06c00;
    transform: translateY(-2px);
}

.page-news-system-upgrade-notice__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-news-system-upgrade-notice__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-news-system-upgrade-notice__faq-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for FAQ */
    color: #333333;
}

.page-news-system-upgrade-notice__faq-list {
    margin-top: 30px;
}

/* FAQ容器样式 */
.page-news-system-upgrade-notice__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-news-system-upgrade-notice__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-news-system-upgrade-notice__faq-item.active .page-news-system-upgrade-notice__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to hold any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-news-system-upgrade-notice__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news-system-upgrade-notice__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-news-system-upgrade-notice__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-news-system-upgrade-notice__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
}

/* 切换图标 */
.page-news-system-upgrade-notice__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news-system-upgrade-notice__faq-item.active .page-news-system-upgrade-notice__faq-toggle {
  color: #26A9E0; /* Brand color for active toggle */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change to '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-system-upgrade-notice__main-title {
        font-size: 2.2em;
    }
    .page-news-system-upgrade-notice__intro-description {
        font-size: 1.1em;
    }
    .page-news-system-upgrade-notice__section-title {
        font-size: 1.8em;
    }
    .page-news-system-upgrade-notice__sub-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news-system-upgrade-notice {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-system-upgrade-notice__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-system-upgrade-notice__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-news-system-upgrade-notice__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-news-system-upgrade-notice__hero-image {
        margin-bottom: 20px;
        border-radius: 5px;
    }

    .page-news-system-upgrade-notice__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news-system-upgrade-notice__content-section,
    .page-news-system-upgrade-notice__faq-section {
        padding: 40px 0;
    }

    .page-news-system-upgrade-notice__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news-system-upgrade-notice__section-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .page-news-system-upgrade-notice__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-news-system-upgrade-notice__image-wrapper {
        margin: 20px 0;
        border-radius: 5px;
    }

    /* Images inside content sections */
    .page-news-system-upgrade-notice img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons in CTA area */
    .page-news-system-upgrade-notice__call-to-action {
        padding: 20px;
        margin-top: 40px;
    }
    
    .page-news-system-upgrade-notice__btn-primary,
    .page-news-system-upgrade-notice__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 8px 0 !important; /* Stack buttons vertically */
    }
    
    .page-news-system-upgrade-notice__call-to-action {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* FAQ mobile styles */
    .page-news-system-upgrade-notice__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-news-system-upgrade-notice__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-news-system-upgrade-notice__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-news-system-upgrade-notice__faq-answer {
        padding: 0 15px;
    }
    
    .page-news-system-upgrade-notice__faq-item.active .page-news-system-upgrade-notice__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure no filter on images */
.page-news-system-upgrade-notice img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-news-system-upgrade-notice__content-section img,
.page-news-system-upgrade-notice__image-wrapper img {
  min-width: 200px;
  min-height: 200px;
}
/* If HTML width/height are set, CSS should respect them or use max-width: 100%; height: auto; */
/* The following rules ensure that CSS does not shrink images below 200px if HTML attributes are larger */
.page-news-system-upgrade-notice__content-section img[width]:not([width="auto"]):not([width="100%"]),
.page-news-system-upgrade-notice__content-section img[height]:not([height="auto"]):not([height="100%"]),
.page-news-system-upgrade-notice__image-wrapper img[width]:not([width="auto"]):not([width="100%"]),
.page-news-system-upgrade-notice__image-wrapper img[height]:not([height="auto"]):not([height="100%"]) {
  min-width: 200px;
  min-height: 200px;
}