/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --border-color: #475569;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: none !important;
    transition: var(--transition);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Hero部分 */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-animation {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    min-height: 1.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding: 1rem 0;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.05);
}

/* 移动端图片 */
.hero-image-mobile {
    display: none;
    text-align: center;
    margin-bottom: 1rem;
}

.profile-image-mobile {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* 个人卡片 */
.desktop-only {
    display: block;
}

.hero-profile-card {
    margin: 1rem 0;
}

.profile-card-mini {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    max-width: 400px;
    transition: var(--transition);
}

.profile-card-mini:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.profile-mini-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.profile-image-mini {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
    transition: var(--transition);
}

.profile-image-mini:hover {
    transform: scale(1.05);
}

.profile-info-mini h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 600;
}

.profile-info-mini p {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.location-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

.floating-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.floating-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-badge:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.badge-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

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

/* Terminal窗口 */
.hero-terminal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    width: 100%;
    max-width: 500px;
    font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;
    position: relative;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.terminal-header {
    background: linear-gradient(145deg, #2a2a2a 0%, #2d2d2d 100%);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #404040;
    position: relative;
}

.terminal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.terminal-controls {
    display: flex;
    gap: 0.6rem;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terminal-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.terminal-btn:hover::after {
    opacity: 1;
}

.terminal-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.terminal-btn.close {
    background: linear-gradient(145deg, #ff5f56 0%, #ff4444 100%);
}

.terminal-btn.minimize {
    background: linear-gradient(145deg, #ffbd2e 0%, #ffa500 100%);
}

.terminal-btn.maximize {
    background: linear-gradient(145deg, #27ca3f 0%, #22c55e 100%);
}

.terminal-title {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
    letter-spacing: 0.025em;
}

.terminal-body {
    padding: 1.5rem;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 300px;
    color: #fff;
    line-height: 1.6;
    position: relative;
}

/* 添加终端扫描线效果 */
.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, rgba(0, 255, 0, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 255, 0, 0.03) 50%, transparent 51%);
    background-size: 3px 3px;
    pointer-events: none;
    animation: scan 20s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.terminal-line {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #fff;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: 700;
    margin-right: 0.6rem;
    white-space: nowrap;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.terminal-command {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.terminal-output {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    border-left: 3px solid var(--primary-color);
    position: relative;
    display: block;
    width: 100%;
}

.terminal-output::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.typing-line {
    margin-bottom: 0.8rem;
    opacity: 0;
    font-size: 0.85rem;
    transform: translateX(-10px);
    transition: all 0.6s ease-out;
    display: block;
    color: #fff;
}

.typing-line.animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.terminal-text {
    display: block;
    width: 100%;
}

.key-highlight {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.success-text {
    color: #22c55e;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.current-line {
    margin-top: 1.5rem;
}

.terminal-cursor {
    background: #4ade80;
    color: #1a1a1a;
    animation: blink 1.2s infinite;
    padding: 0 0.4rem;
    margin-left: 0.4rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    border-radius: 2px;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Achievements */
.achievements h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.achievement-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.achievement-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.achievement-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.achievement-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Skills Section */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.skills-section h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.skill-category {
    width: 100%;
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: left;
}

/* Programming Languages 保持左对齐 */
.skills-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-left: auto;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

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

/* Frameworks & Tools 居中 */
.frameworks-section {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

.frameworks-section h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    justify-items: center;
}

.skill-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 110px;
}

.skill-badge:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-badge .skill-icon {
    width: 32px;
    height: 32px;
    filter: none !important;
    object-fit: contain;
}

.skill-badge span {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Education & Timeline */
.education {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(to right, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--primary-color) 100%);
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 1rem;
    padding: 0 5%;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    max-width: 280px;
}

.timeline-marker {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    z-index: 2;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(10px);
}

.timeline-marker .timeline-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--border-color);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--bg-card);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.timeline-date {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-btn {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: auto;
}

.project-btn:hover {
    background: rgba(6, 182, 212, 0.9);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.project-btn .btn-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.project-btn.btn-secondary {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(71, 85, 105, 0.5);
    color: var(--text-primary);
}

.project-btn.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.9);
    border-color: rgba(94, 109, 133, 0.7);
}

.project-content {
    padding: 1.8rem;
}

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

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    flex: 1;
    line-height: 1.3;
}

.project-status {
    margin-left: 1rem;
    flex-shrink: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-badge.featured {
    background: var(--success-color);
    color: white;
}

.status-badge.academic {
    background: var(--primary-color);
    color: white;
}

.status-badge.internship {
    background: var(--accent-color);
    color: white;
}

.status-badge.personal {
    background: var(--warning-color);
    color: white;
}

.status-badge.research {
    background: #8b5cf6;
    color: white;
}

.status-badge.competition {
    background: #f59e0b;
    color: white;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.3rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.3rem;
}

.project-tech span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-stats {
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stat .stat-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-card);
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

.contact-link span:last-child {
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Section通用样式 */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* 图标样式 */
.btn-icon,
.card-icon,
.achievement-icon,
.skill-icon,
.timeline-icon,
.stat-icon,
.contact-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.achievement-icon,
.timeline-icon,
.stat-icon,
.contact-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(49%) sepia(96%) saturate(1945%) hue-rotate(197deg) brightness(101%) contrast(93%);
}

/* 移除floating-cards */
.floating-cards,
.hero-image {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero {
        min-height: 90vh;
        padding: 100px 0 60px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-terminal {
        order: -1;
    }
    
    .terminal-window {
        max-width: 100%;
    }
    
    .desktop-only {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex: 0 0 45%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-image-mobile {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .terminal-body {
        padding: 1.2rem;
        min-height: 240px;
    }
    
    .typing-line {
        font-size: 0.75rem;
    }
    
    .terminal-prompt,
    .terminal-command {
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .timeline-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
        max-width: 500px;
    }
    
    .skill-badge {
        padding: 1rem 0.6rem;
        max-width: 90px;
    }
    
    .skill-badge .skill-icon {
        width: 28px;
        height: 28px;
    }
    
    .skill-badge span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .terminal-header {
        padding: 0.6rem 0.8rem;
    }
    
    .terminal-body {
        padding: 1rem;
        min-height: 240px;
    }
    
    .typing-line {
        font-size: 0.75rem;
    }
    
    .terminal-prompt,
    .terminal-command {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 300px;
    }
    
    .skill-badge {
        padding: 0.8rem 0.4rem;
    }
    
    .skill-badge .skill-icon {
        width: 24px;
        height: 24px;
    }
    
    .skill-badge span {
        font-size: 0.7rem;
    }
    
    .social-links {
        display: none;
    }
    
    .mobile-social-container {
        margin-top: auto !important;
        padding-top: 2rem;
        display: block;
    }
    
    .mobile-social-links {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .mobile-social {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 481px) {
    .mobile-social-container {
        display: none;
    }
}

/* 动画和自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}