
/* 基础样式重置，确保在不同浏览器中表现一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主体字体和背景色设定 */
body {
    font-family: 'Oswald', sans-serif;
    color: #333333;
    background: linear-gradient(135deg, #2a5298 70%, #1e3c72 25%, #ff9933 5%);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.9);
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

.navbar a:hover {
    background: #1e3c72;
    border-radius: 5px;
}

/* 下拉菜单样式 */
.navbar li ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #2a5298;
    border-radius: 5px;
    overflow: hidden;
}

.navbar li:hover ul {
    display: block;
}

.navbar li ul li a {
    padding: 10px 20px;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin: 100px 20px 20px;
    font-size: 0.9rem;
    color: #555555;
}

.breadcrumb span {
    color: #2a5298;
}

/* 主要内容区样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 模块化网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.grid-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
}

/* 图片样式 */
img.decorative {
    width: 100%;
    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);
}

/* 代码块样式 */
pre code {
    display: block;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #d63384;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    color: #1e3c72;
    margin-bottom: 15px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

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

/* 按钮样式 */
.btn {
    background: #2a5298;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #1e3c72;
    transform: scale(1.05);
}

/* 折叠界面样式 */
.collapsible {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.content {
    display: none;
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }

    .navbar ul {
        flex-direction: column;
    }

    .breadcrumb {
        margin: 120px 10px 10px;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    p {
        font-size: 15px;
    }

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

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

/* 强调文本 */
em {
    color: #ff9933;
    font-style: normal;
    font-weight: bold;
}

/* 链接样式 */
a.internal-link {
    color: #2a5298;
    text-decoration: none;
}

a.internal-link:hover {
    text-decoration: underline;
}

/* 菜单箭头 */
.navbar li::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 5px;
    display: none;
}

.navbar li:hover::after {
    display: inline;
}

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

table th, table td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

table th {
    background-color: #2a5298;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 列表样式 */
ol, ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

