
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A192F, #1C2B46);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: #6C63FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4ECDC4;
}

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

.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* 渐变色块与背景动画 */
.gradient-bg {
    background: linear-gradient(135deg, #0A192F, #1C2B46, #0A192F);
    background-size: 300% 300%;
    animation: gradientShift 10s infinite alternate;
}

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

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatAround 5s infinite ease-in-out;
}

@keyframes floatAround {
    0% { transform: translate(0, 0); }
    50% { transform: translate(50px, -50px); }
    100% { transform: translate(0, 0); }
}

/* 标题与副标题样式 */
.title {
    font-size: 3rem;
    color: #6C63FF;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.5rem;
    color: #4ECDC4;
    margin-bottom: 40px;
}

/* 内容区样式 */
.content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.highlight {
    color: #6C63FF;
}

.success {
    color: #4ECDC4;
}

code {
    background-color: #1C2B46;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

pre {
    background-color: #1C2B46;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

th {
    background-color: #6C63FF;
    color: #FFFFFF;
}

td {
    color: #FFFFFF;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 动画效果 */
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-animation {
    animation: fadeInText 1s ease-in-out forwards;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

