
/* 
    网页整体样式定义
    使用复古色调与现代设计元素相结合，确保页面美观且响应迅速。
*/

/* 基础样式设置 */
body {
    font-family: 'Garamond', serif; /* 复古字体 */
    background: linear-gradient(135deg, #F5F5DC, #964B00); /* 渐变背景 */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #8B0000; /* 暗红色背景 */
    color: #FFD700; /* 金色文字 */
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 阴影效果 */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #F5F5DC; /* 米色悬停效果 */
}

/* 面包屑导航样式 */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 70px 30px 20px 30px; /* 顶部留白以避开固定导航栏 */
    background-color: rgba(245, 245, 220, 0.8); /* 半透明背景 */
}

.breadcrumb li::after {
    content: ">";
    margin-left: 5px;
    color: #964B00;
}

.breadcrumb li:last-child::after {
    content: "";
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 网格系统 */
    gap: 20px;
}

/* 文章内容样式 */
article {
    grid-column: span 8;
    background-color: rgba(245, 245, 220, 0.9); /* 半透明米色背景 */
    padding: 20px;
    border: 1px solid #964B00; /* 棕色边框 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 阴影效果 */
}

/* 侧边栏样式 */
.sidebar {
    grid-column: span 4;
    background-color: rgba(245, 245, 220, 0.8);
    padding: 20px;
    border: 1px solid #964B00;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 章节标题样式 */
article h2, article h3, article h4 {
    color: #8B0000; /* 暗红色标题 */
    margin-top: 20px;
    margin-bottom: 10px;
}

article h2 {
    font-size: 24px;
}

article h3 {
    font-size: 20px;
}

article h4 {
    font-size: 18px;
}

/* 段落样式 */
article p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05); /* 放大效果 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3); /* 加强阴影 */
}

/* 按钮样式 */
.button {
    background-color: #964B00; /* 棕色背景 */
    color: #FFD700; /* 金色文字 */
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #964B00, #FFD700); /* 渐变背景 */
    transform: translateY(-2px); /* 上移效果 */
}

/* 仪表盘样式 */
.dashboard {
    background-color: #F5F5DC; /* 米色背景 */
    border: 2px solid #964B00;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.data-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite; /* 脉动动画 */
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(6, 1fr); /* 调整网格 */
    }
    
    .article, .sidebar {
        grid-column: span 6;
    }
}

