
/* 基础样式与渐变背景 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0000ff, #8a2be2, #00ff7f);
    background-size: 400% 400%;
    animation: gradient-animation 10s ease infinite;
    color: #ffffff;
    padding: 20px;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #00ff7f;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-size: 1em;
    font-weight: normal;
    line-height: 1.8;
    margin-bottom: 15px;
}

code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #00ff7f;
}

pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

/* 模块化布局与网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.grid-item:hover {
    transform: scale(1.05);
    background-color: rgba(0, 255, 0, 0.2);
}

/* 装饰性元素 */
.title-decorated::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    margin-left: 10px;
    background: linear-gradient(to right, #ffffff, transparent);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #00ff7f, #0000ff);
    border-radius: 50%;
    display: inline-block;
    margin: 10px;
}

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

/* 自适应设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.85em;
    }
}

/* 提示信息 */
.notice {
    text-align: center;
    font-size: 0.9em;
    color: #cccccc;
    margin-top: 20px;
}

