
/* 总体布局与基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用无衬线字体 */
    background: linear-gradient(135deg, #0F4C81 70%, #666666 25%, #FFFFFF 5%); /* 主色调与渐变背景 */
    color: #333333;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0F4C81;
    color: #FFFFFF;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

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

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 50px 20px; /* 预留导航栏空间 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面标题 */
.header-title {
    font-size: 2.5em;
    color: #0F4C81;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

/* 提示信息 */
.reference-note {
    font-size: 1.2em;
    color: #FF9900;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
}

/* 文章样式 */
article {
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}

/* 文章标题 */
article h2, article h3 {
    color: #0F4C81;
    margin-bottom: 15px;
}

article h2 {
    font-size: 2em;
}

article h3 {
    font-size: 1.5em;
    margin-top: 25px;
}

/* 文章段落 */
article p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333333;
}

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

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #0F4C81;
}

/* 按钮样式 */
.button-primary {
    background: linear-gradient(45deg, #FF9900, #34C759);
    border: none;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图片装饰样式 */
.decorative-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 响应式网格布局 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 关键帧动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 代码块高亮样式 */
.highlight-code {
    background-color: #2D2D2D;
    color: #FAFAFA;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

/* 按需添加的其他样式 */
/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* 链接样式 */
a {
    color: #FF9900;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #34C759;
}

/* 标题与段落的间距 */
h4 {
    font-size: 1.2em;
    color: #0F4C81;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #F5F5F5;
    color: #0F4C81;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin-bottom: 10px;
}

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

.content-collapsible {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #FFFFFF;
    border-left: 3px solid #FF9900;
    margin-bottom: 20px;
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #34C759;
    color: #FFFFFF;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: none;
}

.scroll-top:hover {
    background-color: #FF9900;
    transform: scale(1.1);
}

/* 动态加载动画 */
.loading-spinner {
    border: 6px solid #F3F3F3;
    border-top: 6px solid #0F4C81;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

/* 表单元素样式 */
input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #34C759;
    outline: none;
}

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

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

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

th {
    background-color: #F5F5F5;
    color: #0F4C81;
}

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

/* 动画过渡效果 */
.fade-in {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

