
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #333333;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 响应式容器 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 文章标题样式 */
article h2 {
    font-size: 2em;
    color: #2a5298;
    margin-bottom: 20px;
    text-align: center;
}

/* 文章副标题样式 */
article h3 {
    font-size: 1.5em;
    color: #2a5298;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* 段落样式 */
article p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

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

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #d14;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 4px;
}

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

article th, article td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

article th {
    background-color: #2a5298;
    color: #ffffff;
}

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

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

article img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

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

button:hover {
    background-color: #ff5722;
}

/* 导航栏样式 */
.navbar {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    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: 1.1em;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff7f50;
}

/* 主题提示样式 */
.theme-note {
    text-align: center;
    font-size: 1.2em;
    color: #ffffff;
    margin: 100px 0 40px 0;
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    article h2 {
        font-size: 1.5em;
    }

    article h3 {
        font-size: 1.2em;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }
}

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

article {
    animation: fadeIn 1s ease-in;
}

/* 折叠内容样式 */
.collapsible-content {
    display: none;
    margin-top: 10px;
}

.collapsible-content.active {
    display: block;
}

/* 按钮展开样式 */
.collapsible-button::after {
    content: ' ▼';
    font-size: 0.8em;
}

.collapsible-button.active::after {
    content: ' ▲';
}

/* 代码示例框样式 */
.code-sample {
    background-color: #2a5298;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

/* 提示信息样式 */
.notice {
    background-color: rgba(255, 127, 80, 0.1);
    padding: 15px;
    border-left: 5px solid #ff7f50;
    margin-bottom: 20px;
}

/* Footer样式 */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #2a5298;
    color: #ffffff;
}

/* 链接样式 */
a[rel="nofollow"] {
    color: #ff7f50;
    text-decoration: none;
}

a[rel="nofollow"]:hover {
    text-decoration: underline;
}

