:root {
    --bg-color: #0f0f16;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #ebebeb;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --primary-color: var(--accent-cyan);
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));

    /* 统一的磨砂透明 (Glassmorphism) 配置 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: 15px;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 彻底隐藏全局滚动条 */
html, body {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    background-color: var(--bg-color);
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    /* 禁止文字选择 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-color);
    transition: opacity 0.5s ease;
}

#bg-canvas.hidden {
    opacity: 0;
}

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* Allows clicking through to content */
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--bg-color); /* Ensure background color matches */
}

#three-container.active {
    opacity: 1;
    pointer-events: auto; /* Enable interaction when active if needed, but 'auto' blocks content behind it. If we want background interaction only, we need to be careful. */
    /* Since the user wants mouse interaction, we need pointer-events: auto.
       However, this will block clicking on page content if the canvas is full screen.
       Solution: Three.js interaction usually works via window events or we need to pass events through.
       If the model is in the background, we probably want the content to be clickable.
       The user said "follow mouse sliding", which usually means tracking mouse position on the window, not necessarily raycasting on the model.
       If it's just mouse movement tracking, pointer-events: none is fine as we can listen to window 'mousemove'.
    */
    pointer-events: none;
}

.bg-switch {
    position: fixed;
    top: 90px; /* Below navbar */
    right: 30px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.3s ease;
    color: var(--accent-cyan);
}

.bg-switch:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: rotate(90deg);
}

.rotation-switch {
    position: fixed;
    top: 140px; /* Below bg-switch */
    right: 30px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.3s ease;
    color: var(--accent-cyan);
}

.rotation-switch:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.1);
}

.rotation-switch.off {
    color: var(--text-secondary);
    opacity: 0.6;
}

.rotation-switch.off i {
    text-decoration: line-through;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 60px;
    position: relative;
}

.hero-layout {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
    gap: 3rem;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(17px, 9999px, 94px, 0); }
    20% { clip: rect(45px, 9999px, 16px, 0); }
    40% { clip: rect(89px, 9999px, 2px, 0); }
    60% { clip: rect(4px, 9999px, 92px, 0); }
    80% { clip: rect(66px, 9999px, 34px, 0); }
    100% { clip: rect(27px, 9999px, 4px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(56px, 9999px, 12px, 0); }
    20% { clip: rect(13px, 9999px, 78px, 0); }
    40% { clip: rect(98px, 9999px, 34px, 0); }
    60% { clip: rect(2px, 9999px, 66px, 0); }
    80% { clip: rect(45px, 9999px, 89px, 0); }
    100% { clip: rect(12px, 9999px, 56px, 0); }
}

/* Intro Section */
.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 80px;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.typing-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    min-height: 3.6em;
    margin: 0;
}

