
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0074FF, #2C3E50);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    width: 100%;
    padding: 20px;
    background: rgba(44, 62, 80, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
    display: flex;
}

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

header nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: #2ECC71;
}

/* 主视觉部分 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, rgba(0, 116, 255, 0.8), transparent);
    animation: aurora-move 15s linear infinite;
}

.hero h1 {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 内容模块 */
.section {
    padding: 80px 20px;
    background: rgba(44, 62, 80, 0.9);
}

.section:nth-child(even) {
    background: rgba(40, 55, 71, 0.9);
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.section p {
    font-size: 18px;
    color: #ECF0F1;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.section .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #2C3E50;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #BDC3C7;
}

/* 示例展示 */
.article-section {
    padding: 80px 20px;
    background: rgba(32, 47, 65, 0.95);
}

.article-section h2 {
    font-size: 28px;
    color: #2ECC71;
    text-align: center;
    margin-bottom: 20px;
}

.article-section article {
    max-width: 1000px;
    margin: 0 auto;
    background: #34495E;
    padding: 30px;
    border-radius: 10px;
}

.article-section article h2,
.article-section article h3,
.article-section article h4 {
    color: #FFD700;
    margin-bottom: 15px;
}

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

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

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

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #FFD700;
    color: #2C3E50;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}
.button:hover {
    transform: scale(1.05);
    background-color: #2ECC71;
    color: #FFFFFF;
}

/* 底部样式 */
footer {
    padding: 20px;
    background: rgba(44, 62, 80, 0.8);
    text-align: center;
    color: #BDC3C7;
}

footer p {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 1200px) {
    .section h2 {
        font-size: 28px;
    }
    .card h3 {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    header .logo {
        font-size: 20px;
    }
    header nav ul li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .section h2 {
        font-size: 24px;
    }
    .card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    header nav {
        display: none;
    }
    .hero h1 {
        font-size: 24px;
    }
    .section h2 {
        font-size: 20px;
    }
    .card h3 {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 20px;
    }
    .section h2 {
        font-size: 18px;
    }
    .card h3 {
        font-size: 14px;
    }
}

