
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    background-size: cover;
    background-attachment: fixed;
}

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

.header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.8), transparent);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: aurora-move 15s linear infinite;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #00ffea;
    text-shadow: 2px 2px 10px rgba(0, 255, 234, 0.5);
}

.header p {
    font-size: 1.2em;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.section h2 {
    font-size: 2em;
    color: #ff4081;
    margin-bottom: 15px;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #ff4081;
    display: block;
    margin-top: 10px;
    border-radius: 2px;
}

.section p {
    line-height: 1.6;
    font-size: 1em;
}

.code-block {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
    margin-top: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
}

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

.images-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.images-grid img:hover {
    transform: scale(1.05);
}

.footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-top: 2px solid #1cb5e0;
}

.button {
    background-color: #1cb5e0;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dynamic-text {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

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

@media (max-width: 320px) {
    .header h1 {
        font-size: 2em;
    }
    .container {
        padding: 20px;
    }
}

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

@media (max-width: 768px) {
    .container {
        padding: 30px;
    }
    .section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 40px 10px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (min-width: 1440px) {
    .header h1 {
        font-size: 4em;
    }
    .section h2 {
        font-size: 2.5em;
    }
}

