
/* 
整体页面样式设计
此样式表采用玻璃拟态设计风格，融合未来感与高级质感，使用CSS3高级特性实现色彩丰富、沉浸感强的视觉效果。页面布局采用Flexbox和Grid布局，确保响应式设计，从320px到1920px的屏幕宽度均能良好适配。色彩搭配遵循黄金比例配色法则，主色为冷色系蓝色与青色渐变，占70%；辅色为灰色，占25%；点缀色采用亮橙色与电光蓝，占5%。通过线性渐变、box-shadow、text-shadow、关键帧动画和平滑过渡等技术，营造出层次分明、视觉张力十足的科技美学体验。

/* 页面基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.8);
    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 .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #ff8a00;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 10px 0;
    top: 35px;
    right: 0;
    min-width: 150px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主内容容器 */
.container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 100px 40px 40px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

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

article h2, article h3, article h4 {
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

article p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

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

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

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

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

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #e52e71, #ff8a00);
    transform: scale(1.05);
}

/* 互动卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 数据可视化图表样式 */
.chart-bar {
    width: 100%;
    height: 0;
    background: #e52e71;
    animation: grow 2s forwards;
    transition: transform 0.3s ease, background 0.3s ease;
}

.chart-bar:hover {
    background: #ff8a00;
    transform: translateY(-5px);
}

@keyframes grow {
    to {
        height: 100%;
    }
}

/* 动画加载样式 */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff8a00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@media (max-width: 992px) {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .navbar .nav-links a {
        padding: 10px 0;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        backdrop-filter: blur(5px);
    }

    article {
        padding: 20px;
    }
}

/* 提示信息样式 */
.notice {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-left: 5px solid #ff8a00;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
}

/* 代码块样式 */
code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 5px;
}

pre code::before {
    content: "代码示例";
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ff8a00;
}

/* 页脚样式 */
footer {
    grid-column: 1 / -1;
    background: rgba(30, 60, 114, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

/* 链接样式 */
a {
    color: #ff8a00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e52e71;
}

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

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

.collapsible:after {
    content: '\002B';
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212";
}

.content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 10px 10px;
}


