/* 全局重置与盒模型 */
* {
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础字体与颜色 - 总背景改为白色 */
html, body {
    font: 14px/1.6 -apple-system, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    background: #ffffff;
}



/* 主容器 */
.main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    display: flex;
    gap: 30px;
    background: #ffffff;
}

/* 文章列表容器 */
.articles-container {
    flex: 3;
    background: #ffffff;
    padding: 20px;
}

/* 侧边栏（已隐藏） */
.sidebar {
    flex: 1;
    display: none;
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    color: #333;
}

/* 分类区块 */
.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #3b82f6;
    color: #333;
}

.category-title a {
    color: #333;
    text-decoration: none;
}

.category-title a:hover {
    color: #3b82f6;
}

.category-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 13px;
}

/* 文章列表 */
.article-list {
    list-style: none;
}

.article-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.article-item:hover {
    background: #fafafa;
}

.article-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-info h3 a:hover {
    color: #3b82f6;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 13px;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
}

.read-more:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
    padding: 15px 0;
    list-style: none;
}

.more-link {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.more-link:hover {
    background: #3b82f6;
    color: #fff;
}

/* 文章详情页容器 */
.article-container {
    flex: 3;
    background: #ffffff;
    padding: 30px;
    width: 100%;
}

/* 文章头部 */
.article-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.article-meta {
    font-size: 13px;
    color: #999;
}

.article-meta span {
    margin-right: 20px;
}

.article-original {
    margin-top: 10px;
    font-size: 12px;
}

.article-original a {
    color: #3b82f6;
    text-decoration: none;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    overflow-x: auto;
    width: 100%;
}

.article-content p {
    margin-bottom: 1em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 1.5em 0 0.5em;
    color: #3b82f6;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

.article-content a {
    color: #3b82f6;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.article-content th {
    background: #f5f5f5;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background: #f9f9f9;
    border-left: 4px solid #3b82f6;
    color: #666;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-pagination {
    display: inline;
    gap: 20px;
}

.article-pagination .prev-article {
    color: #0066cc;
}

.article-pagination .next-article {
    color: #cc6600;
}

.article-pagination .separator {
    margin: 0 8px;
}

.article-pagination a:hover {
    text-decoration: underline;
}

/* ==================== 主菜单样式 ==================== */
.menu {
    background: #ffffff;
    border-radius: 60px;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 15px auto;
    max-width: 96%;
    overflow: hidden;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 24px;
    padding-left: 15px;
    padding-right: 15px;
}

.menu ul::-webkit-scrollbar {
    display: none;
}

.menu li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.menu a {
    text-decoration: none !important;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu a:hover {
    color: #1e40af;
}

/* 旧导航废弃 */
div.nav_s {
    display: none !important;
}

/* ==================== 页脚样式 ==================== */
.footer {
    background: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.footer a,
.footer a:link,
.footer a:visited,
.footer a:hover,
.footer a:active {
    text-decoration: none !important;
    color: #999 !important;
}

/* ==================== 响应式样式 ==================== */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 15px;
    }

    .menu {
        border-radius: 0;
        padding: 10px 0;
        margin: 10px 0;
    }

    .menu ul {
        gap: 18px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .main-content {
        padding: 15px;
    }
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 打印样式 */
@media print {
    .menu,
    .sidebar,
    .footer,
    .article-pagination {
        display: none;
    }

    .main-content,
    .article-container {
        padding: 0;
        margin: 0;
    }

    .article-content {
        font-size: 12pt;
    }
}

