/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #ec4899;
    --border-color: #2a2a4a;
    --hover-color: #2a2a4e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.hero-content {
    padding-top: 1rem;
}

.hero-content h1 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

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

.location {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2rem;
}

/* Profile Section */
.profile-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-list li:last-child {
    border-bottom: none;
}

/* Publications Section */
.publications-section {
    margin-top: 2rem;
}

.publications-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.publication-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.publication-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-title a {
    color: inherit;
    text-decoration: none;
}

.publication-title a:hover {
    color: var(--primary-color);
}

.publication-venue {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sections Grid */
.sections-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 4rem 0 3rem 0;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 2rem 4rem 2rem;
}

.section-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.section-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

/* Project Pages */
.project-page {
    padding: 2rem 0;
}

.project-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--card-bg), var(--dark-bg));
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.project-content p, .project-content li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.project-content li {
    margin-bottom: 0.75rem;
}

.project-content strong, .project-content b {
    color: var(--text-primary);
}

.project-content code {
    background: var(--hover-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--accent);
}

.project-content pre {
    background: var(--hover-color);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.project-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-content .image-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

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

.highlight-box {
    background: linear-gradient(135deg, var(--card-bg), var(--hover-color));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

.gallery img {
    margin: 0;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Action Examples Grid */
.action-examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.action-example {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    min-width: 0;
}

.action-example h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.action-example img {
    margin: 0;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* Full Size Side-by-Side Images */
.full-size-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.full-size-gallery img {
    margin: 0;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

    .hero-content h1 {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

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

    .project-header h1 {
        font-size: 2rem;
    }

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

}

@media (max-width: 560px) {
    .action-examples-grid,
    .full-size-gallery {
        grid-template-columns: 1fr;
    }
}
