
/* 页面整体样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #121212, #222222);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}
p {
    color: #DDDDDD;
    font-size: 16px;
}
a {
    color: #00FF7F;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    text-shadow: 0 0 10px #00FF7F;
}

/* 首屏动态背景 */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #1A1A1A, #000000);
    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) 10%, transparent 10.01%) 0 0,
                radial-gradient(circle, rgba(0, 255, 255, 0.2) 10%, transparent 10.01%) 50px 50px;
    background-size: 100px 100px;
    animation: flow 10s linear infinite;
}
@keyframes flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}
.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 3rem;
    z-index: 10;
}

/* 卡片式布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 20px;
}
.card {
    background: #222222;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 255, 255, 0.3);
}
.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    background-color: #00FFFF;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.button:hover {
    box-shadow: 0 0 10px #00FFFF;
}

/* 代码块样式 */
pre {
    background: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    color: #00FF7F;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .card img {
        width: 100%;
        height: auto;
    }
}

/* 动态粒子效果 */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #00FFFF;
    border-radius: 50%;
    animation: particle 3s infinite;
}
@keyframes particle {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-50px, -50px); opacity: 0; }
}

