
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0000ff, #8a2be2, #00ff00, #ff1493);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    line-height: 1.6;
}

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

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

header {
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
    background: -webkit-linear-gradient(#ffffff, #ffdd57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.header-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin: 60px 0;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    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%;
    border-radius: 10px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 15px;
}

.card p {
    margin: 10px 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

.code-block code {
    color: #00ff00;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
}

.footer p {
    margin: 5px 0;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6f42c1;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

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

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

.button:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .section-content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }
    .header-description {
        font-size: 1em;
    }
    .button {
        padding: 6px 12px;
    }
}

