/* 基础样式 */
body {
    font-family: 'SimSun', 'STKaiti', serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f5e9;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #8B4513, #A0522D);
    color: #fff8e1;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #5D4037;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

nav a {
    color: #fff8e1;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 章节样式 */
section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #5D4037;
    border-bottom: 2px solid #D7CCC8;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* 下载按钮和表单元素 */
.download-btn {
    display: inline-block;
    background: linear-gradient(to right, #388E3C, #4CAF50);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.subscribe-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f4e9;
    border-radius: 5px;
}

.subscribe-form p {
    margin-bottom: 1rem;
    color: #5D4037;
}

.subscribe-form input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #D7CCC8;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

/* 作品展示区 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    flex: 1 1 200px;
    height: 150px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #777;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,69,19,0.1), rgba(93,64,55,0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 150px;
        height: 120px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 页脚 */
footer {
    background-color: #5D4037;
    color: #D7CCC8;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: #D7CCC8;
    text-decoration: none;
}