
/* 
整体页面样式设置
采用现代的CSS3技术，实现响应式设计与高级视觉效果
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 正文使用现代无衬线字体，确保可读性 */
    color: #333333; /* 文字颜色 */
    background: linear-gradient(135deg, #2c3e50 70%, #bdc3c7 25%, #e74c3c 5%); /* 背景采用渐变色，符合黄金比例 */
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9); /* 半透明深色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 阴影效果 */
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Bodoni', serif; /* 复古风格字体 */
    font-size: 24px;
    color: #ecf0f1; /* 浅色字体 */
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #e74c3c; /* 点缀色用于悬停效果 */
}

/* 主要内容区 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px; /* 留出导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自适应网格布局 */
    gap: 30px;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 阴影效果 */
}

article h2, article h3, article h4 {
    font-family: 'Bodoni', serif; /* 复古衬线字体 */
    color: #2c3e50;
}

article p {
    font-size: 16px;
    color: #2c3e50;
}

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

img:hover {
    transform: scale(1.05); /* 悬浮放大效果 */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* 代码块样式 */
pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

pre code {
    display: block;
}

/* 按钮样式 */
.button {
    background: #e74c3c; /* 点缀色背景 */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: #c0392b;
}

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

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
    }

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

    article {
        margin: 0;
    }
}

/* 提示信息样式 */
.notice {
    background: #f1c40f;
    color: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 折叠内容样式 */
.details {
    margin-top: 20px;
}

.details summary {
    cursor: pointer;
    font-weight: bold;
    color: #e74c3c;
}

.details[open] summary {
    color: #c0392b;
}

/* 导航栏优化 */
.navbar .nav-links a {
    padding: 5px 10px;
}