.typing-text::after {
    content: '|';
    margin-left: 2px;
    color: var(--accent-cyan);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-wechat-card {
    padding: 1.75rem;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(0, 243, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.hero-wechat-title {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 0.9rem;
}

.hero-wechat-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* About & Skills */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.skills-container {
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-line {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 5px;
    position: relative;
    transform: translateX(-100%); /* For animation */
    animation: fillProgress 1.5s cubic-bezier(0.1, 0.5, 0.5, 1) forwards;
    animation-play-state: paused; /* Controlled by JS scroll reveal */
}

/* Specific widths for skills */
.progress-line.web { width: 95%; }
.progress-line.flutter { width: 90%; }
.progress-line.harmony { width: 85%; }

@keyframes fillProgress {
    to { transform: translateX(0); }
}

/* Timeline Wrapper and Toggle */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9rem;
    backdrop-filter: blur(var(--glass-blur));
}

.view-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.view-toggle i {
    font-size: 1.1rem;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    padding: 40px 0;
    overflow: visible;
}

/* 3D Mode Styles */
.timeline-wrapper.mode-3d {
    perspective: 2000px; /* 增加透视深度 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 100px 0; /* 增加上下间距给圆环倾斜留空间 */
}

.timeline-wrapper.mode-3d .timeline {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin: 0;
    max-width: none;
    /* 添加稍微的 X 轴倾斜，让圆环看起来更立体 */
    transform: rotateX(-5deg); 
}

.timeline-center-text {
    display: none; /* 默认隐藏 */
}

.timeline-wrapper.mode-3d .timeline-center-text {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    /* 使用 translate3d 确保在 3D 渲染层中精确居中，并稍微向前推 1px 避免与容器平面重叠 */
    transform: translate3d(-50%, -50%, 1px);
    font-size: 10rem; /* 增大尺寸，使其更有分量 */
    font-weight: 900;
    color: var(--accent-cyan);
    /* 增强多重发光阴影，营造立体发光核心感 */
    text-shadow: 0 0 20px var(--accent-cyan), 
                 0 0 40px var(--accent-purple),
                 0 0 60px rgba(0, 243, 255, 0.5);
    opacity: 0.3; /* 提高透明度，使其在圆心更明显 */
    pointer-events: none;
    z-index: 5;
    font-family: 'Noto Sans SC', sans-serif;
    user-select: none;
    transition: opacity 0.5s ease;
    animation: centerPulse 3s infinite ease-in-out;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

@keyframes centerPulse {
    0%, 100% {
        opacity: 0.3;
        text-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-purple), 0 0 60px rgba(0, 243, 255, 0.5);
        transform: translate3d(-50%, -50%, 1px) scale(1);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 30px var(--accent-cyan), 0 0 60px var(--accent-purple), 0 0 90px rgba(0, 243, 255, 0.8);
        transform: translate3d(-50%, -50%, 1px) scale(1.05);
    }
}

/* 移除会冲突的 animation，改为用类控制初始入场 */
.timeline-wrapper.mode-3d .timeline.initializing {
    transform: rotateX(-5deg) rotateY(-60deg) scale(0.5);
    opacity: 0;
}

.timeline-wrapper.mode-3d .timeline::after {
    display: none;
}

.timeline-wrapper.mode-3d .timeline-item {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0;
    margin: 0;
    opacity: 0; 
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.5s ease;
    pointer-events: none;
    transform-origin: center center;
    /* 磨砂玻璃效果背景 */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
}

.timeline-wrapper.mode-3d .timeline-item .timeline-content {
    backface-visibility: hidden; /* 核心修改：隐藏卡片背面，防止看到镜像文字 */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: transparent; /* 移除原有背景 */
    border: none;
    box-shadow: none;
}

.timeline-wrapper.mode-3d .timeline-item.active {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    z-index: 20;
}

.timeline-wrapper.mode-3d .timeline-item:not(.active) {
    opacity: 1; /* 统一透明度 */
    filter: blur(0); /* 移除模糊差异 */
    pointer-events: auto; /* 非激活状态也允许交互 */
}

.timeline-wrapper.mode-3d .timeline-item .timeline-content::before {
    display: none; /* 移除原有的小圆点或装饰线 */
}

.timeline-wrapper.mode-3d .timeline-item::before {
    display: none; /* 移除变暗层 */
}

.timeline-wrapper.mode-3d .timeline-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 30px;
    transform: none !important; /* Override hover transform in 3D mode */
}

.timeline-wrapper.mode-3d .timeline-dot {
    display: none;
}

.timeline-wrapper.mode-3d .timeline-item::after {
    display: none;
}

/* List Mode Styles (Original Styles) */
.timeline-wrapper.mode-list .timeline {
    /* Restore original timeline styles if needed */
}

@media screen and (max-width: 768px) {
    .view-toggle, .bg-switch, .rotation-switch {
        display: none !important;
    }

    #three-container {
        display: none !important;
    }

    .timeline-wrapper.mode-3d .timeline {
        width: 260px;
        height: 350px;
    }
    
    .timeline-wrapper.mode-3d {
        perspective: 1000px;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-number {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.05); /* 默认极低透明度，形成暗纹感 */
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.timeline-item.active .timeline-number {
    color: rgba(0, 243, 255, 0.2); /* 激活时稍微明显一点，带点青色 */
    transform: scale(1.1);
}

.timeline-wrapper.mode-list .timeline-number {
    display: none; /* 列表模式下暂时隐藏序号，保持简洁 */
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--accent-purple);
    top: 50%; /* 改为 50% 居中 */
    transform: translateY(-50%); /* 配合 translateY 实现垂直居中 */
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:hover::after {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-50%) scale(1.3); /* 悬停时也要保持居中 */
    box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-content {
    padding: 20px 30px;
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

.timeline-content h3 {
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
        right: auto;
    }
}

/* Contact Page Styles */
.contact-section {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1100px;
    padding: 2rem;
    margin-top: 3rem;
}

.contact-method-card {
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    animation: neon-pulse 2s infinite linear;
    z-index: 10;
}

.contact-method-card::before {
    display: none; /* 移除之前的渐变背景覆盖层 */
}

.contact-method-card .icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 20px; /* 改为稍微圆角的矩形，更像截图风格 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.contact-method-card:hover .icon {
    background: rgba(0, 243, 255, 0.2);
}

.contact-method-card:hover .icon i {
    color: var(--accent-cyan); /* 保持青色图标 */
    transform: scale(1.1);
}

.contact-method-card .icon i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    transition: all 0.3s;
}

.contact-method-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
}

