/* DevelopmentNav - 开发者环境配置指南 样式文件 */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --orange-color: #fd7e14;
    --green-color: #20c997;
    --blue-color: #0d6efd;
    --purple-color: #6f42c1;
    --cyan-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* 横幅样式 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-section.bg-orange {
    background: linear-gradient(135deg, var(--orange-color), #e8590c);
}

.hero-section.bg-blue {
    background: linear-gradient(135deg, var(--blue-color), #0044cc);
}

.hero-section.bg-green {
    background: linear-gradient(135deg, var(--green-color), #0f9d58);
}

/* 章节标题 */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* 卡片悬停效果 */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图标包装器 */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: white;
}

.icon-wrapper.bg-orange {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
}

.icon-wrapper.bg-blue {
    background: linear-gradient(135deg, #0d6efd, #0044cc);
}

.icon-wrapper.bg-green {
    background: linear-gradient(135deg, #20c997, #0f9d58);
}

/* 步骤圆圈 */
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 工具卡片 */
.tool-card {
    transition: all 0.3s ease;
    background: white;
}

.tool-card:hover {
    background: #f8f9fa;
    border-color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* 自定义颜色类 */
.bg-purple {
    background-color: var(--purple-color) !important;
}

.bg-cyan {
    background-color: var(--cyan-color) !important;
}

.text-purple {
    color: var(--purple-color) !important;
}

.text-cyan {
    color: var(--cyan-color) !important;
}

.btn-outline-purple {
    color: var(--purple-color);
    border-color: var(--purple-color);
}

.btn-outline-purple:hover {
    background-color: var(--purple-color);
    color: white;
}

.btn-outline-cyan {
    color: var(--cyan-color);
    border-color: var(--cyan-color);
}

.btn-outline-cyan:hover {
    background-color: var(--cyan-color);
    color: white;
}

/* 代码块样式 */
pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    color: #e9ecef;
}

/* 手风琴样式 */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 警告框样式增强 */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-warning {
    background-color: #fff8e1;
    color: #856404;
}

.alert-info {
    background-color: #e3f2fd;
    color: #085984;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

/* 卡片头部样式 */
.card-header {
    font-weight: 600;
    border-radius: 0 !important;
}

/* 列表样式 */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* 表格样式 */
.table {
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* 页脚样式 */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 链接悬停效果 */
a:hover {
    text-decoration: none;
}

/* 卡片边框颜色辅助类 */
.border-success {
    border-color: var(--success-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

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

.card {
    animation: fadeIn 0.5s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

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

/* 代码块复制按钮（如果添加此功能） */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 打印样式 */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
