
/* 全局样式设置 */
/* 设置页面背景为深色渐变，采用蓝紫色调，增加科技感与现代感 */
body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

/* 主要内容区域的样式 */
.main-content {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 卡片式设计 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
.button {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background: linear-gradient(90deg, #feb47b, #ff7e5f);
}

/* 图片装饰样式 */
.decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 渐变分隔线 */
.divider {
    height: 2px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    margin: 40px 0;
}

/* 代码块样式 */
code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

table, th, td {
    border: 1px solid #feb47b;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        margin: 5px 0;
    }

    .main-content {
        padding: 80px 15px 40px 15px;
    }

    .card {
        padding: 15px;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    .decorative-image {
        max-width: 100%;
    }

    table, th, td {
        font-size: 14px;
    }
}

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

.section {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航系统样式 */
.nav-section {
    margin-bottom: 30px;
}

.nav-section a {
    display: inline-block;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.nav-section a:hover {
    background: linear-gradient(45deg, #feb47b, #ff7e5f);
}

/* 点缀色使用 */
.accent {
    color: #feb47b;
}

/* 确保所有内部链接都有 rel="nofollow" */
a {
    rel: nofollow;
}

