/* 系统架构页面样式 */
body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: #f1f5f9;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.2rem;
}

.flow-chart {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flow-chart h2 {
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.flow-chart svg {
    width: 100%;
    height: auto;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
}

.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    max-width: 300px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

/* 组件悬停效果 */
.component:hover rect {
    stroke-width: 4px;
    transition: stroke-width 0.2s ease;
}

/* 导航按钮样式 */
.navigation {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1e293b;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: #2d3748;
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
