/* 蓝图页面样式 - 科技感配色 */

:root {
    /* 科技感配色方案 */
    --tech-primary: #00d4ff;
    --tech-secondary: #0099ff;
    --tech-accent: #00ff88;
    --tech-purple: #8b5cf6;
    --tech-pink: #ff00ff;
    --tech-bg-dark: #0a0a0f;
    --tech-bg-darker: #050508;
    --tech-bg-card: rgba(0, 212, 255, 0.05);
    --tech-border: rgba(0, 212, 255, 0.3);
    --tech-text-bright: #ffffff;
    --tech-text-primary: #e0f7ff;
    --tech-text-secondary: #b3e5fc;
    --tech-text-muted: #80d6ff;
    --tech-glow: rgba(0, 212, 255, 0.5);
    --tech-shadow: rgba(0, 212, 255, 0.2);
}

.blueprint-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(180deg, var(--tech-bg-darker) 0%, var(--tech-bg-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.blueprint-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blueprint-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.blueprint-hero-map {
    margin-bottom: 4rem;
}

.blueprint-tab-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.bp-tab {
    position: relative;
    min-width: 130px;
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: radial-gradient(circle at top, rgba(0, 212, 255, 0.25) 0%, rgba(10, 10, 15, 0.95) 55%, rgba(10, 10, 15, 1) 100%);
    color: var(--tech-text-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.bp-tab::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(0, 153, 255, 0.4), rgba(0, 255, 136, 0.4));
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}

.bp-tab:hover::before,
.bp-tab.active::before {
    opacity: 1;
}

.bp-tab:hover,
.bp-tab.active {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.5);
}

.bp-tab-icon {
    font-size: 1.6rem;
}

.bp-tab-label {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.blueprint-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(0, 212, 255, 0.15) 0%, rgba(5, 5, 8, 0.98) 50%, rgba(5, 5, 8, 1) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 212, 255, 0.35);
}

#blueprintCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.blueprint-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-secondary) 50%, var(--tech-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--tech-glow);
    letter-spacing: -0.02em;
}

.blueprint-subtitle {
    font-size: 1.3rem;
    color: var(--tech-text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.blueprint-section {
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tech-text-bright);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--tech-glow);
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--tech-text-secondary);
    font-weight: 400;
}

/* 关系图容器 */
.relationship-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: var(--tech-bg-card);
    border: 2px solid var(--tech-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--tech-shadow);
    position: relative;
}

.relationship-diagram.horizontal {
    flex-direction: row;
    justify-content: center;
}

.relationship-diagram.grid-2 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.relationship-diagram.hub {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 卡片节点 */
.card-node {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border: 2px solid var(--tech-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--tech-shadow);
}

.card-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-accent), var(--tech-purple));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.card-node:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--tech-primary);
    box-shadow: 0 12px 40px var(--tech-glow);
}

.card-node:hover::before {
    opacity: 0.3;
}

/* 点击高亮状态，与 hover 保持一致的酷炫效果 */
.card-node.highlighted {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--tech-primary);
    box-shadow: 0 12px 40px var(--tech-glow);
}

.card-node.highlighted::before {
    opacity: 0.45;
}

.card-node.large {
    min-width: 280px;
    padding: 2.5rem;
}

.card-node.small {
    min-width: 150px;
    padding: 1.5rem;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--tech-glow));
    animation: iconPulse 3s ease-in-out infinite;
}

.card-node.small .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes iconPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--tech-glow));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--tech-primary));
    }
}

.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tech-text-bright);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px var(--tech-glow);
}

.card-node.small .card-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 1rem;
    color: var(--tech-text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.card-node.small .card-desc {
    font-size: 0.85rem;
}

.card-connections {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.connection-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--tech-primary);
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--tech-text-secondary);
    font-weight: 500;
}

/* 连接线 */
.connection-line {
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--tech-primary) 0%, transparent 100%);
    position: relative;
    box-shadow: 0 0 10px var(--tech-glow);
}

.connection-line.vertical {
    width: 3px;
    height: 60px;
}

.connection-line.bidirectional {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--tech-primary) 50%, transparent 100%);
}

.connection-line.bidirectional::before,
.connection-line.bidirectional::after {
    content: '↔';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tech-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.connection-line.bidirectional::before {
    left: -20px;
}

.connection-line.bidirectional::after {
    right: -20px;
}

/* Hub布局的连接线 */
.connection-spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    transform: translate(-50%, -50%) rotate(var(--angle));
}

.connection-spoke .connection-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-primary) 0%, transparent 100%);
    box-shadow: 0 0 8px var(--tech-glow);
}

.connection-spoke .card-node {
    position: absolute;
    left: 130px;
    top: 50%;
    transform: translateY(-50%);
}

.hub-node {
    position: relative;
    z-index: 10;
}

/* 关系组 */
.relationship-group {
    margin-bottom: 3rem;
}

.group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tech-text-bright);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 15px var(--tech-glow);
}

/* 完整关系图 */
.full-relationship-section {
    margin-top: 6rem;
}

.full-diagram-container {
    background: var(--tech-bg-card);
    border: 2px solid var(--tech-border);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--tech-shadow);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.full-relationship-diagram {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 卡片说明网格 */
.cards-explanation {
    margin-top: 6rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.explanation-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    border: 2px solid var(--tech-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.explanation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-primary), var(--tech-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.explanation-card:hover {
    transform: translateY(-8px);
    border-color: var(--tech-primary);
    box-shadow: 0 12px 40px var(--tech-glow);
}

.explanation-card:hover::before {
    transform: scaleX(1);
}

.explanation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--tech-glow));
}

.explanation-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tech-text-bright);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--tech-glow);
}

.explanation-card p {
    font-size: 1.05rem;
    color: var(--tech-text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .relationship-diagram.grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .connection-line.bidirectional {
        width: 3px;
        height: 60px;
        background: linear-gradient(180deg, var(--tech-primary) 0%, transparent 100%);
    }
    
    .connection-line.bidirectional::before,
    .connection-line.bidirectional::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .blueprint-container {
        padding: 2rem 1.5rem;
    }
    
    .blueprint-title {
        font-size: 2.5rem;
    }
    
    .blueprint-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .relationship-diagram {
        padding: 2rem 1.5rem;
    }
    
    .card-node {
        min-width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

