* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: var(--primary);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle .toggle-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.nav-toggle .toggle-icon {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-toggle:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.nav-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-toggle.active .toggle-text {
    color: white;
}

.nav-toggle.active .toggle-icon {
    transform: rotate(180deg);
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: bgFloat 15s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-areas: "text creative";
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    grid-area: text;
    color: white;
    text-align: left;
}

.hero-creative {
    grid-area: creative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-title .name {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero-title .divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
}

.hero-title .title {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 8px;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
    text-align: left;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-cta .btn {
    background: white;
    color: var(--primary);
}

.hero-cta .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.hero-cta .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-creative {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    cursor: grab;
    position: relative;
}

.hero-creative:active {
    cursor: grabbing;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.cube .face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.cube .front  { transform: rotateY(0deg) translateZ(100px); }
.cube .back   { transform: rotateY(180deg) translateZ(100px); }
.cube .right  { transform: rotateY(90deg) translateZ(100px); }
.cube .left   { transform: rotateY(-90deg) translateZ(100px); }
.cube .top    { transform: rotateX(90deg) translateZ(100px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(100px); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

.scroll-indicator span {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(8px) rotate(45deg); }
    60% { transform: translateY(4px) rotate(45deg); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quick-overview {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
}

.overview-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.overview-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: white;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.honor-list,
.contact-list {
    list-style: none;
}

.honor-list li,
.contact-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about {
    background: var(--bg-primary);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.about-timeline h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 0;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
}

.skills {
    background: var(--bg-secondary);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-bar-item {
    display: block;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-bar-label span:last-child {
    color: var(--primary);
}

.skill-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #0ea5e9 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.projects {
    background: var(--bg-primary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.project-image.project-1 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><circle cx="600" cy="300" r="200" fill="%23764ba2" opacity="0.5"/></svg>') center/cover;
}

.project-image.project-2 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%2311998e" width="1200" height="600"/><circle cx="600" cy="300" r="200" fill="%2338ef7d" opacity="0.5"/></svg>') center/cover;
}

.project-image.project-3 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23eb3349" width="1200" height="600"/><circle cx="600" cy="300" r="200" fill="%23f45c43" opacity="0.5"/></svg>') center/cover;
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.project-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-view {
    background: var(--primary);
    color: white;
}

.blog {
    background: var(--bg-secondary);
}

.blog-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #0ea5e9 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

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

.blog-category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.blog-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.blog-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.blog-link:hover::after {
    width: 100%;
}

.blog-more {
    text-align: center;
}

.contact {
    background: var(--bg-primary);
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

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

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--bg-tertiary);
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--primary);
}

.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-body .project-tags {
    margin-bottom: 1.5rem;
}

.modal-body .project-tag {
    padding: 0.5rem 1.2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-section p,
.modal-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.modal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "creative"
            "text";
        text-align: left;
        gap: 2rem;
    }

    .hero-creative {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .cube .face {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }

    .cube .front  { transform: rotateY(0deg) translateZ(75px); }
    .cube .back   { transform: rotateY(180deg) translateZ(75px); }
    .cube .right  { transform: rotateY(90deg) translateZ(75px); }
    .cube .left   { transform: rotateY(-90deg) translateZ(75px); }
    .cube .top    { transform: rotateX(90deg) translateZ(75px); }
    .cube .bottom { transform: rotateX(-90deg) translateZ(75px); }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-description {
        margin: 0 0 2rem;
    }

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
        padding: 0.4rem 0.9rem;
        border-radius: 50px;
        z-index: 1001;
    }

    .nav-toggle .toggle-text {
        font-size: 0.8rem;
    }

    .nav-toggle .toggle-icon {
        font-size: 0.65rem;
    }

    /* 游戏卡片移动端适配 */
    .blog-card {
        padding: 1.5rem;
    }

    .blog-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .blog-card h3 {
        font-size: 1.1rem;
    }

    .blog-card p {
        font-size: 0.9rem;
    }

    .blog-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .blog-link {
        font-size: 0.9rem;
    }

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

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        display: none !important;
        gap: 0;
        z-index: 1000;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        display: flex !important;
        max-height: 500px;
        padding: 0.5rem 0;
        animation: slideDown 0.3s ease;
    }

    .nav-menu li {
        list-style: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        text-align: left;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-content {
        text-align: left !important;
        grid-template-areas: 
            "creative"
            "text" !important;
        gap: 1.5rem !important;
    }

    .hero-creative {
        display: flex !important;
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .cube {
        width: 120px;
        height: 120px;
    }

    .cube .face {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .cube .front  { transform: rotateY(0deg) translateZ(60px); }
    .cube .back   { transform: rotateY(180deg) translateZ(60px); }
    .cube .right  { transform: rotateY(90deg) translateZ(60px); }
    .cube .left   { transform: rotateY(-90deg) translateZ(60px); }
    .cube .top    { transform: rotateX(90deg) translateZ(60px); }
    .cube .bottom { transform: rotateX(-90deg) translateZ(60px); }

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

    .hero-title .title {
        font-size: 1.5rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 20px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        text-align: left;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .modal-body {
        padding: 2rem;
    }
}
