
/* 基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2b4635, #000000);
    color: #d2691e;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bodoni', serif;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
a {
    color: #00bfff;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #ff69b4;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* 布局容器 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.sidebar {
    width: 25%;
    background: linear-gradient(to bottom, #3e3e3e, #1c1c1c);
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}
.main-content {
    width: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 导航菜单 */
.nav-menu {
    list-style: none;
    padding: 0;
}
.nav-menu li {
    margin-bottom: 15px;
}
.nav-menu a {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00bfff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-menu a:hover::after {
    transform: scaleX(1);
}

/* 图片与装饰 */
.image-box {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.image-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.image-box img:hover {
    transform: scale(1.1);
}

/* 动画效果 */
.gear-animation {
    animation: rotate 10s infinite linear;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 表格与代码块 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
pre {
    background: #1c1c1c;
    color: #00bfff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 自适应布局 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .sidebar, .main-content {
        width: 100%;
    }
    .image-box img {
        width: 80px;
        height: 80px;
    }
}
@media (max-width: 768px) {
    .image-box img {
        width: 60px;
        height: 60px;
    }
}

