/* ========================================
   个人简历网站样式 - 严黎明 (LeonYim)
   深色主题 + 现代设计
   ======================================== */

/* CSS 变量定义 */
:root {
    /* 主色调 - 珊瑚橙渐变 */
    --primary: #ff6b5b;
    --primary-light: #ff8a7a;
    --primary-dark: #e5534a;
    --primary-gradient: linear-gradient(135deg, #ff6b5b 0%, #ff8a7a 50%, #ffa07a 100%);

    /* 背景色 */
    --bg-dark: #000000;
    --bg-darker: #000000;
    --bg-card: #151518;
    --bg-card-hover: #1a1a1e;

    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* 边框 */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.15);

    /* 阴影 */
    --shadow-glow: 0 0 60px rgba(255, 107, 91, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    /* 间距 */
    --section-padding: 120px;
    --container-width: 1200px;

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 字体 */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 重置样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.nav-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-fast);
}

.nav-menu-btn:hover span {
    background: var(--primary);
}

/* ========================================
   Hero 区域 - 融合布局设计
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 60px 60px;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 107, 91, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
        var(--bg-darker);
    overflow: hidden;
}

/* 人物背景层 - 贯穿整个Hero区域 */
.hero-portrait-layer {
    position: absolute;
    top: 0;
    left: 48%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

/* 人物背后的微妙光晕 */
.hero-portrait-layer::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 91, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-portrait-bg {
    height: 92%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
}

/* 内容层 - 覆盖在人物上 */
.hero-content-layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 左侧主要内容 */
.hero-main {
    max-width: 420px;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.name-highlight {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 107, 91, 0.3);
}

.name-en {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 8px;
    letter-spacing: 0.1em;
}

/* 右侧专业信息区域 */
.hero-aside {
    max-width: 320px;
    position: relative;
    /* 确保卡片在合适的位置 */
    align-self: flex-start;
    margin-top: 80px;
}

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

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* 按钮样式 */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b5b 0%, #ff7a6a 100%);
    color: white;
    box-shadow: 0 4px 24px rgba(255, 107, 91, 0.35);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 107, 91, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 91, 0.1);
}

.btn-arrow,
.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* Hero 中间区域 - 头像融入设计 */
.hero-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 520px;
}

/* 移除橙色光晕 - 使用纯黑融合 */
.hero-image-wrapper::before {
    display: none;
}

/* 移除橙色光晕 - 使用纯黑融合 */
.hero-image-wrapper::after {
    display: none;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    /* 椭圆形渐变遮罩 - 让人像从黑暗中浮现 */
    mask-image: radial-gradient(ellipse 50% 55% at 50% 40%,
            black 0%,
            black 25%,
            rgba(0, 0, 0, 0.9) 35%,
            rgba(0, 0, 0, 0.7) 45%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(0, 0, 0, 0.15) 65%,
            rgba(0, 0, 0, 0.03) 80%,
            transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 40%,
            black 0%,
            black 25%,
            rgba(0, 0, 0, 0.9) 35%,
            rgba(0, 0, 0, 0.7) 45%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(0, 0, 0, 0.15) 65%,
            rgba(0, 0, 0, 0.03) 80%,
            transparent 95%);
}

.placeholder-text {
    font-size: 8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

/* 移除背后光晕 - 使用纯黑融合效果 */
.hero-image-glow {
    display: none;
}

/* Hero 右侧 */
.hero-right {
    padding-left: 20px;
}

.hero-stats {
    position: relative;
}

.stat-decorations {
    position: absolute;
    top: -40px;
    right: 0;
}

.decoration-circle {
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    border-top-color: #00d4aa;
    border-right-color: #00d4aa;
    border-radius: 50%;
    animation: rotate 8s linear infinite;
    position: relative;
}

.decoration-circle::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 107, 91, 0.6);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.decoration-dot {
    position: absolute;
    top: 30px;
    right: -25px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00bcd4 0%, #00d4aa 100%);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(0, 188, 212, 0.5);
}

/* 纯文字排版样式 - 无边框设计 */
.stat-card {
    /* 移除背景和边框，纯文字排版 */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 40px;
    position: relative;
}

/* 移除玻璃效果伪元素 */
.stat-card::before,
.stat-card::after {
    display: none;
}

/* 标签样式 - 小号橙色文字 */
.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 标题区域 - 多行艺术化排版 */
.stat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 每行标题独立成行 */
.stat-title .title-line {
    display: block;
    margin-bottom: 2px;
}

