/* ============================================
   首页专属样式
   ============================================ */

/* ============================================
   粒子背景画布
   ============================================ */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   Hero 区域 - 首屏
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 32px;
    overflow: hidden;
}

/* Hero装饰性渐变光效 */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    max-width: 90vw;
    max-height: 90vw;
    background: radial-gradient(circle, rgba(22, 93, 255, 0.08) 0%, rgba(64, 128, 255, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

/* 头像区域 */
.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 4px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(22, 93, 255, 0.25);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-white);
    display: block;
}

.hero-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* 打字机文字区域 */
.typewriter-container {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(22, 93, 255, 0.1);
    text-align: left;
    min-height: 280px;
}

.typewriter-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-break: break-word;
}

.typewriter-text::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: var(--primary-color);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}

.typewriter-text.finished::after {
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.scroll-hint-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
}

.scroll-hint-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   个人简介模块
   ============================================ */
.intro-section {
    background-color: var(--bg-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
}

.intro-highlights {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.intro-highlight {
    text-align: center;
    position: relative;
}

.intro-highlight-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.intro-highlight-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.intro-highlight-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   核心技能栈模块
   ============================================ */
.skills-section {
    background-color: var(--bg-light);
}

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* 技能卡片差异化配色 */
.skill-card.skill-blue::before {
    background: linear-gradient(90deg, #165DFF, #4080FF);
}
.skill-card.skill-purple::before {
    background: linear-gradient(90deg, #7C3AED, #A855F7);
}
.skill-card.skill-green::before {
    background: linear-gradient(90deg, #059669, #10B981);
}

.skill-card.skill-purple .skill-card-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.15));
    color: #7C3AED;
}

.skill-card.skill-green .skill-card-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.15));
    color: #059669;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(64, 128, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.skill-item::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   实习亮点速览模块
   ============================================ */
.intern-section {
    background-color: var(--bg-white);
}

.intern-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.intern-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.intern-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.08), rgba(64, 128, 255, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.intern-meta h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.intern-role {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.intern-period {
    font-size: 13px;
    color: var(--text-light);
}

.intern-highlights {
    flex: 1;
    margin-bottom: 16px;
}

.intern-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.intern-highlight-item::before {
    content: '★';
    color: #FFB100;
    flex-shrink: 0;
    margin-top: 1px;
}

.intern-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   快速跳转按钮区
   ============================================ */
.quick-nav-section {
    background-color: var(--bg-light);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-nav-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    display: block;
}

.quick-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-nav-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(64, 128, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.quick-nav-card:hover .quick-nav-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.quick-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quick-nav-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   首页响应式
   ============================================ */
@media (max-width: 1024px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 12px 16px 24px;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .hero-avatar-placeholder {
        font-size: 44px;
    }

    .hero-title {
        font-size: 22px;
    }

    .typewriter-container {
        padding: 24px 20px;
        min-height: 240px;
    }

    .typewriter-text {
        font-size: 14px;
        line-height: 1.9;
    }

    .intro-highlights {
        gap: 32px;
    }

    .intro-highlight-number {
        font-size: 32px;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-nav-card {
        padding: 24px 16px;
    }

    .quick-nav-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .intro-highlights {
        gap: 24px;
    }

    .intro-highlight {
        width: calc(50% - 12px);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}
