/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页眉样式 */
header {
    background-color: #06c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: normal;
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.1);
}

.nav-links li:nth-child(3) a {
    background-color: white;
    color: #06c;
    font-weight: 500;
}

.nav-links li:nth-child(3) a:hover {
    background-color: #e6e6e6;
}

.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

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

.hamburger.active div {
    background-color: black;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 主要内容区样式 */
.main-content {
    display: flex;
    margin: 30px 0;
}

.article-container {
    flex: 3;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 12px;
}

.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    text-align: center;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 3px;
    display: block;
}

/* 侧边栏样式 */
.sidebar {
    flex: 1;
    margin-left: 30px;
}

.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    background-color: #06c;
    color: white;
    padding: 5px;
    margin: 0 -10px 10px -10px;
    padding-left: 15px;
    font-weight: normal;
    font-size: inherit;
}

.no-bullets {
    list-style-type: none;
    padding-left: 0;
}

.widget ul.no-bullets a {
    text-decoration: none;
    display: block;
    margin: 8px 0;
    color: black;
}

.image-list {
    list-style: none;
    padding: 0;
}

.image-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.image-list img {
    width: 40%;
    max-width: 200px;
    height: auto;
    margin-right: 20px;
}

.image-list .info {
    flex: 1;
}

.image-list h4 a {
    text-decoration: none;
    color: inherit;
}

.image-list h4 {
    font-weight: normal;
    margin-bottom: 5px;
}

.image-list p {
    font-size: 14px;
    color: #777;
}

/* 页脚样式 */
footer {
    background: #06c;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-text {
    margin-bottom: 10px;
}

.copyright {
    font-size: 14px;
    color: white;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        margin-left: 0;
        margin-top: 30px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: -158px;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

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

    .nav-links.active {
        right: 0;
    }

    .nav-links li:nth-child(3) a {
        background-color: #06c;
        color: white;
        padding: 10px 20px;
        display: inline-block;
    }

    .nav-links li:nth-child(3) a:hover {
        background-color: #0052a3;
    }

    .nav-links a {
        color: black;
    }
}    