
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}
p, ul, li, table, pre, code {
    font-family: 'Lato', sans-serif;
    color: #f0f0f0;
}

/* 渐变背景动画 */
.background-gradient {
    background: linear-gradient(135deg, #7b4397, #dc2430);
    background-size: 300% 300%;
    animation: gradient-animation 15s ease infinite;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.title {
    text-align: center;
    font-size: 3rem;
    background: -webkit-linear-gradient(#8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-effect 2s infinite alternate;
}
@keyframes glow-effect {
    from { text-shadow: 0 0 10px #fff; }
    to { text-shadow: 0 0 30px #fff; }
}

/* 模块化设计 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.module h3 {
    margin-top: 0;
}
.module pre {
    background: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}
.module code {
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table, th, td {
    border: 1px solid #ffffff;
}
th, td {
    padding: 10px;
    text-align: left;
}
th {
    background: rgba(0,0,0,0.2);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff7e5f;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}
.btn:hover {
    background: #feb47b;
}

/* 光斑效果 */
.interactive-spot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    opacity: 0;
    animation: spot-animation 0.5s ease-in-out;
}
@keyframes spot-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .title {
        font-size: 2.5rem;
    }
}
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}
@media (max-width: 1024px) {
    .module {
        padding: 15px;
    }
}
@media (max-width: 768px) {
    .module {
        flex: 1 1 100%;
    }
    .image-gallery {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    .btn {
        padding: 8px 16px;
    }
}
@media (max-width: 320px) {
    .title {
        font-size: 1.5rem;
    }
}

/* 无障碍设计 */
a {
    color: #00ffcc;
    text-decoration: none;
}
a:focus, a:hover {
    text-decoration: underline;
}

