/* ===== CSS变量定义 ===== */
:root {
    /* 颜色主题 */
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f093fb;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #ffecd2;
    --accent-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    
    /* 深色主题 */
    --dark-primary: #1a1a2e;
    --dark-secondary: #16213e;
    --dark-accent: #0f3460;
    
    /* 文本颜色 */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* 边框和阴影 */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* 尺寸 */
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --container-padding: 2rem;
    --section-padding: 4rem 0;
    
    /* 字体 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* z-index层级 */
    --z-loading: 10000;
    --z-navbar: 1000;
    --z-navigation: 900;
    --z-overlay: 800;
    --z-modal: 700;
    --z-dropdown: 600;
    --z-fixed: 500;
}

/* ===== 扩展样式变量 ===== */
:root {
    /* 扩展渐变色 */
    --success-gradient: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: all var(--transition-normal);
}

/* ===== 加载动画 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-white);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--text-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: rgba(255, 255, 255, 0.7);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.6s;
    border-top-color: rgba(255, 255, 255, 0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-navbar);
    transition: all var(--transition-normal);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.nav-brand .brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-top: 0.2rem;
    opacity: 0.8;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 新的导航按钮样式 */
.nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}



/* ===== 主要内容容器 ===== */
.main-container {
    position: relative;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--header-height) 0 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== 页面元素动画 ===== */
.section * {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* ===== 首页样式 ===== */
.section-home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
    overflow: hidden;
}

.hero-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 40%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    font-size: 1.5rem;
    font-weight: var(--font-weight-normal);
    opacity: 0.9;
}

.title-name {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-subtitle {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.8;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-color);
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
    animation: avatarFloat 6s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.avatar-status {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}





.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

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

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== 作品展示区域 ===== */
.section-projects {
    background: var(--bg-secondary);
    padding: 0;
}

.projects-container {
    width: 100%;
    position: relative;
}

.project-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) var(--container-padding) 2rem;
    position: relative;
    overflow: hidden;
}

.project-slide:nth-child(odd) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-white);
}

.project-slide:nth-child(even) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--text-white);
}

.project-slide:nth-child(3n) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: var(--text-primary);
}

