/* DeepForceCryptoer 官网样式 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 侧边栏目录样式 */
.toc-nav {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    margin-top: 5px;
    border-radius: 0 5px 5px 0;
}

.toc-link {
    color: #6c757d;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: #007bff;
    background-color: #e9ecef;
    text-decoration: none;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.nav-link:hover .toggle-icon {
    transform: scale(1.1);
}

/* 导航切换样式 */
.nav-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-toggle:hover {
    background-color: #e9ecef;
}

/* 下载链接样式 */
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.download-links .btn {
    min-width: 120px;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.download-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 新窗口打开链接的视觉提示 */
.download-links .btn[target="_blank"]::after {
    content: "↗";
    font-size: 0.7em;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.download-links .btn[target="_blank"]:hover::after {
    opacity: 1;
}

/* 管理后台下载链接样式 */
.downloads-container {
    max-height: 400px;
    overflow-y: auto;
}

.downloads-container .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.downloads-container .card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.toc-nav {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 导航栏 */
.navbar-dark {
    background-color: #212529 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link.active {
    color: #fff !important;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section .text-muted,
.hero-section p.text-muted,
.hero-section .tech-feature .text-muted {
    color: white !important;
    opacity: 0.9 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="250" fill="url(%23a)"/></svg>');
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(10px) translateY(5px);
    }
    75% {
        transform: translateX(-5px) translateY(10px);
    }
}

/* 星星容器 */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.small {
    width: 2px;
    height: 2px;
}

.star.medium {
    width: 3px;
    height: 3px;
}

.star.large {
    width: 4px;
    height: 4px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes float-star {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: glow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255,255,255,0.6));
    }
}

.hero-buttons .btn {
    border-radius: 25px;
    padding: 18px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 主按钮 - 下载链接 */
.hero-buttons .btn-primary {
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid transparent;
}

.hero-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.hero-buttons .btn-primary:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary:hover {
    background: rgba(0,0,0,0.9);
    color: white;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 次按钮 - 查看文档 */
.hero-buttons .btn-outline-light {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.hero-buttons .btn-outline-light:hover::before {
    left: 100%;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(0,0,0,0.8);
    color: white;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* 特色功能区域 */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* 技术优势区域 */
.tech-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
}

.tech-section  .text-muted,
.tech-section p.text-muted,
.tech-section .tech-feature .text-muted,
.tech-section .tech-feature .text-primary {
    color: white !important;
    opacity: 0.9 !important;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="300" cy="300" r="200" fill="url(%23b)"/><circle cx="700" cy="200" r="150" fill="url(%23b)"/><circle cx="500" cy="600" r="180" fill="url(%23b)"/></svg>');
    animation: backgroundShift 25s ease-in-out infinite;
}

.tech-features {
    position: relative;
    z-index: 2;
}

.tech-feature h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-feature p {
    opacity: 0.9;
    margin-bottom: 0;
}

.tech-icon {
    font-size: 6rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 使用场景区域 */
.use-cases-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.use-case-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.use-case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.use-case-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 快速开始区域 */
.quick-start-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
}

.quick-start-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="c" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23c)"/><circle cx="800" cy="300" r="200" fill="url(%23c)"/><circle cx="400" cy="700" r="180" fill="url(%23c)"/></svg>');
    animation: backgroundShift 30s ease-in-out infinite;
}

.quick-start-section .text-muted,
.quick-start-section p.text-muted,
.quick-start-section .quick-start-step .text-muted,
.quick-start-section .quick-start-step .text-primary {
    color: white !important;
    opacity: 0.9 !important;
}

.quick-start-step {
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
}

.quick-start-step:hover .step-number {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* 下载链接样式 */
.download-links {
    margin-top: 1.5rem;
}

.download-links .btn {
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* GitHub 按钮 */
.download-links .btn-primary {
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid transparent;
}

.download-links .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-links .btn-primary:hover::before {
    left: 100%;
}

.download-links .btn-primary:hover {
    background: rgba(0,0,0,0.9);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* 百度网盘按钮 */
.download-links .btn-outline-primary {
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid transparent;
}

.download-links .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-links .btn-outline-primary:hover::before {
    left: 100%;
}

.download-links .btn-outline-primary:hover {
    background: rgba(0,0,0,0.9);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Direct 下载按钮 */
.download-links .btn-outline-secondary {
    background: rgba(0,0,0,0.8);
    color: white;
    border: 2px solid transparent;
}

.download-links .btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-links .btn-outline-secondary:hover::before {
    left: 100%;
}

.download-links .btn-outline-secondary:hover {
    background: rgba(0,0,0,0.9);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* 数据库信息样式 */
.database-info {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

.database-info .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-icon {
        font-size: 5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .tech-icon {
        font-size: 4rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* 工具类 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

/* 管理后台样式 */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    position: fixed;
    top: 56px;
    left: 0;
    width: 16.666667%; /* col-md-3 的宽度 */
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.sidebar .nav-link.active {
    background-color: #667eea;
    color: white;
}

/* 主内容区域调整 */
.main-content {
    margin-left: 16.666667%; /* 为固定侧边栏留出空间 */
    padding-left: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        left: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding-left: 0;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单样式 */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 表格样式 */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* 徽章样式 */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* 手风琴样式 */
.accordion-button {
    border-radius: 0.5rem;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 成功/错误消息 */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Markdown 样式 */
.markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: none;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #333;
}

.markdown-body h1 {
    font-size: 2rem;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3rem;
}

.markdown-body h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3rem;
}

.markdown-body h3 {
    font-size: 1.25rem;
}

.markdown-body h4 {
    font-size: 1rem;
}

.markdown-body h5 {
    font-size: 0.875rem;
}

.markdown-body h6 {
    font-size: 0.85rem;
    color: #6a737d;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-body li {
    margin-bottom: 0.25rem;
}

.markdown-body blockquote {
    margin: 1rem 0;
    padding: 0 1rem;
    color: #6a737d;
    border-left: 0.25rem solid #dfe2e5;
    background: #f8f9fa;
    border-radius: 0.25rem;
}

.markdown-body code {
    padding: 0.2rem 0.4rem;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.markdown-body pre {
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
}

.markdown-body pre code {
    display: inline;
    max-width: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
}

/* 代码复制按钮样式 */
.code-block-wrapper {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.code-block-wrapper:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.code-copy-btn.copied {
    background: #28a745;
    color: white;
}

.code-copy-btn.copied::after {
    content: "已复制!";
}

.markdown-body table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 1rem;
    width: 100%;
    overflow: auto;
}

.markdown-body table th,
.markdown-body table td {
    padding: 0.5rem 1rem;
    border: 1px solid #dfe2e5;
}

.markdown-body table th {
    font-weight: 600;
    background-color: #f6f8fa;
}

.markdown-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-body a {
    color: #0366d6;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body hr {
    height: 0.25rem;
    padding: 0;
    margin: 1.5rem 0;
    background-color: #e1e4e8;
    border: 0;
    border-radius: 0.125rem;
}

/* 目录样式 */
.toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* 单页滚动文档样式 */
.doc-section {
    transition: all 0.3s ease-in-out;
}

.doc-section:not(.active) {
    display: none !important;
}

.doc-section.active {
    display: block !important;
}

/* 导航栏活动状态 */
#docNav .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

#docNav .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

#docNav .nav-link.active:hover {
    background-color: #0b5ed7;
    color: white;
}

.toc h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.toc a:hover {
    background-color: #e9ecef;
    color: #0366d6;
}

.toc-h1 {
    font-weight: 600;
    margin-left: 0;
}

.toc-h2 {
    margin-left: 1rem;
}

.toc-h3 {
    margin-left: 2rem;
    font-size: 0.9rem;
}

/* 编辑模式样式 */
.edit-mode {
    margin-top: 2rem;
}

.edit-mode .form-control,
.edit-mode .form-select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.edit-mode .form-control:focus,
.edit-mode .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.edit-mode textarea {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 文档信息样式 */
.document-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
}

.document-info .feature-title {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.document-info .text-muted {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .markdown-body {
        font-size: 0.9rem;
    }
    
    .markdown-body h1 {
        font-size: 1.5rem;
    }
    
    .markdown-body h2 {
        font-size: 1.25rem;
    }
    
    .markdown-body h3 {
        font-size: 1.1rem;
    }
    
    .toc {
        margin-bottom: 1rem;
    }
    
    .toc-h2 {
        margin-left: 0.5rem;
    }
    
    .toc-h3 {
        margin-left: 1rem;
    }
}

/* 浪漫式时间线样式 */
.timeline-section {
    background: radial-gradient(circle at center, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    overflow-x: hidden;
    padding-bottom: 4rem;
}

.timeline-section h2,
.timeline-section .lead,
.timeline-section .lead.text-muted {
    color: white !important;
}

.wave-timeline {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.wave-path {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    transform: translateY(-50%);
    border-radius: 2px;
}

.wave-path::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.3), 
        rgba(118, 75, 162, 0.3), 
        rgba(240, 147, 251, 0.3), 
        rgba(102, 126, 234, 0.3));
    border-radius: 4px;
    animation: wave 3s ease-in-out infinite;
}

.timeline-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: slideInFromBottom 0.8s ease forwards;
}

/* 时间线项目位置将由JavaScript动态计算 */

.timeline-marker {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 5;
}

.timeline-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.timeline-marker i {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.timeline-marker .timeline-date {
    color: #667eea;
    font-weight: 600;
    font-size: 1 rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
    text-align: center;
}

.timeline-content {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 100;
    min-width: 280px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    max-width: 350px;
}

.timeline-item:hover .timeline-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    bottom: 150px;
}

.timeline-item:nth-child(even) .timeline-content {
    top: 150px;
}

.timeline-date {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: translateY(-50%);
    border-radius: 2px;
    animation: progress 4s ease-in-out infinite;
}

/* 波浪式时间线动画 */
@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* 波浪式时间线响应式设计 */
@media (max-width: 768px) {
    .wave-timeline {
        height: 600px;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        width: 80px;
        height: 80px;
    }
    
    .timeline-marker {
        width: 80px;
        height: 80px;
    }
    
    .timeline-marker i {
        font-size: 1rem;
    }
    
    .timeline-marker .timeline-date {
        font-size: 0.6rem;
    }
    
    .timeline-content {
        min-width: 250px;
        padding: 1.5rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        bottom: 120px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        top: 120px;
    }
}

/* 数据库下载卡片样式 - 完全复刻download-style-1.html */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

.database-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 3rem 2rem; /* 减小底部内边距，避免与下个区块过大间距 */
    margin: 0 0 0; /* 去掉底部外边距，贴近下个区块 */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.database-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.database-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.database-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.database-icon i {
    font-size: 1.5rem;
    color: white;
}

.database-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.database-desc {
    opacity: 0.8;
    font-size: 0.9rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: white;
}

.database-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.database-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .database-header {
        flex-direction: column;
        text-align: center;
    }
    
    .database-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* 锚点滚动偏移，避免被固定页头遮挡 */
#program-download,
#database-download {
    scroll-margin-top: 120px; /* 与固定导航高度一致 */
}

/* 搜索结果下拉列表样式 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    margin-right: 8px;
    color: #6c757d;
}

.search-result-text {
    flex: 1;
}

.search-result-doc {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 2px;
}

/* 搜索结果内容高亮样式 */
.content-highlight {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    padding: 8px 12px !important;
    margin: 4px 0 !important;
    border-radius: 4px !important;
}