
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1c3d, #2c3e50);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ff6f00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
p, li {
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.8;
}
a {
    color: #ff6f00;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #e65c00;
}

/* 按钮样式 */
.button {
    background: linear-gradient(90deg, #ff6f00, #ff9800);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* 布局模块 */
.module {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.module::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: floatEffect 10s infinite alternate;
}
@keyframes floatEffect {
    0% { transform: rotate(45deg) translate(-10px, -10px); }
    100% { transform: rotate(45deg) translate(10px, 10px); }
}

/* 图片样式 */
.image-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.image-wrapper img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}
.image-wrapper img:hover {
    transform: scale(1.1);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    color: #fff;
    margin: 20px 0;
}
code {
    color: #ff6f00;
    font-weight: bold;
}

/* 动画效果 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff6f00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    pre {
        font-size: 0.8em;
    }
    .image-wrapper img {
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    p, li {
        font-size: 0.9em;
    }
}

