
/* 全局样式与基础布局 */
:root {
    --main-bg: linear-gradient(135deg, #0A192F, #1E3A8A);
    --accent-color: #B58863;
    --text-light: #D6DEEB;
    --shadow: rgba(0, 0, 0, 0.2);
    --module-bg: #1C2941;
}

body {
    margin: 0;
    font-family: 'Futura', sans-serif;
    color: var(--text-light);
    background: var(--main-bg);
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-top: 2rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B6D3B;
}

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

.module {
    background: var(--module-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
    position: relative;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 按钮样式 */
button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 4px;
}

button:hover {
    background-color: #8B6D3B;
}

button:active {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* 图标与代码块样式 */
svg.icon {
    fill: var(--accent-color);
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

svg.icon:hover {
    transform: scale(1.2);
}

pre {
    background: #1C2941;
    color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

code {
    background: #1C2941;
    padding: 2px 5px;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1, h2, h3, h4 {
        font-size: 1.5rem;
    }

    p, li {
        font-size: 0.9rem;
    }
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.quantum-background {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, #1E3A8A, transparent);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

