/* index.css - 中间和右侧部分样式 */

/* 容器样式 */
.dingxianren_container {
    display: flex;
    height: auto;
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
}

/* 中间内容区域 */
.dingxianren_main_content {
    flex: 1;
    padding: 0 40px 40px 40px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 右侧边栏 */
.dingxianren_right_sidebar {
    width: 320px;
    padding: 40px 20px;
    background-color: #ffffff;
    border-left: 1px solid #e9ecef;
    height: auto;
}

/* 幻灯片样式 */
.dingxianren_slider {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dingxianren_slider_container {
    position: relative;
    height: 100%;
}

.dingxianren_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dingxianren_slide.active {
    opacity: 1;
}

.dingxianren_slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dingxianren_slide_content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 20px;
}

.dingxianren_slide_content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.dingxianren_slide_content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.dingxianren_slide_button {
    display: inline-block;
    background-color: #FF6B35;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.dingxianren_slide_button:hover {
    background-color: #e55a28;
}

.dingxianren_slider_controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.dingxianren_slider_prev,
.dingxianren_slider_next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dingxianren_slider_prev:hover,
.dingxianren_slider_next:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.dingxianren_slider_dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dingxianren_slider_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dingxianren_slider_dot.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 6px;
}

/* 头条图文样式 */
.dingxianren_headline {
    margin-bottom: 40px;
}

.dingxianren_headline_article {
    display: flex;
    gap: 30px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dingxianren_headline_image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.dingxianren_headline_image .dingxianren_category {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: 0;
    border-radius: 0;
    border-top-left-radius: 8px;
}

.dingxianren_headline_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dingxianren_headline_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dingxianren_headline_content a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dingxianren_category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #FF6B35;
    color: #ffffff;
    font-size: 0.7rem;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 0;
}

.dingxianren_headline_title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.dingxianren_headline_excerpt {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.dingxianren_meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

.dingxianren_read_count {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* 热门推荐样式 */
.dingxianren_hot {
    margin-bottom: 40px;
}

.dingxianren_hot_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dingxianren_hot_item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.dingxianren_hot_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dingxianren_hot_image {
    overflow: hidden;
    position: relative;
}

.dingxianren_hot_image .dingxianren_category {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FF6B35;
    border-radius: 0;
    margin-bottom: 0;
}

.dingxianren_hot_image img {
    width: 100%;
    height: auto; /* 改为auto实现自适应高度 */
    transition: transform 0.3s ease;
}

.dingxianren_hot_item:hover .dingxianren_hot_image img {
    transform: scale(1.05);
}

.dingxianren_hot_content {
    padding: 15px;
}

.dingxianren_hot_content a {
    text-decoration: none;
    color: inherit;
}

.dingxianren_hot_content a:hover h4 {
    color: #32a5e7;
}

.dingxianren_hot_title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

/* 新增：修改热门推荐区域背景色为白色并添加圆角 */
.dingxianren_hot {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

/* 新闻列表样式 */
.dingxianren_news_list {
    margin-bottom: 40px;
}

/* 添加 dingxianren_section_title 样式定义 */
.dingxianren_section_title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #32a5e7;
    font-weight: bold;
}

.dingxianren_news_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dingxianren_news_item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: center;
}

.dingxianren_news_item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.dingxianren_news_content {
    flex: 1;
}

.dingxianren_news_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* 修改新闻标题样式，解决下划线和颜色问题 */
.dingxianren_news_title {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: #2c3e50;
}

.dingxianren_news_title a {
    color: inherit;
    text-decoration: none;
}

.dingxianren_news_title a:hover {
    color: #32a5e7;
}

.dingxianren_category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #FF6B35;
    color: #ffffff;
    font-size: 0.8rem;
    border-radius: 0;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 0;
}

.dingxianren_news_excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 添加新闻图片样式以恢复原样式 */
.dingxianren_news_image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

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

.dingxianren_news_item:hover .dingxianren_news_image img {
    transform: scale(1.05);
}

/* 右侧边栏组件样式 */
.dingxianren_author {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.dingxianren_author_avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #32a5e7;
}

.dingxianren_author_avatar img,
.dingxianren_author_avatar i {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #32a5e7;
}

.dingxianren_author_name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.dingxianren_author_title {
    font-size: 0.9rem;
    color: #32a5e7;
    margin-bottom: 15px;
    font-weight: 400;
}

