/* 技术栈页面样式 */

.tech-content {
    animation: fadeIn 0.6s ease;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-glow);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover::before {
    width: 300px;
    height: 300px;
}

.back-btn:hover {
    background: var(--btn-bg-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--shadow-accent);
    border-color: var(--border-hover);
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    text-shadow: 0 4px 20px var(--shadow-color);
    animation: fadeInDown 0.6s ease 0.2s backwards;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    animation: fadeInDown 0.6s ease 0.3s backwards;
}

/* 技术分类 */
.tech-section {
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 25px 0;
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 技术卡片网格 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* 技术卡片 */
.tech-card {
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease, 
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glass-bg-light), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover::before {
    width: 300px;
    height: 300px;
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

/* 不同类别的卡片颜色 */
.tech-card.language {
    border-color: rgba(6, 182, 212, 0.4);
}

.tech-card.language:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 20px 50px var(--shadow-accent);
}

.tech-card.framework {
    border-color: rgba(139, 92, 246, 0.4);
}

.tech-card.framework:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.tech-card.tool {
    border-color: rgba(16, 185, 129, 0.4);
}

.tech-card.tool:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
}

.tech-card.database {
    border-color: rgba(245, 158, 11, 0.4);
}

.tech-card.database:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
}

.tech-card.other {
    border-color: rgba(236, 72, 153, 0.4);
}

.tech-card.other:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.1));
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.3);
}

/* 卡片内容 */
.tech-icon {
    display: block;
    margin: 0 auto 15px;
}

.tech-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 10px 0;
}

.tech-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0 0 15px 0;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-bg-medium);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.8), rgba(59, 130, 246, 0.9));
    border-radius: 4px;
    transition: width 1s ease;
}

/* 学习目标 */
.goals-section {
    margin-top: 60px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.goal-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.goal-card:hover::before {
    opacity: 1;
    transform: rotate(180deg);
}

.goal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.goal-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 22px 55px var(--shadow-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
    border-color: var(--border-hover);
}

.goal-icon {
    color: rgba(6, 182, 212, 0.9);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.goal-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

.goal-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tech-content {
        width: 95%;
        padding: 30px 15px;
    }
    
    .page-title {
        font-size: 42px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .tech-content {
        width: 100%;
        padding: 25px 15px;
    }
    
    .back-btn {
        padding: 8px 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .tech-card {
        padding: 18px;
    }
    
    .tech-name {
        font-size: 18px;
    }
    
    .tech-desc {
        font-size: 13px;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .goal-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tech-content {
        padding: 20px 10px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 15px;
    }
    
    .page-header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .tech-section {
        margin-bottom: 40px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tech-card {
        padding: 15px;
    }
    
    .tech-name {
        font-size: 17px;
    }
    
    .tech-desc {
        font-size: 12px;
    }
    
    .goals-section {
        margin-top: 50px;
    }
    
    .goal-card {
        padding: 18px;
    }
    
    .goal-card h3 {
        font-size: 16px;
    }
    
    .goal-card p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tech-name {
        font-size: 16px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
