/* ============================================
   张家豪个人网站 - 现代优化版样式
   版本: 3.0.0
   特点: 现代设计、性能优化、流畅动画
   ============================================ */

/* ============================================
   1. CSS 变量定义
   ============================================ */
:root {
    /* 主色调 - 现代渐变风格 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #f472b6;
    
    /* 功能色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;
    
    /* 边框和阴影 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* 字体 */
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* 尺寸 */
    --container-max: 1280px;
    --header-height: 72px;
    --section-padding: 6rem;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* 动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 深色主题 */
.dark-theme {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary-color: #22d3ee;
    --accent-color: #f9a8d4;
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-inverse: #111827;
    
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-elevated: #1f2937;
    
    --border-color: #374151;
    --border-light: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* ============================================
   2. 基础重置和全局样式
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* 列表重置 */
ul, ol {
    list-style: none;
}

/* 表单元素 */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ============================================
   3. 布局工具类
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* 区块样式 */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

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

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex 布局 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

/* ============================================
   4. 按钮组件
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

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

.btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
}

/* ============================================
   5. 卡片组件
   ============================================ */
.card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

/* ============================================
   6. 导航栏
   ============================================ */
/* ============================================
   6. 导航栏 - 固定在页面最上层
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.dark-theme .header {
    background: rgba(17, 24, 39, 0.8);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.dark-theme .header-scrolled {
    background: rgba(17, 24, 39, 0.95);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
}

/* ============================================
   7. Hero 区域
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 4 / 3.5;
    object-fit: cover;
    display: block;
}

/* 访问者信息区域 */
.visitor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

.visitor-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.visitor-info-item i {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.visitor-info-item span {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.visitor-info-item span small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 0.25rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .hero-stats {
        justify-content: center;
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

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

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

/* ============================================
   8. 页面头部 - 更精致的设计
   ============================================ */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.page-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding: 0.375rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 9999px;
}

.page-header-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}



.page-header-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   9. 关于页面 - 优化布局
   ============================================ */
.about-layout {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.about-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bio {
    flex: 1;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section {
    padding: 1.75rem;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

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

.about-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.about-section-title i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 0.875rem;
}

/* 爱好标签 */
.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.hobby-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.hobby-tag:hover {
    background: var(--primary-color);
    color: white;
}

.hobby-tag i {
    font-size: 0.875rem;
}

/* 引用样式 */
.about-quote {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--primary-color);
}

.about-quote::before {
    content: '"';
    position: absolute;
    left: 0.75rem;
    top: 0.375rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-quote p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.about-quote-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: normal;
}

/* 联系信息 */
.about-contact-text {
    margin-bottom: 1rem;
}

.about-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.about-contact-item:hover {
    background: var(--primary-color);
    color: white;
}

.about-contact-item i {
    font-size: 1rem;
}

/* 照片画廊 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.photo-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.photo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .about-avatar {
        width: 100px;
        height: 100px;
    }
    
    .about-title {
        font-size: 1.25rem;
    }
    
    .about-section {
        padding: 1.25rem;
    }
    
    .about-section-title {
        font-size: 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ============================================
   10. 博客页面 - 优化布局
   ============================================ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.filter-tab i {
    margin-top: 0.1rem;
}

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

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

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.blog-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.blog-item .card-image {
    flex: 0 0 420px;
    min-height: 280px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--bg-secondary);
}

.blog-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-item .card-content {
    flex: 1 1 auto;
    padding: 1.5rem 0.75rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.blog-item .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-item .card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item .card-text:last-of-type {
    margin-bottom: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 9999px;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-share a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.blog-share a:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
    }
    
    .blog-item .card-image {
        flex: none;
        width: 100%;
        height: 220px;
        min-height: auto;
    }
    
    .blog-item .card-content {
        padding: 1.25rem;
        min-height: auto;
    }
}

/* ============================================
   11. 记忆页面 - 优化布局
   ============================================ */
/* 治愈系引言样式 */
.healing-quote-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.healing-quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    animation: quoteBgRotate 20s linear infinite;
}

/* 引言标题样式 - 冷色调左侧布局 */
.quote-section-title {
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid #4a90a4;
}

.quote-title-text {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #2c5f6e;
    letter-spacing: 0.3rem;
    position: relative;
    display: inline-block;
}

.quote-title-decoration {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90a4, #7bb3c4, transparent);
    border-radius: 2px;
}

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

.healing-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.quote-decoration {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: decorationFloat 3s ease-in-out infinite;
}

.quote-decoration.left {
    animation-delay: 0s;
}

.quote-decoration.right {
    animation-delay: 1.5s;
}

@keyframes decorationFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.quote-box {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 3rem;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.quote-mark {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.4;
    line-height: 1;
}

.quote-mark.top {
    margin-bottom: 1rem;
}

.quote-mark.bottom {
    margin-top: 1rem;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 2;
    margin: 0;
    font-style: italic;
}

.quote-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.quote-divider i {
    color: var(--primary-color);
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-name {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .healing-intro {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .quote-decoration {
        font-size: 1.5rem;
    }
    
    .quote-box {
        padding: 1.5rem 1.5rem;
    }
    
    .quote-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .quote-mark {
        font-size: 1.5rem;
    }
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.memory-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.memory-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.memory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.memory-item:hover img {
    transform: scale(1.05);
}

/* 飘雪效果 */
.snow-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.memory-item:hover .snow-container {
    opacity: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 0.8rem;
    opacity: 0.8;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100% + 10px)) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

.memory-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.memory-item:hover .memory-overlay {
    opacity: 1;
}

.memory-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.memory-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.memory-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.memory-modal.active {
    opacity: 1;
    visibility: visible;
}

.memory-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.memory-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.memory-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.memory-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .memory-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ============================================
   12. 笔记页面 - 优化布局
   ============================================ */
.notes-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.notes-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.notes-categories {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.notes-categories-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.notes-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notes-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.notes-category-item:hover,
.notes-category-item.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.notes-category-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 9999px;
    color: var(--text-muted);
}

.notes-category-item.active .notes-category-count {
    background: var(--primary-color);
    color: white;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.note-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.note-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.note-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
    min-width: 0;
}

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

.note-title a {
    color: inherit;
}

.note-title a:hover {
    color: var(--primary-color);
}

.note-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.note-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

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

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .notes-layout {
        grid-template-columns: 1fr;
    }
    
    .notes-sidebar {
        position: static;
    }
    
    .notes-categories {
        padding: 1rem;
    }
    
    .notes-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .notes-category-item {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .note-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .note-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   13. 页脚
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-back-top {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-back-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ============================================
   12. 页面加载动画
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   13. 响应式断点
   ============================================ */
@media (max-width: 1280px) {
    :root {
        --section-padding: 5rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   14. 工具类
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   15. 笔记页面样式
   ============================================ */

/* 笔记页面头部 */
.notes-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.notes-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: notesFloat 8s ease-in-out infinite;
}

.notes-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: notesFloat 10s ease-in-out infinite reverse;
}

@keyframes notesFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.notes-header-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.notes-header-icon {
    font-size: 2rem;
    animation: notesIconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.notes-header-icon:nth-child(1) { animation-delay: 0s; }
.notes-header-icon:nth-child(2) { animation-delay: 0.2s; }
.notes-header-icon:nth-child(3) { animation-delay: 0.4s; }
.notes-header-icon:nth-child(4) { animation-delay: 0.6s; }

@keyframes notesIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.notes-header .page-header-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.notes-header .page-header-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.notes-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.notes-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.notes-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
}

.notes-stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.notes-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

/* 笔记页面主体布局 */
.notes-main {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100px);
}

.notes-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .notes-layout {
        grid-template-columns: 1fr;
    }
}

/* 侧边栏 */
.notes-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .notes-sidebar {
        position: static;
    }
}

.notes-categories {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.notes-categories-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.notes-categories-icon {
    font-size: 1.25rem;
}

.notes-categories-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.notes-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notes-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notes-category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4f46e5, #7c3aed);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notes-category-item:hover,
.notes-category-item.active {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #4f46e5;
    transform: translateX(4px);
}

.notes-category-item:hover::before,
.notes-category-item.active::before {
    transform: scaleY(1);
}

.notes-category-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.notes-category-item:hover .notes-category-icon-wrapper,
.notes-category-item.active .notes-category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.notes-category-icon-wrapper.all {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.notes-category-icon-wrapper.method {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.notes-category-icon-wrapper.reading {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notes-category-icon-wrapper.tools {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notes-category-icon-wrapper.time {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.notes-category-icon-wrapper.health {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notes-category-text {
    font-weight: 500;
    font-size: 0.9375rem;
}

.notes-category-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    border-radius: 20px;
    color: #64748b;
    transition: all 0.3s ease;
}

.notes-category-item:hover .notes-category-count,
.notes-category-item.active .notes-category-count {
    background: #4f46e5;
    color: white;
}

/* 侧边栏学习格言卡片 */
.notes-quote-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.notes-quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-family: Georgia, serif;
    opacity: 0.15;
    line-height: 1;
}

.notes-quote-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.notes-quote-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.notes-quote-author {
    font-size: 0.8125rem;
    opacity: 0.8;
    text-align: right;
}

/* 笔记内容区域 */
.notes-content {
    min-width: 0;
}

.notes-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.notes-content-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
}

.notes-content-title i {
    color: #4f46e5;
    font-size: 1.5rem;
}

.notes-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 10px;
}

.notes-view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-view-btn:hover {
    color: #4f46e5;
}

.notes-view-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 笔记列表 */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.note-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4f46e5, #7c3aed);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.note-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #c7d2fe;
}

.note-item:hover::before {
    transform: scaleY(1);
}

.note-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.note-item:hover .note-item-icon {
    transform: scale(1.1) rotate(5deg);
}

.note-item-icon.method {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.note-item-icon.reading {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.note-item-icon.tools {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.note-item-icon.time {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.note-item-icon.health {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.note-item-content {
    flex: 1;
    min-width: 0;
}

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

.note-item-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.note-item-category.method {
    background: #fef3c7;
    color: #d97706;
}

.note-item-category.reading {
    background: #d1fae5;
    color: #059669;
}

.note-item-category.tools {
    background: #dbeafe;
    color: #2563eb;
}

.note-item-category.time {
    background: #ede9fe;
    color: #7c3aed;
}

.note-item-category.health {
    background: #fee2e2;
    color: #dc2626;
}

.note-item-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.note-item-date i {
    font-size: 0.9375rem;
}

.note-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.note-item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.note-item-title a:hover {
    color: #4f46e5;
}

.note-item-excerpt {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-item-reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.note-item-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.note-item:hover .note-item-arrow {
    background: #4f46e5;
    color: white;
    transform: translateX(4px);
}

/* 分页导航 */
.notes-pagination {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.notes-pagination-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.notes-pagination-info strong {
    color: #4f46e5;
    font-weight: 700;
}

.notes-pagination-divider {
    color: #cbd5e1;
}

.notes-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notes-pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-pagination-btn:hover:not(:disabled) {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #f5f3ff;
}

.notes-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notes-pagination-pages {
    display: flex;
    gap: 0.375rem;
}

.notes-pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notes-pagination-link:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.notes-pagination-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .notes-header {
        padding: 7rem 0 4rem;
    }
    
    .notes-header-decoration {
        gap: 0.75rem;
    }
    
    .notes-header-icon {
        font-size: 1.5rem;
    }
    
    .notes-stats {
        gap: 1.5rem;
    }
    
    .notes-stat-number {
        font-size: 1.5rem;
    }
    
    .note-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .note-item-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .note-item-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .note-item-title {
        font-size: 1.125rem;
    }
    
    .notes-pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .notes-pagination-btn span {
        display: none;
    }
    
    .notes-content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================
   首页新增区块样式
   ============================================ */

/* 特色功能展示 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.feature-blog .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.feature-memory .feature-icon {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: white;
}

.feature-notes .feature-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: white;
}

.feature-about .feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-arrow {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* 时间轴 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    transform: translateX(-6.5px);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2);
}

.timeline-content {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.timeline-date {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 技能标签云 */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    cursor: default;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.skill-tag.skill-medium {
    font-size: 1.125rem;
    padding: 0.875rem 1.75rem;
}

.skill-tag.skill-large {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    font-weight: 600;
}

/* 明亮特殊标签样式 */
.skill-tag.skill-bright-punk {
    background: linear-gradient(135deg, #ff006e 0%, #fb5607 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    font-weight: 700;
}

.skill-tag.skill-bright-punk:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
    transform: translateY(-4px) scale(1.08);
}

.skill-tag.skill-bright-movie {
    background: linear-gradient(135deg, #7209b7 0%, #f72585 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.4);
    font-weight: 700;
}

.skill-tag.skill-bright-movie:hover {
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.6);
    transform: translateY(-4px) scale(1.08);
}

.skill-tag.skill-bright-travel {
    background: linear-gradient(135deg, #06ffa5 0%, #00d4aa 100%);
    color: #004d3a;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.4);
    font-weight: 700;
}

.skill-tag.skill-bright-travel:hover {
    box-shadow: 0 6px 20px rgba(6, 255, 165, 0.6);
    transform: translateY(-4px) scale(1.08);
}

.skill-tag.skill-bright-code {
    background: linear-gradient(135deg, #00d9ff 0%, #0066ff 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
    font-weight: 700;
}

.skill-tag.skill-bright-code:hover {
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.6);
    transform: translateY(-4px) scale(1.08);
}

.skill-tag.skill-bright-ai {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #4a3000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    font-weight: 700;
}

.skill-tag.skill-bright-ai:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-4px) scale(1.08);
}

/* ============================================
   联系我表单样式
   ============================================ */

/* 联系信息区域 */
.contact-info {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* 联系表单区域 */
.contact-form {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.form-group label span {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    font-size: 0.8125rem;
    color: var(--error-color);
    min-height: 1.25rem;
}

/* 备用邮件链接区域 */
.contact-alternative {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.contact-alternative p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.contact-alternative .btn-secondary {
    display: inline-flex;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.contact-alternative .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
        width: 14px;
        height: 14px;
        transform: translateX(-5.5px);
    }
    
    .timeline-content {
        padding: 1.25rem;
    }
    
    .skills-cloud {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .skill-tag {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .skill-tag.skill-medium {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .skill-tag.skill-large {
        font-size: 1.125rem;
        padding: 0.875rem 1.75rem;
    }
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 玻璃态效果 */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .glass {
    background: rgba(17, 24, 39, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}
