
/* 页面整体样式设计 */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-weight: bold;
    color: #4c9aff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.8em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: 'Pacifico', cursive; /* 手写体点缀标题 */
}

p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #dcdcdc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff9f43;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

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

/* 非对称网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item:nth-child(odd) {
    background: linear-gradient(135deg, rgba(76, 154, 255, 0.1), rgba(255, 111, 97, 0.1));
}

/* 动态效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.button {
    display: inline-block;
    background-color: #4c9aff;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #ff6f61;
}

/* 表格与代码块样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: linear-gradient(135deg, #4c9aff, #ff6f61);
    color: white;
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #4c9aff;
}

code {
    color: #ff6f61;
}

/* 响应式布局 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }

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

    table {
        font-size: 0.9em;
    }
}

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

    p {
        font-size: 0.9em;
    }

    pre {
        font-size: 0.8em;
    }
}

