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

:root {
    --bg: #0a0a0a;
    --main: #4a148c;
    --accent: #e91e63;
    --light: #12001b;
    --text: #333;
    --text-light: #666;
    --border: rgba(0,0,0,0.1);
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* 头部样式 */
.header {
    background: var(--main);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Banner */
.banner {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--main), var(--accent));
    color: white;
}

.banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* 渐入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 文章列表 */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--main);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-date {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--main);
}

.article-desc {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* 美图展示 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 文章内页 */
.article-page {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-page h1 {
    font-size: 36px;
    color: var(--main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.article-page p {
    font-size: 17px;
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-page img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--main);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 30px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: var(--accent);
}

/* 页脚 */
.footer {
    background: var(--main);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
}

.footer a:hover {
    color: var(--accent);
}

/* 响应式 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--main);
        transition: left 0.3s;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-page h1 {
        font-size: 28px;
    }
}
