
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Roboto&display=swap');

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4B5320, #2E2E2E);
    color: #F5F5DC;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

a {
    color: #0074D9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #F5F5DC;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
}

/* 页面布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-5px);
}

/* 导航栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(180deg, #2E2E2E, #4B5320);
    color: #F5F5DC;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.sidebar a {
    display: block;
    margin-bottom: 15px;
    color: #FFD700;
    rel: "nofollow";
}

/* 动画效果 */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #4B5320;
    border-top: 5px solid #F5F5DC;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

th, td {
    border: 1px solid #F5F5DC;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

th {
    background: #FFD700;
    color: #2E2E2E;
}

/* 按钮样式 */
.retro-button {
    background: linear-gradient(to bottom, #cd853f, #8b4513);
    color: #fff;
    border: 2px solid #654321;
    padding: 10px 20px;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.retro-button:hover {
    background: linear-gradient(to bottom, #8b4513, #cd853f);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    pre {
        font-size: 12px;
    }

    table {
        font-size: 14px;
    }
}

