/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* 页面背景和容器 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

h2 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    transition: all 0.3s ease;
}

h2:hover {
    transform: translateX(5px);
}

/* 分割线样式 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 30px 0;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2980b9;
    transition: width 0.3s ease;
}

a:hover {
    color: #2980b9;
}

a:hover::after {
    width: 100%;
}

/* 列表样式 */
ul {
    list-style-type: none;
    padding-left: 25px;
}

li {
    margin: 12px 0;
    position: relative;
    padding-left: 15px;
    transition: transform 0.2s ease;
}

li::before {
    content: "→";
    color: #3498db;
    font-size: 1.1em;
    position: absolute;
    left: -10px;
    transition: transform 0.2s ease;
}

li:hover {
    transform: translateX(5px);
}

li:hover::before {
    transform: translateX(3px);
}

/* 导航和区块样式 */
nav, section {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

nav {
    animation-delay: 0.1s;
}

section {
    animation-delay: 0.3s;
}

nav:hover, section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    nav, section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    nav, section {
        padding: 15px;
    }
    header {
        padding: 20px 0;
    }
}