
/* 全局样式设置 */
:root {
    /* 颜色变量定义 */
    --primary-color: #0D47A1; /* 主色调：深蓝色 */
    --secondary-color: #1976D2; /* 辅色调：蓝色 */
    --accent-color: #FF9800; /* 点缀色：橙色 */
    --background-primary: linear-gradient(135deg, #f0f4f8, #d9e2ec); /* 背景主色渐变 */
    --font-primary: 'Open Sans', sans-serif; /* 正文字体 */
    --font-secondary: 'Roboto', sans-serif; /* 标题字体 */
    --text-color: #333333; /* 正文字体颜色 */
    --header-color: #111111; /* 标题字体颜色 */
}

/* 全局字体与背景 */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: var(--background-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航链接样式 */
.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 面包屑导航样式 */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 20px 30px;
}

.breadcrumb li {
    color: var(--primary-color);
}

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: #777;
}

.breadcrumb li:last-child::after {
    content: '';
}

/* 容器样式 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    padding: 120px 40px 40px 40px; /* 考虑到固定导航栏的高度 */
}

/* 玻璃拟态卡片样式 */
.card, .module, .insight-card, .testimonial, .dashboard-widget {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .module:hover, .insight-card:hover, .testimonial:hover, .dashboard-widget:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* 按钮样式 */
.button {
    background-color: var(--accent-color);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

article h2, article h3 {
    font-family: var(--font-secondary);
    color: var(--header-color);
    margin-top: 20px;
}

article p {
    font-size: 16px;
    margin: 15px 0;
    text-align: justify;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    color: #f8f8f2;
    padding: 15px;
    border-radius: 10px;
    overflow: auto;
    position: relative;
    margin: 20px 0;
}

pre::before {
    content: '代码示例';
    position: absolute;
    top: -25px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    font-family: var(--font-secondary);
    font-size: 14px;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap;
}

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

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

/* 宣传提示样式 */
.promo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--accent-color);
    padding: 15px 20px;
    margin: 30px 0;
    font-size: 18px;
    color: var(--primary-color);
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .nav-links a {
        margin: 10px 0;
    }
    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
        padding: 120px 20px 20px 20px;
    }
    article {
        padding: 20px;
    }
    .promo {
        font-size: 16px;
    }
}

