/* 最新动态页面专用样式 */

/* ===== 页面容器 ===== */
.news-page {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ===== 页面标题区域 ===== */
.page-title-section {
    padding: 80px 0 35px 0;
    background: #fff;
    flex-shrink: 0;
}

.title-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 标题左侧紫色竖线 */
.title-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7028aa;
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 15px;
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 0 15px;
    letter-spacing: 2px;
    font-family: 'RobotoEnglish', 'SourceHanSans', sans-serif;
}

/* ===== 动态列表区域 ===== */
.news-list-section {
    padding: 40px 0;
    background: #fff;
    flex: 1;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ===== 动态项 ===== */
.news-item {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* 奇数项：左文右图 */
.news-item.odd {
    flex-direction: row;
}

/* 偶数项：左图右文 */
.news-item.even {
    flex-direction: row;
}

/* ===== 图片区域 ===== */
.news-image-wrapper {
    flex: 0 0 45%;
    width: 45%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-image-wrapper:hover {
    box-shadow: 0 8px 24px rgba(112, 40, 170, 0.2);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image-wrapper:hover .news-image {
    transform: scale(1.05);
}

/* ===== 内容区域 ===== */
.news-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* 奇数项：组合居右 */
.news-item.odd .news-content-wrapper {
    justify-content: flex-end;
}

/* 偶数项：组合居左 */
.news-item.even .news-content-wrapper {
    justify-content: flex-start;
}

/* ===== 序号 ===== */
.news-number {
    font-size: 4rem;
    font-weight: bold;
    color: #7028aa;
    line-height: 1;
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    flex-shrink: 0;
}

/* 偶数项序号稍小 */
.news-item.even .news-number {
    font-size: 3.5rem;
}

/* ===== 标题区域 ===== */
.news-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 50%;
    transform: translateY(-0.7rem);
}

/* 奇数项：标题和线居左 */
.news-item.odd .news-title-wrapper {
    align-items: flex-start;
}

/* 偶数项：标题和线居右 */
.news-item.even .news-title-wrapper {
    align-items: flex-end;
}

.news-title-line {
    height: 2px;
    background: #999;
    width: 100%;
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 奇数项：标题左对齐 */
.news-item.odd .news-title {
    text-align: left;
}

/* 偶数项：标题右对齐 */
.news-item.even .news-title {
    text-align: right;
}

/* ===== 加载更多按钮 ===== */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.load-more-btn:hover {
    color: #7028aa;
    transform: translateY(3px);
}

.arrow-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn.loading .arrow-icon {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ===== 无动态提示 ===== */
.no-news {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #999;
}

/* ===== 底部联系信息区域 ===== */
.news-page .contact-info-section {
    background: linear-gradient(135deg, #512587 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px 0 !important;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    height: 20vh;
    justify-content: center;
}

.news-page .contact-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.news-page .contact-items {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.news-page .qrcode-img {
    width: 60px !important;
    height: 60px !important;
}

.news-page .qrcode-label {
    font-size: 10px !important;
}

.news-page .info-icon {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
}

.news-page .info-icon img {
    height: 18px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.news-page .info-text {
    height: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    width: auto !important;
    min-width: fit-content !important;
    padding: 0 !important; /* 移除左右padding，与divider对齐 */
}

.news-page .info-text p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin: 2px 0 !important;
}

.news-page .contact-item.info-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.news-page .info-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    width: auto !important;
}

.news-page .info-content-wrapper .info-icon {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
}

.news-page .info-divider {
    height: 2px !important;
    background: white !important;
    width: auto !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.news-page .info-content-wrapper .info-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.news-page .info-text::before {
    display: none !important;
}

.news-page .copyright-info {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px 20px 0;
    text-align: center;
    border-top: none;
    box-sizing: border-box;
}

.news-page .copyright-info p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .news-item {
        gap: 30px;
    }
    
    .news-image-wrapper {
        flex: 0 0 40%;
        width: 40%;
    }
    
    .news-number {
        font-size: 3.5rem;
    }
    
    .news-item.even .news-number {
        font-size: 3rem;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .page-title-section {
        padding: 100px 0 30px 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .news-list {
        gap: 40px;
    }
    
    /* 移动端改为上下布局 */
    .news-item.odd,
    .news-item.even {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .news-content-wrapper {
        width: 100%;
    }
    
    /* 移动端统一左对齐 */
    .news-item.odd .news-content-wrapper,
    .news-item.even .news-content-wrapper {
        align-items: flex-start;
    }
    
    .news-item.odd .news-title-wrapper,
    .news-item.even .news-title-wrapper {
        align-items: flex-start;
    }
    
    .news-item.odd .news-title,
    .news-item.even .news-title {
        text-align: left;
    }
    
    .news-number {
        font-size: 3rem;
    }
    
    .news-item.even .news-number {
        font-size: 3rem;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .news-list {
        gap: 30px;
    }
    
    .news-number {
        font-size: 2.5rem;
    }
    
    .news-item.even .news-number {
        font-size: 2.5rem;
    }
    
    .news-title {
        font-size: 0.9rem;
    }
}

/* ===== 导航菜单选中状态 ===== */
.news-page .nav-item.active .nav-link {
    color: #7028aa !important;
}

.news-page .nav-item.active .nav-underline {
    width: 100% !important;
    background-color: #7028aa !important;
}
