
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    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;
    background: rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 48px;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    color: #ddd;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a:hover {
    color: #0ff;
}

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

/* 主内容区样式 */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: #0ff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 卡片样式 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

/* 卡片图像 */
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 卡片标题 */
.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #0ff;
}

/* 卡片描述 */
.card p {
    font-size: 16px;
    color: #ccc;
}

/* 列表样式 */
.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* 示例展示样式 */
.example-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #ff6347;
}

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

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

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

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .card-grid {
        justify-content: space-around;
    }
}

@media (max-width: 1024px) {
    nav a {
        font-size: 14px;
    }
    .card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 32px;
    }
    .section-title {
        font-size: 24px;
    }
    nav a {
        margin: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 24px;
    }
    .section-title {
        font-size: 20px;
    }
    .card {
        padding: 15px;
    }
}

