
/* 
整体页面样式设计
本样式表使用CSS3技术，结合现代Web设计原则，旨在打造一个具有未来感与高级质感的响应式网页。设计过程中采用了线性渐变、阴影效果、关键帧动画和平滑过渡等高级特性，以实现丰富的视觉层次和沉浸式体验。
*/

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置默认字体和背景 */
body {
    font-family: 'PingFang SC', 'Roboto', sans-serif;
    font-size: 16px;
    color: #333333;
    background: linear-gradient(135deg, #2B6CB0 70%, #4A5568 25%, #ED8936 5%);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px; /* 为固定导航栏预留空间 */
}

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

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #ED8936;
}

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

/* 侧边栏样式 */
.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.sidebar:hover {
    transform: translateY(-5px);
}

.sidebar img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.sidebar img:hover {
    transform: scale(1.05);
}

/* 文章主内容样式 */
.main-content {
    flex: 3;
    min-width: 300px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.main-content:hover {
    transform: translateY(-5px);
}

.main-content h2, .main-content h3, .main-content h4 {
    color: #2B6CB0;
    margin-bottom: 10px;
}

.main-content h2 {
    font-size: 24px;
}

.main-content h3 {
    font-size: 20px;
}

.main-content h4 {
    font-size: 18px;
}

.main-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.main-content pre {
    background-color: #f5f5f5;
    padding: 10px;
    border-left: 4px solid #ED8936;
    overflow-x: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.main-content code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示信息样式 */
.alert {
    background-color: #ED8936;
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

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

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

/* 导航栏响应式 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* 选项卡样式 */
.tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 20px;
    border-bottom: 2px solid #4A5568;
}

.tabs li {
    margin-right: 15px;
}

.tabs li a {
    text-decoration: none;
    color: #2B6CB0;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.tabs li a:hover, .tabs li a.active {
    background-color: #2B6CB0;
    color: #ffffff;
    border-radius: 5px 5px 0 0;
}

/* 选项卡内容区域 */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* 卡片样式 */
.card {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-item {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 提示文本样式 */
.reference-note {
    font-size: 18px;
    color: #2B6CB0;
    text-align: center;
    margin: 30px 0;
    font-weight: bold;
}

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

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

.content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 资源下载区样式 */
.resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.resources a {
    text-decoration: none;
    color: #ffffff;
    background-color: #3498db;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.resources a:hover {
    background-color: #2980b9;
}

/* 反馈表单样式 */
.feedback-form {
    margin-top: 20px;
}

.feedback-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    resize: vertical;
}

.feedback-form button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2B6CB0;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.feedback-form button:hover {
    background-color: #1A4F8B;
}

/* 代码示例区样式 */
.code-example {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.code-example code {
    font-size: 14px;
}

/* 高级特效 */
.gradient-border {
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #2B6CB0, #4A5568, #ED8936);
}

.shadow-effect {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.transition-effect {
    transition: all 0.3s ease-in-out;
}

/* 页面响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
    }

    .main-content, .sidebar {
        width: 100%;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