/* 第三个项目的按钮和标签优化 - 深色设计确保可读性 */
.project-slide:nth-child(3n) .project-category {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.project-slide:nth-child(3n) .highlight-item {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.project-slide:nth-child(3n) .btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border: 2px solid var(--primary-color);
}

.project-slide:nth-child(3n) .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.project-slide:nth-child(3n) .btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.project-slide:nth-child(3n) .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 第三个项目的统计数据优化 - 深色数字确保可读性 */
.project-slide:nth-child(3n) .stat-value {
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.project-slide:nth-child(3n) .stat-text {
    color: var(--text-primary);
    opacity: 0.7;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-info {
    text-align: left;
}

.project-header {
    margin-bottom: 2rem;
}

.project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-title {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.3rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.highlight-item::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.project-mockup {
    max-width: 800px;
    background: transparent;
    border-radius: var(--border-radius-lg);
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.project-mockup:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.project-mockup:hover img {
    /* 保持图片原样，不做任何变换 */
}



.mockup-icon {
    font-size: 4rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.mockup-content {
    text-align: center;
    padding: 2rem;
}

.mockup-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.mockup-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== 联系页面 ===== */
.section-contact {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

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

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

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1000px;
}



.contact-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.contact-card:hover::before {
    transform: translateX(0);
}

.contact-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl);
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    display: inline-block;
}

.contact-link:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.contact-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}



/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== 通知系统 ===== */
.notifications-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

.notification {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(350px);
    transition: all var(--transition-normal);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #48bb78;
}

.notification.error {
    border-left: 4px solid #f56565;
}

.notification.warning {
    border-left: 4px solid #ed8936;
}

.notification.info {
    border-left: 4px solid #4299e1;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-avatar {
        width: 250px;
        height: 250px;
    }
    
    .avatar-image {
        font-size: 7rem;
    }
    
    .avatar-status {
        bottom: 25px;
        right: 25px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-mockup {
        max-width: 650px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-card {
        padding: 2rem;
        text-align: center;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    

}

/* 中等移动设备 (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero-avatar {
        width: 180px;
        height: 180px;
    }
    
    .avatar-image {
        font-size: 5.5rem;
    }
    
    .project-content {
        gap: 1.8rem;
    }
    
    .project-mockup {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .project-highlights {
        max-width: 450px;
    }
    
    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .project-actions .btn {
        flex: 1;
        max-width: calc(50% - 0.4rem);
        min-width: 130px;
    }
    
    .contact-card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    /* 强制隐藏首页导航栏 */
    body.home-page .navbar,
    .section-home .navbar {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        transition: all 0.3s ease-in-out !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0 var(--container-padding);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem;
        border-radius: var(--border-radius);
        transition: all var(--transition-normal);
    }
    
    .nav-link:hover {
        background: rgba(102, 126, 234, 0.1);
    }
    
    .nav-link span {
        display: inline;
    }
    
    /* 首页移动端优化 */
    .section-home {
        min-height: 100vh;
        padding: 0;
    }
    
    .section-home .navbar {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s ease-in-out;
    }
    
    .section-projects .navbar,
    .section-contact .navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero-container {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        padding: 3rem var(--container-padding) 8rem;
        padding-top: max(3rem, 10vh);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        margin-bottom: 1rem;
    }
    
    .hero-avatar {
        width: 160px;
        height: 160px;
    }
    
    .avatar-image {
        font-size: 5rem;
    }
    
    .avatar-status {
        bottom: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        min-width: 120px;
        flex: 1;
        max-width: calc(50% - 0.4rem);
    }
    
    .scroll-hint {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
    
    /* 项目页面移动端优化 */
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .project-info {
        order: 1;
    }
    
    .project-visual {
        order: 0;
    }
    
    .project-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .project-description {
        font-size: 1.1rem;
        text-align: center;
        line-height: 1.7;
    }
    
    .project-category {
        margin: 0 auto 1rem;
        display: inline-block;
    }
    
    .project-mockup {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-mockup:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.08);
    }
    
    .project-mockup:hover img {
        /* 保持图片原样 */
    }
    
    .project-highlights {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: left;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    
    .highlight-item {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .project-actions .btn {
        flex: 1;
        max-width: calc(50% - 0.4rem);
        min-width: 120px;
    }
    
    .project-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .project-stat {
        min-width: 100px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    .project-mockup {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-mockup:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 10px 20px rgba(0, 0, 0, 0.1),
            0 5px 12px rgba(0, 0, 0, 0.06);
    }
    
    .project-mockup:hover img {
        /* 保持图片原样 */
    }
    
    .mockup-features {
        grid-template-columns: 1fr;
    }
    
    /* 联系页面移动端优化 */
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
        min-height: 120px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* 滚动提示优化 */
    .scroll-hint {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 10;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        font-size: 1rem;
    }
    
    /* 返回顶部按钮优化 */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --border-radius: 8px;
        --border-radius-lg: 12px;
    }
    
    /* 强制隐藏首页导航栏 */
    body.home-page .navbar,
    .section-home .navbar {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        transition: all 0.3s ease-in-out !important;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .brand-info {
        display: none;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        margin: 0 1rem;
        padding: 0.8rem;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* 首页小屏幕优化 */
    .section-home {
        min-height: 100vh;
        padding: 0;
    }
    
    .section-home .navbar {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s ease-in-out;
    }
    
    .section-projects .navbar,
    .section-contact .navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero-container {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        padding: 2rem var(--container-padding) 7rem;
        padding-top: max(2rem, 8vh);
    }
    
    .hero-content {
        gap: 1.5rem;
        width: 100%;
    }
    
    .hero-visual {
        margin-bottom: 0.5rem;
    }
    
    .hero-avatar {
        width: 130px;
        height: 130px;
    }
    
    .avatar-image {
        font-size: 4rem;
    }
    
    .avatar-status {
        bottom: 12px;
        right: 12px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .title-line {
        font-size: 1.1rem;
    }
    
    .title-name {
        font-size: 1.9rem;
    }
    
    .title-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 110px;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
        flex: 1;
        max-width: calc(50% - 0.3rem);
    }
    
    .scroll-hint {
        position: absolute;
        bottom: 1.2rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }
    
    /* 项目页面小屏幕优化 */
    .project-slide {
        padding: calc(var(--header-height) + 1rem) 1rem 1.5rem;
        min-height: 100vh;
    }
    
    .project-content {
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .project-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .project-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .project-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .project-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .project-highlights {
        max-width: 100%;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }
    
    .highlight-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }
    
    .project-actions .btn {
        flex: 1;
        max-width: calc(50% - 0.3rem);
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .project-stats {
        gap: 1rem;
    }
    
    .project-stat {
        min-width: 80px;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    .project-mockup {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .project-mockup:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 10px 20px rgba(0, 0, 0, 0.1),
            0 5px 12px rgba(0, 0, 0, 0.06);
    }
    
    .project-mockup:hover img {
        /* 保持图片原样 */
    }
    
    .mockup-features {
        grid-template-columns: 1fr;
    }
    
    /* 联系页面小屏幕优化 */
    .section-contact {
        padding: 4rem 0;
    }
    
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .contact-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        min-height: auto;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .contact-copy {
        font-size: 0.85rem;
    }
    
    /* 其他元素优化 */
    .scroll-hint {
        position: absolute;
        bottom: 1.2rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 10;
    }
    
    .scroll-text {
        font-size: 0.75rem;
    }
    
    .scroll-arrow {
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.1rem;
    }
    
    .notifications-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .notification {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* 加载屏幕优化 */
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

/* ===== 移动设备横屏优化 ===== */
@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --container-padding: 1rem;
    }
    
    .section {
        min-height: 100vh;
    }
    
    .section-home {
        min-height: 100vh;
        padding: 0;
    }
    
    /* 强制隐藏首页导航栏 */
    body.home-page .navbar,
    .section-home .navbar {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        transition: all 0.3s ease-in-out !important;
    }
    
    .section-projects .navbar,
    .section-contact .navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero-container {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        padding: 1.5rem var(--container-padding) 5rem;
        padding-top: max(1.5rem, 8vh);
    }
    
    .hero-content {
        gap: 1rem;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        width: 100%;
    }
    
    .hero-text {
        order: 0;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 0;
    }
    
    .hero-avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-image {
        font-size: 3rem;
    }
    
    .avatar-status {
        bottom: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .stat-item {
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-actions {
        gap: 0.5rem;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-height: 32px;
        width: auto;
        min-width: 100px;
        flex: 1;
        max-width: calc(50% - 0.25rem);
    }
    
    .scroll-hint {
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 10;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
    
    .scroll-arrow {
        font-size: 0.7rem;
    }
    
    .project-content {
        gap: 1.5rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .project-highlights {
        margin-bottom: 1rem;
    }
    
    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .project-actions .btn {
        flex: 1;
        max-width: calc(50% - 0.25rem);
        min-width: 80px;
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }
    
    .section-contact {
        padding: 2rem 0;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* ===== 大屏幕移动设备 (平板) ===== */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-avatar {
        width: 220px;
        height: 220px;
    }
    
    .avatar-image {
        font-size: 6.5rem;
    }
    
    .project-content {
        gap: 2.5rem;
    }
    
    .project-mockup {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .project-highlights {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .project-actions .btn {
        flex: 1;
        max-width: calc(50% - 0.5rem);
        min-width: 140px;
    }
    
    .contact-card {
        padding: 2.5rem;
    }
}

/* ===== 触摸设备优化 ===== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .project-mockup:hover {
        transform: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link:hover {
        background: transparent;
    }
}

/* ===== 高对比度和可访问性 ===== */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .project-mockup:hover {
        transform: none !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    }
    
    .project-mockup:hover img {
        /* 保持图片原样 */
    }
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .project-navigation,
    .back-to-top,
    .notifications-container {
        display: none !important;
    }
    
    .section {
        page-break-after: always;
    }
    
    .section-home {
        background: none !important;
        color: black !important;
    }
}

/* ===== 滚动条样式 ===== */
::-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(--secondary-color);
}

/* ===== 选择文本样式 ===== */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

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

/* ===== 极小屏幕优化 (iPhone SE 等) ===== */
@media (max-width: 375px) {
    /* 强制隐藏首页导航栏 */
    body.home-page .navbar,
    .section-home .navbar {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-100%) !important;
        pointer-events: none !important;
        transition: all 0.3s ease-in-out !important;
    }
    
    .section-projects .navbar,
    .section-contact .navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero-container {
        padding: 1.5rem var(--container-padding) 6rem;
        padding-top: max(1.5rem, 6vh);
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-avatar {
        width: 110px;
        height: 110px;
    }
    
    .avatar-image {
        font-size: 3.5rem;
    }
    
    .avatar-status {
        bottom: 10px;
        right: 10px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .title-name {
        font-size: 1.7rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.2rem;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 100px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-height: 36px;
        flex: 1;
        max-width: calc(50% - 0.25rem);
    }
    
    .scroll-hint {
        bottom: 1rem;
        z-index: 10;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .scroll-arrow {
        font-size: 0.8rem;
    }
} 