
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    transition: background 0.5s ease;
}

header {
    background: radial-gradient(circle, rgba(255, 87, 34,1), transparent);
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    margin: 0;
}

nav {
    margin-top: 20px;
}

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

nav ul li {
    margin: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd700;
}

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

section {
    margin-bottom: 50px;
}

h2, h3, h4 {
    color: #2c3e50;
    font-family: 'Pacifico', cursive;
}

p {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    margin-bottom: 20px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #dddddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

code {
    background: #e8e8e8;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
button {
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

article h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

article h3 {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h4 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
}

footer {
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 1024px) {
    main {
        padding: 15px;
    }
    
    article {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    nav ul li a {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    nav ul li a {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    header {
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    nav ul li a {
        font-size: 0.8em;
    }
}

/* 动画关键帧 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

