
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif; /* 统一字体样式 */
    background: linear-gradient(135deg, #1E3A8A 70%, #E5E7EB 25%, #16A34A 5%);
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden; /* 避免出现水平滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background 0.5s ease;
}

.navbar.scrolled {
    background: rgba(30, 58, 138, 1);
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #16A34A;
}

/* 主要容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 100px 40px 40px 40px; /* 顶部预留导航栏空间 */
    max-width: 1920px;
    margin: 0 auto;
}

/* 标题样式 */
h2, h3, h4 {
    color: #1E3A8A;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
}

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

table, th, td {
    border: 1px solid #E5E7EB;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #1E3A8A;
    color: #FFFFFF;
}

td {
    background-color: #F9FAFB;
}

/* 图片样式 */
img.decorative {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* 代码块样式 */
pre {
    background: #F3F4F6;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    margin-bottom: 20px;
}

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

code::before {
    content: '代码示例';
    display: block;
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 5px;
}

/* 卡片式设计样式 */
.card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    transition: max-height 0.5s ease;
    max-height: 500px;
}

.card.expanded {
    max-height: 1000px;
}

/* 加载动画样式 */
.loader {
    border: 4px solid #E5E7EB;
    border-top: 4px solid #1E3A8A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
        padding: 80px 20px 20px 20px;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    h4 {
        font-size: 16px;
    }
    p, table, pre {
        font-size: 14px;
    }
}

/* 点缀色样式 */
.accent {
    color: #16A34A;
}

/* 提示信息样式 */
.prompt {
    background: #FFFBEA;
    border-left: 4px solid #FCD34D;
    padding: 10px 20px;
    margin-bottom: 20px;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #F9FAFB;
    border: none;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #E5E7EB;
}

.content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* 提示文本样式 */
.banner {
    text-align: center;
    font-size: 18px;
    color: #FFFFFF;
    background-color: rgba(30, 58, 138, 0.8);
    padding: 20px 0;
    position: relative;
    z-index: 500;
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #1E3A8A;
    transition: fill 0.3s ease;
}

.icon:hover {
    fill: #16A34A;
}

/* 链接样式 */
a.internal-link {
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.internal-link:hover {
    color: #16A34A;
}

/* 下载链接样式 */
.download-link {
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: #16A34A;
}

/* 底部样式 */
.footer {
    background: #1E3A8A;
    color: #FFFFFF;
    text-align: center;
    padding: 40px 20px;
}

/* 过渡效果 */
.transition {
    transition: all 0.3s ease;
}

/* 其他装饰性元素 */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, #1E3A8A, #16A34A);
    margin: 40px 0;
}

/* 提示文字 */
.prompt-text {
    font-size: 16px;
    color: #FFFFFF;
    background-color: rgba(30, 58, 138, 0.9);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* 按钮样式 */
.button {
    background-color: #16A34A;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #15803D;
}


