
/* 基础页面样式 */
body {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #0a0a2a, #000);
    color: #fff;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* 导航栏设计 */
.navbar {
    width: 100%;
    background: linear-gradient(90deg, #4b3f2f, #8b6508);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #ffcc00;
    text-shadow: 0 0 10px #ffcc00;
}

/* 主内容区样式 */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

h1, h2, h3 {
    font-family: 'Baskerville', serif;
    color: #e9967a;
}

p {
    font-size: 16px;
    color: #dcdcdc;
}

/* 图片装饰 */
.image-decor {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    border: 2px solid #b8860b;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #b8860b;
}

th, td {
    padding: 10px;
    border: 1px solid #b8860b;
    text-align: left;
    color: #fff;
}

th {
    background: linear-gradient(90deg, #8b6508, #4b3f2f);
}

/* 代码块样式 */
pre {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #b8860b;
    font-size: 14px;
}

code {
    color: #0ff;
}

/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.particle-effect {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    pre {
        font-size: 12px;
    }
}

