
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体，确保可读性 */
    background: linear-gradient(135deg, #0D47A1 70%, #333333 30%); /* 主色调渐变背景，科技感强 */
    color: #FFFFFF; /* 文字颜色设置为白色，保证与背景对比 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.9); /* 半透明深灰背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 导航栏阴影效果 */
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

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

.navbar .nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #28A745; /* 辅助色：绿色，悬停时颜色变化 */
}

.navbar .auth-buttons a {
    text-decoration: none;
    color: #FFFFFF;
    border: 1px solid #28A745;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .auth-buttons a:hover {
    background-color: #28A745;
    color: #FFFFFF;
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    width: 5px;
    height: 100px;
    background: linear-gradient(to bottom, #28A745, #FFC107);
    animation: pulse 2s infinite;
    border-radius: 2.5px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 主要内容区样式 */
.main-content {
    padding-top: 80px; /* 留出导航栏空间 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px;
}

.article {
    background-color: rgba(66, 66, 66, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article h2, .article h3 {
    color: #FFC107; /* 点缀色：橙色，突出标题 */
}

.article pre {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #00FF00; /* 代码颜色区分 */
}

.article img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.button-primary {
    background-color: #28A745;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-primary:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
}

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

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

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

    .scroll-indicator {
        right: 10px;
        height: 80px;
    }

    .main-content {
        padding: 20px;
        gap: 20px;
    }
}

