/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素变量定义 */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --accent-color: #6366f1;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --frosted-bg: rgba(255, 255, 255, 0.15);
    --frosted-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(118, 75, 162, 0.25);
    --shadow-medium: 0 15px 35px rgba(118, 75, 162, 0.15);
    --shadow-heavy: 0 25px 50px rgba(118, 75, 162, 0.2);
    --gradient-primary: linear-gradient(135deg, #4facfe 0%, #667eea 25%, #764ba2 50%, #ff6b6b 75%, #ff8a00 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #667eea 33%, #764ba2 66%, #ff6b6b 100%);
}

/* 基础HTML和body样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(168, 85, 247, 0.08) 25%, 
        rgba(236, 72, 153, 0.06) 50%, 
        rgba(251, 146, 60, 0.08) 75%, 
        rgba(34, 197, 94, 0.1) 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 移动端容器优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* 液态玻璃效果按钮 */
.liquid-glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.liquid-glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.liquid-glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.liquid-glass-btn:hover::before {
    left: 100%;
}

/* 毛玻璃效果按钮 */
.frosted-glass-btn {
    background: var(--frosted-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--frosted-border);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.frosted-glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium), 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--frosted-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--frosted-border);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 桌面端导航链接右对齐 */
@media (min-width: 769px) {
    .nav-links {
        margin-left: auto;
        margin-right: 10px;
    }
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-profile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.nav-profile:hover .nav-avatar {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-profile:hover .nav-name {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    border: none;
    background: none;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: none;
    background: var(--glass-bg);
    border-radius: 8px;
    position: relative;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 1px;
    display: block;
    transform-origin: center;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--frosted-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--frosted-border);
    border-radius: 12px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    box-shadow: var(--shadow-medium);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1001;
}

.mobile-menu.active,
.mobile-menu.hover {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-container {
    position: relative;
}

.mobile-menu-container:hover .mobile-menu,
.mobile-menu:hover {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 确保菜单悬停时保持显示 */
.mobile-menu-container .mobile-menu:hover {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
}

/* 导航链接禁用状态 */
.nav-link.disabled,
.mobile-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.disabled:hover,
.mobile-nav-link.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 导航链接激活状态 */
.nav-link.active,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
    position: relative;
    overflow: hidden;
}

.nav-link.active::before,
.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-link.active:hover::before,
.mobile-nav-link.active:hover::before {
    left: 100%;
}

/* 英雄区域样式 */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/profile.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 60%;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    line-height: 1.2;
}

.name-en, .name-cn {
    display: block;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-color);
    line-height: 1.6;
    max-width: 500px;
    opacity: 1;
    visibility: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 打字机光标效果 - 渐变色 */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cursor-blink 0.7s infinite;
    font-weight: bold;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-profile {
    display: none;
}

/* 打字机动画已移至JavaScript实现 */

/* 时间轴区域样式 */
.timeline-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.timeline-column {
    position: relative;
    padding-left: 40px;
}

.timeline-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.8),
        0 0 40px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(79, 172, 254, 0.4),
        0 0 80px rgba(118, 75, 162, 0.3);
}

