
:root {
    --primary-color: #0D6EFD; /* 深蓝色 */
    --secondary-color: #9B51E0; /* 浅紫色 */
    --highlight-color: #FFD700; /* 金色 */
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --font-family: 'Poppins', sans-serif;
    --font-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.3);
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    color: var(--font-color);
    background: var(--background-gradient);
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--highlight-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

nav {
    margin-top: 10px;
}

nav a {
    color: var(--font-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

nav a:hover {
    color: var(--highlight-color);
    transform: scale(1.1);
}

.main-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(33% - 40px);
    min-width: 280px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 64px 0 rgba(31, 38, 135, 0.37);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
}

.footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1440px) {
    .card {
        flex: 1 1 calc(33% - 40px);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    .card {
        flex: 1 1 100%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }
    nav a {
        margin: 0 5px;
        font-size: 0.8rem;
    }
    .card {
        padding: 10px;
    }
}

.code-block {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
    margin: 15px 0;
}

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

.sample-display {
    width: 100%;
    max-width: 1200px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    margin: 40px 0;
}

.sample-display h2 {
    color: var(--highlight-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.sample-display article {
    line-height: 1.8;
}

.sample-display img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin: 10px 0;
}

.animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: 1;
}

@keyframes aurora-move {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

