/* 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 首页横幅样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 特性图标样式 */
.feature-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px);
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* 步骤样式 */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 徽章样式 */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 手风琴样式 */
.accordion-button {
    border-radius: 10px !important;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-item {
    border-radius: 10px !important;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* 警告框样式 */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 代码样式 */
code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 侧边栏导航样式 */
.list-group-item-action {
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-item-action:hover {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.list-group-item-action.active {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .step-item {
        padding: 1rem 0.5rem;
    }
    
    .step-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 移动端使用方法卡片单列布局 */
    .usage-cards,
    .changelog-features {
        grid-template-columns: 1fr;
    }
    
    /* 移动端步骤项优化 */
    .step-item {
        padding: 1rem 0.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

/* 版本标签样式 */
.version-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 特殊效果 */
.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 工具提示样式 */
.tooltip-inner {
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* 表单样式 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* 自定义分隔线 */
.custom-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    border: none;
    margin: 2rem 0;
}

/* 图标悬停效果 */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    color: #667eea !important;
    transform: scale(1.1);
}/* 文档页面标题统一样
式 */
.card-body h2.h3 {
    font-size: 1.75rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* 确保所有同级标题一致 */
#usage h2 {
    font-size: 1.75rem !important;
}

/* 统一文档标题样式 */
.card-body section h2 {
    font-size: 1.75rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}/* 使用方
法卡片重新设计 */
.usage-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.usage-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    overflow: hidden;
}

.usage-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    border-radius: 12px 12px 0 0;
    border: none;
}

.usage-card .card-body {
    padding: 1.5rem;
}

/* 浏览器兼容性回退 */
@supports not (display: grid) {
    .usage-cards {
        display: flex;
        flex-wrap: wrap;
    }
    
    .usage-card {
        flex: 1 1 calc(50% - 0.75rem);
        margin-bottom: 1.5rem;
    }
}/* 更新日志功
能卡片对齐 */
.changelog-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.changelog-features .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.changelog-features .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.changelog-features .card-text {
    flex: 1;
}/*
 页脚文字颜色修复 */
footer .text-muted {
    color: #ffffff !important;
}

/* 更具体的选择器确保页脚描述文字为白色 */
footer .col-md-6 p.text-muted {
    color: #ffffff !important;
}