
/* 基础样式与全局变量定义 */
:root {
    --primary-color: #000;
    --secondary-color: #1a1a1a;
    --accent-color-1: #4b0082;
    --accent-color-2: #00ffff;
    --accent-color-3: #39ff14;
    --text-shadow-light: 0 0 10px var(--accent-color-2), 0 0 20px var(--accent-color-3);
}

body {
    background-color: var(--primary-color);
    color: white;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 页面布局与容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2), var(--accent-color-3));
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    text-shadow: var(--text-shadow-light);
    margin: 0;
}

section {
    margin-bottom: 40px;
}

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

.module {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: scale(1.05);
}

/* 图片与装饰元素 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.city-scape {
    position: relative;
    width: 100%;
    height: 200px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / cover;
}

.city-scape::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* 按钮与交互效果 */
button {
    background: var(--accent-color-1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-color-2);
}

/* 文章排版与代码块样式 */
article h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

article p {
    font-size: 1rem;
    margin-bottom: 15px;
}

pre {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: var(--accent-color-2);
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

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

@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }

    h1 {
        font-size: 2rem;
    }
}

