
/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
}
.header h1 {
    font-size: 2.5rem;
    color: #ffdd57;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.header p {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
}

/* 布局模块 */
.section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.section h2 {
    font-size: 2rem;
    color: #4A90E2;
    margin-bottom: 15px;
}
.section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}
.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #fff;
    white-space: pre-wrap;
    word-break: break-word;
}
code {
    font-family: 'Courier New', monospace;
    color: #ffdd57;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}
th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .section h2 {
        font-size: 1.5rem;
    }
    pre {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .header h1 {
        font-size: 1.5rem;
    }
    .section h2 {
        font-size: 1.2rem;
    }
    pre {
        font-size: 0.7rem;
    }
}

