
/* 基础配色方案 */
:root {
    --primary-bg-color: #121212; /* 深灰色背景 */
    --secondary-bg-color: #1E1E1E; /* 较亮的深灰用于分隔块 */
    --accent-color-1: #4CAF50; /* 霓虹绿色点缀 */
    --accent-color-2: #6A5ACD; /* 深紫色点缀 */
    --accent-color-3: #00CED1; /* 青色点缀 */
    --text-color: #FFFFFF; /* 浅色文字 */
    --header-height: 60px;
    --footer-height: 40px;
    --transition-speed: 0.3s;
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-bg-color), #1A1A1A);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color-2);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.header-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color-3);
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    font-size: 1em;
    font-weight: 500;
}

main {
    padding: var(--header-height) 20px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--accent-color-2);
}

.section p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.code-block {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF7F;
    margin-bottom: 20px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    transition: transform var(--transition-speed);
}

.image-gallery img:hover {
    transform: scale(1.05);
}

button {
    background-color: var(--accent-color-1);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

button:hover {
    background-color: var(--accent-color-2);
    transform: scale(1.05);
}

footer {
    height: var(--footer-height);
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AAAAAA;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 1440px) {
    main {
        max-width: 1000px;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    .section h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    .section h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 320px) {
    body {
        padding: 0 10px;
    }
    button {
        width: 100%;
    }
}

