
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #E5E7EB;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FACC15;
    margin-top: 2rem;
}

p, li {
    font-size: 1rem;
    color: #D1D5DB;
}

a {
    color: #F59E0B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFED4A;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    gap: 2rem;
}

/* 头部设计 */
header {
    background: linear-gradient(to right, #1E293B, #0F172A);
    border-bottom: 2px solid #FACC15;
    padding: 1rem 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #FACC15;
    font-weight: bold;
}

/* 主体内容 */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.article-section h2 {
    color: #F59E0B;
    margin-bottom: 1rem;
}

.article-section p {
    margin-bottom: 1rem;
}

.code-block {
    background: #1E293B;
    border: 2px solid #FACC15;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #FACC15;
}

/* 图片与装饰 */
.decorative-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* 按钮样式 */
button {
    background: linear-gradient(to right, #FFED4A, #F59E0B);
    border: 2px solid #FACC15;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 187, 0, 0.5);
}

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

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

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

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.5rem;
    }

    .code-block {
        font-size: 0.9rem;
    }
}

/* 特殊提示 */
.notice {
    background: #1E293B;
    color: #FACC15;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

