/* ===== CSS Variables - 黑色玻璃质感 ===== */
:root {
    /* 黑色主调 */
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: rgba(30, 30, 30, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-light: #666666;

    /* 强调色 - 淡蓝灰 */
    --accent: #7B8FA1;
    --accent-light: #9BA8B8;
    --accent-dark: #5A6A7A;

    /* 玻璃效果 */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* ===== 开屏加载动画 ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

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

.loading-logo {
    margin-bottom: 2rem;
}

.loading-text {
    display: inline-block;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-text:first-child {
    animation-delay: 0s;
}

.loading-text:last-child {
    animation-delay: 0.2s;
    margin-left: 0.3rem;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-bar-inner {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    30% {
        width: 60%;
    }
    60% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

.loading-tip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    font-family: 'Noto Sans SC', 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 3px;
}

/* ===== Navigation - 玻璃质感 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 2rem;
}

.nav-container {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}

.nav-logo {
    display: none;
}

.nav-logo span {
    color: var(--accent-light);
}

.nav-menu {
    display: flex;
    gap: 0;
    margin-left: auto;
}

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--accent-light);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(123, 143, 161, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(123, 143, 161, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 循环背景视频容器 */
.loop-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.loop-video-container.active {
    opacity: 1;
}

/* 循环视频 */
.loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 背景视频容器 */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* 视频淡出效果 */
.hero-video-container.fade-out {
    animation: videoFadeOut 1s ease-out forwards;
}

@keyframes videoFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hero-content {
    max-width: 700px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

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

/* 内容包装器 - 初始隐藏 */
.hero-content-wrapper {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-content-wrapper.visible {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

/* 加载提示 */
.hero-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    z-index: 2;
}

.hero-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 再次播放按钮 */
#replayBtn {
    margin-left: 0.5rem;
}

/* 非线性弹性动画 */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    80% {
        transform: translateY(2px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glitch 展开动画 - 从中间向两边 */
@keyframes glitchExpand {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    40% {
        transform: scaleX(1.1);
        opacity: 1;
    }
    60% {
        transform: scaleX(0.95);
        opacity: 0.85;
    }
    80% {
        transform: scaleX(1.02);
        opacity: 0.7;
    }
    100% {
        transform: scaleX(1);
        opacity: 0.6;
    }
}

/* 文字背景矩形 - 横穿屏幕 */
.hero-glitch-rect {
    position: absolute;
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%) scaleX(0);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    pointer-events: none;
    z-index: 0;
    min-height: 525px;
}

.hero-glitch-rect.animate {
    transform: translateX(-50%) scaleX(1);
    transition: transform 0.8s ease-out;
}

.hero-glitch-rect .hero-text {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 移动端视频模态框 */
.mobile-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.mobile-video-modal.active {
    display: flex;
}

.mobile-video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.mobile-video-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.greeting {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.name {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.name span {
    color: var(--accent-light);
}

.title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 50px;
}

.btn-primary {
    background: var(--accent-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #999999;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

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

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
}

/* ===== Section Styles ===== */
section {
    padding: 6rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Portfolio Section ===== */
.portfolio {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    --parallax-x: 0px;
    --parallax-y: 0px;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.05s linear;
    transform: translate(var(--parallax-x), var(--parallax-y));
}

.portfolio .portfolio-container {
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-sidebar {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.portfolio-sidebar h3 {
    display: none;
}

.category-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 50px;
}

.category-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.category-btn.active {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    flex: 1;
    align-content: start;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    animation: fadeIn 0.3s ease-out both;
}

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

.portfolio-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(40, 40, 40, 0.7);
}

.portfolio-card-image {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-card-icon {
    width: 38px;
    height: 38px;
    background: var(--glass-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-light);
}

/* 作品卡片封面视频 */
.portfolio-card-cover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 作品卡片封面图片 */
.portfolio-card-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 视频图标覆盖层 */
.portfolio-card-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: none;
    z-index: 2;
}

.portfolio-card-video-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.portfolio-card-content {
    padding: 0.75rem;
}

.portfolio-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.portfolio-card-description {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-card-tag {
    display: inline-block;
    margin-top: 0.4rem;
    margin-right: 0.25rem;
    padding: 0.15rem 0.4rem;
    background: rgba(123, 143, 161, 0.15);
    font-size: 0.65rem;
    color: var(--accent-light);
    border-radius: 3px;
}

/* ===== Resume Section - 横向布局 ===== */
.resume {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    --parallax-x: 0px;
    --parallax-y: 0px;
}

.resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.05s linear;
    transform: translate(var(--parallax-x), var(--parallax-y));
}

.resume .resume-container {
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    align-content: start;
}

.resume-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 120px;
}

.resume-card.full-width {
    grid-column: span 2;
}

.resume-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 简历下载按钮 */
.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--accent-light);
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resume-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.resume-download-btn svg {
    width: 18px;
    height: 18px;
}

.resume-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.resume-table td {
    padding: 0.4rem 0;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-all;
}

.resume-table .label {
    width: 70px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.resume-table .value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Contact Section - 横向排列 ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-cards {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    align-content: flex-start;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all var(--transition-base);
    flex: 1;
    min-width: 140px;
    max-width: 180px;
}

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

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.contact-label {
    font-size: 0.6rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.contact-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== About Section - 分类布局 ===== */
.about {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    --parallax-x: 0px;
    --parallax-y: 0px;
}

.about .section-header {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.05s linear;
    transform: translate(var(--parallax-x), var(--parallax-y));
}

.about .contact-container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.about-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-content: start;
    min-height: auto;
    width: 100%;
}

.about-category {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.about-category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.about-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.about-card:hover {
    background: rgba(50, 50, 50, 0.6);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
}

.about-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

/* SVG图标颜色 - 统一使用白色，在黑色背景上可见 */
.about-icon-img {
    filter: brightness(0) invert(1);
}

.about-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    flex: 1;
}

.about-label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.about-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-value.placeholder {
    color: var(--text-light);
    font-style: italic;
}

.about-value.copied {
    color: #4ade80;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.footer p {
    color: var(--text-light);
    font-size: 0.7rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .name {
        font-size: 2.8rem;
    }

    .resume-container {
        grid-template-columns: 1fr;
    }

    .resume-card.full-width {
        grid-column: span 1;
    }

    /* 关于我页面 */
    .about-categories {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* 移动端主页视频 - 16:9比例占满视口 */
    .hero {
        padding: 0;
        display: block;
        height: 100vh;
        min-height: 100vh;
        position: relative;
    }

    /* 循环背景视频固定在后面 */
    .loop-video-container {
        position: fixed !important;
        inset: 0 !important;
    }

    /* 主页视频居中 */
    .hero-video-container {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100vw;
        padding: 0 1rem;
        box-sizing: border-box;
        aspect-ratio: 16/9;
        z-index: 5;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        overflow: hidden;
    }

    .hero-video-container.hidden {
        display: none !important;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #000;
    }

    /* 黑色磨砂框 - 横穿视口，文字内容在里面 */
    .hero-content-wrapper {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100vw;
        padding: 3rem 1rem;
        opacity: 0 !important;
        transition: none;
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
    }

    .hero-content-wrapper.visible {
        animation: fadeSlideUp 0.8s ease-out forwards;
        opacity: 1 !important;
    }

    .hero-glitch-rect {
        display: none !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
    }

    #replayBtn {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    section {
        padding: 5rem 1rem 2rem;
    }

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

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 100%;
    }

    /* 关于我页面 - 移动端改为单列，卡片占满视口 */
    .about {
        padding: 1rem 0.5rem 2rem;
    }

    .about .section-header {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
