
/* 全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A192F, #1E293B);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #8B5CF6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

a {
    color: #38EBA8;
    text-decoration: none;
}

a:hover {
    color: #FFA726;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 颜色与渐变效果 */
.header {
    background: linear-gradient(120deg, #4C51BF, #8B5CF6);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-45deg);
    animation: moveGradient 10s infinite linear;
}

@keyframes moveGradient {
    0% { transform: translateX(-50%) rotate(-45deg); }
    100% { transform: translateX(50%) rotate(-45deg); }
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    overflow-x: auto;
}

code {
    color: #38EBA8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.2);
    color: #FFA726;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
    }

    pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 10px;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

