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

/* 字体设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4568DC, #B06AB3);
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: 'Pacifico', cursive;
    color: #FF7F50;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    word-spacing: 1px;
}

ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

a {
    color: #FF6347;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF4500;
}

/* 按钮样式 */
.button {
    background-color: #FF7F50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #FF6347;
    transform: scale(1.05);
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

code {
    color: #d6336c;
}

/* 动画效果 */
.box {
    width: 100px;
    height: 100px;
    background-color: #4568DC;
    transition: transform 0.3s ease-in-out;
}

.box:hover {
    transform: scale(1.1);
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #B06AB3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5em;
    }

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

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

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

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    h1 {
        font-size: 2em;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    h1 {
        font-size: 2.4em;
    }
}

@media (min-width: 1440px) {
    body {
        padding: 40px;
    }

    h1 {
        font-size: 3em;
    }

    .container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 手绘插图与图标样式 */
.svg-icon {
    width: 24px;
    height: 24px;
    fill: #B06AB3;
    transition: fill 0.3s ease;
}

.svg-icon:hover {
    fill: #FF7F50;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-left: 5px solid #FF7F50;
    margin: 20px 0;
    font-style: italic;
}

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

.article h2 {
    color: #B06AB3;
}

.article h3 {
    color: #FF7F50;
}

.article pre {
    background: #eaeaea;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.article img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

