
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #1a0f4e, #4c198d);
    color: white;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Bauhaus', sans-serif;
    text-shadow: 2px 2px 5px gold;
}

h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    margin-top: 40px;
}

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

p {
    font-size: 18px;
    margin-bottom: 20px;
}

code {
    display: block;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ffbf;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    overflow-x: auto;
    white-space: pre-wrap;
}

pre {
    margin: 20px 0;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    background-color: #ffffff;
    color: #1a0f4e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 按钮与交互 */
.button {
    position: relative;
    background-color: #4c198d;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.button:hover::after {
    opacity: 1;
    width: 150%;
    height: 150%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

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

/* 特殊提示 */
.notice {
    text-align: center;
    font-size: 20px;
    color: gold;
    margin: 20px 0;
}

