:root {
    --primary-color: #002FA7;
    --secondary-color: #fff;
    --accent-color: #f0f0f0;
    --text-color: #333;
    --background-color: #f5f5f5;
    --font-primary: 'Gotham', Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fff;
    cursor: none;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 1800px;
    }
}

nav {
    background-color: transparent;
    backdrop-filter: none;
    color: var(--secondary-color);
    height: 56px;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav-visible {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav.nav-visible .logo {
    color: #404040;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, font-weight 0.3s;
    position: relative;
    font-weight: 400;
}

nav.nav-visible .nav-links a {
    color: #404040;
}

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

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

.hero {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.video-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 4;
}

.video-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-btn svg {
    width: 16px;
    height: 16px;
}

.video-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-btn:active {
    transform: scale(0.95);
}

.video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.video-btn:disabled:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1);
}

.video-indicator {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero .container {
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    max-width: 800px;
    margin-left: 0;
    color: #fff;
}

.works, .about, .contact {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.works h2, .about h2, .contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-item {
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.work-item:hover {
    transform: none !important;
}

.work-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: none !important;
    opacity: 1 !important;
}

.work-item::after {
    content: '→';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--secondary-color);
    opacity: 0 !important;
    transition: none !important;
}

.work-item:hover::after {
    opacity: 0 !important;
    transition: none !important;
}

.work-item p {
    font-size: 18px;
    color: #9a9a9a;
    text-align: left;
    margin-left: 0;
}

.work-item h3 {
    font-size: 24px;
    margin-top: 10px;
    font-weight: 400;
    color: #222;
    text-align: left;
    margin-left: 0;
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 0;
    text-align: left;
    height: 768px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 80px;
    margin: 0;
}

footer .container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 70% 15% 15%;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    margin-top: 0;
}

.footer-column h1 {
    font-size: 36px;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: left;
}

.footer-links, .social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-links a, .social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    padding-left: 40px;
}

.copyright p {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 36px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    
    .footer-column:first-child {
        order: 1;
    }
    
    .footer-column:nth-child(2) {
        order: 2;
    }
    
    .footer-column:nth-child(3) {
        order: 3;
    }
    
    .footer-links, .social-links {
        align-items: flex-start;
        text-align: left;
    }
}

.work-detail {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.work-detail .container {
    width: 100%;
}

.work-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    max-width: 800px;
    margin-left: 0;
    margin-top: 0;
}

.work-info {
    margin-bottom: 40px;
    text-align: center;
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-info p {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
    display: inline-block;
    margin: 0 8px;
}

.work-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.work-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.work-gallery img:first-child {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
}

@media (min-width: 768px) {
    .work-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-gallery img:first-child {
        grid-column: 1 / -1;
    }
}

.work-description h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.work-description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

.detail-hero {
    height: 640px;
    width: 100%;
    display: flex;
    align-items: center;
}

/* About Page Styles */
.about-hero {
    padding: 160px 0 80px;
    background-color: var(--background-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
}

.about-text .intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.skills {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.skills h2 {
    text-align: center;
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill-item {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.skill-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.experience {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.experience h2 {
    text-align: center;
    margin-bottom: 60px;
}

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

.experience-item {
    margin-bottom: 50px;
    padding-left: 30px;
    border-left: 2px solid var(--accent-color);
    position: relative;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item .year {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.experience-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.experience-item p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.experience-item ul {
    list-style: none;
    padding: 0;
}

.experience-item ul li {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.experience-item ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.contact-info {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h1 {
        font-size: 36px;
    }

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

    .experience-timeline {
        padding: 0 20px;
    }
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* 移动端导航浮层样式 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
}
.nav-toggle .bar {
    width: 24px;
    height: 3px;
    background: #404040;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
    z-index: 1202;
    padding: 80px 32px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav-menu a {
    color: #404040;
    font-size: 20px;
    text-decoration: none;
    margin-bottom: 32px;
    font-weight: 500;
}
.mobile-nav-menu a:last-child {
    margin-bottom: 0;
}

body.mobile-nav-open .mobile-nav-overlay {
    display: block;
    opacity: 1;
}
body.mobile-nav-open .mobile-nav-menu {
    display: flex;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}

.mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    color: #404040;
    cursor: pointer;
    z-index: 1300;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.mobile-nav-close:hover {
    background-color: #e0e0e0;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: #fff;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: background 0.2s, width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 1;
}

.custom-cursor.cursor-large {
    width: 40px;
    height: 40px;
    background: #fff;
    opacity: 0.8;
}

.work-hero {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.work-title {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    max-width: 800px;
    margin-left: 0;
}

.work-subtitle {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: 0;
    color: #666;
}

@media (max-width: 768px) {
    .video-controls {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    
    .video-btn {
        width: 28px;
        height: 28px;
    }
    
    .video-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .video-indicator {
        padding: 6px 12px;
        font-size: 10px;
    }
}

html {
    overflow-x: hidden;
    width: 100%;
}

section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== Rocha 左右结构样式 ===== */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.sidebar {
    width: 20%;
    min-width: 200px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 40px 16px 40px 16px;
    box-sizing: border-box;
    gap: 24px;
}
.sidebar-card {
    background: #EEEEEE;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 32px 20px;
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.sidebar-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.main-content {
    width: 80%;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        gap: 12px;
        padding: 16px 8px;
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .sidebar-card {
        min-width: 120px;
        padding: 16px 10px;
        font-size: 1rem;
    }
    .main-content {
        width: 100%;
    }
}

/* Global text selection styles */
::selection {
    background-color: rgba(0, 47, 167, 0.1);
    color: #222222;
}

::-moz-selection {
    background-color: rgba(0, 47, 167, 0.1);
    color: #222222;
}