
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 背景渐变 */
    color: #ffffff; /* 全局文字颜色 */
    font-family: 'Roboto', sans-serif; /* 全局字体 */
    line-height: 1.6;
    overflow-x: hidden; /* 防止出现水平滚动条 */
}

/* 容器设置 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

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

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

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

.navbar a:hover {
    color: #FF7F50; /* 点缀色橙色 */
}

/* 主要内容区域 */
main {
    padding-top: 80px; /* 给固定导航栏留出空间 */
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

article h2, article h3, article h4 {
    color: #FFD700; /* 点缀色金色 */
}

article p {
    font-size: 16px;
    color: #f0f0f0;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

article th {
    background: #2a5298;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

article td {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    color: #e0e0e0;
}

article pre {
    background: #1e3c72;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

article code {
    color: #00FF7F; /* 点缀色绿松石 */
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 提示信息样式 */
.prompt {
    text-align: center;
    font-size: 18px;
    color: #FFD700;
    margin: 20px 0;
}

/* 互动区样式 */
.footer {
    background: rgba(42, 82, 152, 0.9);
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.footer-section a {
    color: #FF7F50;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #00FF7F;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 16px rgba(0,0,0,0.2);
}

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

.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF7F;
    font-size: 14px;
}

/* 折叠区域样式 */
.details-summary {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

details[open] .details-summary {
    background: rgba(255, 255, 255, 0.3);
}

details p {
    padding: 10px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }
    .navbar li {
        margin: 10px 0;
    }
}

@media (max-width: 500px) {
    article {
        padding: 15px;
    }
    .footer {
        flex-direction: column;
        align-items: center;
    }
}

