
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: #00FFFF;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 10px #00FFFF;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

/* 首页沉浸式布局 */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
    animation: rotateBackground 10s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(90deg, #00FFFF, #FF00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px #fff;
    z-index: 1;
}

.cta-button {
    background: linear-gradient(90deg, #00FFFF, #FF00FF);
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.1);
}

/* 模块化卡片设计 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

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

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    color: #00FFFF;
}

.card-content {
    font-size: 1rem;
    color: #ccc;
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar a:hover {
    text-shadow: 0 0 5px #00FFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #00FFFF;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

