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

/* 设置全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundMove 15s linear infinite;
}

/* 渐变背景动画 */
@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #000428, #004e92);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ff8a00;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
}

/* 标题样式 */
.header-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 模块化卡片布局 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    color: #f0f0f0;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.button:hover {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
}

/* 文章展示区域 */
.article-section {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.article-section h2, .article-section h3 {
    color: #ffffff;
}

.article-section p {
    margin: 15px 0;
    color: #f0f0f0;
}

.article-section pre {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.article-section code {
    color: #ff8a00;
    font-family: 'Courier New', Courier, monospace;
}

/* 表格样式 */
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-section th, .article-section td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

.article-section th {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.article-section td {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }

    .header-title {
        font-size: 2.5rem;
    }

    .card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .card {
        width: 100%;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .header-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        width: 100%;
    }

    .header-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 10px 20px;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 视觉提示 */
.reference-note {
    text-align: center;
    margin-top: 50px;
    font-size: 1rem;
    color: #ffffff;
}

/* 隐藏链接属性提示 */
a[rel="nofollow"]::after {
    content: "";
}

/* 图片装饰样式 */
.decorative-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.decorative-images img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

