
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #003366, #666666);
    color: #ffffff;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: rgba(0, 51, 102, 0.8);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #FFA500;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3CB371;
}

/* 主内容样式 */
.main {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    animation: aurora-move 15s linear infinite;
}

.section-content {
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section p {
    font-size: 16px;
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFA500;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #FF8C00;
}

/* 示例文章样式 */
.article-section {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
}

.article-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.article-section p {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.article-section code {
    color: #66D9EF;
    font-family: 'Courier New', Courier, monospace;
}

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

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

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

.article-section th {
    background-color: #333333;
}

.article-section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* 页脚样式 */
footer {
    background: rgba(0, 51, 102, 0.9);
    padding: 20px 40px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: #FFA500;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main {
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }

    nav ul li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .section {
        padding: 15px;
    }

    header h1 {
        font-size: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .article-section h2 {
        font-size: 20px;
    }

    .article-section p, .article-section pre, .article-section table {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .main {
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

