/* 数联科技 - 子页面样式 */

/* ========== 页面容器 ========== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

/* ========== 返回导航 ========== */
.back-nav {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

/* ========== 页面标题 ========== */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.page-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-badge.original {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.page-badge.optimized {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.page-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 内容区域 ========== */
.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-section li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-section strong {
    color: var(--accent);
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.info-card .card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== 指标卡片 ========== */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.metric-card .metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.metric-card .metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 表格 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table th {
    background: var(--bg-sheet);
    color: var(--text-primary);
    font-weight: 600;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ========== 流程步骤 ========== */
.process-steps {
    margin-bottom: 32px;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
    padding-left: 32px;
    margin-bottom: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 对比表格 ========== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    padding: 16px;
    text-align: center;
    background: var(--bg-sheet);
    font-weight: 600;
    font-size: 14px;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table th.highlight {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent);
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table td.highlight {
    background: rgba(249, 115, 22, 0.05);
}

/* ========== 高亮框 ========== */
.highlight-box {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.highlight-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========== 风险卡片 ========== */
.risk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.risk-icon {
    font-size: 20px;
}

.risk-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.risk-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.risk-solution {
    background: rgba(249, 115, 22, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--accent);
}

/* ========== 页面导航 ========== */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.page-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.page-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== Mermaid 图表 ========== */
.mermaid-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    overflow-x: auto;
}

.mermaid {
    display: flex;
    justify-content: center;
}

/* ========== 代码块 ========== */
.code-block {
    background: var(--bg-sheet);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .page-container {
        padding: 100px 16px 40px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-desc {
        font-size: 16px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        flex-direction: column;
        gap: 16px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    
    .page-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-nav a {
        justify-content: center;
    }
}
