* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --footer-bg: #34495e;
    --max-width: 1000px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.site-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

.site-nav {
    background-color: white;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-nav .container {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.main-content {
    min-height: calc(100vh - 400px);
    padding: 40px 20px;
}

.section-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

.article-list {
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--secondary-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.article-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
}

.article-detail {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.article-title-main {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-body {
    font-size: 1.05em;
    line-height: 2;
}

.article-body .lead-paragraph {
    font-size: 1.15em;
    color: #555;
    background: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.9;
}

.article-body h2 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--secondary-color);
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-info {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.about-section {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-info a {
    color: white;
    text-decoration: underline;
}

.footer-info a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 0.9em;
    margin-top: 15px;
}

.footer-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-notice p {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8em;
    }
    
    .article-title-main {
        font-size: 1.6em;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-nav .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media print {
    .site-nav,
    .site-footer,
    .article-footer,
    .read-more {
        display: none;
    }
    
    .article-body {
        font-size: 12pt;
    }
    
    .article-body h2 {
        page-break-after: avoid;
    }
    
    .article-body p {
        page-break-inside: avoid;
    }
}
