
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #1a1a3c, #000f3c);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, #00aaff, #00ff99);
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 48px;
    margin: 0;
    background: linear-gradient(to right, #00aaff, #00ff99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 5s infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00ff99;
}

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

.section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #00aaff, #00ff99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section p {
    font-size: 18px;
    margin-bottom: 15px;
}

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

pre, code {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
}

button {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #00ff99;
    transform: scale(1.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
}

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

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

table th {
    background: #00aaff;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.footer {
    background: linear-gradient(135deg, #000f3c, #1a1a3c);
    padding: 20px;
    text-align: center;
}

.footer p {
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }
    .section h2 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    header h1 {
        font-size: 38px;
    }
    nav ul li a {
        font-size: 16px;
    }
    .section h2 {
        font-size: 28px;
    }
    .section p {
        font-size: 16px;
    }
}

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

@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    nav ul li a {
        font-size: 14px;
    }
    .section h2 {
        font-size: 24px;
    }
    .section p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
    .container {
        padding: 20px 10px;
    }
    .section h2 {
        font-size: 20px;
    }
    .section p {
        font-size: 13px;
    }
}

