
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables for Colors */
:root {
    --primary-color: #0072ff;
    --secondary-color: #8e44ad;
    --accent-color: #2ecc71;
    --background-gradient: linear-gradient(135deg, #0072ff, #8e44ad, #2ecc71);
    --text-color: #ffffff;
    --light-color: #f0f0f0;
    --font-family: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

/* Body Styling */
body {
    font-family: var(--font-family);
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-size: 400% 400%;
    animation: auroraFlow 20s ease infinite;
}

/* Aurora Animation */
@keyframes auroraFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.header h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--primary-color); }
    to { text-shadow: 0 0 20px var(--secondary-color); }
}

/* Sections */
.section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.section p {
    font-size: 1rem;
}

/* Cards for Sample Data */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease-in-out;
}

.card:hover {
    transform: scale(1.05) rotate(2deg);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    font-size: 0.9rem;
    margin-top: 10px;
}

.card .tags {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Article Section */
.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article::before {
    content: '示例展示';
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.article h2, .article h3, .article h4 {
    color: var(--light-color);
}

.article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--light-color);
}

/* Responsive Media Queries */
@media (max-width: 1440px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }

    .card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .article pre {
        font-size: 0.8rem;
    }
}

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

    .section h2 {
        font-size: 1.5rem;
    }

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

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

    .section h2 {
        font-size: 1.3rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .article pre {
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.1rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .article pre {
        font-size: 0.6rem;
    }
}

