* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-card {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.article-meta .source {
    color: #576b95;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-weight: 600;
    margin: 24px 0 16px;
    color: #1a1a1a;
}

.article-content h1 {
    font-size: 22px;
}

.article-content h2 {
    font-size: 20px;
}

.article-content h3 {
    font-size: 18px;
}

.article-content p {
    margin: 16px 0;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

.article-content a {
    color: #576b95;
    text-decoration: none;
}

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

.article-content blockquote {
    border-left: 4px solid #e0e0e0;
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin: 8px 0;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

.article-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.article-content th {
    background: #f5f5f5;
    font-weight: 600;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-message .icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #999;
}

.error-message h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
}

.error-message p {
    font-size: 14px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.site-footer {
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #333;
}

.beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beian-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.copyright {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.copyright p {
    margin: 4px 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .article-card {
        padding: 24px;
        border-radius: 0;
        box-shadow: none;
    }

    .article-title {
        font-size: 22px;
    }

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

    .site-footer {
        margin-top: 20px;
        padding: 20px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links span {
        display: none;
    }

    .copyright {
        font-size: 11px;
    }
}

/* 列表页样式 - 紧凑布局 */
.list-header {
    margin-bottom: 8px;
    padding: 16px 20px;
}

.list-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-list-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-list-item:hover {
    transform: translateY(-1px);
}

.article-list-item:hover .article-card {
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.article-list-item .article-card {
    padding: 12px 16px;
}

.article-list-content {
    padding: 10px 16px;
}

.article-list-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 6px;
}

.article-list-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-meta {
    font-size: 13px;
    color: #999;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 20px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #576b95;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.pagination-link:hover:not(.disabled) {
    background: #576b95;
    color: #fff;
    border-color: #576b95;
}

.pagination-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-link svg {
    width: 14px;
    height: 14px;
}

.pagination-info {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .list-header {
        padding: 12px 16px 4px;
        margin-bottom: 0;
    }

    .list-title {
        font-size: 18px;
    }

    .article-list {
        gap: 0;
    }

    .article-list-item .article-card {
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .article-list-content {
        padding: 12px 16px;
    }

    .article-list-title {
        font-size: 14px;
    }

    .article-list-summary {
        font-size: 12px;
    }

    .pagination {
        margin-top: 16px;
        padding: 12px 16px;
    }

    .pagination-link {
        padding: 5px 10px;
        font-size: 12px;
    }
}
