
/* 基础页面样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #003366, #663399);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
a {
    color: #32CD32;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFA500;
}

/* 容器与布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}

/* 背景与动效 */
.header {
    position: relative;
    height: 100vh;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    animation: aurora-move 15s linear infinite;
}
@keyframes aurora-move {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}
.header-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.header-subtitle {
    font-size: 1.5rem;
    color: #ddd;
    margin-top: 10px;
}

/* 模块化设计 */
.module {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.module h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #FFD700;
}
.module p {
    font-size: 1rem;
    color: #eee;
}
.module img {
    max-width: 100%;
    border-radius: 10px;
}

/* 动画效果 */
.button {
    background-color: #32CD32;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #FFA500;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 自适应设计 */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    .header-subtitle {
        font-size: 1rem;
    }
    .card {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .module h2 {
        font-size: 1.5rem;
    }
}

/* 示例文章样式 */
.article-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}
.article-container pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article-container code {
    color: #FFD700;
    font-family: 'Courier New', monospace;
}

