/* Reset and basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(to bottom, #f5f5f5, #ffe5d9);
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    padding: 0;
    margin: 0;
}
a {
    color: #d2691e;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff7f50;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 165, 0, 0.9);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.nav-links {
    display: flex;
    gap: 15px;
}
.nav-links a {
    color: #fff;
    font-size: 16px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #fff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 165, 0, 0.95);
        width: 200px;
        height: 100vh;
        padding-top: 20px;
        transition: right 0.3s ease;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
}
main {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    display: flex;
    gap: 20px;
}
.sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sidebar h3 {
    margin-bottom: 15px;
    color: #d2691e;
    font-size: 18px;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin-bottom: 10px;
}
.sidebar ul li a {
    color: #4a4a4a;
    font-size: 16px;
    transition: color 0.3s ease;
}
.sidebar ul li a:hover {
    color: #ff7f50;
}
.content {
    flex: 3;
}
section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #d2691e, #ff7f50);
}
section h2, section h3 {
    margin-bottom: 15px;
    color: #8b4513;
    text-shadow: 0 0 1px rgba(0,0,0,0.2);
}
section h2 {
    font-size: 24px;
    color: #b22222;
}
section h3 {
    font-size: 20px;
    color: #cd5c5c;
}
section p {
    margin-bottom: 15px;
}
section img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
}
footer {
    background: #d2691e;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
}
footer a {
    color: #ffecd1;
}
