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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bodoni', serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to right, #ff4500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

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

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

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

button {
    background: linear-gradient(to right, #ff00ff, #8a2be2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

code {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 10px 0;
}

pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.vintage-texture {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

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

    button {
        width: 100%;
    }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.loader {
    animation: scanline 2s infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff00ff;
}

.page-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 255, 0.1),
        rgba(255, 0, 255, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: -1;
}

/* 自适应布局 */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    code {
        font-size: 0.8rem;
    }
}

