
/* 全局样式与色彩定义 */
:root {
    --primary-color: #1e272e; /* 主色调 - 深蓝 */
    --secondary-color: #485460; /* 辅助色 - 灰蓝 */
    --accent-color: #56ccf2; /* 强调色 - 电光蓝 */
    --highlight-color: #3742fa; /* 高亮色 - 更深蓝 */
    --text-color: white;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 标题与装饰元素 */
h1, h2, h3 {
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

/* 不对称布局 */
.left-column {
    width: 60%;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.right-column {
    width: 35%;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: skewX(-10deg);
}

.right-column > * {
    transform: skewX(10deg);
}

/* 图片与视觉效果 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.1);
}

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

.button:hover {
    background: var(--highlight-color);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
        transform: none;
    }

    .right-column > * {
        transform: none;
    }
}

/* 文章排版 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

