
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72 70%, #8e2de2 25%, #39ff14 5%);
    color: #fff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.navbar a:hover {
    color: #39ff14;
    transform: scale(1.1);
}

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

/* 促销提示 */
.intro {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInDown 2s ease-out;
}

/* 文章内容样式 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

article h2, article h3, article h4 {
    color: #39ff14;
    margin-bottom: 20px;
}

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

article pre {
    background: #2a5298;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }

    .intro {
        font-size: 20px;
    }

    article {
        padding: 30px;
    }

    article p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

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

    .intro {
        font-size: 18px;
    }

    article {
        padding: 20px;
    }

    article p {
        font-size: 14px;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片式布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding: 50px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8e2de2;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #39ff14;
    border-radius: 50%;
}

.timeline-item.right::before {
    left: -10px;
    right: auto;
}

/* 页脚样式 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.language-switcher button {
    background: none;
    border: 1px solid #39ff14;
    color: #39ff14;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.language-switcher button:hover {
    background: #39ff14;
    color: #000;
}

.real-time-data {
    font-family: 'Roboto', sans-serif;
}

.social-media a {
    color: #39ff14;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #fff;
}

/* 代码块样式 */
code.language-css {
    display: block;
    background: #2a5298;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}


