/* API文档管理系统样式 */

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
}

/* 按钮样式 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* 表单样式 */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #d1d3e2;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* 统计卡片样式 */
.border.rounded {
    transition: transform 0.2s;
}

.border.rounded:hover {
    transform: translateY(-2px);
}

/* 项目卡片样式 */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 文档列表样式 */
.document-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-left-color: #4e73df;
    background-color: #f8f9fe;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* 表格样式 */
.table {
    background-color: #fff;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #5a5c69;
}

/* 标签样式 */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 20px;
}

/* 代码块样式 */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e3e6f0;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
}

code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.875em;
}

/* 文档内容样式 */
.document-content h1,
.document-content h2,
.document-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2e59d9;
}

.document-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.document-content ul,
.document-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.document-content blockquote {
    border-left: 4px solid #4e73df;
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
    font-style: italic;
}

/* 编辑器样式 */
.editor-toolbar {
    background-color: #f8f9fa;
    border: 1px solid #e3e6f0;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.5rem;
}

.editor-content {
    border: 1px solid #e3e6f0;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    min-height: 300px;
    padding: 1rem;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 工具提示样式 */
.tooltip-inner {
    background-color: #5a5c69;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #5a5c69;
}

.tooltip.bs-tooltip-bottom .arrow::before {
    border-bottom-color: #5a5c69;
}

.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #5a5c69;
}

.tooltip.bs-tooltip-right .arrow::before {
    border-right-color: #5a5c69;
}