
:root {
    --primary: #E6F7FF;
    --secondary: #F5F5F5;
    --accent: #4DA6FF;
    --text: #333333;
    --light-text: #666666;
    --border: #E0E0E0;
    --dark-color: #1f2937;
}

/* 公共头部样式 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--secondary);
    line-height: 1.6;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.auth-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-btn:hover {
    color: var(--accent);
}

.register-btn {
    background-color: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.register-btn:hover {
    background-color: #3a8de6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(58, 141, 230, 0.3);
}

/* 文章内容样式 */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 0 50px;
}

.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

article {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 3rem;
}

h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/*h3 {*/
    /*font-size: 1.4rem;*/
    /*color: var(--dark-color);*/
    /*margin-top: 2.5rem;*/
    /*margin-bottom: 1rem;*/
/*}*/

p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.highlight {
    background-color: rgba(77, 166, 255, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.highlight p:last-child {
    margin-bottom: 0;
}

.chart-placeholder {
    background-color: #f3f4f6;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border-radius: 8px;
    color: var(--light-text);
    font-style: italic;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.conclusion {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.conclusion h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* 公共尾部样式 */
footer {
    background-color: var(--text);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 768px) {
    .article-container {
        padding: 120px 20px 30px;
    }

    article {
        padding: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 15px;
    }
}
