* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e6e6e6 100%);
    padding: 20px 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

header h1 span {
    color: #ff6b6b;
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #ff6b6b;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner.no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.banner.no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(107, 179, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.banner-content {
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.banner:not(.no-image) .banner-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: left;
    padding: 0;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}

.banner:not(.no-image) .banner-content h2 {
    color: white;
}

.banner-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.banner:not(.no-image) .banner-content p {
    color: white;
}

main {
    padding: 20px 0 40px;
}

.main-content {
    display: flex;
    gap: 30px;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
    display: inline-block;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 12px;
}

.sidebar-section ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sidebar-section ul li a:hover {
    color: #ff6b6b;
    padding-left: 10px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

.blog-list {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
    display: inline-block;
}

.blog-post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post h2 {
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

.blog-post h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #ff6b6b;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.about-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
    font-size: 24px;
}

.blog-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
    font-size: 24px;
}

.blog-content h3 {
    margin: 25px 0 15px;
    color: #444;
    font-weight: bold;
    font-size: 18px;
}

.blog-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #ff5252;
    text-decoration: underline;
}

.blog-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 3px solid #ff6b6b;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 15px;
        gap: 15px;
    }
    
    .banner {
        height: 200px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        text-align: center;
    }
}