
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #212121, #000000);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 全局布局与容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(to right, #0D47A1, #4A148C);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 18px;
    margin-top: 10px;
    color: #76FF03;
}

/* 模块化卡片设计 */
.card {
    background: linear-gradient(to bottom, #1E1E1E, #000000);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FF6D00;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.card p {
    font-size: 16px;
    color: #BDBDBD;
    line-height: 1.8;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* 渐变按钮与交互效果 */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(to right, #76FF03, #FF6D00);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.button:hover {
    background: linear-gradient(to left, #76FF03, #FF6D00);
    transform: scale(1.1);
}

/* 文章样式 */
.article-container {
    background: linear-gradient(to bottom, #1E1E1E, #000000);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.article-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #76FF03;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.article-container p {
    font-size: 18px;
    color: #BDBDBD;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-container code {
    background: #0D47A1;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 16px;
}

.article-container pre {
    background: #1E1E1E;
    color: #76FF03;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-container th, .article-container td {
    border: 1px solid #76FF03;
    padding: 10px;
    text-align: left;
    color: #BDBDBD;
}

.article-container th {
    background: #0D47A1;
    color: #ffffff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 30px;
    }

    .card h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }

    .article-container code {
        white-space: normal;
        word-wrap: break-word;
    }
}

