
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5e7d8, #e0c3fc);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundAnimation 15s linear infinite;
}

/* 渐变背景动画 */
@keyframes backgroundAnimation {
    0% {
        background: linear-gradient(135deg, #f5e7d8, #e0c3fc);
    }
    50% {
        background: linear-gradient(135deg, #e0c3fc, #f5e7d8);
    }
    100% {
        background: linear-gradient(135deg, #f5e7d8, #e0c3fc);
    }
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0 20px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'HandwrittenFont', cursive;
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 20%;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4a90e2;
}

/* 主内容区样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h2, h3, h4 {
    color: #9013fe;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid #e0c3fc;
    padding-bottom: 10px;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
}

h4 {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

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

th {
    background-color: #f0f0f0;
    color: #333;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

/* 代码块样式 */
pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-family: 'Courier New', Courier, monospace;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #f8f8f2;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #4caf50, #81c784);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #66bb6a, #4caf50);
}

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

/* 响应式布局 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    nav {
        top: 15%;
        left: 10px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 10px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }

    header {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    table, th, td {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 0.8rem;
    }

    .button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    nav a {
        font-size: 0.9rem;
    }
}

/* 提示信息样式 */
.footer-note {
    text-align: center;
    font-size: 1rem;
    color: #999;
    margin-top: 40px;
}

/* 卡片样式 */
.card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-content h4 {
    margin-bottom: 10px;
    color: #4a90e2;
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
}

