
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: radial-gradient(circle, rgba(10,10,10,1) 0%, rgba(0,0,0,1) 100%);
    color: #FFFFFF;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-bottom: 2px solid #FF6F61;
}

header h1 {
    font-size: 3em;
    color: #FFFFFF;
    text-shadow: 0 0 10px #FF6F61, 0 0 20px #FF6F61;
}

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

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

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FF6F61;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

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

nav a:hover {
    color: #FF6F61;
}

/* 主内容样式 */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px 0;
}

/* 文章展示 */
.article-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 111, 97, 0.5);
}

.article-section h2 {
    font-size: 2.5em;
    color: #FF6F61;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #FF6F61;
}

.article-section h3 {
    font-size: 2em;
    color: #6a11cb;
    margin-top: 30px;
}

.article-section p {
    font-size: 1.1em;
    color: #FFFFFF;
    margin: 15px 0;
}

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

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

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

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

.article-section th {
    background: #2575fc;
    color: #FFFFFF;
}

.article-section ul {
    list-style: disc inside;
    margin: 15px 0;
}

.article-section li {
    margin: 10px 0;
}

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
    box-shadow: 0 0 10px #2575fc;
}

/* 示例展示 */
.sample-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-left: 5px solid #FF6F61;
    margin: 40px 0;
}

.sample-display::before {
    content: "示例展示";
    font-size: 1.2em;
    color: #FF6F61;
    display: block;
    margin-bottom: 10px;
}

.sample-display pre {
    background: #2c2c2c;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 脚注样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: #FFFFFF;
    font-size: 1em;
}

footer p {
    margin: 0;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 1.2em;
    color: #FF6F61;
    margin: 20px 0;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FF6F61;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.button:hover {
    background: #e65c54;
}

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

.background-animated {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

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

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

    .article-section h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    nav a {
        font-size: 1em;
    }
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }

    .image-gallery {
        justify-content: center;
    }
}

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

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-section {
        padding: 20px;
    }
}

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

    nav a {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .article-section h2 {
        font-size: 1.8em;
    }

    .article-section h3 {
        font-size: 1.5em;
    }
}

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

    nav a {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .article-section h2 {
        font-size: 1.5em;
    }

    .article-section h3 {
        font-size: 1.2em;
    }

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

/* 交互动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.neon-border {
    border: 2px solid #FF6F61;
    box-shadow: 0 0 10px #FF6F61, 0 0 20px #FF6F61, 0 0 30px #FF6F61;
    border-radius: 5px;
}

.gradient-text {
    background: linear-gradient(45deg, #FF00CC, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: transparent;
}

