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

body {
    font-family: 'Source Han Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #264653; /* 深墨绿 */
    background: linear-gradient(to bottom, #e0f7fa, #ffebcd); /* 从浅灰蓝到柔和橙黄 */
    padding-top: 60px;
    transition: background 0.5s ease-in-out;
}

a {
    color: #e76f51; /* 点缀色橙红色 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d62828;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2a9d8f; /* 主色调蓝绿色 */
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #e9c46a; /* 点缀色 */
    transition: width .3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px;
    transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2a9d8f;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 5px solid #2a9d8f;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

h2, h3, h4 {
    margin-bottom: 15px;
    color: #264653;
    position: relative;
    padding-bottom: 10px;
}

h2::after, h3::after, h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #e9c46a;
    left: 0;
    bottom: 0;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

img {
    display: block;
    max-width: 900px;
    min-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.article-navigation {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(42, 157, 143, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-navigation ul {
    list-style: none;
}

.article-navigation li {
    margin-bottom: 10px;
}

.article-navigation a {
    color: #fff;
    font-size: 14px;
    position: relative;
}

.article-navigation a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffe066;
    transition: width .3s;
    position: absolute;
    bottom: -3px;
    left: 0;
}

.article-navigation a:hover::after {
    width: 100%;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2a9d8f;
    color: #fff;
    margin-top: 40px;
}

footer a {
    margin: 0 10px;
    color: #ffe066;
}

footer a:hover {
    color: #ffd60a;
}

@media (max-width: 768px) {
    .article-navigation {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .article-navigation ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .article-navigation li {
        margin: 5px 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

body.loaded section {
    opacity: 1;
}

/* Decorative Elements */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, #2a9d8f, #e9c46a);
    margin: 20px 0;
    border: none;
}

blockquote {
    border-left: 4px solid #e76f51;
    padding-left: 15px;
    font-style: italic;
    background: rgba(231, 111, 81, 0.05);
    margin: 20px 0;
}

button {
    background-color: #e76f51;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d62828;
}
