
/* 全局样式定义 */
:root {
    --main-bg-color: linear-gradient(135deg, #0a0a2a, #1e0c4f);
    --secondary-bg-color: rgba(255, 255, 255, 0.1);
    --highlight-color: linear-gradient(to right, #ff7e5f, #feb47b);
    --text-color: #e0e0e0;
    --font-title: 'Roboto Condensed', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--main-bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, #1e0c4f, #4a1c8c);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

header h1 {
    font-family: var(--font-title);
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1em;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #feb47b;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 100px 20px 40px;
    max-width: 1440px;
    margin: 0 auto;
}

.article-section {
    background: var(--secondary-bg-color);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    font-family: var(--font-title);
    font-size: 2em;
    color: #fff;
    margin-bottom: 15px;
}

.article-section p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-section pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d4d4d4;
}

.article-section code {
    color: #ff7e5f;
}

.highlight-text {
    background: var(--highlight-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.icon-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.icon-container img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease-in-out;
}

.icon-container img:hover {
    transform: scale(1.2);
}

footer {
    background: linear-gradient(90deg, #1e0c4f, #4a1c8c);
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    margin-top: 40px;
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .article-section {
        padding: 15px;
    }

    .icon-container {
        flex-direction: column;
        align-items: center;
    }
}

