/* 限定作用域的所有样式，必须以 .rn-page 开头 */
.rn-page {
    width: 100%;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

.rn-page,
.rn-page * {
    box-sizing: border-box;
}

/* 页面宽度 */
.rn-page .rn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 页面标题区域 */
.rn-page .rn-page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.rn-page .rn-header-line {
    width: 3px;
    height: 35px;
    background-color: #6F3675;
}

.rn-page .rn-header-title {
    font-size: 32px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    line-height: 1;
}

/* 主体布局 */
.rn-page .rn-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 50px;
    padding-bottom: 80px;
}

/* 左侧分类 */
.rn-page .rn-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 20px 0;
}

.rn-page .rn-category-list {
    display: flex;
    flex-direction: column;
}

.rn-page .rn-category {
    display: flex;
    align-items: center;
    height: 55px;
    border-bottom: 1px solid #eeeeee;
    font-size: 16px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rn-page .rn-category-active {
    border-left: 3px solid #6F3675;
    color: #6F3675;
    font-weight: 600;
    padding-left: 15px;
}

/* 新闻列表 */
.rn-page .rn-news-list {
    display: flex;
    flex-direction: column;
}

.rn-page .rn-news-item {
    display: flex;
    gap: 50px;
    padding: 40px 0;
    border-bottom: 1px solid #eeeeee;
    text-decoration: none;
    cursor: pointer;
}

.rn-page .rn-news-item:first-child {
    padding-top: 0;
}

.rn-page .rn-news-item:last-child {
    border-bottom: none;
}

/* 新闻图片 */
.rn-page .rn-image-wrapper {
    flex-shrink: 0;
    width: 290px;
    height: 165px;
    overflow: hidden;
}

.rn-page .rn-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* 图片懒加载过渡 */
.rn-page .rn-lazy-image {
    opacity: 0;
}

.rn-page .rn-image-loaded {
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 新闻文字区域 */
.rn-page .rn-news-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rn-page .rn-news-date {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

.rn-page .rn-news-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Hover效果 */
.rn-page .rn-news-item:hover .rn-news-title {
    color: #6F3675;
}

.rn-page .rn-news-item:hover .rn-news-image {
    transform: scale(1.03);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .rn-page .rn-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rn-page .rn-category-list {
        flex-direction: row;
        gap: 15px;
    }
    
    .rn-page .rn-category {
        height: auto;
        padding-bottom: 10px;
        border-bottom: 2px solid transparent;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .rn-page .rn-category-active {
        border-bottom: 2px solid #6F3675;
    }

    .rn-page .rn-news-item {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }

    .rn-page .rn-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .rn-page .rn-news-date {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .rn-page .rn-news-title {
        font-size: 22px;
    }
}
