
/* 全局样式定义 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    line-height: 1.6;
}

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

header {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,143,0.2) 10%, transparent 10.01%) -50px -50px,
                radial-gradient(circle, rgba(255,105,180,0.2) 10%, transparent 10.01%) 50px 50px;
    animation: particleFlow 15s linear infinite;
}

@keyframes particleFlow {
    0% { transform: translate(-20%, -20%); }
    100% { transform: translate(20%, 20%); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.title-main {
    font-family: 'Neometric', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    color: #00ff8f;
    text-shadow: 0 0 20px #00ff8f;
    position: relative;
    z-index: 2;
    margin-top: 25vh;
}

.subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.grid-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.item-title {
    font-size: 1.5rem;
    color: #00ff8f;
    position: relative;
    z-index: 2;
}

.item-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ff8f;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: #00e676;
}

.loading-spinner {
    border: 4px solid rgba(0, 255, 143, 0.3);
    border-top: 4px solid #00ff8f;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

code {
    display: block;
    background: #0f0c29;
    color: #00ff8f;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

footer {
    background: linear-gradient(135deg, #24243e, #302b63);
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    code {
        font-size: 0.8rem;
    }
}

