/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Black, White, Gray */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Base Font Size - 自适应 */
    --base-font-size: clamp(14px, 1.5vw, 16px);
    
    /* Spacing - 响应式间距 */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-sm: clamp(0.75rem, 1.5vw, 1rem);
    --spacing-md: clamp(1.5rem, 3vw, 2rem);
    --spacing-lg: clamp(3rem, 6vw, 4rem);
    --spacing-xl: clamp(4rem, 8vw, 6rem);
    
    /* Sidebar Width - 响应式 */
    --sidebar-width: clamp(180px, 15vw, 210px);
    
    /* Container Max Width - 响应式 */
    --container-max-width: clamp(1200px, 90vw, 1400px);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints (for reference in comments) */
    /* --breakpoint-xs: 320px; */
    /* --breakpoint-sm: 480px; */
    /* --breakpoint-md: 768px; */
    /* --breakpoint-lg: 1024px; */
    /* --breakpoint-xl: 1280px; */
    /* --breakpoint-2xl: 1536px; */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: var(--base-font-size);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 整体背景图 - 50%半透明 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* ============================================
   Typography - 欧美杂志风格
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-black);
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

p {
    color: var(--color-gray-700);
    line-height: 1.75;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    margin-bottom: 1.25em;
    font-weight: 400;
}

/* 段落间距优化 */
p + p {
    margin-top: 1.25em;
}

/* 正文强调文字 */
strong, b {
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.01em;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: left 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}


/* 左侧导航栏 */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    padding-top: clamp(80px, 10vh, 100px);
    transition: transform 0.3s ease, width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.4);
}

.sidebar-content {
    padding: clamp(2rem, 4vw, 3rem) 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header,
.sidebar-footer {
    padding: 0 clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.sidebar-footer {
    margin-top: auto;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 clamp(0.75rem, 1.5vw, 1rem);
    margin: 0;
}

.sidebar-links li {
    width: 100%;
}

.sidebar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.75rem, 1.5vw, 1rem);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 56px;
    z-index: 2;
    font-weight: 400;
    border-radius: 0;
    overflow: visible;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: clamp(1rem, 2vw, 1.25rem);
}

.sidebar-link:hover::before {
    transform: scaleY(1);
}

.sidebar-link.active {
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.12);
    font-weight: 500;
    padding-left: clamp(1rem, 2vw, 1.25rem);
}

.sidebar-link.active::before {
    transform: scaleY(1);
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-number {
    display: none;
}

.sidebar-text {
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: inherit;
    white-space: nowrap;
    flex: 1;
    transition: all 0.3s ease;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-line {
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.sidebar-link:hover .sidebar-line,
.sidebar-link.active .sidebar-line {
    width: clamp(20px, 3vw, 30px);
    opacity: 1;
}


/* 主内容区域调整 */
.main-content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease, width 0.3s ease;
}


.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.95);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.menu-toggle span {
    width: 24px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--color-white);
    position: relative;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    position: relative;
}

/* 统计信息 - 照片右下角下方 */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-right: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-gray-200);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-gray-700);
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-item-like {
    cursor: pointer;
}

.stat-item-like:hover {
    border-color: var(--color-gray-400);
}

.stat-item-like.liked {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.stat-item-like.liked .stat-icon {
    fill: #ef4444;
    stroke: #ef4444;
}

.stat-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: var(--transition-base);
}

.stat-item-like.liked .stat-icon {
    fill: currentColor;
}

.stat-value {
    font-weight: 600;
    font-family: var(--font-sans);
    min-width: 1.5rem;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero-text {
    max-width: 600px;
}

.hero-greeting {
    font-size: clamp(0.85rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-family: var(--font-sans);
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.04em;
    margin-top: 0.5rem;
}

.hero-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: var(--font-sans);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: var(--font-sans);
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    max-width: 550px;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn {
    padding: 14px 32px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-base);
    border: 1px solid var(--color-black);
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--color-gray-800);
    border-color: var(--color-gray-800);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.university-logos {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.university-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: var(--transition-base);
}

.university-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.university-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-img {
    height: clamp(50px, 6vw, 70px);
    width: auto;
    max-width: clamp(50px, 6vw, 70px);
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition-base);
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.university-logo:hover .logo-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-gray-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--color-gray-400);
    animation: scrollLine 2s infinite;
}

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

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    position: relative;
}

