/* CCS船舶网络安全认证咨询系统样式 */

/* 模块卡片 */
.module-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.module-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.module-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 知识标签页 */
.knowledge-tab {
    transition: all 0.2s;
}

.knowledge-tab.active {
    border-bottom-color: #2563eb;
    color: #2563eb;
}

.knowledge-content {
    animation: fadeIn 0.3s ease;
}

/* 安全等级卡片 */
.sl-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.sl-card:hover {
    transform: scale(1.05);
}

.sl-card.sl0 {
    border-color: #9ca3af;
    background: #f9fafb;
}

.sl-card.sl1 {
    border-color: #60a5fa;
    background: #eff6ff;
}

.sl-card.sl2 {
    border-color: #3b82f6;
    background: #dbeafe;
}

.sl-card.sl3 {
    border-color: #f59e0b;
    background: #fffbeb;
}

.sl-card.sl4 {
    border-color: #ef4444;
    background: #fef2f2;
}

.sl-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sl-card.sl0 .sl-title { color: #6b7280; }
.sl-card.sl1 .sl-title { color: #2563eb; }
.sl-card.sl2 .sl-title { color: #1d4ed8; }
.sl-card.sl3 .sl-title { color: #d97706; }
.sl-card.sl4 .sl-title { color: #dc2626; }

.sl-desc {
    font-size: 0.75rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    min-height: 3rem;
}

.sl-badge-inline {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sl-card.sl0 .sl-badge-inline { background: #d1d5db; color: #374151; }
.sl-card.sl1 .sl-badge-inline { background: #bfdbfe; color: #1e40af; }
.sl-card.sl2 .sl-badge-inline { background: #93c5fd; color: #1e3a8a; }
.sl-card.sl3 .sl-badge-inline { background: #fde68a; color: #92400e; }
.sl-card.sl4 .sl-badge-inline { background: #fecaca; color: #991b1b; }

/* 安全等级卡片可选中状态 */
.sl-card.selectable {
    cursor: pointer;
    user-select: none;
}

.sl-card.selectable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sl-card.selected {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sl-card.sl0.selected { border-color: #6b7280; box-shadow: 0 6px 20px rgba(107, 114, 128, 0.35); }
.sl-card.sl1.selected { border-color: #2563eb; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35); }
.sl-card.sl2.selected { border-color: #1d4ed8; box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35); }
.sl-card.sl3.selected { border-color: #d97706; box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35); }
.sl-card.sl4.selected { border-color: #dc2626; box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35); }

/* 要素卡片可选中状态 */
.category-card {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.category-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.category-card.category-active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.category-card .category-arrow {
    transition: transform 0.3s ease;
}

.category-card.category-selected .category-arrow {
    transform: rotate(180deg);
}

/* 要素详情面板动画 */
#categoryDetailPanel {
    animation: fadeIn 0.3s ease;
}

#categoryDetailPanel table th,
#categoryDetailPanel table td {
    border: none;
}

/* 评估步骤指示器 */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step-indicator.active .step-circle {
    background: #2563eb;
    color: white;
}

.step-indicator.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #2563eb;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 4rem;
}

/* 流程图 */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    min-width: 120px;
}

.process-step .step-num {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: bold;
}

/* 结果卡片 */
.result-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-card.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.result-card.warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
}

.result-card.info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
}

.result-card.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
}

/* 文档列表 */
.doc-list {
    list-style: none;
    padding: 0;
}

.doc-item {
    display: flex;
    align-items: start;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}

.doc-icon {
    flex-shrink: 0;
    margin-right: 1rem;
}

.doc-content {
    flex: 1;
}

.doc-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.doc-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.doc-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.doc-tag.required {
    background: #fee2e2;
    color: #991b1b;
}

.doc-tag.optional {
    background: #dbeafe;
    color: #1e40af;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* 评估步骤 */
.assess-step {
    animation: fadeIn 0.3s ease;
}

/* 表格样式增强 - 仅作用于非详情面板表格 */
#knowledge-notations table,
#knowledge-notations th,
#knowledge-notations td {
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .step-line {
        display: none;
    }
}
