:root {
    --primary-color: #00c6ff;
    --secondary-color: #7928ca;
    --dark-bg: #0c0e2b;
    --card-bg: rgba(16, 18, 46, 0.85);
    --card-hover: rgba(25, 28, 65, 0.95);
    --border-color: rgba(64, 156, 255, 0.2);
    --border-hover: rgba(64, 156, 255, 0.5);
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0cc;
    --glow-effect: 0 0 15px rgba(0, 198, 255, 0.5);
}

body {
    color: var(--text-primary);
    min-height: 100vh;
    /*padding: 20px 0;*/
    font-family: "Microsoft YaHei", "WenQuanYi Micro Hei", "Heiti TC", sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(26, 31, 61, 0.9) 100%), url("/static/imgs/blue-bg-506a72379492c785774e03a91ec50f8f.svg") center center no-repeat fixed;
    background-size: cover;
    background-blend-mode: overlay;
}

.container {
    max-width: 1000px;
    padding: 0 15px;
}

.header {
    text-align: center;
    /*margin-bottom: 40px;*/
    padding: 20px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.header h1 {
    font-size: 32px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    text-shadow: var(--glow-effect);
    letter-spacing: 1px;
}

.header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.learning-path {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 阶段容器样式 */
.stage {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stage:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 114, 255, 0.25);
}

.stage-header {
    background: linear-gradient(90deg, rgba(0, 198, 255, 0.1) 0%, rgba(121, 40, 202, 0.1) 100%);
    padding: 5px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.stage-title i {
    margin-right: 10px;
    text-shadow: var(--glow-effect);
}

.stage-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stage-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stage-toggle i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.stage-toggle.collapsed i {
    transform: rotate(-180deg);
}

/* 节点容器样式 */
.stage-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.stage-content.expanded {
    max-height: 2000px;
    padding: 20px;
}

/* 节点样式 */
.node {
    flex: 1;
    min-width: 280px;
    background: rgba(30, 33, 70, 0.6);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px 10px 0 0;
}

.node:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: rgba(30, 33, 70, 0.8);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.15);
}

.node-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.node-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    overflow: hidden;
}

.node-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-logo i {
    font-size: 22px;
    color: white;
}

.node-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.node-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* 子节点列表 */
.child-list {
    margin-top: 15px;
    border-top: 1px dashed rgba(64, 156, 255, 0.2);
    padding-top: 15px;
}

.child-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.child-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.child-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 198, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    overflow: hidden;
}

.child-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-logo i {
    font-size: 14px;
    color: var(--primary-color);
}

.child-content {
    flex: 1;
}

.child-title {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.child-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #6a6a8c;
    font-size: 14px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 26px;
    }

    .stage-header {
        padding: 15px 20px;
    }

    .stage-title {
        font-size: 18px;
    }

    .node {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        margin-bottom: 25px;
        padding: 10px;
    }

    .header h1 {
        font-size: 22px;
    }

    .stage-content {
        padding: 15px;
    }

    .node {
        padding: 15px;
    }

    .node-logo {
        width: 40px;
        height: 40px;
    }
}