/* ============================================
   YUYU CREATIVE — Creative Studio Website
   ============================================ */

/* --- Font Face (方正兰亭细黑) --- */
@font-face {
    font-family: 'FZLanTingXHei';
    src: url('fonts/FZLTXIHJW.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #888888;
    --gray-light: #cccccc;
    --gray-dark: #333333;
    --bg: #ffffff;
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --font-serif: 'FZLanTingXHei', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-sans: 'FZLanTingXHei', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    cursor: none;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot.active {
    width: 60px;
    height: 60px;
    background: var(--white);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s;
}

.cursor-ring.active {
    width: 80px;
    height: 80px;
    border-color: rgba(0, 0, 0, 0.1);
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 28px 48px;
    transition: background 0.4s, padding 0.4s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--black);
    transition: transform var(--transition-fast), opacity 0.3s;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* --- Hero Section (Home) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 48px;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.1;
    margin-bottom: 32px;
    white-space: nowrap;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: letterFadeIn 0.8s ease forwards;
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gray);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Hero Tagline --- */
.hero-tagline {
    padding: 120px 48px;
    text-align: center;
}

.hero-tagline p {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-dark);
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
}

.view-all {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.view-all:hover {
    opacity: 0.5;
}

/* --- Work Grid --- */
.work-grid {
    padding: 0 48px;
    margin-bottom: 120px;
}

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

.full-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.work-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.full-grid .work-image {
    aspect-ratio: 1;
}

.work-image img {
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay .plus {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 300;
    font-family: var(--font-serif);
    transform: scale(0.5);
    transition: transform var(--transition);
}

.work-item:hover .work-overlay .plus {
    transform: scale(1);
}

.work-info {
    padding: 20px 0 32px;
}

.work-info h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.work-info p {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.05em;
}

/* --- Lightbox (click to zoom) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px;
    box-sizing: border-box;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    cursor: zoom-out;
    animation: lightboxIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open .main,
body.lightbox-open .header,
body.lightbox-open .footer {
    filter: blur(10px);
    -webkit-filter: blur(10px);
}

body.lightbox-open .cursor-dot,
body.lightbox-open .cursor-ring {
    display: none;
}

.work-item {
    cursor: zoom-in;
}

/* --- Home About --- */
.home-about {
    padding: 160px 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.home-about-content {
    max-width: 900px;
}

.home-about h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--gray-dark);
}

.cta-link {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--black);
    transition: opacity 0.3s;
}

.cta-link:hover {
    opacity: 0.5;
}

/* --- Page Header --- */
.page-header {
    padding: 180px 48px 80px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 24px;
}

.page-desc {
    font-size: 1rem;
    color: var(--gray);
    max-width: 500px;
}

/* --- About Page --- */
.about-section {
    padding: 0 48px 120px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--black);
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.about-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

/* --- Services --- */
.services-section {
    padding: 120px 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 64px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.service-item {
    padding: 32px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-number {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
}

.service-item h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--gray);
}

/* --- Clients --- */
.clients-section {
    padding: 120px 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
}

.clients-list span {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--gray-light);
    transition: color 0.4s;
}

.clients-list span:hover {
    color: var(--black);
}

/* --- Contact Page --- */
.contact-section {
    padding: 0 48px 160px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.contact-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 64px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.contact-item a,
.contact-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a:hover {
    opacity: 0.6;
}

/* --- Contact Form --- */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--black);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    outline: none;
    resize: none;
    transition: border-color 0.3s;
    cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.submit-btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--black);
    border: none;
    cursor: none;
    transition: background 0.4s, transform 0.4s;
}

.submit-btn:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 80px 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-light);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
.nav-links.mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
}

.nav-links.mobile-open .nav-link {
    font-size: 1.4rem;
    letter-spacing: 0.3em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .full-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 0 24px;
    }

    .hero-title {
        letter-spacing: 0.08em;
    }

    .hero-tagline {
        padding: 80px 24px;
    }

    .work-grid {
        padding: 0 24px;
    }

    .home-grid,
    .full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-header {
        padding: 0 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .page-header {
        padding: 140px 24px 60px;
    }

    .about-section,
    .services-section,
    .clients-section,
    .contact-section {
        padding-left: 24px;
        padding-right: 24px;
    }

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

    .home-about {
        padding: 80px 24px;
    }

    .footer {
        padding: 60px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    html, body, a, input, textarea, button {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .clients-list span {
        font-size: 1.4rem;
    }
}
