/* 优化后的完整CSS解决方案 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    background-color: #3a7bd5;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px;
}

.sidebar-left {
    flex: 0 0 220px;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-left: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-icon {
    font-size: 32px;
}

.menu {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-title {
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 2px solid #3a7bd5;
    margin-bottom: 15px;
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 12px;
}

.menu-link {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
}

.menu-link:hover {
    background-color: #3a7bd520;
    color: #3a7bd5;
}

.content {
    flex: 1;
    min-width: 300px;
}

.slideshow {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
}

.slide-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.slide-text {
    font-size: 16px;
}

.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slide-indicator.active {
    background-color: white;
}

.breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: #3a7bd5;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.articles-title {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3a7bd5;
    margin-bottom: 20px;
}

.article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.article-image {
    aspect-ratio: 16/9; /* 根据实际图片比例调整（16:9为例） */
    height: auto; /* 确保高度自动适应 */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 15px 15px 0 15px;
    background-clip: padding-box;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
}

/* 优化文章正文缩进 */
.article-container .article-content {
    padding-left: 0px;
    padding-right: 0px;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 16px;
    margin: 0 3px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #333;
    font-size: 16px;
}

.pagination a:hover {
    background-color: #3a7bd5;
    color: white;
}

.pagination .active {
    background-color: #3a7bd5;
    color: white;
    cursor: default;
}

.pagination .prev, .pagination .next {
    padding: 8px 12px;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

.article-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 关键优化点1：时间与作者信息布局 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 添加间距代替两端对齐 */
    color: #888;
    font-size: 15px;
    margin-bottom: 15px;
}

.article-separator {
    height: 1px;
    background: #eaeaea;
    margin: 1px 0;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #2c3e50;
    border-left: 4px solid #3a7bd5;
    padding-left: 15px;
}

.article-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #3a7bd5;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.nav-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    background: linear-gradient(to right, #3a7bd5, #00d2ff);
    color: white;
    box-shadow: 0 3px 8px rgba(58, 123, 213, 0.3);
    transition: all 0.3s;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.4);
}

.nav-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.nav-btn.disabled:hover {
    transform: none;
}

.related-articles {
    margin-top: 15px;
}

.related-title {
    font-size: 24px;
    padding: 15px 0;
    border-bottom: 2px solid #3a7bd5;
    margin-bottom: 25px;
    position: relative;
    color: #2c3e50;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #00d2ff;
}

.related-list {
    list-style: none;
    background: white;
    border-radius: 8px;
    padding: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.related-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #333;
    font-size: 17px;
    transition: all 0.2s;
    flex-grow: 1;
}

.related-item a:hover {
    color: #3a7bd5;
    transform: translateX(5px);
}

.related-date {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
    width: 100px;
    text-align: right;
}

.sidebar-right {
    flex: 0 0 300px;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3a7bd5;
}

.recommend-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recommend-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommend-image {
    flex: 0 0 80px;
    height: 70px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin: 5px 5px 5px 0;
}

.recommend-content {
    flex: 1;
}

.recommend-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.recommend-date {
    color: #888;
    font-size: 14px;
}

