/* 技能展示区域样式 - 回归原始布局，融入页面 */
.skills-header {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
    position: relative;
    z-index: 1;
}

.skills-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-text {
    background: linear-gradient(45deg, #fff, #e0e0e0, #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    50% { background-position: 100% 50%; }
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    opacity: 0.7;
    border-radius: 2px;
    animation: expand 1s 0.5s ease-out forwards;
}

@keyframes expand {
    to { width: 60%; }
}

/* 内容区域 */
.skills-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    min-height: 300px; /* 确保有足够的高度来容纳navigator */
}

/* 网格布局 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

/* 玻璃拟态卡片 */
.skill-card {
    will-change: transform;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
}

.skill-card-inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover .skill-card-inner {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-card:hover .skill-card-inner::before {
    opacity: 1;
}

/* 图标容器 */
.skill-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-container {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.skill-icon { 
    font-size: 1.8rem; 
    color: white; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-icon-img { 
    width: 35px; 
    height: 35px; 
    object-fit: contain;
    /* filter: brightness(0) invert(1); */ /* 移除此行以显示原始图片颜色 */
}

.skill-icon-placeholder svg {
    width: 30px;
    height: 30px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 信息区域 */
.skill-info {
    flex-grow: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 进度条 */
.skill-proficiency {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.proficiency-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 空状态 */
.no-skills-message {
    color: white;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-icon { 
    font-size: 3rem; 
    opacity: 0.7; 
    margin-bottom: 15px;
}

.empty-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.no-skills-message p {
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigator */
.skills-navigator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    transform: scale(0.8);
    z-index: 10;
    pointer-events: auto;
}

.skills-navigator .arrow-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skills-navigator .arrow-wrapper:hover { 
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .skill-card-inner {
        padding: 15px;
    }
    
    .skill-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .skill-icon {
        font-size: 1.5rem;
    }
    
    .skill-icon-img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skills-title {
        font-size: 1.6rem;
    }
} 