
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #000428, #004e92);
    border-bottom: 2px solid #ffffff;
}

header h1 {
    font-size: 3em;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #ffcc00;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区 */
main {
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 模块样式 */
.section {
    flex: 1 1 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.section:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffcc00;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.section p {
    font-size: 1em;
    line-height: 1.6;
    color: #ffffff;
}

/* 按钮样式 */
button {
    background-color: #007BFF;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background-color: #0056b3;
    box-shadow: 0 0 10px #ffcc00;
}

/* 示例文章样式 */
.article-section {
    width: 100%;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.article-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffcc00;
    text-align: center;
}

.article-section h3 {
    font-size: 1.8em;
    margin-top: 20px;
    color: #ffffff;
}

.article-section p {
    font-size: 1em;
    line-height: 1.8;
    color: #dddddd;
}

.article-section ul {
    list-style: disc;
    margin-left: 20px;
    color: #dddddd;
}

.article-section pre {
    background: #1e3c72;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-section code {
    color: #ffcc00;
    font-family: 'Fira Sans', sans-serif;
}

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

.article-section th, .article-section td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

.article-section th {
    background: #004e92;
}

.article-section td {
    background: rgba(255, 255, 255, 0.1);
}

/* 图片样式 */
.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.img-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

/* 提示信息 */
.notice {
    text-align: center;
    font-size: 1.2em;
    color: #ffcc00;
    margin: 40px 0;
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    main {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .section {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .section {
        flex: 1 1 100%;
    }
    .article-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    nav a {
        font-size: 1em;
    }
    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .article-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    nav a {
        font-size: 0.9em;
    }
    .section h2 {
        font-size: 1.5em;
    }
    .article-section h3 {
        font-size: 1.5em;
    }
}

