
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #A5D6FF;
    margin-bottom: 20px;
}

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

a {
    color: #64ffda;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

section {
    padding: 60px 0;
}

.section-bg {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
}

.button {
    position: relative;
    padding: 12px 30px;
    background-color: #6200EA;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 1rem;
}

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

.button:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.code-block {
    background: #1c1c3c;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #64ffda;
}

footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #e0e0e0;
}

@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5rem;
    }
}

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

@media (max-width: 1024px) {
    section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .code-block {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .code-block {
        font-size: 0.8rem;
    }
}

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

    header h1 {
        font-size: 1.5rem;
    }

    p, .button, .code-block {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 导航样式 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #64ffda;
}

