
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #A67B5B, #D8CAB8, #4B5320); /* 主色调渐变背景 */
    color: #333333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(75, 83, 32, 0.9); /* 半透明深绿色背景 */
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #FFD700; /* 点缀色金色 */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #FFA500; /* 点缀色橙色 */
}

/* 主要内容区样式 */
.main {
    padding: 100px 20px 50px 20px; /* 顶部留出导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 1fr 1fr;
    }
}

/* 文章内容样式 */
article {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

article h2 {
    font-family: 'Playfair Display', serif; /* 复古衬线字体 */
    font-size: 24px;
    color: #4B5320;
    margin-bottom: 20px;
}

article h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4B5320;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
}

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* 提示信息样式 */
.banner {
    text-align: center;
    background: rgba(75, 83, 32, 0.8);
    color: #FFD700;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 40px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #4B5320;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: #6B8E23;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 10px 0;
    }

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

/* 动态元素样式 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in;
}

/* 卡片样式 */
.card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

/* 分屏布局 */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr;
    }
}

/* 图标样式 */
.icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}

.icon:hover {
    transform: rotate(20deg) scale(1.2);
}

/* 加载动画样式 */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4B5320;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

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

/* 数据可视化样式 */
.dial {
    width: 200px;
    height: 200px;
    border: 10px solid #4B5320;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.dial::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 50%;
    background: #FFD700;
    transform: translate(-50%, -100%) rotate(45deg);
    transform-origin: bottom center;
}

