
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Fira+Code&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at center, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff;
}

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

/* 提示信息 */
header .notice {
    font-size: 1em;
    color: #ffcc00;
    margin-top: 10px;
}

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

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

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

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

/* 主内容布局 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.left-panel, .right-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.left-panel {
    flex: 1 1 300px;
}

.right-panel {
    flex: 2 1 600px;
    position: relative;
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.3), transparent);
    pointer-events: none;
}

/* 信息卡片 */
.info-card {
    margin-bottom: 20px;
}

.info-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #00d2ff;
}

.info-card p {
    font-size: 1em;
    color: #cccccc;
}

/* AI生成窗口 */
.ai-window {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    overflow-y: auto;
}

.ai-window h3 {
    font-size: 1.5em;
    color: #ff6ec7;
    margin-bottom: 10px;
}

.ai-window p {
    font-size: 1em;
    color: #dddddd;
}

/* 文章展示 */
.article-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

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

.article-section article {
    max-width: 100%;
    overflow: auto;
}

.article-section h3, .article-section h4 {
    color: #00d2ff;
}

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

.article-section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Fira Code', monospace;
    color: #00ffea;
}

/* 挑战与社区 */
.community-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.community-item, .challenge-item, .custom-item, .ai-art-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 300px;
    backdrop-filter: blur(10px);
}

.community-item h3, .challenge-item h3, .custom-item h3, .ai-art-item h3 {
    color: #ff6ec7;
    margin-bottom: 10px;
}

.community-item p, .challenge-item p, .custom-item p, .ai-art-item p {
    color: #cccccc;
    font-size: 1em;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00d2ff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.button:hover {
    background: #ff6ec7;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
    opacity: 0;
}

.button:active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

/* 图像样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

/* 动画 */
@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.5);
    }
}

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

/* 背景粒子 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

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

    .main-content {
        flex-direction: column;
    }

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

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

    header h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 1024px) {
    .left-panel, .right-panel {
        flex: 1 1 100%;
    }
}

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

    nav {
        flex-direction: column;
    }

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

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

    .button {
        padding: 8px 16px;
    }

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

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

    .info-card h3, .ai-window h3 {
        font-size: 1.2em;
    }
}