.section-dark {
    background: linear-gradient(180deg, #e8e8e8 0%, #e0e0e0 100%);
    position: relative;
}

/* section样式 */
#skills,
#experience,
#projects {
    position: relative;
    overflow: hidden;
}

/* Work Experience - 欧美冰川美景，简约高级色调 */
#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    filter: grayscale(30%) brightness(1.15) contrast(1.1) saturate(0.7) sepia(5%);
}

/* Projects & Research - 科技研究背景，简约高级色调 */
#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    filter: grayscale(30%) brightness(1.15) contrast(1.1) saturate(0.7) sepia(5%);
}

/* 确保内容在背景图上方 */
.section-container,
.hero-container {
    position: relative;
    z-index: 1;
}

#skills .section-container,
#experience .section-container,
#projects .section-container {
    position: relative;
    z-index: 1;
}

/* 为有背景图的section添加文字样式，确保可读性 */
#skills .section-title {
    color: var(--color-black);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 
                 -1px -1px 2px rgba(255, 255, 255, 0.8),
                 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Work Experience 标题样式 - 简约高级 */
#experience .section-title {
    color: var(--color-black);
    text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.95), 
                 0 0 15px rgba(255, 255, 255, 0.8),
                 -1px -1px 3px rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

#skills .section-number {
    color: var(--color-gray-700);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* Work Experience 编号样式 */
#experience .section-number {
    color: var(--color-gray-600);
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

#skills p,
#experience p,
#projects p {
    color: var(--color-gray-800);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

#skills h3,
#experience h3,
#projects h3 {
    color: var(--color-black);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* 技能列表文字 */
#skills .skill-list li {
    color: var(--color-gray-800);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
}

/* 时间线文字 - 卡片内文字，简约高级 */
#experience .timeline-company {
    color: var(--color-black);
    font-weight: 600;
}

#experience .timeline-position {
    color: var(--color-gray-700);
    font-weight: 500;
}

#experience .timeline-details li {
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* Projects & Research 标题样式 - 简约高级 */
#projects .section-title {
    color: var(--color-black);
    text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.95), 
                 0 0 15px rgba(255, 255, 255, 0.8),
                 -1px -1px 3px rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* Projects & Research 编号样式 */
#projects .section-number {
    color: var(--color-gray-600);
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 项目卡片文字 */
#projects .project-title {
    color: var(--color-black);
    font-weight: 600;
}

#projects .project-description {
    color: var(--color-gray-700);
    line-height: 1.8;
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-gray-200);
}

.section-number {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--color-gray-500);
    font-weight: 400;
    letter-spacing: 0.05em;
    min-width: 3rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conference-image {
    width: 100%;
    height: auto;
    transition: var(--transition-slow);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.conference-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: center;
    height: 100%;
}

.about-intro {
    margin-bottom: var(--spacing-md);
}

.about-intro p {
    margin-bottom: 1.5em;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--color-gray-700);
    line-height: 1.85;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-200);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--color-gray-600);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.detail-value {
    color: var(--color-black);
    font-weight: 400;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.skill-category {
    background-color: var(--color-white);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.skill-category:hover {
    border-color: var(--color-black);
    transform: translateY(-2px);
}

.skill-category-title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

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

.skill-list li {
    padding: 0.75em 0;
    color: var(--color-gray-700);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    position: relative;
    padding-left: var(--spacing-sm);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.skill-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-gray-400);
}

/* ============================================
   Experience Section
   ============================================ */
.experience-timeline {
    position: relative;
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--color-gray-300);
}

.timeline-item {
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
    position: relative;
    padding-left: var(--spacing-md);
}

