/* ==========================================================================
   超炫酷个人网站 - 进阶版样式表
   ========================================================================== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 紫蓝渐变 */
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --accent-2: #4facfe;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-dark: #2d3748;
    
    /* 背景颜色 */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: rgba(255, 255, 255, 0.05);
    
    /* 玻璃态效果 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* 阴影 */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-neon: 0 0 20px rgba(102, 126, 234, 0.5);
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-slow: 0.6s;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* 粒子背景画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 自定义光标 */
.cursor-dot,
.cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    transition: all 0.1s ease-out;
}

/* 玻璃态效果 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   导航栏
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 39, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* ==========================================================================
   首页 Hero Section
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 流动渐变背景 */
.hero-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-2), var(--secondary));
    bottom: -10%;
    right: -10%;
    animation-delay: 2s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.greeting-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
}

/* 现代化名字效果 */
.hero-title-modern {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
}

.name-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
    animation: charFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.05s + 0.3s);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    position: relative;
}

.name-char::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    color: var(--accent-2);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.name-space {
    display: inline-block;
    width: 0.3em;
}

@keyframes charFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        filter: blur(0px);
    }
    50% {
        opacity: 0.3;
        filter: blur(10px);
    }
}

/* 鼠标悬停效果 */
.hero-title-modern:hover .name-char {
    animation: charBounce 0.5s ease;
}

@keyframes charBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* 打字机效果 */
.typing-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.typing-text {
    color: var(--accent);
    font-weight: 500;
}

.cursor-blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-primary);
    border: none;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* 滚动指示器 - 鼠标样式 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease 1s backwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-primary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.arrow-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

.arrow-2 {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* ==========================================================================
   通用部分样式
   ========================================================================== */

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.title-decoration {
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--delay, 0s));
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   关于部分
   ========================================================================== */

.about-section {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.section-bg-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3;
}

.decoration-circle {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 5%;
    animation-direction: reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 头像框架效果 */
.about-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.frame-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent);
    transition: all var(--transition-base);
}

.corner-tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.image-frame:hover .frame-corner {
    width: 60px;
    height: 60px;
}

.profile-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.neon-border {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
                0 0 40px rgba(118, 75, 162, 0.3),
                inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border: 2px dashed var(--accent);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
}

