
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体，确保易读性 */
    background: linear-gradient(135deg, #1E3A8A 70%, #6B7280 25%, #F97316 5%); /* 背景渐变，符合主辅点比例 */
    color: #FFFFFF; /* 全局文字颜色为白色，增强可读性 */
    line-height: 1.6;
}

/* 容器设置，采用响应式网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

/* 文章标题样式 */
h2, h3, h4 {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 增加标题阴影，提升视觉效果 */
    margin-bottom: 20px;
}

/* 段落样式 */
p {
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 20px;
    background-color: rgba(30, 58, 138, 0.8); /* 半透明背景，增强阅读舒适度 */
    padding: 15px;
    border-radius: 8px;
}

/* 代码块样式，区别于正文 */
pre {
    background-color: #2D3748;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

code {
    color: #F59E0B;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

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

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

th {
    background-color: #1E3A8A;
}

tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 图片装饰样式 */
.image-decorated {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-decorated:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

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

.navbar.scrolled {
    background-color: rgba(30, 58, 138, 0.95);
}

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

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

/* 按钮样式 */
.button {
    background: linear-gradient(135deg, #F97316, #F59E0B);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    transform: scale(1.05);
}

/* 提示信息样式 */
.notification {
    background-color: #F97316;
    color: #1E3A8A;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 互动效果 - 悬停 */
.interactive:hover {
    color: #F59E0B;
    text-decoration: underline;
}

/* 固定宽度下的容器调整 */
@media (max-width: 500px) {
    .container {
        padding: 20px;
    }
    p {
        font-size: 14px;
    }
}

/* 响应式图片 */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 关键帧动画 - 加载进度条 */
@keyframes load {
    from { width: 0; }
    to { width: 100%; }
}

/* 进度条样式 */
.progress-bar {
    width: 0;
    height: 4px;
    background-color: #F97316;
    animation: load 3s forwards;
}

/* 折叠内容样式 */
.collapsible {
    background-color: rgba(30, 58, 138, 0.8);
    color: #FFFFFF;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.active, .collapsible:hover {
    background-color: #F59E0B;
}

.content {
    padding: 0 15px;
    display: none;
    background-color: rgba(30, 58, 138, 0.6);
    overflow: hidden;
    border-radius: 4px;
}

/* 样式设计参考提示 */
.style-reference {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(249, 115, 22, 0.9);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    z-index: 1000;
}

/* 使用jQuery支持的样式 */
.jq-supported {
    /* 示例样式 */
    cursor: pointer;
}

