
/* CSS3 设计样式 */

/* CSS变量定义 */
:root {
    --deep-blue: #000046;
    --electric-purple: #8e2de2;
    --cold-silver-gray: #bdc3c7;
    --neon-blue: #1cb5e0;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --background-gradient: linear-gradient(135deg, var(--deep-blue), var(--electric-purple));
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--background-gradient);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--neon-pink);
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

a {
    color: var(--neon-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.header {
    text-align: center;
    padding: 60px 0;
    background: var(--cold-silver-gray);
    color: var(--deep-blue);
    border-radius: 10px;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3em;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2em;
}

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

.section {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.section h3 {
    margin-top: 15px;
    font-size: 1.5em;
    color: var(--neon-blue);
}

.section p {
    margin-top: 10px;
    color: #ffffff;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: var(--cold-silver-gray);
    color: var(--deep-blue);
    border-radius: 10px;
    margin-top: 40px;
}

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

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

@media (max-width: 1200px) {
    .sections {
        flex-direction: column;
    }
}

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

@media (max-width: 768px) {
    .header, .footer {
        padding: 30px 0;
    }

    .header h1 {
        font-size: 2em;
    }

    .intro {
        font-size: 1em;
        padding: 0 10px;
    }
}

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

    .section h3 {
        font-size: 1.2em;
    }

    .intro {
        font-size: 0.9em;
    }
}

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

    .section h3 {
        font-size: 1em;
    }

    .intro {
        font-size: 0.8em;
    }
}

/* 视觉冲击力元素 */
.neon-glow {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--neon-green);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.ripple-effect:active::after {
    opacity: 0.3;
    transform: scale(4);
}

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

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