.timeline-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.timeline-item {
    position: relative;
    background: var(--frosted-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--frosted-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateX(-60px) scale(0.9) rotateY(15deg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -47px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, rgba(200, 180, 255, 0.85), rgba(220, 200, 255, 0.75));
    border: 1.5px solid rgba(120, 100, 180, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(200, 180, 255, 0.4),
        0 0 12px rgba(220, 200, 255, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 1px rgba(120, 100, 180, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover::before {
    background: linear-gradient(135deg, rgba(200, 180, 255, 1), rgba(220, 200, 255, 0.95));
    border: 1.5px solid rgba(120, 100, 180, 1);
    box-shadow: 
        0 0 20px rgba(200, 180, 255, 0.9),
        0 0 40px rgba(220, 200, 255, 0.7),
        0 0 60px rgba(200, 180, 255, 0.5),
        0 0 80px rgba(180, 160, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(120, 100, 180, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 15px;
}

.timeline-item:hover::after {
    opacity: 0.05;
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-heavy) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-item .date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.timeline-item .details-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-left: auto;
    display: block;
    width: fit-content;
}

.skills-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item {
    background: var(--frosted-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--frosted-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotateX(10deg);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.skill-item:hover::after {
    opacity: 0.08;
}

.skill-item:hover {
    transform: translateY(-18px) scale(1.05) rotateX(-2deg) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    border-color: var(--accent-color) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.skill-item:hover .skill-progress-bar {
    animation: progressReload 1.5s ease-out;
}

.skill-item:hover .skill-level {
    animation: percentageCount 1.5s ease-out;
}

@keyframes progressReload {
    0% {
        width: 0;
    }
    100% {
        width: var(--progress-width);
    }
}

@keyframes percentageCount {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.skill-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.skill-item:hover .skill-icon::before {
    left: 100%;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.skill-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.skill-level {
    font-size: 0.9rem;
    color: var(--text-light);
}

.skill-progress {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 证书展示区域样式 */
.certifications-section {
    padding: 100px 0;
}

/* 证书筛选按钮 */
.cert-filters {
    margin-bottom: 50px;
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
    row-gap: 15px;
}

.filter-stats {
    display: flex;
    align-items: center;
    min-width: fit-content;
    position: relative;
}

.filter-stats.animate {
    animation: statsGlow 0.6s ease-out;
}

@keyframes statsGlow {
    0% {
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 0 0 rgba(99, 102, 241, 0);
    }
}

.stats-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-text.animate {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.stats-number {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 2px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(99, 102, 241, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.cert-filter-btn {
    padding: 12px 24px;
    border-radius: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.cert-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.cert-filter-btn.animate::before {
    left: 100%;
}

.cert-filter-btn:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-heavy) !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cert-filter-btn.active {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.cert-filter-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cert-filter-btn.active:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cert-filter-btn.active:hover::before {
    left: 100%;
}

/* 证书卡片网格 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 证书卡片样式 */
.cert-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.cert-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-heavy) !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cert-card:hover::before {
    opacity: 0.05;
}

/* 证书图片 */
.cert-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

/* 证书内容 */
.cert-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cert-info {
    flex: 1;
}

.cert-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
}

.cert-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 证书元信息 */
.cert-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.cert-card:hover .cert-category {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cert-card:hover .cert-category::before {
    left: 100%;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 证书详情按钮 */
.cert-details-btn {
    align-self: flex-end;
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-light);
    width: fit-content;
}

.cert-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* View More 按钮 */
.cert-view-more {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.view-more-btn.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-btn:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-heavy) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* 页面标题区域样式 */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(168, 85, 247, 0.12) 25%, 
        rgba(236, 72, 153, 0.10) 50%, 
        rgba(251, 146, 60, 0.08) 75%, 
        rgba(34, 197, 94, 0.06) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.85) 50%, 
        rgba(241, 245, 249, 0.9) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* 完整证书展示区域 */
.full-certifications-section {
    padding: 80px 0;
}

/* 证书统计信息 */
.cert-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 30px;
    min-width: 150px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.35);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 完整证书网格 */
.full-cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* 置顶标识 */
.pinned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-accent);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* 证书卡片中的置顶标识 */
.cert-pinned {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.2);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cert-card {
    position: relative;
}

/* 模态框中的置顶标识 */
.modal-pinned {
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 证书模态框特定样式 */
.cert-modal .modal-body {
    text-align: left;
}

.cert-modal .modal-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cert-modal .modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cert-modal .modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.cert-modal .modal-category {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cert-modal .modal-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.cert-modal .modal-category:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cert-modal .modal-category:hover::before {
    left: 100%;
}

.cert-modal .modal-date {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.cert-modal .modal-details {
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color);
}

.cert-modal .cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 15px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.cert-modal .cert-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 模态框按钮样式 - 确保liquid-glass-btn样式优先级 */
.modal-body .modal-btn.liquid-glass-btn {
    margin-top: 20px;
}

/* 联系区域样式 */
.contact-section {
    padding: 100px 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.contact-btn.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: var(--shadow-medium) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contact-btn.gmail {
    background: rgba(234, 67, 53, 0.08);
    color: #ea4335;
    border: 1px solid rgba(234, 67, 53, 0.15);
}

.contact-btn.instagram {
    background: rgba(225, 48, 108, 0.08);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.15);
}

.contact-btn.facebook {
    background: rgba(24, 119, 242, 0.08);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.15);
}

.contact-btn.linkedin {
    background: rgba(10, 102, 194, 0.08);
    color: #0a66c2;
    border: 1px solid rgba(10, 102, 194, 0.15);
}

.contact-btn.gmail:hover {
    background: rgba(234, 67, 53, 0.12);
    border-color: rgba(234, 67, 53, 0.3);
    box-shadow: 0 8px 32px rgba(234, 67, 53, 0.2);
}

.contact-btn.instagram:hover {
    background: rgba(225, 48, 108, 0.12);
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 8px 32px rgba(225, 48, 108, 0.2);
}

.contact-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.12);
    border-color: rgba(24, 119, 242, 0.3);
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.2);
}

.contact-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.12);
    border-color: rgba(10, 102, 194, 0.3);
    box-shadow: 0 8px 32px rgba(10, 102, 194, 0.2);
}

.contact-btn i {
    font-size: 20px;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

/* 为页面内容添加底部间距，避免被固定页脚遮挡 */
body {
    padding-bottom: 120px;
}

.footer-content {
    background: var(--frosted-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--frosted-border);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.footer.show {
    pointer-events: auto;
}

.footer.show .footer-content {
    transform: translateY(0);
}

.footer.hide .footer-content {
    transform: translateY(100%);
}

.footer p {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(248, 250, 252, 0.82) 50%, 
        rgba(241, 245, 249, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 35px;
    max-width: 650px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scale(0.7) translateY(60px) rotateX(15deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.175);
    opacity: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    transition-delay: 0.1s;
}

/* 防止动画期间的交互 */
.modal.closing {
    pointer-events: none;
}

.modal.closing * {
    pointer-events: none;
}

/* 确保模态框背景可点击关闭 */
.modal {
    box-sizing: border-box;
}

.modal-content {
    pointer-events: auto;
    box-sizing: border-box;
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .modal {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    .modal-content {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* 优化滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .modal {
        padding: 5vh 0;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px;
        max-height: 80vh;
        border-radius: 20px;
        transform: scale(0.8) translateY(40px);
        margin: auto;
    }
    
    .modal.active .modal-content {
        transform: scale(1) translateY(0);
    }
    
    .modal.closing .modal-content {
        transform: scale(0.9) translateY(-20px);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 8vh 0;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 92%;
        padding: 20px;
        max-height: 75vh;
        border-radius: 16px;
        transform: scale(0.85) translateY(30px);
        margin: auto;
    }
    
    .modal.closing .modal-content {
        transform: scale(0.95) translateY(-15px);
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .modal {
        padding: 10vh 0;
    }
    
    .modal-content {
        width: 90%;
        padding: 15px;
        max-height: 70vh;
        border-radius: 12px;
    }
}

@media (max-height: 600px) {
    .modal {
        padding: 3vh 0;
    }
    
    .modal-content {
        max-height: 85vh;
        padding: 15px;
    }
}

@media (max-height: 500px) {
    .modal {
        padding: 2vh 0;
    }
    
    .modal-content {
        max-height: 90vh;
        padding: 10px;
    }
}

/* 移动端横屏优化 */
@media (max-width: 768px) and (max-height: 500px) {
    .modal {
        padding: 2vh 0;
    }
    
    .modal-content {
        width: 85%;
        max-height: 85vh;
        padding: 15px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 750px;
        padding: 40px;
    }
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-content,
    .modal-body * {
        transition-duration: 0.1s !important;
        animation-duration: 0.1s !important;
    }
}

/* 模态框关闭动画 - 优化时长和效果 */
.modal.closing {
    opacity: 0;
    visibility: visible;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.modal.closing .modal-content {
    transform: scale(0.85) translateY(-30px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.modal-close {
    display: none !important;
}

.modal.active .modal-close {
    transform: translateX(0) scale(1) rotate(0deg) !important;
    opacity: 1 !important;
    transition-delay: 0.3s !important;
}

/* 确保关闭按钮在所有状态下都保持固定定位 */
.modal-close.liquid-glass-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    transform: none !important;
}

.modal-close:hover {
    transform: scale(1.1) translateY(-2px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1)) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    color: #1f2937 !important;
}

.modal-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.modal.closing .modal-body h3 {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body p {
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.modal.closing .modal-body p {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-date {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}

.modal.closing .modal-body .modal-date {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8) translateX(-20px);
}

.modal.active .modal-body .modal-category {
    opacity: 1;
    transform: scale(1) translateX(0);
    transition-delay: 0.3s;
}

.modal.closing .modal-body .modal-category {
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.modal-body .modal-category:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.modal-body .modal-category:hover::before {
    left: 100%;
}

.modal-body .modal-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #4b5563;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.28s;
}

.modal.closing .modal-body .modal-subtitle {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-description {
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.modal.closing .modal-body .modal-description {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

/* 模态框头部 */
.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    margin-right: 50px; /* 为关闭按钮留出空间 */
    position: relative;
}

.modal-header .modal-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Pinned 标签 - 放在左上角外侧 */
.modal-pinned {
    position: absolute;
    top: -25px;
    left: -25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.modal-pinned i {
    font-size: 0.8rem;
}

.modal-body .modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-meta {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.38s;
}

.modal.closing .modal-body .modal-meta {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-body .modal-details {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-details {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
}

.modal.closing .modal-body .modal-details {
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-image {
    margin: 20px 0;
    text-align: center;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-image {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.55s;
}

.modal.closing .modal-body .modal-image {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

.modal-body .modal-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-body .modal-image img:hover {
    transform: scale(1.05);
}

.modal-body .modal-btn {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-body .modal-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}

.modal.closing .modal-body .modal-btn {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease-out;
    transition-delay: 0s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-avatar {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
    }
    
    .nav-name {
        font-size: 16px;
        font-weight: 500;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        padding: 6px;
    }
    
    .mobile-menu-btn span {
        width: 18px;
        height: 1.5px;
    }
    
    /* 移动端整体背景已统一到全局body样式 */
    
    /* 英雄区域移动端适配 */
    .hero-background {
        background: transparent;
    }
    
    .hero-background::after {
        background: transparent;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        max-width: 100%;
        order: 2;
    }
    
    .hero-profile {
        display: block;
        order: 1;
    }
    
    .hero-profile .hero-avatar {
        width: 250px;
        height: 250px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
        content: url('../images/mobile_profile.jpg');
    }
    
    /* 除了hero-section之外的所有section增加左右间距 */
    .timeline-section,
    .certifications-section,
    .skills-section,
    .contact-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 证书模块移动端适配 */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cert-filters {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .cert-filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .cert-card {
        padding: 20px;
        min-height: 400px;
    }
    
    .cert-meta {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .cert-details-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* 证书页面移动端适配 */
    .page-header {
        padding: 100px 15px 60px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .cert-stats {
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .stat-item {
        padding: 20px 25px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .full-cert-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    /* 证书筛选器移动端适配 */
    .cert-filters {
        padding: 0 15px;
    }
    
    .filters-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .filter-buttons {
        justify-content: center;
        order: 1;
        gap: 15px;
        width: 100%;
        row-gap: 12px;
    }
    
    .filter-stats {
        order: 2;
        width: auto;
        justify-content: center;
    }
    
    .stats-text {
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 15px rgba(118, 75, 162, 0.15);
        text-align: center;
        min-width: 160px;
    }
    
    /* 回到顶部按钮移动端适配 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* 证书页面主要内容区域 */
    .cert-page-content {
        padding: 0 15px;
    }
    
    /* 时间轴移动端适配 */
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* 技能网格移动端适配 */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* 联系按钮移动端适配 */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: auto;
        max-width: 220px;
        min-width: 180px;
        justify-content: center;
    }
}

/* 中等屏幕设备适配 */
@media (max-width: 1024px) and (min-width: 769px) {
    .cert-stats {
        padding: 0 40px;
    }
    
    .full-cert-grid {
        padding: 0 40px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-filters {
        padding: 0 40px;
    }
    
    .filter-buttons {
        gap: 22px;
        row-gap: 14px;
    }
    
    .cert-filter-btn {
        padding: 11px 20px;
        font-size: 0.88rem;
    }
    
    .page-header {
        padding: 120px 40px 80px;
    }
}

@media (max-width: 480px) {
    /* 筛选按钮小屏幕优化 */
    .filter-buttons {
        gap: 12px;
        justify-content: center;
        row-gap: 10px;
    }
    
    .cert-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 70px;
        text-align: center;
    }
    
    /* 小屏幕设备增加更多左右间距 */
    .timeline-section,
    .certifications-section,
    .skills-section,
    .contact-section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline-item,
    .skill-item {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-close {
        display: none !important;
    }
    
    /* 证书页面小屏幕适配 */
    .page-header {
        padding: 80px 10px 40px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .cert-stats {
        gap: 15px;
        margin-bottom: 30px;
        padding: 0 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        padding: 15px 20px;
        min-width: 100px;
        width: 100%;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .cert-card {
        min-height: 350px;
        margin: 0 10px;
    }
    
    .cert-image {
        height: 150px;
    }
    
    .full-cert-grid {
        padding: 0 10px;
    }
    
    .cert-filters {
        padding: 0 10px;
    }
    
    .cert-page-content {
        padding: 0 10px;
    }
    
    /* 模态框小屏幕适配 */
    .modal-content {
        margin: 10px;
        margin-top: 50px;
        width: calc(100% - 20px);
        padding: 20px;
    }
    
    .modal-header {
        margin-right: 30px;
    }
    
    /* 移动端关闭按钮适配 */
    .modal-close {
        display: none !important;
    }
    
    .modal-pinned {
        top: -20px;
        left: -20px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .modal-pinned i {
        font-size: 0.7rem;
    }
}

/* 滚动动画类 - 优化快速滚动响应性 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(1px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-25px) scale(0.98);
    filter: blur(0.5px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(25px) scale(0.98);
    filter: blur(0.5px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bounce-in {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    filter: blur(1.5px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rotate-in {
    opacity: 0;
    transform: rotateY(25deg) scale(0.95);
    filter: blur(1px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-in.animate {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    filter: blur(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 移动端优化 - 更快的动画 */
@media (max-width: 768px) {
    .fade-in-up {
        transform: translateY(20px) scale(0.99);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-up.animate {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-left {
        transform: translateX(-15px) scale(0.99);
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-left.animate {
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-right {
        transform: translateX(15px) scale(0.99);
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .fade-in-right.animate {
        transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .bounce-in {
        transform: scale(0.7) translateY(15px);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .bounce-in.animate {
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .rotate-in {
        transform: rotateY(15deg) scale(0.97);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .rotate-in.animate {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* 博客部分样式 */
.blog-section {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blog-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23blog-pattern)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.blog-section .container {
    position: relative;
    z-index: 1;
}

/* 博客筛选按钮 */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.blog-filter-btn {
    padding: 12px 24px;
    border-radius: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.blog-filter-btn.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.blog-filter-btn.animate::before {
    left: 100%;
}

.blog-filter-btn:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: var(--shadow-heavy) !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.blog-filter-btn.active {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 博客卡片网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
}

/* 响应式布局优化 */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto 50px;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* 博客卡片样式 */
.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.blog-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.blog-card:hover::before {
    opacity: 0.05;
}

/* 博客图片 */
.blog-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* 博客内容 */
.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-info {
    flex: 1;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.blog-card:hover .blog-category {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.blog-card:hover .blog-category::before {
    left: 100%;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 博客详情按钮 */
.blog-details-btn {
    align-self: flex-end;
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-light);
    width: fit-content;
}

.blog-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-details-btn i {
    transition: transform 0.3s ease;
}

.blog-details-btn:hover i {
    transform: translateX(3px);
}

/* 博客查看更多 */
.blog-view-more {
    text-align: center;
    margin-top: 30px;
}

/* 自定义滚动条 - 增强浏览器兼容性 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Firefox滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(255, 255, 255, 0.1);
}

/* 为Firefox添加更好的滚动条样式 */
html {
    scrollbar-color: #667eea rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
}

/* ==================== 评论区域样式 ==================== */
.comments-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.comments-container {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-heavy), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.comments-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy), 0 30px 60px rgba(118, 75, 162, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Waline 组件自定义样式 */
[data-waline] {
    font-family: 'Inter', sans-serif !important;
    --waline-font-size: 16px;
    --waline-white: #ffffff;
    --waline-light-grey: #6b7280;
    --waline-dark-grey: #374151;
    --waline-theme-color: #6366f1;
    --waline-active-color: #4f46e5;
    --waline-color: #1f2937;
    --waline-bgcolor: rgba(255, 255, 255, 0.8);
    --waline-bgcolor-light: rgba(248, 250, 252, 0.8);
    --waline-bgcolor-hover: rgba(241, 245, 249, 0.9);
    --waline-border-color: rgba(226, 232, 240, 0.8);
    --waline-disable-bgcolor: rgba(248, 250, 252, 0.6);
    --waline-disable-color: #9ca3af;
    --waline-avatar-size: 3rem;
    --waline-m-avatar-size: 2.5rem;
    --waline-badge-color: #6366f1;
    --waline-info-bgcolor: rgba(248, 250, 252, 0.8);
    --waline-info-color: #6b7280;
    --waline-border: 1px solid rgba(226, 232, 240, 0.6);
    --waline-avatar-radius: 12px;
    --waline-box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

/* Waline 面板样式 */
[data-waline] .wl-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-waline] .wl-panel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Waline 头部样式 */
[data-waline] .wl-header {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 16px 16px 0 0 !important;
}

[data-waline] .wl-header input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

[data-waline] .wl-header input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Waline 编辑器样式 */
[data-waline] .wl-editor {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

[data-waline] .wl-editor:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Waline 按钮样式 */
[data-waline] .wl-btn {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    color: var(--text-color) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1) !important;
}

[data-waline] .wl-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

[data-waline] .wl-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: #6366f1 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

[data-waline] .wl-btn.primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

/* Waline 评论项样式 */
[data-waline] .wl-item {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    padding: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08) !important;
}

[data-waline] .wl-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Waline 头像样式 */
[data-waline] .wl-avatar {
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2) !important;
    transition: all 0.3s ease !important;
}

[data-waline] .wl-avatar:hover {
    transform: scale(1.05) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3) !important;
}

/* Waline 加载动画 */
[data-waline] .wl-loading {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Waline 响应式设计 */
@media (max-width: 768px) {
    .comments-container {
        padding: 20px;
        margin-top: 20px;
        border-radius: 16px;
    }
    
    [data-waline] {
        --waline-font-size: 14px;
        --waline-avatar-size: 2.5rem;
    }
    
    [data-waline] .wl-panel {
        border-radius: 12px !important;
    }
    
    [data-waline] .wl-item {
        padding: 15px !important;
        border-radius: 10px !important;
    }
}

/* 评论区域滚动动画 */
.comments-section .section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comments-section .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.comments-container {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.comments-container.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Waline 深色模式适配 */
@media (prefers-color-scheme: dark) {
    [data-waline] {
        --waline-bgcolor: rgba(31, 41, 55, 0.8);
        --waline-bgcolor-light: rgba(17, 24, 39, 0.8);
        --waline-color: #f9fafb;
        --waline-border-color: rgba(75, 85, 99, 0.6);
    }
    
    .comments-container {
        background: rgba(31, 41, 55, 0.3);
        border-color: rgba(75, 85, 99, 0.4);
    }
    
    [data-waline] .wl-panel {
        background: rgba(31, 41, 55, 0.9) !important;
        border-color: rgba(75, 85, 99, 0.4) !important;
    }
    
    [data-waline] .wl-item {
        background: rgba(31, 41, 55, 0.6) !important;
        border-color: rgba(75, 85, 99, 0.3) !important;
    }
}