/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
header {
    background-color: #4a90e2;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* 主要内容样式 */
main {
    min-height: calc(100vh - 200px);
}

/* 欢迎区域 */
.welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 兴趣爱好预览区域 */
.hobbies-preview {
    padding: 4rem 0;
    background-color: white;
}

.hobbies-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.hobby-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a90e2;
}

.card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #357abd;
}

/* 最新动态区域 */
.latest-updates {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.latest-updates h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.updates {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #4a90e2;
}

.date {
    color: #4a90e2;
    font-weight: bold;
    font-size: 0.9rem;
}

.update-item p {
    margin-top: 0.5rem;
    color: #555;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* 内容页面样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
}

.content-section {
    padding: 3rem 0;
    background-color: white;
}

.content-section h3 {
    color: #4a90e2;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

/* 读书页面样式 */
.reading-intro, .music-intro, .travel-intro, .about-intro {
    margin-bottom: 3rem;
}

.book-list, .music-types, .travel-list, .plans-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.book-item, .music-type, .travel-item, .plan-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.book-item h4, .music-type h4, .travel-item h4, .plan-item h4 {
    color: #4a90e2;
    margin-bottom: 1rem;
}

.habits-list, .tips-list, .personality-list {
    list-style: none;
    margin-top: 1rem;
}

.habits-list li, .tips-list li, .personality-list li {
    background: #f8f9fa;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 3px solid #4a90e2;
}

/* 引用样式 */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 5px;
}

blockquote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    color: #4a90e2;
}

/* 音乐页面样式 */
.song-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.song-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.song-item h4 {
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.learning-progress ul {
    list-style: none;
    margin-top: 1rem;
}

.learning-progress li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* 关于我页面样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #4a90e2;
}

.dreams-content ul {
    margin: 1rem 0;
}

.dreams-content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.thanks {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 5px 0;
    }

    .welcome h2, .page-header h2 {
        font-size: 2rem;
    }

    .welcome p, .page-header p {
        font-size: 1rem;
    }

    .hobby-cards {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .book-list, .music-types, .travel-list, .plans-list {
        grid-template-columns: 1fr;
    }
}
