
/* 全局样式设置 */
/* 设置页面的背景色、字体、颜色等基本属性 */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #2C3E50 70%, #34495E 25%, #E67E22 5%);
    color: #ECF0F1;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    /* 使用Flexbox进行流式布局 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 固定顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.9);
    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: #ECF0F1;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #E67E22;
}

/* 主内容区域样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin-top: 80px; /* 为固定导航栏留出空间 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
}

/* 标题样式 */
h2, h3, h4 {
    color: #ECF0F1;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.75em;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 1.1em;
    color: #BDC3C7;
    margin-bottom: 15px;
}

/* 代码块样式 */
pre {
    background-color: #34495E;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

code {
    color: #E67E22;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
}

code::before {
    content: "代码块";
    position: absolute;
    top: -1.2em;
    left: 0;
    background-color: #2C3E50;
    padding: 2px 5px;
    font-size: 0.8em;
    border-radius: 4px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

th {
    background-color: #2C3E50;
}

td {
    background-color: #34495E;
}

/* 图片样式 */
img.decorative {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    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);
}

/* 卡片式设计样式 */
.card {
    background-color: #34495E;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 表单元素隐藏 */
form {
    display: none;
}

/* 折叠区域样式 */
.details {
    background-color: #34495E;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    color: #E67E22;
}

details[open] summary {
    color: #F1C40F;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #E67E22, #F1C40F);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    color: #2C3E50;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1em;
}

.button:hover {
    background: linear-gradient(45deg, #F1C40F, #E67E22);
}

/* 响应式布局 */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 提示信息样式 */
.notice {
    width: 100%;
    background-color: #E67E22;
    color: #2C3E50;
    text-align: center;
    padding: 15px 0;
    font-size: 1.2em;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* 代码块滚动优化 */
pre {
    max-height: 400px;
    overflow: auto;
}

/* 导航链接不使用外部链接 */
a[rel="nofollow"] {
    pointer-events: all;
}

/* 结束样式 */

