
/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, rgba(15, 22, 36, 1) 0%, rgba(255, 0, 255, 0.8) 70%, rgba(122, 0, 181, 0.6) 100%);
    color: #ffffff;
    line-height: 1.6;
    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, #0F1624, #7A00B5);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #FF00FF;
    text-shadow: 0 0 10px #FF00FF, 0 0 20px #FF00FF, 0 0 30px #FF00FF;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2em;
    color: #CCCCCC;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

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

nav a:hover {
    color: #FF00FF;
    text-shadow: 0 0 10px #FF00FF;
}

/* 主要内容区域 */
main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

aside {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

aside h2 {
    font-family: 'Orbitron', sans-serif;
    color: #FF00FF;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #FF00FF;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

aside ul li a:hover {
    color: #7A00B5;
}

.article-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: #FF00FF;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #FF00FF;
}

.article-content h3 {
    color: #FF00FF;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #FF00FF;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #EEEEEE;
}

.article-content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 5px;
    color: #00FFEA;
    font-family: 'Courier New', Courier, monospace;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

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

.article-content th {
    background: rgba(255, 0, 255, 0.2);
}

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

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

.image-gallery img {
    width: 100%;
    max-width: 160px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    background: #FF00FF;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1em;
}

.button:hover {
    background: #7A00B5;
    box-shadow: 0 0 20px #FF00FF;
    transform: scale(1.1);
}

/* 脚注样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #7A00B5, #FF00FF);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

footer p {
    color: #FFFFFF;
    font-size: 0.9em;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

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

    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    header {
        padding: 40px 0;
    }

    nav {
        gap: 20px;
    }

    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 2em;
    }

    .article-content {
        padding: 20px;
    }

    .image-gallery img {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-content h2 {
        font-size: 2em;
    }

    .image-gallery img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .image-gallery img {
        max-width: 100px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    .article-content {
        padding: 15px;
    }

    nav a {
        font-size: 0.9em;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .image-gallery img {
        max-width: 80px;
    }
}

