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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at center, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 标题样式 */
.header {
    text-align: center;
    padding: 50px 0;
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3em;
    color: #ff6ec7;
    text-shadow: 0 0 10px #ff6ec7, 0 0 20px #ff6ec7;
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 0 0 10px #ff6ec7, 0 0 20px #ff6ec7;
    }
    to {
        text-shadow: 0 0 20px #ff6ec7, 0 0 30px #ff6ec7;
    }
}

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

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6ec7;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar a:hover::after {
    width: 100%;
}

/* 主体内容样式 */
.main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    box-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.8);
}

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

.card h3 {
    color: #ff89ff;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95em;
}

/* 粒子动画 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('https://images.gptkong.com/demo/sample12.png') repeat;
    opacity: 0.1;
    animation: aurora-move 15s linear infinite;
}

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

/* 示例展示样式 */
.example-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.example-section h2 {
    color: #00f5d4;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px #00f5d4;
}

.example-section article {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

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

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

/* 底部样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #aaaaaa;
    font-size: 0.9em;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .card {
        flex: 1 1 calc(33.333% - 40px);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .card {
        flex: 1 1 100%;
    }
    .header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    .navbar a {
        font-size: 1em;
    }
}

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