.dingxianren_author_bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 搜索框样式 */
.dingxianren_search {
    margin-bottom: 40px;
}

.dingxianren_search_form {
    display: flex;
    gap: 10px;
}

.dingxianren_search_input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dingxianren_search_input:focus {
    outline: none;
    border-color: #32a5e7;
    box-shadow: 0 0 0 3px rgba(50, 165, 231, 0.1);
}

.dingxianren_search_button {
    padding: 12px 20px;
    background-color: #32a5e7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dingxianren_search_button i {
    font-size: 18px;
}

.dingxianren_search_button:hover {
    background-color: #2a8fd8;
    transform: translateY(-2px);
}

/* 随机推荐样式 */
.dingxianren_random {
    margin-bottom: 40px;
}

.dingxianren_random_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dingxianren_random_item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dingxianren_random_item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.dingxianren_random_image {
    width: 100px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.dingxianren_random_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dingxianren_random_title {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.4;
}

.dingxianren_random_title a {
    text-decoration: none;
    color: inherit;
}

.dingxianren_random_title a:hover {
    color: #32a5e7;
}

.dingxianren_random_content {
    flex: 1;
    display: flex;
    align-items: center;
}

/* 热门标签样式 */
.dingxianren_tags {
    margin-bottom: 40px;
}

.dingxianren_tags_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dingxianren_tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.dingxianren_tag:hover {
    background-color: #32a5e7;
    color: #ffffff;
    border-color: #32a5e7;
    transform: translateY(-2px);
}

/* 二级子栏目菜单样式 */
.dingxianren_subcategory_menu {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0;
}

.subcategory-menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.dingxianren_subcategory_link {
    padding: 8px 16px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.dingxianren_subcategory_link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.dingxianren_subcategory_link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .dingxianren_subcategory_menu {
        padding: 15px;
    }
    
    .subcategory-menu-container {
        gap: 8px;
    }
    
    .dingxianren_subcategory_link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .dingxianren_subcategory_menu {
        padding: 10px;
    }
    
    .subcategory-menu-container {
        gap: 6px;
    }
    
    .dingxianren_subcategory_link {
        padding: 6px 10px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .subcategory-menu-container {
        justify-content: center;
    }
    
    .dingxianren_subcategory_link {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dingxianren_container {
        max-width: 100%;
    }
    
    .dingxianren_main_content {
        padding: 30px 20px;
    }
    
    .dingxianren_right_sidebar {
        width: 280px;
        padding: 30px 15px;
    }
    
    .dingxianren_headline_article {
        gap: 20px;
        padding: 20px;
    }
    
    .dingxianren_headline_title {
        font-size: 1.6rem;
    }
    
}

@media (max-width: 992px) {
    .dingxianren_container {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .dingxianren_main_content {
        margin-top: 80px;
    }
    
    .dingxianren_right_sidebar {
        width: 100%;
        padding: 30px 40px;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .dingxianren_headline_article {
        flex-direction: column;
    }
    
    .dingxianren_headline_image {
        height: 300px;
    }
    
    .dingxianren_hot_container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .dingxianren_container {
        max-width: 100%;
    }
    
    .dingxianren_main_content {
        padding: 20px 15px;
    }
    
    .dingxianren_right_sidebar {
        padding: 30px 20px;
    }
    
    .dingxianren_slider {
        height: 300px;
    }
    
    .dingxianren_slide_content {
        padding: 20px;
    }
    
    .dingxianren_slide_content h2 {
        font-size: 1.5rem;
    }
    
    .dingxianren_section_title {
        font-size: 1.3rem;
    }
    
    .dingxianren_news_title {
        font-size: 1.2rem;
    }
    
    .dingxianren_hot_container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dingxianren_news_item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 修改移动端新闻图片样式，使其自适应 */
    .dingxianren_news_image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .dingxianren_container {
        max-width: 100%;
    }
    
    .dingxianren_main_content {
        padding: 20px 10px;
    }
    
    .dingxianren_slider {
        height: 250px;
    }
    
    .dingxianren_slide_content h2 {
        font-size: 1.3rem;
    }
    
    .dingxianren_slide_content p {
        font-size: 0.9rem;
    }
    
    .dingxianren_headline_title {
        font-size: 1.4rem;
    }
    
    .dingxianren_hot_container {
        grid-template-columns: 1fr;
    }
    
    .dingxianren_tags_container {
        justify-content: center;
    }
}