.friend-links {
    background: #fff;
    padding: 30px 0;
    margin-top: 20px;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.friend-links .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.friend-links-title {
    width: 100%;
    margin-bottom: 15px;
    font-size: 18px;
    color: #444;
}

.friend-link {
    padding: 5px 15px;
    background-color: #f0f8ff;
    border-radius: 20px;
    font-size: 14px;
}

.friend-link:hover {
    background-color: #3a7bd5;
    color: white;
}

.site-footer {
    text-align: center;
    padding: 15px 0;
    background-color: #2c3e50;
    color: white;
    margin-top: 40px;
}

/* 关键优化点2：媒体查询调整 */
@media (max-width: 1024px) {
    .sidebar-left {
        flex: 0 0 0px;
    }
    
    .sidebar-right {
        flex: 0 0 250px;
	    display: none;
    }
}

@media (max-width: 900px) {
    header {
        display: none;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar-left, .content, .sidebar-right {
        width: 100%;
    }
    
    .menu {
        display: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .menu.active {
        display: block;
    }
    
    .logo-row {
        position: sticky;
        top: 0;
        z-index: 100;
        margin-bottom: 15px;
        border-radius: 0;
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .slideshow {
        height: 250px;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .pagination a, .pagination span {
        padding: 6px 12px;
        font-size: 14px;
        margin: 3px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    /* 关键优化点3：移动端元信息布局 */
    .article-meta {
        display: flex;
        flex-wrap: nowrap; /* 强制不换行 */
        white-space: nowrap; /* 防止文本换行 */
        overflow: hidden; /* 处理溢出内容 */
        text-overflow: ellipsis; /* 溢出显示省略号 */
        font-size: 14px; /* 适当缩小字体 */
        gap: 12px; /* 调整间距 */
    }
    
    /* 可选：如果空间非常小，可以考虑添加间距 */
    .article-meta > span {
        margin-right: 12px;
    }
}

@media (min-width: 901px) {
    .article-image {
        height: auto;
    }
}

@media (max-width: 600px) {
    .recommend-item {
        flex-direction: column;
    }
    
.recommend-image {
        flex: 0 0 180px;
        margin-right: 0;
        margin-bottom: 10px;
        height: 100px;
    }
    
    .article-image {
        border-radius: 6px;
        margin: 10px 10px 0 10px;
    }
    
    .pagination a, .pagination span {
        padding: 5px 10px;
        font-size: 14px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    /* 进一步优化极小屏幕 */
    @media (max-width: 450px) {
        .article-meta {
            font-size: 13px; /* 更小的字体 */
            gap: 8px; /* 更小的间距 */
        }
    }
}

/*pagenavi*/
#page{width:100%;height:36px;line-height:36px;text-align:left;overflow:hidden;margin-left:auto;margin-right:auto;display:block;text-align:-moz-center;*text-align:center;text-align:center}
#page a{text-decoration:none;color:#FFF;background:#999;display:inline-block;padding:9px 12px;margin:0 5px 0 0;line-height:16px;margin-right:3px}
#page a:hover,#page a.current{color:#FFF;background:#0684f6}


/* 唯一容器类名，防止样式冲突 */
.wp-resource-download-frame {
    width: 100%; /* 关键：占满父容器宽度 */
    max-width: 100%; /* 防止超出父容器 */
    margin: 30px auto 0; /* 底部留空，居中显示 */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: clamp(20px, 3vw, 25px); /* 响应式内边距（手机20px，电脑25px） */
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease;
}

/* 鼠标悬停时轻微上浮 */
.wp-resource-download-frame:hover {
    transform: translateY(-5px);
}

/* 标题区域 */
.wp-download-header {
    margin-bottom: clamp(15px, 2vw, 20px); /* 响应式间距 */
}

.wp-download-title {
    font-size: clamp(18px, 2.5vw, 20px); /* 响应式字体大小（手机18px，电脑20px） */
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: clamp(12px, 1.5vw, 15px); /* 响应式下内边距 */
    position: relative;
    margin: 0;
}

/* 标题下划线（渐变双线） */
.wp-download-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
}

.wp-download-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3388FF, #5F35B2);
    border-radius: 2px;
    z-index: 2;
}

/* 网盘按钮网格布局 */
.wp-pan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 15vw, 120px), 1fr)); /* 按钮最小宽度自适应 */
    gap: clamp(12px, 1.5vw, 15px); /* 按钮间距自适应 */
    justify-content: center;
}

/* 单个网盘按钮 */
.wp-pan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(40px, 5vw, 45px); /* 按钮高度自适应 */
    text-decoration: none !important;
    border-radius: 8px;
    font-size: clamp(14px, 1.8vw, 16px); /* 字体大小自适应 */
    color: #fff;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    padding: 0 clamp(8px, 1vw, 10px); /* 内边距自适应 */
}

/* 按钮悬停光效 */
.wp-pan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateX(-100%) skew(-15deg);
    transition: all 0.4s ease;
}

.wp-pan-btn:hover::before {
    opacity: 1;
    transform: translateX(250%) skew(-15deg);
}

/* 悬停时按钮上浮+阴影加深 */
.wp-pan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 点击时按钮下沉 */
.wp-pan-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* 各网盘品牌色（渐变背景） */
.wp-pan-baidu { background: linear-gradient(135deg, #3388FF, #2962FF); }
.wp-pan-quark { background: linear-gradient(135deg, #5F35B2, #7B1FA2); }
.wp-pan-tianyi { background: linear-gradient(135deg, #0085D0, #0288D1); }
.wp-pan-ali { background: linear-gradient(135deg, #FF6A00, #F57C00); }