/**
 * 实战课程体系页 V2.0 - 高端商业科技风格 CSS
 * High-End Business Tech Theme
 */

/* ========== 全局变量 ========== */
:root {
    --deep-space: #0B1120;
    --space-blue: #1A2332;
    --grid-line: rgba(59, 130, 246, 0.1);
    --glass-bg: rgba(26, 35, 50, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --glow-primary: rgba(59, 130, 246, 0.5);
    --circuit-color: rgba(59, 130, 246, 0.3);
}

/* ========== 页面基础 ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.courses-page-v2 {
    background: var(--deep-space);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.courses-page-v2 .header-transparent {
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* ========== 第一部分：全景视野首屏 ========== */
.global-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* 经纬线网格背景 */
.hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridFlow 30s linear infinite;
    opacity: 0.5;
}

@keyframes gridFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.global-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .title-main {
    display: block;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero-title .title-en {
    display: block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-desc strong {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 20px;
}

/* 3D地球可视化 */
.earth-visual {
    flex: 0 0 500px;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earth-sphere {
    width: 180px;
    height: 180px;
    position: relative;
    animation: floatSphere 6s ease-in-out infinite;
}

@keyframes floatSphere {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.earth-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.8), rgba(6, 182, 212, 0.4), transparent);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.6),
        inset 0 0 40px rgba(59, 130, 246, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), inset 0 0 40px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.8), inset 0 0 60px rgba(59, 130, 246, 0.5); }
}

.earth-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotateOrbit 20s linear infinite;
}

.earth-orbit.orbit-1 {
    width: 140%;
    height: 140%;
}

.earth-orbit.orbit-2 {
    width: 180%;
    height: 180%;
    animation-duration: 30s;
}

.earth-orbit.orbit-3 {
    width: 220%;
    height: 220%;
    animation-duration: 40s;
}

@keyframes rotateOrbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 光带与学院节点 */
.light-beams {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.light-beam {
    position: absolute;
    top: 50%;
    left: 50%;
}

.light-beam.beam-1 {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.light-beam.beam-2 {
    transform: translate(-50%, -50%) rotate(45deg);
}

.light-beam.beam-3 {
    transform: translate(-50%, -50%) rotate(135deg);
}

.light-beam.beam-4 {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.beam-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: beamFlow 2s linear infinite;
}

@keyframes beamFlow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.academy-node {
    position: absolute;
    top: -30px;
    left: 180px;
    width: 100px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 反向旋转节点，保持文字水平 */
.light-beam.beam-1 .academy-node {
    transform: rotate(45deg);
}

.light-beam.beam-2 .academy-node {
    transform: rotate(-45deg);
}

.light-beam.beam-3 .academy-node {
    transform: rotate(-135deg);
}

.light-beam.beam-4 .academy-node {
    transform: rotate(135deg);
}

.academy-node:hover {
    transform: scale(1.1);
}

/* 悬停时保持反向旋转+缩放 */
.light-beam.beam-1 .academy-node:hover {
    transform: rotate(45deg) scale(1.1);
}

.light-beam.beam-2 .academy-node:hover {
    transform: rotate(-45deg) scale(1.1);
}

.light-beam.beam-3 .academy-node:hover {
    transform: rotate(-135deg) scale(1.1);
}

.light-beam.beam-4 .academy-node:hover {
    transform: rotate(135deg) scale(1.1);
}

.node-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px var(--glow-primary);
    transition: all 0.3s ease;
}

.academy-node:hover .node-icon {
    box-shadow: 0 0 30px var(--glow-primary);
}

.node-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.academy-node:hover .node-label {
    color: var(--accent-blue);
}

/* ========== 第二部分：学院导航吸顶条 ========== */
.school-switcher {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.switcher-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 180px;
}

.tab-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.tab-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.tab-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.tab-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tab-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.tab-item.active .tab-desc {
    color: var(--accent-cyan);
}

/* ========== 第三部分：核心课程矩阵 ========== */
.course-matrix {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--space-blue) 100%);
}

.matrix-header {
    text-align: center;
    margin-bottom: 60px;
}

.matrix-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.matrix-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.matrix-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 课程卡片 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-glow);
    box-shadow: 0 0 20px var(--border-glow);
}

.course-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.course-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.course-number {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.course-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-cyan);
}

/* 职能矩阵 */
.role-matrix {
    margin-bottom: 20px;
}

.matrix-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .role-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}

.role-cell {
    background: rgba(26, 35, 50, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.role-cell:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.role-header {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.role-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.role-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-skills {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-skills li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 4px 0;
    position: relative;
    padding-left: 12px;
}

.role-skills li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* 电路装饰线 */
.circuit-lines {
    margin-top: 20px;
    opacity: 0.3;
}

.circuit-svg {
    width: 100%;
    height: 20px;
    color: var(--circuit-color);
}

/* ========== 第四部分：Footer CTA ========== */
.footer-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline-white {
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px var(--glow-primary);
}

.btn-solid-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-solid-primary:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

/* ========== 页脚 ========== */
.footer-dark {
    background: var(--deep-space);
    border-top: 1px solid var(--glass-border);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .global-hero .container {
        flex-direction: column;
    }
    
    .earth-visual {
        flex: 0 0 400px;
        height: 400px;
    }
    
    .hero-title .title-main {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-title .title-main {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .earth-visual {
        flex: 0 0 300px;
        height: 300px;
    }
    
    .course-title {
        font-size: 20px;
    }
    
    .switcher-tabs {
        flex-direction: column;
    }
    
    .tab-item {
        min-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
