/* Reset and Base Styles */
:root {
    --text-primary: #333333; /* 深灰色文本 */
    --text-secondary: #555555; /* 中灰色文本 */
    --accent-color: #2B81D6; /* 更深一些的蓝色 */
    --bg-color: #ffffff;
    --button-bg-secondary: #f5f5f5; /* 极浅灰色背景 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* 添加微妙的背景装饰 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, rgba(91,195,250,0.05), transparent);
    z-index: -1;
}

body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(245,169,184,0.05), transparent);
    z-index: -1;
}

/* Initial hiding styles for mitigating FOUC */
body.js-loading .page-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out; /* Smooth fade-in */
}
body:not(.js-loading) .page-wrapper {
    opacity: 1;
    visibility: visible;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1024px; /* Slightly narrower container */
    margin: 0 auto;
    padding: 0 15px; /* 添加基本内边距 */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af; /* Darker blue on hover */
}

/* Header Style - SynBlog风格 */
.site-header {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    background-color: var(--bg-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    margin-left: 20px;
}

.social-icons a {
    color: var(--text-secondary);
    margin-left: 15px;
    font-size: 1.1em;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Push to bottom */
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .container {
        width: 95%; /* 微调移动端容器宽度 */
        padding: 0 10px;
    }

    /* Header adjustments for SynBlog style */
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-left {
        width: 100%;
        margin-bottom: 15px;
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-nav ul {
        padding: 0;
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 0 15px 8px 0;
    }
    
    .social-icons {
        margin-left: 0;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 20px 0;
        font-size: 0.85em;
    }
} 