/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #333333;
    --text-muted: #999999;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --footer-bg: #5a5a5a;
    --footer-text: #cccccc;
    --link-color: #2563eb;
    --pagination-active: #e74c3c;
    --border-color: #eeeeee;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, li {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.logo-domain {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-size: 15px;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 25px 0;
}

.content-card {
    background-color: var(--white);
    border-radius: 4px;
    padding: 25px 30px;
}

/* Article List */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.article-item:last-child,
.article-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.article-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.article-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.article-link a {
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.article-link a:hover {
    color: var(--primary-color);
}

.article-date {
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 15px;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 0 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .active,
.pagination a.page-num-current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination span {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0 5px;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Article Detail Page */
.content-card.detail {
    padding: 35px 40px 40px;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    font-size: 12px;
}

.article-content {
    font-size: 15px;
    line-height: 2;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 25px 0 15px;
    line-height: 1.6;
}

.article-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 20px 0 12px;
    line-height: 1.6;
}

.article-content p {
    margin: 12px 0;
    text-indent: 0;
}

.article-content ul {
    list-style: disc;
    padding-left: 25px;
    margin: 12px 0;
}

.article-content ol {
    list-style: decimal;
    padding-left: 25px;
    margin: 12px 0;
}

.article-content li {
    margin: 8px 0;
    line-height: 2;
}

.article-content ul li::marker {
    color: var(--text-color);
}

.article-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.article-content a {
    color: var(--primary-color);
}

.article-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 25px 0;
    font-size: 13px;
    line-height: 2;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--footer-text);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-info {
    color: #aaaaaa;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: var(--footer-text);
}

.footer-info a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 8px;
}

.sitemap-link {
    color: var(--footer-text);
}

.sitemap-link:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .article-list {
        grid-template-columns: 1fr;
    }

    .article-link a {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 55px;
    }

    .logo-title {
        font-size: 16px;
    }

    .content-card {
        padding: 20px 15px;
    }

    .content-card.detail {
        padding: 25px 20px 30px;
    }

    .article-item {
        padding: 10px 0;
    }

    .article-link a {
        font-size: 13px;
    }

    .article-date {
        font-size: 12px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-content h2 {
        font-size: 17px;
    }

    .article-content h3 {
        font-size: 15px;
    }

    .footer-links {
        gap: 5px 15px;
    }
}

@media (max-width: 480px) {
    .logo-domain {
        display: none;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .article-date {
        display: none;
    }

    .content-card.detail {
        padding: 20px 15px 25px;
    }

    .article-title {
        font-size: 18px;
    }

    .pagination a,
    .pagination span {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