/* 文本卡片 */
.text-card {
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.neon-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.intro-text {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.highlight-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    margin-top: 25px;
}

.highlight-icon {
    font-size: 2rem;
}

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.stat-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card:hover .stat-glow {
    transform: scaleX(1);
}

/* ==========================================================================
   项目部分
   ========================================================================== */

.projects-section {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card-3d {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    transition: transform var(--transition-base);
    transform-style: preserve-3d;
}

.project-card-3d:hover .card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.project-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.project-icon {
    font-size: 5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card-3d:hover .project-hover-overlay {
    opacity: 1;
}

.project-card-3d:hover .project-image-bg {
    transform: scale(1.1);
}

.view-project {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.neon-tag {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    transition: all var(--transition-base);
}

.neon-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.project-link-btn:hover {
    gap: 15px;
}

.project-link-btn svg {
    transition: transform var(--transition-base);
}

.project-link-btn:hover svg {
    transform: translateX(5px);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.status-active {
    background: #f6ad55;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.project-card-3d:hover .card-glow {
    opacity: 1;
}

/* ==========================================================================
   资源分享中心
   ========================================================================== */

.resources-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.resources-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.grid-animation {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Tab 导航 */
.resource-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 40px;
    background: var(--glass-bg);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.tab-icon {
    font-size: 1.5rem;
}

/* Tab 内容 */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* 书籍卡片 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.book-card {
    padding: 30px;
    border-radius: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.book-cover {
    width: 200px;
    height: 280px;
    margin: 0 auto 20px;
    position: relative;
    perspective: 1000px;
    transition: transform 0.6s;
}

.book-card:hover .book-cover {
    transform: rotateY(-15deg);
}

.book-spine {
    position: absolute;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    border-radius: 5px 0 0 5px;
    z-index: 1;
}

.book-front {
    position: absolute;
    left: 30px;
    width: calc(100% - 30px);
    height: 100%;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.gradient-book-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-book-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-book-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.book-title-cover {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.book-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.book-card:hover .book-glow-effect {
    opacity: 1;
}

.book-info {
    text-align: center;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.book-author {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.book-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.book-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mini-tag {
    padding: 5px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent);
}

.book-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stars {
    font-size: 0.9rem;
}

.rating-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 教程卡片 */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tutorial-card {
    padding: 30px;
    border-radius: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.5s;
}

.tutorial-card:hover::before {
    transform: scaleX(1);
}

.tutorial-card:hover {
    transform: translateY(-10px);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tutorial-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tutorial-badge {
    padding: 5px 15px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid var(--accent);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.tutorial-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tutorial-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tutorial-steps {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    color: var(--text-secondary);
}

.step-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-num {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.tutorial-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.tutorial-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 新闻时间线 */
.news-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: all var(--transition-base);
    position: relative;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-date::after {
    content: '';
    position: absolute;
    right: -46px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.news-day {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-month {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.news-content {
    flex: 1;
}

.news-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.news-badge.hot {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border-color: #f5576c;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 87, 108, 0);
    }
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.news-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-tag {
    padding: 5px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-source {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.news-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.news-link:hover {
    gap: 10px;
    color: var(--primary);
}

/* ==========================================================================
   技能部分 - 六边形网格
   ========================================================================== */

.skills-section {
    background: rgba(255, 255, 255, 0.02);
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.skill-hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-hex-item {
    aspect-ratio: 1;
}

.hexagon {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 10px;
    position: relative;
    transition: all var(--transition-base);
}

.hexagon:hover {
    transform: translateY(-10px) scale(1.05);
}

.hex-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.skill-icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hex-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.skill-level {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    width: var(--level, 0%);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 1s ease;
}

.hex-glow {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.hexagon:hover .hex-glow {
    opacity: 1;
}

/* 技术栈列表 */
.tech-stack-list {
    padding: 40px;
}

.stack-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-category {
    padding: 25px;
    border-radius: 15px;
    transition: all var(--transition-base);
}

.tech-category:hover {
    transform: translateX(10px);
}

.tech-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.tech-badge:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ==========================================================================
   联系部分
   ========================================================================== */

.contact-section {
    position: relative;
}

.contact-bg-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2;
}

.contact-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: float 15s ease-in-out infinite;
}

.contact-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
}

.contact-circle.circle-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.contact-circle.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

.neon-text-subtle {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-card-icon {
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.gradient-icon-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gradient-icon-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gradient-icon-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.contact-card:hover .icon-wrapper {
    transform: rotateY(360deg);
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-value {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-action {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.contact-action:hover {
    letter-spacing: 1px;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.contact-card:hover .card-shine {
    left: 100%;
}

/* 现代表单 */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    padding: 50px;
    border-radius: 25px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-base);
}

.input-group textarea + label {
    top: 20px;
    transform: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--bg-primary);
    padding: 0 10px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition-base);
}

.input-group input:focus ~ .input-border,
.input-group textarea:focus ~ .input-border {
    width: 100%;
}

.btn-submit {
    cursor: pointer;
    border: none;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
}

/* 社交链接 */
.social-section {
    text-align: center;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links-modern {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.2);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
    padding: 60px 0 30px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 30px;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 10px 0;
}

.heart,
.coffee {
    display: inline-block;
    animation: float 2s ease-in-out infinite;
}

.heart {
    animation-delay: 0.2s;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .resource-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title-modern {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
    
    /* 资源中心移动端优化 */
    .resource-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .book-cover {
        width: 150px;
        height: 210px;
    }
    
    .news-timeline::before {
        left: 40px;
    }
    
    .news-date {
        width: 50px;
    }
    
    .news-date::after {
        right: -26px;
    }
    
    .news-day {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .form-card {
        padding: 30px 20px;
    }
}
