/* ============================================
   个人简介网站 - 样式表
   主色调：#021414 深墨绿
   字体：PingFang SC
   ============================================ */

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

:root {
    --bg-primary: #021414;
    --bg-secondary: #031c1c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #6b7280;
    
    --accent-color: #00d4aa;
    --accent-color-light: rgba(0, 212, 170, 0.15);
    --accent-color-glow: rgba(0, 212, 170, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(0, 212, 170, 0.3);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --container-max: 1200px;
    --navbar-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* 通用区块 */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header.text-center .section-desc {
    margin: 0 auto;
}

.title-accent {
    color: var(--accent-color);
}

.text-accent {
    color: var(--accent-color);
    font-weight: 600;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(2, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

.logo-sub {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.nav-logo:hover .logo-text,
.nav-logo:hover .logo-sub {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
}

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

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端遮罩 */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
    opacity: 1;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 20%;
    left: 20%;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: #0891b2;
    bottom: 20%;
    right: 20%;
    animation: float 10s ease-in-out infinite reverse;
}

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

#particlesCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

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

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.title-line {
    display: inline-block;
}

.title-accent {
    color: var(--accent-color);
}

.hero-tags {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--border-color-hover);
    background: var(--accent-color-light);
    border-radius: 999px;
    font-size: 14px;
    color: var(--accent-color);
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
}

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

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

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

/* ============================================
   页面标题区
   ============================================ */
.page-header {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   信息卡片
   ============================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    border-radius: 12px;
    color: var(--accent-color);
    transition: all var(--transition-normal);
}

.info-card:hover .info-icon {
    background: rgba(0, 212, 170, 0.2);
    transform: scale(1.05);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   爱好展示
   ============================================ */
.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hobby-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: default;
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
}

.hobby-card:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

.hobby-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.hobby-icon svg {
    width: 20px;
    height: 20px;
}

.hobby-icon-1 {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.hobby-icon-2 {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.hobby-icon-3 {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.hobby-icon-4 {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.hobby-card:hover .hobby-icon {
    filter: drop-shadow(0 0 8px currentColor);
}

.hobby-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.hobby-card:hover .hobby-label {
    color: var(--text-primary);
}

/* ============================================
   导航引导卡片
   ============================================ */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.nav-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

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

.nav-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    border-radius: 16px;
    color: var(--accent-color);
    transition: all var(--transition-normal);
}

.nav-card:hover .nav-card-icon {
    background: rgba(0, 212, 170, 0.2);
    transform: scale(1.1);
}

.nav-card-icon svg {
    width: 28px;
    height: 28px;
}

.nav-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

.nav-card:hover .nav-card-title {
    color: var(--accent-color);
}

.nav-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.nav-card-arrow {
    margin-top: 8px;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.nav-card:hover .nav-card-arrow {
    color: var(--accent-color);
    transform: translateX(4px);
}

.nav-card-arrow svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   About 页面 - 故事区
   ============================================ */
.story-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: start;
}

.story-image {
    position: sticky;
    top: 100px;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.image-placeholder-sm {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.image-placeholder-sm svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 16px 20px;
    background: rgba(2, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.image-badge span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.image-badge p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* ============================================
   名言引用区
   ============================================ */
.quote-card {
    position: relative;
    padding: 80px 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quote-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, var(--accent-color-light), transparent 70%);
    opacity: 0.5;
}

.quote-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    color: var(--accent-color);
    opacity: 0.4;
}

.quote-icon svg {
    width: 56px;
    height: 56px;
}

.quote-text {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.quote-highlight {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
}

.quote-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.quote-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 24px;
}

.quote-author {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ============================================
   生活剪影
   ============================================ */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

.life-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.life-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    background: var(--bg-card);
}

.life-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.life-image {
    overflow: hidden;
}

.life-card:hover .image-placeholder-sm {
    transform: scale(1.05);
}

.image-placeholder-sm {
    transition: transform var(--transition-slow);
}

.life-caption {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.life-icon {
    color: var(--accent-color);
}

.life-icon svg {
    width: 16px;
    height: 16px;
}

.life-more {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

/* ============================================
   Work 页面 - 职业概述
   ============================================ */
.overview-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: center;
}

.overview-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.overview-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.overview-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

.overview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    border-radius: 10px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.overview-icon svg {
    width: 20px;
    height: 20px;
}

.overview-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.overview-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   核心能力
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.skill-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-slow);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    border-radius: 14px;
    color: var(--accent-color);
    transition: all var(--transition-normal);
}

.skill-card:hover .skill-icon {
    background: rgba(0, 212, 170, 0.2);
    transform: scale(1.1);
}

.skill-icon svg {
    width: 28px;
    height: 28px;
}

.skill-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 技术标签 */
.tech-tags {
    text-align: center;
}

.tags-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tags-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: default;
    transition: all var(--transition-normal);
}

.tech-tag:hover {
    color: var(--accent-color);
    border-color: var(--border-color-hover);
    background: var(--accent-color-light);
    transform: scale(1.05);
}

/* ============================================
   时间线
   ============================================ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-year {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.timeline-year svg {
    width: 16px;
    height: 16px;
}

.timeline-card {
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.timeline-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.highlight-tag svg {
    width: 12px;
    height: 12px;
    color: var(--accent-color);
}

/* ============================================
   Contact 页面
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

/* 表单 */
.contact-form-wrap {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-success,
.form-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-success svg,
.form-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color-light);
}

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

.char-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    color: var(--bg-primary);
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-color-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.submit-btn:hover svg {
    transform: translate(2px, -2px);
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.info-item:hover {
    border-color: var(--border-color-hover);
    transform: translateX(4px);
}

.info-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    border-radius: 12px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item-icon svg {
    width: 24px;
    height: 24px;
}

.info-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 社交链接 */
.social-links {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.social-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: var(--accent-color-light);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   留言列表
   ============================================ */
.messages-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.message-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

.message-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-light);
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.message-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.message-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: break-word;
}

.empty-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-messages svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-messages p {
    font-size: 15px;
}

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

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

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

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   回到顶部
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: var(--accent-color-light);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   动画
   ============================================ */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .page-title {
        font-size: 44px;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid,
    .overview-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .story-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .overview-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .life-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-desc {
        font-size: 16px;
    }
    
    /* 导航 */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding: 40px;
        background: rgba(2, 20, 20, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        transition: right var(--transition-slow);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* 卡片网格 */
    .nav-cards {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .info-card {
        padding: 24px 16px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .life-gallery {
        grid-template-columns: 1fr;
    }
    
    /* 时间线 */
    .timeline {
        padding-left: 32px;
    }
    
    .timeline-dot {
        left: -28px;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 18px;
    }
    
    /* 联系页 */
    .contact-form-wrap {
        padding: 28px 20px;
    }
    
    .contact-grid {
        gap: 40px;
    }
    
    /* 引用 */
    .quote-card {
        padding: 48px 24px;
    }
    
    .quote-text {
        font-size: 22px;
    }
    
    /* 回到顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .info-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .hobbies-grid {
        gap: 10px;
    }
    
    .hobby-card {
        padding: 12px 16px;
    }
    
    .timeline-highlights {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 视频CSS */
.video-section {
    background: linear-gradient(180deg, rgba(10, 42, 42, 0.3) 0%, rgba(2, 20, 20, 0.5) 100%);
}
.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 42, 42, 0.6);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(79, 195, 247, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.video-selector {
    width: 100%;
    padding: 14px 18px;
    background: rgba(2, 20, 20, 0.8);
    color: #e0e0e0;
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.video-selector:hover {
    border-color: rgba(79, 195, 247, 0.4);
}
.video-selector:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}
.video-player-box {
    width: 100%;
    border-radius: 12px;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.video-player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.video-error {
    background: rgba(74, 26, 26, 0.6);
    color: #ff6b6b;
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0;
    border-left: 3px solid #ff4757;
    font-size: 14px;
}
.video-info {
    background: rgba(26, 58, 42, 0.6);
    color: #6bff8b;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    border-left: 3px solid #47ff77;
    font-size: 0.9em;
}
.video-footer {
    margin-top: 20px;
    text-align: center;
}
.video-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4fc3f7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
.video-more-link:hover {
    color: #81d4fa;
    transform: translateX(4px);
}
.video-more-link svg {
    width: 16px;
    height: 16px;
}
