@font-face {
    font-family: "iconfont";
    /* Project id 4866997 */
    src: url('//at.alicdn.com/t/c/font_4866997_syf2nvolmxr.woff2?t=1744452652555') format('woff2'),
        url('//at.alicdn.com/t/c/font_4866997_syf2nvolmxr.woff?t=1744452652555') format('woff'),
        url('//at.alicdn.com/t/c/font_4866997_syf2nvolmxr.ttf?t=1744452652555') format('truetype');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 40px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-huidaodingbu1:before {
    content: "\e695";
}

.icon-weixin:before {
    content: "\e601";
}

.icon-telegram:before {
    content: "\e794";
}

.icon-huidaodingbu:before {
    content: "\e600";
}

.icon-whatsapp:before {
    content: "\e8ec";
}



/* 全局样式 */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    /* line-height: 1.6; */
}

/* 容器布局 */
.container {
    max-width: 1440px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

/* 主内容区域 */
.main-content {
    padding: 20px 30px;
}

/* 侧边栏 */
.sidebar {
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
}

.sidebar li a {
    width: 255px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文章内容样式 */
.article h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.text-center {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 15px 0;
}

.article h2 {
    color: var(--text-color);
    font-size: 1.6rem;
    margin: 25px 0 15px;
}

.article h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.article p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.article img {
    width: 60%;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.pagination a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 最新资讯模块 */
.new_info {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.new_info h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.new_info ul {
    list-style: none;
}

.new_info li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.new_info li:last-child {
    border-bottom: none;
}

.new_info a {
    color: var(--light-text);
    text-decoration: none;
    display: flex;
    justify-content: start;
    transition: all 0.3s ease;
}

.new_info .new_img img {
    margin-right: 20px;
    border-radius: 8px;

}

.new_info .new_cont .new_p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


.new_info a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* 侧边栏模块 */
.sidebar .module {
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 8px 0;
}

.sidebar a {
    color: var(--light-text);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* 侧边栏序号样式 */
.sidebar .serial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .serial_ht {
    background-color: #e3f2fd;
    color: var(--primary-color);
}

.sidebar .serial_zx {
    background-color: #f5fbe6;
    color: #4caf50;
}

.sidebar li a:hover .serial {
    transform: translateX(2px);
}

.sidebar li a:hover .serial_ht {
    background-color: #bbdefb;
}

.sidebar li a:hover .serial_zx {
    background-color: #dcedc8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        margin: 10px;
    }

    .main-content,
    .sidebar {
        padding: 15px;
    }

    .article img {
        height: 200px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .new_info {
        margin-top: 15px;
    }

    .sidebar .serial {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {

    /* 容器布局调整 */
    .container {
        grid-template-columns: 1fr;
        /* 单列布局 */
        margin: 10px;
        border-radius: 0;
        /* 去掉容器圆角 */
    }

    /* 主内容区域 */
    .main-content {
        padding: 15px;
    }

    /* 文章标题和内容 */
    .article h1 {
        font-size: 1.8rem;
        /* 减小标题字体 */
        margin-bottom: 12px;
    }

    .article h2 {
        font-size: 1.5rem;
        /* 二级标题字体 */
        margin: 20px 0 12px;
    }

    .article h3 {
        font-size: 1.1rem;
        /* 三级标题字体 */
    }

    .article img {
        width: 100%;
        /* 图片全屏显示 */
        height: auto;
        border-radius: 4px;
        /* 更小的圆角 */
        margin: 15px 0;
    }

    /* 分页导航优化 */
    .pagination {
        flex-direction: column;
        /* 垂直排列 */
        gap: 10px;
        text-align: center;
    }

    /* 最新资讯模块 */
    .new_info {
        margin-top: 20px;
        padding: 15px;
    }

    .new_info a {
        flex-direction: column;
        /* 图片和文字垂直排列 */
    }

    .new_info .new_img img {
        width: 100%;
        /* 图片占满宽度 */
        margin: 0 0 10px;
        /* 下方间距 */
        border-radius: 4px;
    }

    .new_info .new_cont .new_p {
        -webkit-line-clamp: 4;
        /* 增加显示行数 */
    }

    /* 侧边栏调整 */
    .sidebar {
        padding: 15px;
        background: #fff;
        /* 取消侧边栏背景色 */
    }

    .sidebar .module {
        margin-bottom: 15px;
        padding: 12px;
    }

    .sidebar li a {
        white-space: normal;
        /* 允许文字换行 */
        overflow: visible;
        text-overflow: unset;
    }

    .sidebar .serial {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin-right: 6px;
    }

    /* 隐藏侧边栏标题的下划线 */
    .sidebar h3 {
        border-bottom: none;
        padding-bottom: 0;
        font-size: 1rem;
    }

    /* 优化段落行高 */
    .article p,
    .new_info .new_p {
        line-height: 1.7;
        /* 更舒适的行高 */
    }

    /* 调整时间/作者信息显示 */
    .text-center {
        font-size: 0.8rem;
        margin: 10px 0;
    }

    /* 修复侧边栏链接点击区域 */
    .sidebar a {
        padding: 6px 0;
    }

    .sidebar-container {
        display: none !important;
    }
}

.sidebar-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 5px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1a73e8;
    transition: transform 0.3s ease;
    padding: 8px;
}

.sidebar-item:hover {
    transform: translateY(-3px);
}

.sidebar-item .contact-info {
    position: absolute;
    /* left: -200px;
    top: 50%; */
    transform: translateY(-50%);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* 添加分隔样式 */
    border: 1px solid #e0e0e0;
    margin-top: 5px;
    font-size: 22px;
    padding: 18px;
}

.sidebar-item:hover .contact-info {
    opacity: 1;
    visibility: visible;
}

.sidebar-item .contact-info img {
    width: 156px;
}

.iconfont {
    width: 36px;
    height: 36px;
    fill: #1a73e8;
}

.sidebar-item span {
    margin-top: 8px;
    font-size: 14px;
}

.back-to-top {
    margin-top: 20px;
}

.back-to-top .iconfont {
    fill: #666;
}