/* 强调文字 - 斜体高亮 */
.stat-title em {
    font-style: italic;
    color: var(--primary);
    font-weight: 700;
}

/* 描述文字 */
.stat-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* 下载链接样式 - 带下划线 */
.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: all var(--transition-normal);
}

.stat-link:hover {
    color: var(--primary-light);
    text-decoration-thickness: 2px;
}

.stat-link svg {
    transition: transform var(--transition-normal);
}

.stat-link:hover svg {
    transform: translateY(2px);
}

/* 滚动提示 */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.hero-scroll-hint span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 1;
        height: 60px;
    }
}

/* 社交链接 */
.social-links {
    position: absolute;
    left: 60px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
    background: rgba(255, 107, 91, 0.1);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   通用 Section 样式
   ======================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   关于我
   ======================================== */
.about {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-intro .highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-detail {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-detail .badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 91, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 玻璃效果高亮卡片 */
.highlight-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.highlight-card:hover {
    border-color: rgba(255, 107, 91, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 91, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ========================================
   工作经历 - 时间线
   ======================================== */
.experience {
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 24px;
    padding-bottom: 60px;
}

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

.timeline-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-gradient);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(255, 107, 91, 0.4);
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--primary), var(--border-color));
    margin-top: 8px;
}

/* 玻璃效果时间线卡片 */
.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.timeline-content:hover {
    border-color: rgba(255, 107, 91, 0.3);
    box-shadow: 0 20px 60px rgba(255, 107, 91, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-company h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.timeline-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.achievement {
    display: flex;
    gap: 16px;
}

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.achievement-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 107, 91, 0.1);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 91, 0.2);
}

/* ========================================
   技能
   ======================================== */
.skills {
    background: var(--bg-darker);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 玻璃效果技能卡片 */
.skill-category {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.skill-category:hover {
    border-color: rgba(255, 107, 91, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.skill-icon {
    font-size: 1.25rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: rgba(255, 107, 91, 0.08);
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skill-item.certificate {
    border: 1px solid rgba(255, 107, 91, 0.2);
    background: rgba(255, 107, 91, 0.05);
}

.skill-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 10px;
    background: rgba(255, 107, 91, 0.15);
    border-radius: 20px;
}

/* ========================================
   教育背景
   ======================================== */
.education {
    background: var(--bg-dark);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* 玻璃效果教育卡片 */
.education-card {
    display: flex;
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.education-card:hover {
    border-color: rgba(255, 107, 91, 0.3);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.education-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.education-degree {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

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

.education-extra {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   联系方式
   ======================================== */
.contact {
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 107, 91, 0.1) 0%, transparent 50%),
        var(--bg-darker);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    gap: 40px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 91, 0.08);
}

.contact-icon {
    font-size: 2rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

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

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

.footer-note {
    margin-top: 8px;
}

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

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-center {
        display: none;
    }

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

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        padding: 0;
    }

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

    .hero-right {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline-achievements {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-email {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
        top: 0;
    }

    .timeline-content {
        margin-left: 30px;
    }

    .social-links {
        display: none;
    }

    .contact-wrapper {
        padding: 40px 24px;
    }

    /* Hero 移动端修复 - 垂直布局 */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content-layer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .hero-main {
        max-width: 100%;
        order: 1;
    }

    .hero-aside {
        max-width: 100%;
        margin: 0 auto;
        order: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-portrait-layer {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.15;
        pointer-events: none;
    }

    .hero-portrait-bg {
        height: 80%;
    }

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

    .stat-label,
    .stat-title,
    .stat-desc,
    .stat-link {
        text-align: center;
        display: block;
        width: 100%;
    }

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

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

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

    .highlight-card {
        padding: 20px 16px;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-meta {
        align-items: flex-start;
    }
}


/* 产品展示视频区域 */
.product-showcase {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.showcase-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    /* 修复视频溢出问题，移除 overflow: hidden 以允许全屏正常显示 */
    position: relative;
    z-index: 1;
}

.video-card:hover {
    /* 移除 transform 避免创建新的堆叠上下文导致视频层级异常 */
    border-color: rgba(255, 111, 97, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    /* 仅在 wrapper 层级隐藏，确保圆角生效 */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.video-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.video-tag {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: rgba(255, 111, 97, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

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