/* 导入分离的CSS文件 */
@import 'base.css';
@import 'navbar.css';
@import 'hero.css';
@import 'skills.css';
@import 'about.css';
@import 'portfolio.css';
@import 'category-cards.css';
@import 'footer.css';
@import 'responsive.css';

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: start;
}

.footer-section {
    text-align: left;
    min-width: 150px;
}

.footer-section h3 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}

.footer-section ul li a:hover {
    color: var(--link-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-section ul li a {
        font-size: 12px;
    }
}

/* Skill Journey Styles */
.skill-journey {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
}

.journey-path {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.journey-path h4 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.skill-nodes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-node {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-node:hover {
    transform: translateY(-2px);
}

.skill-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.skill-preview::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-node:hover .skill-preview {
    opacity: 1;
    visibility: visible;
}

.skill-node:hover .skill-preview::before {
    opacity: 1;
}

.skill-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100000;
}

.skill-preview::after {
    display: none;
}

.skill-node[data-projects] {
    position: relative;
    z-index: 1000;
}

.skill-node[data-projects]:hover {
    z-index: 1002;
}

.skill-node[data-projects]:hover::after {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30,34,40,0.98);
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 2px #2196f355;
    opacity: 1;
    pointer-events: none;
    white-space: pre-line;
    z-index: 1003;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
    display: block;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

.skill-node[data-projects]:hover::before {
    content: attr(data-project-name);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30,34,40,0.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    opacity: 1;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1004;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
    display: block;
    backdrop-filter: blur(4px);
}

.skill-node[data-projects]::after {
    content: '';
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.node-content {
    text-align: center;
}

.node-content i {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
}

.node-content h5 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.node-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skill-nodes {
        flex-direction: column;
        align-items: center;
    }

    .skill-node {
        width: 100%;
        max-width: 300px;
    }
}

/* =====================
   Skill Map 美化样式
   ===================== */
.skill-map {
    margin: 48px 0 32px 0;
    background: rgba(30, 32, 40, 0.7);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 48px 0 32px 0;
    position: relative;
    overflow: visible;
}

.skill-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    min-height: 80px;
    justify-content: center;
    z-index: 1;
}

.skill-row:not(:last-child) {
    margin-bottom: 56px;
}

.skill-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100px;
    right: 100px;
    height: 6px;
    z-index: 0;
    border-radius: 3px;
    filter: blur(0.5px);
    opacity: 0.7;
}

.skill-row.system-design::before { background: linear-gradient(90deg, #2196f3 0%, #6ec6ff 100%); }
.skill-row.level-design::before { background: linear-gradient(90deg, #4caf50 0%, #a8e063 100%); }
.skill-row.environment-design::before { background: linear-gradient(90deg, #ff9800 0%, #ffd180 100%); }
.skill-row.software::before { background: linear-gradient(90deg, #bdbdbd 0%, #f5f5f5 100%); }

.skill-node {
    position: relative;
    background: rgba(34, 40, 49, 0.95);
    color: #fff;
    border-radius: 50px;
    padding: 18px 36px;
    margin: 0 24px;
    z-index: 2;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 0 6px rgba(255,255,255,0.04) inset;
    border: 3.5px solid transparent;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), border-color 0.22s, box-shadow 0.22s;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: visible;
}

.skill-row.system-design .skill-node { border-color: #2196f3; box-shadow: 0 0 16px #2196f3aa, 0 4px 24px rgba(0,0,0,0.18); }
.skill-row.level-design .skill-node { border-color: #4caf50; box-shadow: 0 0 16px #4caf50aa, 0 4px 24px rgba(0,0,0,0.18); }
.skill-row.environment-design .skill-node { border-color: #ff9800; box-shadow: 0 0 16px #ff9800aa, 0 4px 24px rgba(0,0,0,0.18); }
.skill-row.software .skill-node { border-color: #bdbdbd; color: #222; background: #fff; box-shadow: 0 0 16px #bdbdbdaa, 0 4px 24px rgba(0,0,0,0.10); }

.skill-node:hover {
    transform: scale(1.10) translateY(-6px);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 0 32px 4px #2196f3cc;
    border-width: 4.5px;
    background: linear-gradient(120deg, rgba(34,40,49,1) 80%, rgba(33,150,243,0.08) 100%);
}

.skill-row.level-design .skill-node:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 0 32px 4px #4caf50cc;
    background: linear-gradient(120deg, rgba(34,40,49,1) 80%, rgba(76,175,80,0.08) 100%);
}

.skill-row.environment-design .skill-node:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28), 0 0 32px 4px #ff9800cc;
    background: linear-gradient(120deg, rgba(34,40,49,1) 80%, rgba(255,152,0,0.08) 100%);
}

.skill-row.software .skill-node:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 0 32px 4px #bdbdbdcc;
    background: linear-gradient(120deg, #fff 80%, #bdbdbd22 100%);
}

.skill-node::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    border: 2.5px solid #2196f3;
    opacity: 0.7;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 8px #2196f3aa;
}

.skill-row.level-design .skill-node::after { border-color: #4caf50; box-shadow: 0 0 8px #4caf50aa; }
.skill-row.environment-design .skill-node::after { border-color: #ff9800; box-shadow: 0 0 8px #ff9800aa; }
.skill-row.software .skill-node::after { border-color: #bdbdbd; box-shadow: 0 0 8px #bdbdbdaa; }

.skill-node:last-child::after {
    display: none;
}

.skill-legend {
    margin-top: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 17px;
    justify-content: center;
    letter-spacing: 1px;
}

.legend {
    display: inline-block;
    width: 32px;
    height: 8px;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.legend.system-design { background: linear-gradient(90deg, #2196f3 0%, #6ec6ff 100%); }
.legend.level-design { background: linear-gradient(90deg, #4caf50 0%, #a8e063 100%); }
.legend.environment-design { background: linear-gradient(90deg, #ff9800 0%, #ffd180 100%); }
.legend.software { background: linear-gradient(90deg, #bdbdbd 0%, #f5f5f5 100%); }

@media (max-width: 900px) {
    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
        margin-bottom: 32px;
    }
    .skill-row::before {
        display: none;
    }
    .skill-node {
        margin: 16px 0;
        min-width: 100px;
        width: 90%;
        border-radius: 18px;
        font-size: 16px;
        padding: 14px 18px;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
}

.arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}