/* ============================================
   平平的个人主页 - 专属样式
   现代化设计 · 玻璃拟态 · 流畅动画
   ============================================ */

/* Hero 区域 */
.ph-hero {
    position: relative;
    padding: 80px 0 60px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Hero 背景装饰 */
.ph-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.ph-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.ph-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* 头像样式 */
.ph-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.ph-avatar-ring {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 300% 300%;
    animation: gradient-rotate 4s ease infinite;
    display: inline-block;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ph-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
}

.ph-status-dot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* 名字和标题 */
.ph-name {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.ph-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: 4px;
}

.ph-tagline .ph-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 12px;
    opacity: 0.6;
}

/* 社交链接 */
.ph-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
}

.ph-social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    touch-action: manipulation;
}

.ph-social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-glass-strong);
}

.ph-social-link:active {
    transform: translateY(-1px);
}

/* CTA 按钮 */
.ph-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.ph-scroll-hint i {
    font-size: 1.2rem;
}

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

/* ============================================
   通用 Section 样式
   ============================================ */
.ph-section {
    padding: 80px 0;
    position: relative;
}

.ph-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ph-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-full);
}

.ph-section-label i {
    font-size: 0.9rem;
}

.ph-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ph-section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   关于我 Section
   ============================================ */
.ph-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

.ph-about-visual {
    position: relative;
}

.ph-about-card-visual {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.ph-about-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.ph-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.ph-stat-item {
    text-align: center;
}

.ph-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ph-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.ph-about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.ph-about-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.ph-info-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ph-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ph-info-list li i {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================
   技术栈 Section
   ============================================ */
.ph-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.ph-skill-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ph-skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.ph-skill-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.ph-skill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ph-skill-icon.python {
    background: linear-gradient(135deg, #3776ab22, #ffd43b22);
    color: #3776ab;
}

.ph-skill-icon.javascript {
    background: linear-gradient(135deg, #f7df1e22, #32333022);
    color: #f0db4f;
}

.ph-skill-icon.database {
    background: linear-gradient(135deg, #00758f22, #f2911122);
    color: #00758f;
}

.ph-skill-icon.html-css {
    background: linear-gradient(135deg, #e34f2622, #264de422);
    color: #e44d26;
}

.ph-skill-icon.devops {
    background: linear-gradient(135deg, #2496ed22, #06b6d422);
    color: #2496ed;
}

.ph-skill-icon.tools {
    background: linear-gradient(135deg, #ec489922, #8b5cf622);
    color: #ec4899;
}

.ph-skill-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ph-skill-bar {
    margin-bottom: 18px;
}

.ph-skill-bar:last-child {
    margin-bottom: 0;
}

.ph-skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ph-skill-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.ph-skill-level {
    color: var(--primary);
    font-weight: 600;
}

.ph-skill-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ph-skill-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ph-skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ph-skill-fill.secondary {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.ph-skill-fill.accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ============================================
   项目 Section
   ============================================ */
.ph-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.ph-project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 36px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.ph-project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ph-project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ph-project-card:hover::after {
    opacity: 1;
}

.ph-project-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ph-project-card:hover .ph-project-icon {
    transform: scale(1.1) rotate(-3deg);
}

.ph-project-icon.purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
    color: var(--primary);
}

.ph-project-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.04));
    color: var(--secondary);
}

.ph-project-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.04));
    color: var(--accent);
}

.ph-project-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
    color: #f59e0b;
}

.ph-project-icon.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
    color: #22c55e;
}

.ph-project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ph-project-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ph-project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ph-project-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s ease;
}

.ph-project-card:hover .ph-project-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* ============================================
   时间线 Section
   ============================================ */
.ph-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 32px;
}

.ph-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    border-radius: var(--radius-full);
}

.ph-timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.ph-timeline-item:last-child {
    padding-bottom: 0;
}

.ph-timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.ph-timeline-item:hover .ph-timeline-dot {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
    transform: scale(1.2);
}

.ph-timeline-date {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.ph-timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ph-timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   联系 Section
   ============================================ */
.ph-contact-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 56px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ph-contact-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ph-contact-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ph-contact-card > * {
    position: relative;
    z-index: 1;
}

.ph-contact-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--primary);
    animation: float 4s ease-in-out infinite;
}

.ph-contact-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ph-contact-card > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
}

.ph-contact-methods {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ph-contact-method {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
}

.ph-contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: var(--primary);
}

.ph-contact-method:active {
    transform: translateY(-1px);
}

.ph-contact-method.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.ph-contact-method.primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .ph-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .ph-name {
        font-size: 2rem;
    }

    .ph-tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .ph-avatar-ring {
        width: 130px;
        height: 130px;
    }

    .ph-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ph-section {
        padding: 60px 0;
    }

    .ph-section-title {
        font-size: 1.6rem;
    }

    .ph-skills-grid,
    .ph-projects-grid {
        grid-template-columns: 1fr;
    }

    .ph-hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ph-hobby-card {
        padding: 24px 20px;
    }

    .ph-contact-card {
        padding: 40px 24px;
    }

    .ph-contact-methods {
        flex-direction: column;
        align-items: stretch;
    }

    .ph-scroll-hint {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ph-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ph-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   移动端菜单样式（main.css 中缺失）
   ============================================ */

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    flex-direction: column;
    padding: 80px 24px 24px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.mobile-nav-menu.active {
    display: flex;
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1002;
}

.mobile-nav-close:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--primary);
}

