
/* 全局样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面背景与字体 */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 主色调渐变背景 */
    color: #ffffff; /* 文字颜色设为白色 */
    font-family: 'Roboto', Arial, sans-serif; /* 使用现代无衬线字体 */
    line-height: 1.6;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 玻璃拟态效果 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* 阴影效果 */
}

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

.navbar a:hover {
    color: #00c6ff; /* 高亮颜色 */
}

/* 面包屑导航样式 */
.breadcrumb {
    list-style: none;
    display: flex;
    margin: 80px 0 20px 0; /* 留出导航栏空间 */
}

.breadcrumb li {
    margin-right: 10px;
    font-size: 14px;
}

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

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

/* 文章主体样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1); /* 玻璃拟态背景 */
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

article h2, article h3 {
    color: #00c6ff;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #d1d1d1;
}

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

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

/* 代码块样式 */
pre code {
    display: block;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    position: relative;
}

pre code::before {
    content: 'CSS 示例代码';
    position: absolute;
    top: -25px;
    left: 10px;
    background: #00c6ff;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* 卡片式布局 */
.card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

.card-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-content {
    font-size: 1rem;
    color: #d1d1d1;
}

/* 响应式网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 最小宽度500px */
    gap: 20px;
    padding: 20px;
}

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

    .breadcrumb {
        flex-direction: column;
    }

    .breadcrumb li::after {
        content: '';
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.cta-button {
    background: linear-gradient(45deg, #ff6a00, #ee0979); /* 渐变背景 */
    border: none;
    border-radius: 50px;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: linear-gradient(45deg, #ee0979, #ff6a00); /* 背景颜色反转 */
    transform: translateY(-5px); /* 上移效果 */
}

/* 高亮文字 */
.highlight {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* 可折叠区域样式 */
.collapsible {
    background-color: rgba(255, 255, 255, 0.1);
    color: #d1d1d1;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.collapsible:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

