/* 文章列表页 */
/* 整体布局与容器样式 */
.article-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

/* 左侧下载区域样式 */
.download-sidebar {
    width: 220px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-self: flex-start;
    position: sticky;
    top: 20px;
}


.qr-code {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto 10px;
    border: 1px solid #eaeaea;
    padding: 5px;
    background: white;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
    background: #4a6cfa;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #3a5cea;
    transform: translateY(-2px);
}

.download-btn.ios {
    background: #000;
}

.download-btn.ios a {
    color:white;
}

.download-btn.more {
    background: #f0f2f5;
    color: #555;
    border: 1px solid #ddd;
}

.download-btn.more:hover {
    background: #e6e8eb;
}

/* 主内容区域样式 */
.main-content {
    min-height: 100vh;
    flex: 1;
}

.breadcrumb {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    text-decoration: none;
}

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

.page-title {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 700;
}

/* 文章列表样式 */
.articles-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.articles-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.articles-item:hover {
    background: #f9faff;
}

.articles-cover {
    width: 240px;
    height: 135px; /* 16:9比例 */
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

.articles-item:hover .articles-cover img {
    transform: scale(1.03);
}

.articles-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.articles-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.articles-preview {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    font-weight: 400;
}

.articles-meta {
    display: flex;
    font-size: 13px;
    color: #888;
}

.articles-meta span {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.articles-meta i {
    margin-right: 5px;
}

.no-articles {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    color: #4a6cfa;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #4a6cfa;
    color: white;
    border-color: #4a6cfa;
}

.pagination .current {
    background: #4a6cfa;
    color: white;
    border-color: #4a6cfa;
}

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



/* 文章详情页 */
/* 详情页特有样式 */
.article-view{
    padding: 30px;
     flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 25px;
    margin: 0 0 20px 0;
    color: #222;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 水平居中 */
    gap: 20px 30px;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

.article-meta span {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 30px;
}

.article-meta i {
    margin-right: 8px;
    color: #4a6cfa;
}

.article-meta .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 标签也居中 */
    gap: 10px;
}

.article-meta .tags span {
    background: #f0f5ff;
    color: #4a6cfa;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    transition: all 0.3s;
}


.article-content {
    /*font-size: 16px;*/
    margin: 30px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content ul, ol {
    padding: 0px 0px 0px 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content table {
        background-color: #828282;
        text-align: center;
    }
    
.article-content table th {
        background-color: #ffffff;
    }
    
.article-content table td {
        background-color: #ffffff;
    }

.article-content h2, 
.article-content h3, 
.article-content a {
    color: #222;
    margin-top: 30px;
    margin-bottom: 15px;
    text-decoration: none;
}

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

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-url {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-url strong {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.article-url a {
    color: #4a6cfa;
    word-break: break-all;
    text-decoration: none;
}

.article-url a:hover {
    text-decoration: underline;
}

.copyrights {
    background: #f0f5ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #4a6cfa;
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-item {
    flex: 0 0 48%;
}

.nav-item h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid #4a6cfa;
}

.nav-link:hover {
    background: #f0f5ff;
    transform: translateX(5px);
}

.nav-link.disabled {
    color: #aaa;
    pointer-events: none;
    border-left-color: #ddd;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4a6cfa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 108, 250, 0.3);
    transition: all 0.3s;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #3a5cea;
    transform: translateY(-5px) scale(1.05);
}