
/* 基础页面样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a237e, #6200ea);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 页面头部设计 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(to right, #ffeb3b, #fbc02d);
    -webkit-background-clip: text;
    color: transparent;
}

header p {
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 容器与网格布局 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module {
    background: linear-gradient(to bottom right, #6200ea, #1a237e);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 按钮交互效果 */
button {
    background: linear-gradient(to right, #6200ea, #1a237e);
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #ffeb3b, #fbc02d);
    color: #1a237e;
}

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

code {
    color: #ffeb3b;
    font-family: 'Courier New', Courier, monospace;
}

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

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

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

th {
    background: linear-gradient(to right, #6200ea, #1a237e);
    color: #ffffff;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.dynamic-background {
    background: linear-gradient(270deg, #1a237e, #6200ea, #1a237e);
    background-size: 300% 300%;
    animation: aurora-move 15s infinite alternate;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    pre {
        font-size: 0.9rem;
    }
}

