
/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --color-deep-blue: #000046;
    --color-electric-blue: #1cb5e0;
    --color-neon-green: #39ff14;
    --color-purple: #800080;
    --color-light-pink: #ff69b4;
    --color-cyan: #00ffff;
    --font-primary: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    background: linear-gradient(to bottom, var(--color-deep-blue), var(--color-electric-blue));
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-neon-green);
}

header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--color-neon-green), 0 0 20px var(--color-neon-green), 0 0 30px var(--color-neon-green);
}

section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.parallax {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.module {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.module .content {
    flex: 1;
    padding: 20px;
}

button {
    background-color: var(--color-electric-blue);
    color: #fff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1em;
    border-radius: 5px;
}

button:hover {
    box-shadow: 0 0 10px var(--color-neon-green), 0 0 20px var(--color-neon-green), 0 0 30px var(--color-neon-green);
    background-color: var(--color-cyan);
}

.code-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-block code {
    color: #39ff14;
    display: block;
    white-space: pre-wrap;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #39ff14;
    padding: 10px;
    text-align: left;
}

th {
    background-color: rgba(57, 255, 20, 0.2);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.footer-note {
    font-size: 1em;
    color: #ccc;
}

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

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

@media (max-width: 1024px) {
    section {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    button {
        padding: 12px 25px;
    }
}

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

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }
    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

button:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--color-electric-blue);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

button:hover:after {
    opacity: 0.3;
    transform: scale(2.5);
    animation: ripple 0.6s linear;
}

/* 示例展示样式 */
.example-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 10px;
    margin: 40px 0;
}

.example-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.example-section pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-section table th {
    background-color: rgba(57, 255, 20, 0.3);
}

.example-section table td {
    background-color: rgba(57, 255, 20, 0.1);
}

