/* 隐藏作品集爱心按钮 */
.favorite-btn { display: none !important; }
/* ============================================
   清爽白蓝配色方案 - 专业简洁风格
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 白蓝配色 */
    --color-primary: #1e3a8a;      /* 深蓝 */
    --color-primary-light: #3b82f6; /* 亮蓝 */
    --color-primary-dark: #0b2a6f;  /* 更深蓝 */
    --color-secondary: #64748b;    /* 灰蓝 */
    --color-accent: #0ea5e9;       /* 天蓝 */
    
    /* 中性色 */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* 功能色 */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    /* 渐变：更高级的分层蓝色 */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #3b82f6 100%);
    --gradient-light: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.15);
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--text-white);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--color-gray-600);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    padding: 0.625rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--color-primary);
}

/* ============================================
   主内容区域
   ============================================ */

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.page {
    display: none;
    min-height: calc(100vh - 70px);
    animation: fadeInPage 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-primary);
}

.title-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-blue);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ============================================
   首页
   ============================================ */

.home-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-subtle);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--color-accent);
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-primary-light);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 380px;
    height: 380px;
    background: var(--color-accent);
    bottom: 10%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, -50px);
    }
    50% {
        transform: translate(0, -100px);
    }
    75% {
        transform: translate(-50px, -50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-text {
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* 快速导航卡片 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-card {
    background: var(--bg-card);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

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

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.nav-card:hover .card-icon {
    transform: scale(1.1);
}

.nav-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.nav-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 1rem;
    display: inline-block;
    transition: var(--transition);
}

.nav-card:hover .card-arrow {
    transform: translateX(8px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    margin: 0 auto 0.75rem;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
}

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

/* ============================================
   我的简介
   ============================================ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
}

.about-card:hover {
    box-shadow: var(--shadow-md);
}

.about-card.profile-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gray-100);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-image {
    position: relative;
    width: 250px;
    height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.upload-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
    font-size: 0.9rem;
}

.profile-image:hover .upload-hint {
    opacity: 1;
}

.info-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-field input {
    background: var(--bg-secondary);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state.large {
    padding: 6rem 2rem;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--color-gray-300);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-state code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ============================================
   项目经历 & 作品集
   ============================================ */

.projects-filters,
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.portfolio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   二级和三级分类筛选 - 统一风格
   ============================================ */

/* 二级分类容器 */
.portfolio-subfilters {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-gray-200);
    animation: slideDown 0.3s ease;
}

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

.subfilter-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.subfilter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

/* 二级分类按钮 - 与主分类保持一致的风格 */
.subfilter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.subfilter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.subfilter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

/* 分类数量统计 */
.subfilter-btn .count {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-primary);
}

.subfilter-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* 三级分类筛选 */
.tertiary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    justify-content: center;
}

/* 三级分类按钮 - 稍小但保持相似风格 */
.tertiary-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.tertiary-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tertiary-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* 响应式设计 - 分类按钮 */
@media (max-width: 768px) {
    .portfolio-subfilters {
        padding: 1rem;
    }
    
    .subfilter-buttons {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .subfilter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tertiary-filters {
        gap: 0.4rem;
        justify-content: flex-start;
    }
    
    .tertiary-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .subfilter-title {
        text-align: left;
        font-size: 0.9rem;
    }
}

.view-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    grid-auto-rows: max-content;
    align-items: start;
    
    /* 尝试使用masonry布局（如果浏览器支持） */
    grid-template-rows: masonry;
}

/* 如果不支持masonry，使用优化的grid布局 */
@supports not (grid-template-rows: masonry) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        align-items: start;
    }
}

/* 竖版作品在网格中的特殊处理 */
.portfolio-item.orientation-portrait {
    /* 竖版作品保持标准网格布局，通过media容器的padding-top来控制比例 */
    position: relative;
}

/* 横版作品保持默认 */
.portfolio-item.orientation-landscape {
    /* 横版作品占据标准网格空间，通过media容器的padding-top来控制比例 */
    position: relative;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    break-inside: avoid; /* 防止在瀑布流中被截断 */
    margin-bottom: 0; /* 移除底部边距，使用grid gap */
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.portfolio-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: var(--transition);
    border-radius: var(--radius-lg);
}

/* 让图片保持原始比例 */
.portfolio-media img,
.portfolio-media video,
.portfolio-media .video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* PDF 缩略图样式（测试&方案） */
.pdf-thumbnail {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #e74c3c;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.25);
    z-index: 3;
}

.pdf-badge i { font-size: 14px; }

.pdf-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    border-radius: var(--radius-lg);
    transition: background 0.3s ease;
}

.pdf-thumbnail:hover .pdf-overlay { background: rgba(0, 0, 0, 0.45); }

