
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #1E3A8A 70%, #F97316 25%, #10B981 5%); /* 渐变背景，符合主色调比例 */
    color: #ffffff;
    box-sizing: border-box;
    overflow-x: hidden; /* 禁止水平滚动条 */
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 58, 138, 0.9); /* 半透明深蓝色背景 */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar a {
    color: #F97316; /* 亮橙色链接 */
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #10B981; /* 点缀色绿色 */
}

/* 浮动工具栏 */
.sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar a {
    background-color: #F97316;
    color: #ffffff;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    rel: "nofollow";
}

.sidebar a:hover {
    background-color: #10B981;
    transform: translateY(-5px);
}

/* 主内容容器 */
.container {
    max-width: 1200px;
    margin: 120px auto 50px auto; /* 顶部留出导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

/* 左侧图片区域 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.image-gallery img {
    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;
}

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

/* 文章内容区域 */
.article-content {
    background-color: rgba(30, 58, 138, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #F97316; /* 亮橙色标题 */
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-content code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.article-content pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-content table, .article-content th, .article-content td {
    border: 1px solid #ffffff;
}

.article-content th, .article-content td {
    padding: 10px;
    text-align: left;
}

.article-content th {
    background-color: rgba(255, 255, 255, 0.2);
}

.article-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 提示信息样式 */
.header-note {
    text-align: center;
    font-size: 18px;
    color: #F97316;
    margin-bottom: 40px;
    animation: fadeIn 2s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .navbar {
        padding: 15px 20px;
    }
    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }
    .article-content {
        padding: 20px;
    }
}

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

/* 代码块高亮样式 */
.article-content pre code {
    color: #F97316;
}

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

.collapsible:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.content p {
    margin: 10px 0;
}

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

.button:hover {
    background-color: #10B981;
    transform: scale(1.05);
}

/* 结尾样式 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(30, 58, 138, 0.9);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 点缀线条与装饰元素 */
.decorative-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #F97316, #10B981);
    margin: 20px 0;
    border: none;
}

/* 3D变换效果 */
.image-gallery img {
    transform: perspective(600px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.image-gallery img:hover {
    transform: perspective(600px) rotateY(10deg);
}

/* 阴影效果 */
.article-content h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.article-content h3 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

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

.article-content a:hover {
    color: #10B981;
}

/* 图片圆角和边框 */
.image-gallery img {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}