/* 遮罩层 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
    display: block;
}

/* ============================================
   共用样式补充
   ============================================ */

/* 修复 .container 在 ph-hero 内的多余 padding */
.ph-hero .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* 修复 .container 在 ph-section 内的多余 padding - 使用 ph-section 的 padding */
.ph-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* 交替背景色 section */
.ph-section-alt {
    background: var(--bg-tertiary);
}

/* 页脚样式 */
.ph-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.ph-footer-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ph-footer-quote::before {
    content: '\201c';
    font-size: 2rem;
    color: var(--primary-light);
    margin-right: 4px;
    vertical-align: sub;
}

.ph-footer-info {
    margin-bottom: 16px;
}

.ph-footer-info p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ph-footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ph-footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.ph-footer-icp {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   兴趣爱好 Section
   ============================================ */
.ph-hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.ph-hobby-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ph-hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-hobby-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ph-hobby-card:hover::before {
    opacity: 1;
}

.ph-hobby-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.ph-hobby-card:hover .ph-hobby-icon {
    transform: scale(1.1) rotate(-5deg);
}

.ph-hobby-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ph-hobby-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   滚动进度条
   ============================================ */
.ph-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   打字机光标
   ============================================ */
.ph-name.typing::after {
    content: '|';
    animation: blink-cursor 0.8s step-end infinite;
    -webkit-text-fill-color: var(--primary);
    font-weight: 400;
    margin-left: 2px;
}

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

/* ============================================
   证书 Section
   ============================================ */

/* 筛选按钮 */
.ph-cert-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.ph-cert-filter {
    padding: 8px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    font-family: inherit;
}

.ph-cert-filter:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.ph-cert-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* 证书卡片网格 */
.ph-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 证书卡片 */
.ph-cert-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ph-cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-cert-card[data-category="mta"]::before {
    background: linear-gradient(90deg, #00a4ef, #7fba00);
}

.ph-cert-card[data-category="nct"]::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.ph-cert-card[data-category="yaie"]::before {
    background: linear-gradient(90deg, #14b8a6, #06b6d4);
}

.ph-cert-card[data-category="putonghua"]::before {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.ph-cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ph-cert-card:hover::before {
    opacity: 1;
}

/* 证书卡片隐藏动画 */
.ph-cert-card.hidden {
    display: none;
}

/* 证书图标 */
.ph-cert-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ph-cert-badge.microsoft {
    background: linear-gradient(135deg, rgba(0, 164, 239, 0.12), rgba(127, 186, 0, 0.08));
    color: #00a4ef;
}

.ph-cert-badge.nct {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
    color: #6366f1;
}

.ph-cert-badge.yaie {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.08));
    color: #14b8a6;
}

.ph-cert-badge.putonghua {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
    color: #ef4444;
}

/* 证书内容 */
.ph-cert-body {
    flex: 1;
}

.ph-cert-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.ph-cert-org {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ph-cert-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 证书底部 */
.ph-cert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.ph-cert-id {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    word-break: break-all;
    max-width: 70%;
}

.ph-cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
}

.ph-cert-verify:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

/* 证书响应式 */
@media (max-width: 768px) {
    .ph-cert-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ph-cert-filters {
        gap: 8px;
    }

    .ph-cert-filter {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ph-cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   导航 active 高亮 - 只需覆盖文字颜色即可，::after 由 main.css 控制
   ============================================ */
.nav-link.active {
    color: var(--primary) !important;
}

/* ============================================
   博客文章卡片
   ============================================ */
.ph-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ph-blog-card {
    display: block;
    padding: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ph-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.ph-blog-card:hover::before {
    opacity: 1;
}

.ph-blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.ph-blog-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.ph-blog-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ph-blog-meta span i {
    margin-right: 4px;
}

/* ============================================
   GitHub 贡献热力图
   ============================================ */
.ph-github-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ph-github-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ph-github-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.ph-github-header img {
    border-radius: 50%;
}

.ph-github-header div {
    flex: 1;
}

.ph-github-name:hover {
    color: var(--primary) !important;
}

.ph-github-calendar {
    margin-bottom: 24px;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.ph-github-calendar img {
    display: block;
    margin: 0 auto;
}

.ph-github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
}

.ph-github-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   粒子背景
   ============================================ */
.ph-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ph-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.15;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-200px) translateX(50px);
        opacity: 0;
    }
}

/* ============================================
   教育经历（复用时间线样式）
   ============================================ */
.ph-education-timeline {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 32px;
    position: relative;
}

.ph-education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

/* ============================================
   博客和GitHub响应式
   ============================================ */
@media (max-width: 768px) {
    .ph-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ph-github-card {
        padding: 24px 20px;
    }

    .ph-github-header {
        flex-direction: column;
        text-align: center;
    }

    .ph-github-calendar {
        overflow-x: auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ph-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .ph-hero::before,
    .ph-hero::after,
    .ph-avatar-ring,
    .ph-status-dot,
    .ph-scroll-hint,
    .ph-contact-icon,
    .ph-skill-fill::after,
    .ph-name.typing::after,
    .ph-particle {
        animation: none;
    }

    .ph-name.typing::after {
        display: none;
    }

    .ph-skill-card,
    .ph-project-card,
    .ph-social-link,
    .ph-about-card-visual,
    .ph-contact-method,
    .ph-hobby-card,
    .ph-cert-card,
    .ph-blog-card,
    .ph-github-card {
        transition: none;
    }

    .ph-skill-fill {
        transition: none;
    }

    .ph-particle {
        display: none;
    }
}