.pdf-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.pdf-button i { color: #e74c3c; font-size: 22px; }

.pdf-text { color: #fff; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.4); }

/* 视频缩略图容器 */
.video-thumbnail {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9; /* 视频默认16:9比例 */
}

/* 竖版视频：容器改为 9:16，避免被裁切 */
.video-thumbnail.is-portrait {
    aspect-ratio: 9 / 16;
}

/* 视频第一帧 */
.video-poster-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 使用 contain，保证竖版/横版都完整呈现，不被裁切 */
    object-fit: contain;
    background: #000; /* 留出黑边承载完整画面 */
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none; /* 禁止视频元素接收点击事件 */
}

/* 取消左上角“视频/分类”徽标 */
.video-info { display: none !important; }
.video-duration, .video-type { display: none !important; }

/* 播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2; /* 高于视频第一帧 */
    transition: background 0.3s ease;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* 播放按钮 */
.play-button {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-button i {
    font-size: 26px;
    color: var(--color-primary);
    margin-left: 3px; /* 视觉居中调整 */
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
    background: white;
}

/* 播放文字 */
.play-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 文件预览样式 */
.file-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
}

.file-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.file-type {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.portfolio-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
}

.portfolio-info {
    padding: 1.5rem;
}

/* 爱心收藏按钮 */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-btn i {
    font-size: 18px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.favorite-btn.active i {
    color: #ef4444;
    transform: scale(1.2);
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

.favorite-btn.active:hover i {
    transform: scale(1.3);
}

.portfolio-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   按钮
   ============================================ */

.btn-primary,
.btn-outline,
.btn-add {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 视频第一帧作为封面 */
.video-poster-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none; /* 禁止视频元素接收点击事件 */
}

.video-poster-frame::-webkit-media-controls {
    display: none !important;
}

.video-poster-frame::-webkit-media-controls-enclosure {
    display: none !important;
}

/* ============================================ */
/* 分类筛选器居中显示样式 */
/* ============================================ */

/* 主分类居中 */
.main-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* 二级分类居中 */
.portfolio-subfilters {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subfilter-title {
    text-align: center;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.subfilter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* 三级分类居中 */
.tertiary-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* 分类按钮统一样式 */
.filter-btn,
.subfilter-btn,
.tertiary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.subfilter-btn:hover,
.tertiary-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.filter-btn.active,
.subfilter-btn.active,
.tertiary-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-filters,
    .subfilter-buttons {
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .tertiary-filters {
        justify-content: flex-start;
        gap: 0.375rem;
    }
    
    .subfilter-title {
        text-align: left;
        font-size: 0.9rem;
    }
    
    .filter-btn,
    .subfilter-btn,
    .tertiary-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-add {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px dashed var(--color-gray-300);
}

.btn-add:hover {
    background: var(--color-primary);
    color: white;
    border-style: solid;
    border-color: var(--color-primary);
}

/* ============================================
   模态框
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-modal-content {
    width: 900px;
    max-width: 90vw;
}

/* 横版视频模态框 */
.video-modal-content.orientation-landscape {
    width: 900px;
    max-width: 90vw;
}

/* 竖版视频模态框 */
.video-modal-content.orientation-portrait {
    width: 500px;
    max-width: 90vw;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

/* 横版图片模态框 */
.image-modal-content.orientation-landscape {
    width: auto;
    max-width: 90vw;
}

/* 竖版图片模态框 */
.image-modal-content.orientation-portrait {
    width: auto;
    max-width: 60vw;
}

/* 模态框中的媒体自适应 */
.modal-body img,
.modal-body video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
}

.modal-body {
    padding: 0 2rem 2rem;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body video,
.modal-body img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* 视频加载状态 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.video-loading p {
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================
   返回顶部
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ============================================
   加载动画
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   响应式设计
   ============================================ */

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

    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .profile-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem; /* 移动端减少间距 */
    }
    
    .portfolio-item {
        margin-bottom: 0;
    }

    .video-modal-content,
    .video-modal-content.orientation-landscape,
    .video-modal-content.orientation-portrait {
        width: 95%;
        max-width: 95vw;
    }
    
    .image-modal-content,
    .image-modal-content.orientation-landscape,
    .image-modal-content.orientation-portrait {
        max-width: 95vw;
    }

    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .page-container {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.75rem;
        flex-direction: column;
    }
}

/* Fine-tuned layout for small phones (<=460px) */
@media (max-width: 460px) {
    html {
        font-size: 15px;
    }

    .nav-container {
        height: 64px;
        padding: 0 0.875rem;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .bar {
        width: 22px;
    }

    .page-container {
        padding: 1.5rem 0.875rem;
    }

    .page-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .title-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .quick-nav {
        gap: 1rem;
    }

    .nav-card {
        padding: 1.5rem 1.25rem;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .nav-card h3 {
        font-size: 1.05rem;
    }

    .nav-card p {
        font-size: 0.85rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .mouse {
        width: 22px;
        height: 36px;
    }

    .portfolio-controls {
        gap: 0.75rem;
    }

    .filter-btn,
    .subfilter-btn,
    .tertiary-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .portfolio-grid {
        gap: 0.75rem;
    }

    .portfolio-info {
        padding: 1rem;
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-description {
        font-size: 0.85rem;
    }

    .play-button {
        width: 52px;
        height: 52px;
    }

    .play-button i {
        font-size: 22px;
    }

    .play-text {
        font-size: 12px;
    }

    .pdf-button {
        width: 52px;
        height: 52px;
    }

    .projects-container {
        gap: 1rem;
    }

    .project-cover {
        height: 180px;
    }

    .project-card-body {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-subtitle {
        font-size: 0.85rem;
    }

    .view-details-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .info-form-section {
        padding: 1rem;
    }

    .profile-image {
        width: 160px;
    }

    .form-field label {
        font-size: 0.8rem;
    }

    .form-field input {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .company-info {
        padding: 1.25rem 1.5rem;
    }

    .experience-item {
        padding: 1.25rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ============================================
   动画
   ============================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   策划项目作品集样式 - 卡片式设计
   ============================================ */

.portfolio-content {
    margin-top: 2rem;
}

/* 项目卡片网格布局 */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 
   旧的项目卡片样式（已废弃，使用弹窗模式）
   保留此注释以便参考
*/

/* 项目标签样式（仍在使用） */
.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.project-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 技能标签样式（仍在使用） */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* highlight 样式（仍在使用） */
.highlight {
    color: #667eea;
    font-weight: 700;
    font-size: 1.05em;
}

/* 双专业教育背景样式 */
.dual-major-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.major-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.primary-major {
    border-left: 5px solid #00d2ff;
}

.secondary-major {
    border-left: 5px solid #f093fb;
}

.major-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.major-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.primary-major .major-icon {
    background: var(--gradient-primary);
}

.secondary-major .major-icon {
    background: var(--gradient-light);
}

.major-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.major-type {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.primary-major .major-type {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
}

.secondary-major .major-type {
    background: rgba(240, 147, 251, 0.1);
    color: #f093fb;
}

.major-content {
    color: #666;
}

.major-period {
    color: var(--color-primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.major-school {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.major-courses,
.major-skills {
    margin-bottom: 1.5rem;
}

.major-courses h4,
.major-skills h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-grid,
.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.skill-item {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.secondary-major .skill-item {
    background: var(--gradient-light);
}

/* 双专业优势 */
.dual-major-advantage {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.dual-major-advantage h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.advantage-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.advantage-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}

/* 基本信息容器样式 */
.basic-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-form-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image img {
    width: 200px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid var(--color-gray-200);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.profile-image img:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.info-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-field input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 教育背景部分 */
.education-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.education-section h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.education-section h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 个人简介样式 */
.personal-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.summary-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    text-align: justify;
}

.core-competencies {
    margin-bottom: 2rem;
}

.core-competencies h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.core-competencies h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.competency-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.competency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.competency-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.2rem;
}

.competency-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.competency-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.personal-highlights {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.personal-highlights h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.personal-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.personal-highlights li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.personal-highlights li:before {
    content: "•";
    color: #f093fb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.personal-highlights strong {
    color: #f093fb;
}

/* 工作经历公司信息 */
.company-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.company-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-info h3 i {
    font-size: 1.75rem;
}

.company-period {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* 教育经历和校园履历样式 */
.education-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.education-period {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.education-school {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.education-major {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.education-minor {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-courses h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-courses ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-courses li {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1rem;
}

.education-courses li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
}

.campus-experience {
    margin-top: 1rem;
}

.experience-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-period {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.experience-organization {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.experience-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-achievements li {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-achievements li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 响应式设计 - 策划项目 */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-cover {
        height: 300px;
    }
    
    /* 旧的项目卡片响应式样式已移除，使用弹窗模式 */
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* 双专业响应式设计 */
    .dual-major-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .major-card {
        padding: 1.5rem;
    }
    
    .major-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .major-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .major-info h3 {
        font-size: 1.1rem;
    }
    
    .advantage-content {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .advantage-item i {
        margin-bottom: 0.5rem;
    }
    
    /* 个人简介响应式设计 */
    .competency-grid {
        grid-template-columns: 1fr;
    }
    
    .competency-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .competency-item i {
        margin-bottom: 0.5rem;
    }
    
    .personal-highlights {
        padding: 1.5rem;
    }
    
    .personal-highlights li {
        font-size: 0.9rem;
    }
    
    /* 基本信息响应式设计 */
    .info-form-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-form {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        order: -1;
        width: 180px;
    }
    
    .profile-image img {
        width: 100%;
        height: auto;
    }
    
    .basic-info-container {
        gap: 1.5rem;
    }
    /* 文字与输入框缩放，避免溢出 */
    .form-field label {
        font-size: 0.85rem;
    }
    .form-field input {
        font-size: 0.95rem;
        padding: 0.6rem 0.75rem;
        width: 100%;
    }
    .info-form-section {
        padding: 1.25rem;
    }
    /* 校园履历展开详情响应式 */
    .experience-details .detail-section {
        padding: 0.8rem;
    }
}

/* 可展开的校园履历样式 */
.experience-item.expandable .experience-header {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* 重点项目特殊样式 */
.experience-item.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.experience-item.featured::before {
    content: "重点项目";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.experience-item.featured .experience-organization {
    font-weight: 700;
    color: #667eea;
}

.experience-item.featured .experience-role {
    color: #764ba2;
    font-weight: 600;
}

.experience-item.expandable .experience-header:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.expand-icon {
    transition: transform 0.3s ease;
    color: #667eea;
    font-size: 0.9rem;
}

.experience-item.expanded .expand-icon {
    transform: rotate(180deg);
}

  /* 基本内容 - 始终显示 */
  .experience-basic {
      margin-top: 1rem;
      opacity: 1;
  }
  
  /* 详细内容 - 默认隐藏 */
  .experience-details {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
      opacity: 0;
  }
  
  .experience-item.expanded .experience-details {
      max-height: 3000px;
      opacity: 1;
      margin-top: 1.5rem;
  }
  
  /* 展开提示按钮 */
  .expand-hint {
      margin-top: 1rem;
      padding: 0.75rem 1.5rem;
      background: var(--color-primary);
      color: white;
      border: 2px solid var(--color-primary);
      border-radius: var(--radius-md);
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      width: fit-content;
      max-width: 200px;
  }
  
  .expand-hint:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      background: var(--color-bg-primary);
      color: var(--color-primary);
      border-color: var(--color-primary);
  }
  
  .experience-item.expanded .expand-hint {
      background: var(--color-bg-secondary);
      color: var(--color-text-secondary);
      border-color: var(--color-border);
  }
  
  .experience-item.expanded .expand-hint:hover {
      background: var(--color-text-secondary);
      color: white;
      border-color: var(--color-text-secondary);
  }
  
  .expand-hint i {
      transition: transform 0.3s ease;
      font-size: 0.8rem;
  }
  
  .experience-item.expanded .expand-hint i {
      transform: rotate(180deg);
  }

.experience-details h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.experience-details .detail-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.experience-details .detail-section h5 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.experience-details .detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-details .detail-section li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-details .detail-section li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ============================================
   项目详情弹窗样式
   ============================================ */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.project-modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    flex: 1;
}

/* ==============================
   项目弹窗布局修正（单列呈现）
   覆盖早期通用 .modal-body 的居中样式
   ============================== */
.project-modal .modal-body {
    display: block; /* 使用普通文档流，垂直单列 */
}

.project-modal .modal-subtitle,
.project-modal .modal-website,
.project-modal .modal-overview,
.project-modal .modal-details,
.project-modal .modal-skills {
    width: 100%;
}

.project-modal .modal-details {
    display: block; /* 确保详情分区按块级纵向排列 */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.modal-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-date {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-website {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-website i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.modal-website a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    word-break: break-all;
}

.modal-website a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.modal-overview {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.modal-overview h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-overview p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.modal-details {
    margin-bottom: 2rem;
}

.modal-details .detail-section {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.modal-details .detail-section:last-child {
    margin-bottom: 0;
}

.modal-details .detail-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-details .detail-section h4::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.modal-details .detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-details .detail-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.modal-details .detail-section li:last-child {
    margin-bottom: 0;
}

.modal-details .detail-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-skills {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.modal-skills h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ============================================
   简化的项目卡片样式
   ============================================ */

.project-showcase {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-showcase:hover {
    box-shadow: var(--shadow-xl);
}

.project-cover {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-showcase:hover .project-cover-image {
    transform: scale(1.05);
}

.project-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-cover-placeholder i {
    font-size: 4rem;
    opacity: 0.9;
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.project-overview-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-skills {
    margin-top: auto;
}

.project-card-skills .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-more {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card-action {
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.project-showcase:hover .view-details-btn {
    background: var(--gradient-light);
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .project-cover {
        height: 200px;
    }
    
    .project-card-body {
        padding: 1.25rem;
    }
}