/* 将时间放在卡片内 */
.timeline-item .timeline-date {
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    background-color: var(--color-black);
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.98);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(255, 255, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
}

.timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

.timeline-company {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.timeline-position {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    font-family: var(--font-sans);
}

.timeline-details {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.timeline-details li {
    padding: 0.75em 0;
    color: var(--color-gray-700);
    line-height: 1.85;
    position: relative;
    padding-left: var(--spacing-md);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    letter-spacing: 0.01em;
}

.timeline-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-black);
    font-weight: bold;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.98);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(255, 255, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    height: 100%;
    min-height: 280px;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.project-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-500);
    font-weight: 500;
}

.project-title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
    margin-top: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.project-description {
    color: var(--color-gray-700);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    letter-spacing: 0.01em;
    min-height: 4.5em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
}

.tag {
    padding: 4px 12px;
    background-color: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-gray-200);
}

/* ============================================
   Honors Section
   ============================================ */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.honor-item {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.honor-item:hover {
    border-color: var(--color-black);
    transform: translateY(-2px);
}

.honor-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.honor-title {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.honor-description {
    color: var(--color-gray-700);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xl);
    line-height: 1.85;
    letter-spacing: 0.01em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-gray-600);
    text-decoration: none;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition-base);
}

.contact-item:hover {
    border-color: var(--color-black);
    color: var(--color-black);
    background-color: var(--color-gray-100);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.resume-download {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer p {
    color: var(--color-gray-400);
    font-size: 0.85rem;
    margin: var(--spacing-xs) 0;
}

.footer-note {
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-name {
        font-size: 3.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
    display: flex;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .honors-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
    width: 100%;
        text-align: center;
    }
    
    .resume-download {
        flex-direction: column;
    }
    
    .resume-download .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-container {
        padding: 0 var(--spacing-sm);
    }
    
    .university-logos {
        gap: 1rem;
        margin-top: 2.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

/* ============================================
   Blog Section
   ============================================ */
.section-header {
    position: relative;
}

.blog-add-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-add-btn:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-add-btn svg {
    width: 24px;
    height: 24px;
}

.blog-upload-form {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.blog-form-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: flex-end;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.blog-empty {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 1.1rem;
    padding: var(--spacing-xl) 0;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-md);
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-black);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.blog-card-url {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    text-decoration: none;
    word-break: break-all;
    display: block;
    transition: var(--transition-base);
}

.blog-card-url:hover {
    color: var(--color-black);
    text-decoration: underline;
}

.blog-delete-btn {
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-delete-btn:hover {
    color: var(--color-black);
    background-color: var(--color-gray-100);
}


/* 响应式设计 - 已整合到全面响应式系统中 */

/* 移动设备 (最大768px) */
@media (max-width: 768px) {
    .navbar {
        left: 0;
        right: 0;
        padding: var(--spacing-xs) 0;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
    display: flex;
    }
    
    .sidebar-nav {
        display: none;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }
    
    .hero-container {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats {
        margin-top: 2.5rem;
        gap: 1rem;
        justify-content: center;
        padding-right: 0;
    }
    
    .stat-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-number {
        font-size: 1.25rem;
    }
    
    .section-container {
        padding: 0 var(--spacing-sm);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .honors-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: var(--spacing-sm);
    }
    
    .project-card {
        padding: var(--spacing-sm);
    }
    
    .blog-add-btn {
        width: 40px;
        height: 40px;
        right: var(--spacing-xs);
    }
    
    .blog-add-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .blog-card {
        padding: var(--spacing-sm);
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .form-actions {
    flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* 移动端背景图优化 */
    #experience::before,
    #projects::before {
        background-attachment: scroll;
        opacity: 0.3;
    }
}

/* 小屏移动设备 (最大480px) - iPhone等 */
@media (max-width: 480px) {
    .navbar {
        left: 0;
        right: 0;
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .main-content-wrapper {
        padding-top: 50px;
    }
    
    .hero-name {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-number {
        font-size: 1rem;
    }
    
    .section-container {
        padding: 0 var(--spacing-xs);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .blog-add-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: var(--spacing-xs);
        align-self: flex-end;
    }
    
    .timeline-content {
        padding: var(--spacing-xs);
    border-radius: 8px;
    }
    
    .project-card {
        padding: var(--spacing-xs);
    }
    
    .blog-card {
        padding: var(--spacing-xs);
    }
    
    .blog-card-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-url {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* 移动端背景图进一步优化 */
    #experience::before,
    #projects::before {
        opacity: 0.25;
        filter: grayscale(40%) brightness(1.2) contrast(1.15) saturate(0.6);
    }
    
    body::before {
        background-attachment: scroll;
        opacity: 0.4;
    }
}

/* iPhone 16 Pro Max 等大屏手机 (393px - 480px) */
@media (max-width: 480px) and (min-width: 393px) {
    .hero-name {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .blog-card:hover,
    .project-card:hover,
    .timeline-content:hover {
        transform: none;
    }
    
    .btn:active,
    .blog-card:active,
    .project-card:active,
    .timeline-content:active {
        transform: scale(0.98);
    }
    
    /* 增加触摸目标大小 */
    .blog-delete-btn,
    .blog-add-btn,
    .sidebar-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   全面响应式自适应系统
   ============================================ */

/* 超大屏幕 (1920px+) - 4K显示器等 */
@media (min-width: 1920px) {
    :root {
        --sidebar-width: 240px;
        --container-max-width: 1600px;
        --base-font-size: 18px;
    }
    
    .hero-name {
        font-size: clamp(4rem, 6vw, 5.5rem);
    }
    
    .section-title {
        font-size: clamp(3rem, 4vw, 3.5rem);
    }
}

/* 大屏幕 (1536px - 1919px) - 大桌面显示器 */
@media (min-width: 1536px) and (max-width: 1919px) {
    :root {
        --sidebar-width: 220px;
        --container-max-width: 1500px;
    }
}

/* 中等大屏幕 (1280px - 1535px) - 标准桌面 */
@media (min-width: 1280px) and (max-width: 1535px) {
    :root {
        --sidebar-width: 200px;
        --container-max-width: 1300px;
    }
}

/* 标准屏幕 (1024px - 1279px) - 小桌面/大平板 */
@media (min-width: 1024px) and (max-width: 1279px) {
    :root {
        --sidebar-width: 190px;
        --container-max-width: 1200px;
    }
    
    .hero-name {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .section-title {
        font-size: clamp(2.25rem, 3.5vw, 2.75rem);
    }
}

/* 平板横屏 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --sidebar-width: 0;
    }
    
    .navbar {
        left: 0;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏/大手机 (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    :root {
        --sidebar-width: 0;
        --base-font-size: 15px;
    }
    
    .navbar {
        left: 0;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }
    
    .hero-name {
        font-size: clamp(2.25rem, 6vw, 2.75rem);
    }
    
    .section-title {
        font-size: clamp(1.875rem, 5vw, 2.25rem);
    }
    
    .projects-grid,
    .honors-grid {
        grid-template-columns: 1fr;
    }
}

/* 小手机 (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    :root {
        --sidebar-width: 0;
        --base-font-size: 14px;
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 2.5rem;
    }
    
    .navbar {
        left: 0;
        padding: 8px 0;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 50px;
    }
    
    .hero-name {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }
}

/* 超小屏幕 (小于320px) */
@media (max-width: 319px) {
    :root {
        --base-font-size: 13px;
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* 高分辨率屏幕优化 (Retina等) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 优化图片显示 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .sidebar-nav {
        display: none;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --color-gray-400: #666666;
        --color-gray-500: #555555;
    }
    
    .sidebar-link {
        border: 1px solid transparent;
    }
    
    .sidebar-link:hover,
    .sidebar-link.active {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* 深色模式支持（如果将来需要） */
@media (prefers-color-scheme: dark) {
    /* 当前设计已经是深色导航栏，这里可以添加更多深色模式优化 */
}

