
/* 全局样式设置 */
/* 设置网页的基础字体、背景色和文本颜色 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 主字体 */
    font-size: 16px; /* 正文字号 */
    line-height: 1.6;
    color: #ffffff; /* 主要文本颜色 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 主色调渐变背景 */
}

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

/* 头部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8); /* 半透明背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.navbar a:hover {
    color: #00c6ff; /* 点缀色悬停效果 */
}

/* 主要内容区域样式 */
.main-content {
    padding-top: 80px; /* 避免被固定导航栏遮挡 */
    padding-left: 20px;
    padding-right: 20px;
}

/* 显著提示文字样式 */
.highlight-text {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0;
    color: #00c6ff; /* 点缀色 */
}

/* 文章内容样式 */
article {
    background: rgba(30, 30, 30, 0.9); /* 深色背景 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 标题样式 */
article h2, article h3, article h4 {
    color: #00c6ff; /* 点缀色标题 */
    margin-bottom: 15px;
}

article h2 {
    font-size: 1.8em;
}

article h3 {
    font-size: 1.6em;
}

article h4 {
    font-size: 1.4em;
}

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

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

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

article table th {
    background: #2a5298; /* 辅助色 */
    color: #ffffff;
}

article table td {
    background: #1e1e1e;
    color: #ffffff;
}

/* 代码块样式 */
.code-block {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-block code {
    color: #00c6ff;
    font-size: 14px;
}

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

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

/* 卡片式布局样式 */
.card {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #00c6ff;
}

.card-description {
    font-size: 1em;
    color: #bbbbbb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        margin: 10px 0;
    }

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

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

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

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

.collapsible:hover {
    background: #00c6ff;
    color: #000000;
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1e1e1e;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 搜索框样式 */
.search-box input {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 150px;
}

.search-box input:focus {
    width: 250px;
    outline: none;
}

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

a:hover {
    color: #ffffff;
}

/* 高级布局技巧 */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 装饰性渐变线条 */
.gradient-line {
    height: 4px;
    background: linear-gradient(90deg, #00c6ff, #2a5298);
    margin: 20px 0;
    border-radius: 2px;
}

/* 文字阴影 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 其他细节样式 */
.footer {
    background: #2a5298;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* 螺旋动画示例 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00c6ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rotate 1s linear infinite;
    margin: 20px auto;
}