.contact-method-card p {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s;
}

.contact-method-card:hover p {
    color: #ffffff;
}

.qr-wrapper {
    margin-top: 1.5rem;
    padding: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 160px;
    transition: transform 0.3s;
    cursor: zoom-in;
    position: relative;
}

.zoom-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 4px 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.qr-wrapper:hover .zoom-hint {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* 应用统一磨砂效果 */
    backdrop-filter: blur(var(--glass-blur));
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-cyan);
    text-decoration: none;
    cursor: pointer;
}

.contact-method-card:hover .qr-wrapper {
    transform: scale(1.05);
}

.qr-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title .subtitle {
    display: block;
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.contact-form button {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--accent-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

.section-description {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.section-description p {
    margin-bottom: 1rem;
}

.section-description p:last-child {
    margin-bottom: 0;
}

.section-description .disclaimer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.section-description .disclaimer i {
    margin-right: 8px;
    color: var(--accent-cyan);
}

.subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wechat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wechat-badge i {
    font-size: 1.1rem;
}

.wechat-qr-shell {
    background: #ffffff;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.wechat-qr-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.wechat-qr-caption {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

/* 统一的磨砂透明 (Glassmorphism) 样式类 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

/* Cards */
.card {
    border-radius: 20px;
    padding: 2px; /* 用于实现渐变边框效果的容器间隙 */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    /* 应用统一磨砂效果 */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

@keyframes neon-pulse {
    0% {
        border-color: var(--accent-cyan);
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }
    33% {
        border-color: var(--accent-purple);
        box-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
    }
    66% {
        border-color: #ff0055;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
    }
    100% {
        border-color: var(--accent-cyan);
        box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }
}

.card:hover {
    transform: none;
    animation: neon-pulse 2s infinite linear;
    z-index: 10;
}

.card-content {
    /* 移除之前的深色背景，使其与详情页的磨砂效果一致 */
    background: transparent; 
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-type {
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ddd;
}

.card-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card-link:hover,
.card:hover .card-link {
    color: var(--accent-cyan);
    gap: 0.8rem;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Floating Header Styles */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 1100; /* Higher than navbar's 1000 */
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.floating-header.visible {
    transform: translateY(0);
}

.floating-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-back {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.floating-back:hover {
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateX(-3px);
}

.floating-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
    font-weight: 500;
}

.floating-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

@media (max-width: 768px) {
    .floating-title {
        font-size: 1rem;
    }
    .floating-back span {
        display: none; /* Hide text on mobile */
    }
}

/* Resume Page Styles */
.resume-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.resume-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.resume-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    position: relative;
}

.resume-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-purple);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-container .timeline-item {
    padding: 10px 40px;
    position: relative;
    background: transparent;
    width: 50%;
    box-sizing: border-box;
}

.timeline-container .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-container .timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-container .timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 4px solid var(--accent-cyan);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-container .timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-container .timeline-item:nth-child(even)::after {
    left: -10px;
}

.resume-section > .timeline-item {
    padding: 20px;
    border-left: 2px solid var(--accent-cyan);
    margin-left: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 12px 12px 0;
}

.item-content-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-item:hover .item-content-card {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.item-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.item-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.item-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.item-content li {
    margin-bottom: 8px;
}

.tech-stack {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.8rem;
    padding: 2px 10px;
    background: rgba(188, 19, 254, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(188, 19, 254, 0.2);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .resume-container {
        margin: 80px 15px 40px;
        padding: 25px;
    }
    .resume-header h1 {
        font-size: 2.5rem;
    }
    .item-header {
        flex-direction: column;
    }
    .timeline-container::after {
        left: 20px;
    }
    .timeline-container .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-container .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-container .timeline-item::after {
        left: 10px !important;
    }
    .timeline-item:nth-child(odd) .item-header {
        align-items: flex-start;
    }
}

/* --- Project Detail Styles --- */
.detail-container {
    max-width: 1000px;
    margin: 110px auto 60px;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}
.detail-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease;
}
.detail-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}
.detail-title {
    font-size: 3rem;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.detail-type {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.detail-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.3s;
}
.detail-section:hover {
    border-color: rgba(0, 243, 255, 0.2);
}
.section-h3 {
    color: var(--accent-cyan);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
}
.how-to-use-list {
    list-style: none;
}
.how-to-use-list li {
    margin-bottom: 18px;
    padding-left: 35px;
    position: relative;
    color: #ccc;
    line-height: 1.8;
}
.how-to-use-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}
.download-btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-android {
    background: #3DDC84;
    color: #000;
}
.btn-desktop {
    background: var(--accent-gradient);
    color: #fff;
}
.btn-ios {
    background: #fff;
    color: #000;
}
.btn-website {
    background: var(--accent-gradient);
    color: #fff;
}
.btn-download-page {
    background: var(--accent-gradient);
    color: #fff;
}
.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.download-btn.is-disabled {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    cursor: not-allowed;
    text-transform: none;
}
.download-btn.is-disabled:hover {
    transform: none;
    box-shadow: none;
}
.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

/* 组件库专用布局 */
.component-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .component-links-grid {
        grid-template-columns: 1fr;
    }
}

.component-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.component-group:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.component-group h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vue-group h4 { color: #42b883; }
.react-group h4 { color: #61dafb; }

.group-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.group-buttons .download-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
}

/* 按钮颜色定制 */
.btn-npm-vue { background: #42b883; color: #fff; }
.btn-demo-vue { 
    background: rgba(66, 184, 131, 0.1); 
    border: 1px solid #42b883; 
    color: #42b883; 
}

.btn-npm-react { background: #61dafb; color: #000; }
.btn-demo-react { 
    background: rgba(97, 218, 251, 0.1); 
    border: 1px solid #61dafb; 
    color: #61dafb; 
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s;
    font-weight: 500;
}
.back-btn:hover {
    color: var(--accent-cyan);
    transform: translateX(-5px);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.feature-item {
    padding: 15px;
    border-left: 3px solid var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
}

/* --- Article Detail Styles --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
}
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}
.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.article-meta i {
    margin-right: 0.5rem;
    color: var(--accent-cyan);
}
.article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.3;
}
.article-tags {
    display: flex;
    gap: 0.8rem;
}
.article-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ddd;
}
.article-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}
.article-content h2 {
    color: var(--accent-cyan);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}
.article-content h3 {
    color: var(--accent-purple);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content pre {
    background: #1a1a24;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.article-content code {
    font-family: 'Consolas', monospace;
    color: var(--accent-cyan);
}

.loading {
    text-align: center;
    padding: 5rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* --- Blog Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.blog-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.read-more {
    margin-top: auto;
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.read-more:hover {
    gap: 0.8rem;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background: rgba(15, 15, 22, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: scale(1.2);
}

.fa-heart {
    color: red;
}

/* Responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Rotate bars for X effect */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Project Swiper Styles */
.project-swiper {
    width: 100%;
    padding: 30px 0 60px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin: 10px 0;
}

.project-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.85);
}

.project-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.project-swiper .swiper-slide-prev,
.project-swiper .swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.92);
}

.project-swiper .screenshot-item {
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #1a1a1a;
    transition: border-color 0.3s ease;
}

.project-swiper .screenshot-item.platform-desktop {
    width: min(900px, calc(100vw - 120px));
}

.project-swiper .screenshot-item.platform-desktop img {
    width: 100%;
}

.screenshot-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(8, 12, 20, 0.82);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.project-swiper .swiper-slide-active .screenshot-item {
    border-color: var(--accent-cyan);
}

.project-swiper .screenshot-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.project-swiper .swiper-pagination-bullet {
    background: var(--accent-cyan);
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.project-swiper .swiper-pagination-bullet-active {
    background: var(--accent-cyan);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.project-swiper .swiper-button-next,
.project-swiper .swiper-button-prev {
    color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.project-swiper .swiper-button-next:after,
.project-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.project-swiper .swiper-button-next:hover,
.project-swiper .swiper-button-prev:hover {
    background: var(--accent-cyan);
    color: #000;
}

@media (max-width: 768px) {
    .detail-container {
        width: 100%;
        margin-top: 100px;
        padding: 0 20px;
    }
    .detail-header {
        margin-bottom: 36px;
    }
    .detail-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .detail-type {
        max-width: 100%;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .detail-header .description {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    .detail-section {
        padding: 24px 16px;
    }
    .project-swiper {
        padding: 20px 0 50px;
    }
    .project-swiper .screenshot-item {
        height: 350px;
    }
    .project-swiper .screenshot-item.platform-desktop {
        width: calc(100vw - 48px);
    }
    .project-swiper .swiper-button-next,
    .project-swiper .swiper-button-prev {
        display: none;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: rotate(90deg);
}

.carousel-slide img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 5% 50px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .navbar {
        padding: 1rem 5%;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 15, 22, 0.98);
        backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-wechat-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .wechat-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 4rem 5%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        width: 45%;
    }
}

/* 游戏列表卡片样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card-link {
    color: inherit;
    text-decoration: none;
}

.game-card-link:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 4px;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.game-card-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
    position: relative;
    overflow: hidden;
}

.game-card-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.game-thumb-text {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    z-index: 1;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb-text {
    transform: scale(1.1);
}

.game-card-thumb--sanshuai {
    background: #e8f1ef;
}

.game-card-thumb--sanshuai::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 31, 35, 0.08));
}

.sanshuai-thumb-art {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 1fr auto;
    width: 210px;
    height: 118px;
    overflow: hidden;
    border: 2px solid #172529;
    border-radius: 8px;
    background: #fff;
    box-shadow: 7px 7px 0 #172529;
    color: #172529;
    z-index: 1;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sanshuai-thumb-code {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    font-weight: 800;
}

.sanshuai-thumb-code span {
    color: #176b5b;
}

.sanshuai-thumb-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid #d6e0de;
}

.sanshuai-thumb-icons i {
    display: grid;
    place-items: center;
    border-bottom: 1px solid #d6e0de;
    border-right: 1px solid #d6e0de;
    color: #176b5b;
    font-size: 0.88rem;
}

.sanshuai-thumb-icons i:nth-child(2) {
    color: #d9694f;
}

.sanshuai-thumb-icons i:nth-child(3) {
    color: #9a6d12;
}

.sanshuai-thumb-icons i:nth-child(4) {
    color: #6962a8;
}

.sanshuai-thumb-art small {
    grid-column: 1 / -1;
    padding: 4px 8px;
    border-top: 1px solid #172529;
    background: #172529;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    text-align: right;
}

.game-card:hover .sanshuai-thumb-art {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 9px 10px 0 #172529;
}

.game-card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-card-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.play-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}
