/* Stefano Style - Calm Gold with Video - Optimized */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Outfit:wght@300;400;500&family=Noto+Sans+SC:wght@400;500;700&display=swap');

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

:root {
    --surface-0: #080808;
    --surface-1: #0f0f0f;
    --surface-2: #141414;
    --surface-3: #1a1a1a;
    --bg: var(--surface-0);
    --text: #f5f5f5;
    --text-muted: #777777;
    --accent: #c9a227;
    --accent-2: #8b7355;
    --gradient: linear-gradient(135deg, #c9a227, #6b5a3d, #8b7355);
    --gradient-light: linear-gradient(135deg, #1a1712, #252018);
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.563rem;
    --text-2xl: 1.953rem;
    --text-3xl: 2.441rem;
    --text-4xl: 3.052rem;
    --text-hero: clamp(3rem, 14vw, 10rem);
    --scrollbar-track: rgba(0, 0, 0, 0.42);
    --scrollbar-thumb: rgba(70, 70, 70, 0.92);
    --scrollbar-thumb-hover: rgba(96, 96, 96, 0.96);
}

.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', 'Noto Sans SC', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: auto; }

.video-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.25; }
.video-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(8, 8, 8, 0.3); z-index: 0; }

.nav { position: fixed; top: 0; left: 0; right: 0; padding: 2rem 4rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; }
.nav-logo { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 600; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.08em; transition: color 0.3s; display: flex; align-items: baseline; gap: 0.3em; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 1; }
.hero-content { position: relative; z-index: 1; }
.hero-label { font-size: var(--text-xs); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }
.hero-title-container { display: inline-flex; flex-direction: column; align-items: center; }
.hero-title-cn { font-family: 'Syne', sans-serif; font-size: var(--text-hero); font-weight: 700; line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title-en { font-family: 'Syne', 'Noto Sans SC', sans-serif; font-size: clamp(1.3rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; margin-top: -0.1em; }
.hero-tagline { font-size: var(--text-lg); color: var(--text-muted); margin-top: 3rem; font-weight: 300; }
.release-soon { font-family: 'Syne', sans-serif; font-size: var(--text-lg) !important; color: #ffd700 !important; letter-spacing: 0.2em; margin-top: 1rem; display: block !important; }

.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; z-index: 1; }
.scroll-indicator span { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line { width: 1px; height: 60px; background: var(--gradient); animation: scrollPulse 2s ease-in-out infinite; }

/* Section horizontal scroll hint */
.section-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem auto;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.58);
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.section-scroll-hint .hint-arrow {
    color: var(--accent);
    font-size: 0.82rem;
    animation: hintNudge 1.25s ease-in-out infinite;
}
.section-scroll-hint.hint-hidden {
    opacity: 0;
    transform: translateY(-3px);
    pointer-events: none;
}

@keyframes hintNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.works { padding: 6rem 4rem; background: var(--surface-1); position: relative; z-index: 1; }
.section-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 3rem; }
.section-header h2 { font-family: 'Syne', sans-serif; font-size: var(--text-xl); font-weight: 500; color: #fff; letter-spacing: 0.05em; }

.cn-label { 
    font-size: 0.8em !important; 
    opacity: 0.65; 
    font-weight: 400;
    margin-left: 0.15em;
    font-style: normal;
}

/* New Release - 3 columns, full width */
.works.new-release .works-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    width: 100%;
}
.works.new-release .work-card {
    flex: 1 1 auto !important; min-width: 280px; width: 33.333% !important;
    flex: 0 0 auto;
}
.works.new-release .work-image { aspect-ratio: 1/1; border-radius: 8px; }
.works.new-release .work-info { padding: 0.8rem 0.3rem; }
.works.new-release .work-info h3, .works#works .work-card h3, .works .work-card h3 { font-size: 1rem !important; }
.works.new-release .work-info p, .works#works .work-card p, .works .work-card p { font-size: 0.75rem !important; }
.works.new-release .work-tag { font-size: 0.6rem; padding: 0.2rem 0.5rem; }

/* Works - 4 columns, 3 pages, horizontal scroll, auto-adaptive */
.works#works .works-scroll {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.works#works .works-page {
    flex: 0 0 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    scroll-snap-align: center;
}
.works#works .work-card {
    flex: 1 1 auto !important;
    min-width: 200px;
    width: 25% !important;
    flex: 0 0 auto;
}
.works#works .work-image { aspect-ratio: 1/1; border-radius: 8px; }

.work-card { cursor: pointer; }
.work-card:hover .work-image { transform: scale(0.98); }
/* .work-card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; } */
.work-year { font-size: 0.875rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.works#works .work-card h3, .work-card h3 { font-family: 'Syne', 'Noto Sans SC', sans-serif; font-size: var(--text-base); font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.work-card p { color: var(--text-muted); font-size: var(--text-xs); margin-bottom: 0.8rem; }
.work-tag { font-size: var(--text-xs); padding: 0.4rem 1rem; background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.3); border-radius: 4px; color: var(--accent); }

.about { padding: 8rem 4rem; background: var(--surface-2); position: relative; z-index: 1; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1400px; margin: 0 auto; }
.about-image { aspect-ratio: 3/4; background: var(--gradient-light); background-size: cover; background-position: center; border-radius: 12px; position: relative; }
.about-image::after { content: ''; position: absolute; inset: 0; border-radius: 12px; border: 1px solid rgba(201, 162, 39, 0.2); }
.about-text h2 { font-family: 'Syne', sans-serif; font-size: var(--text-2xl); font-weight: 500; color: #fff; margin-bottom: 2rem; }
.about-text h3 { font-family: 'Syne', 'Noto Sans SC', sans-serif; font-size: var(--text-4xl); font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); font-size: var(--text-base); line-height: 1.8; max-width: 400px; margin-bottom: 2rem; }
.about-tags { display: flex; gap: 0.8rem; flex-wrap: nowrap !important; }
.about-tags span { padding: 0.5rem 1rem; background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.3); border-radius: 4px; font-size: var(--text-sm); color: var(--accent); }

.contact { padding: 10rem 4rem; text-align: center; background: var(--surface-1); position: relative; z-index: 1; }
.contact::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 1px; background: var(--gradient); }
.contact h2 { font-family: 'Syne', sans-serif; font-size: var(--text-4xl); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.contact p { color: var(--text-muted); font-size: var(--text-lg); margin-bottom: 3rem; }
.contact-btn { display: inline-block; padding: 1.2rem 3rem; background: var(--gradient); color: #fff; text-decoration: none; font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s; border-radius: 4px; }
.contact-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2); }
.contact-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.footer { padding: 3rem 4rem; text-align: center; border-top: 1px solid var(--surface-2); font-size: var(--text-sm); color: var(--text-muted); position: relative; z-index: 1; background: var(--surface-0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

@media (min-width: 769px) {
    #new-release .section-scroll-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 禁止页面横向滚动 */
    html, body {
        overflow-x: hidden;
    }

    .section-scroll-hint {
        margin-right: 0;
        font-size: 0.6rem;
        padding: 0.34rem 0.64rem;
        opacity: 0.92;
    }
    
    /* About/Contact禁止横向滚动 */
    .about, .contact {
        overflow-x: hidden;
    }
    
    /* 导航栏 - 单行自适应 */
    .nav { 
        padding: 0.9rem 0.75rem !important;
        flex-wrap: nowrap !important;
        gap: 0.55rem;
    }
    .nav-logo { 
        font-size: 1rem !important;
        flex-shrink: 0;
    }
    .nav-links { 
        flex: 1 1 auto;
        min-width: 0;
        justify-content: space-between;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }
    .nav-links a {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        font-size: 0 !important;
        letter-spacing: 0 !important;
        gap: 0 !important;
        white-space: nowrap !important;
    }
    .nav-links a .cn-label {
        display: none !important;
    }
    .nav-links a::after {
        color: var(--text-muted);
        font-size: clamp(0.54rem, 2.1vw, 0.68rem);
        letter-spacing: 0.04em;
        line-height: 1;
        white-space: nowrap;
    }
    .nav-links a:hover::after,
    .nav-links a:focus-visible::after {
        color: var(--accent);
    }
    .nav-links a[href="#new-release"]::after,
    .nav-links a[href="../index.html#new-release"]::after {
        content: "New";
    }
    .nav-links a[href="#works"]::after,
    .nav-links a[href="../index.html#works"]::after {
        content: "Works";
    }
    .nav-links a[href="#making"]::after,
    .nav-links a[href="../index.html#making"]::after {
        content: "Makeing of";
    }
    .nav-links a[href="#about"]::after,
    .nav-links a[href="../index.html#about"]::after {
        content: "About";
    }
    .nav-links a[href="#contact"]::after,
    .nav-links a[href="../index.html#contact"]::after {
        content: "Contact";
    }
    /* .cn-label { display: none !important; } */
    
    /* 视频 - 全宽自适应 */
    .video-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 通用 - 减小内边距 */
    .works, .about, .contact, .making-of { 
        padding: 3rem 1.5rem !important; 
    }

    .hero-tagline {
        font-size: var(--text-lg) !important;
        color: var(--text-muted) !important;
        margin-top: 3rem !important;
        font-weight: 300 !important;
    }
    
    /* 标题不换行 */
    .section-header h2 {
        font-size: 1.2rem !important;
        white-space: nowrap !important;
    }
    .section-header { gap: 0.5rem !important; }
    
    /* Works - 横向滚动 */
    .works.new-release .works-scroll,
    .works#works .works-scroll {
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }
    .works.new-release .work-card,
    .works#works .work-card {
        min-width: 80vw !important;
        width: 80vw !important;
        flex: 0 0 80vw !important;
        scroll-snap-align: center !important;
        margin-right: 1rem !important;
    }
    
    /* Making Of - 横向滚动 */
    .making-of .works-scroll {
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }
    .making-of .video-card,
    .making-of .video-card iframe {
        min-width: 100vw !important;
        width: 100vw !important;
        flex: 0 0 100vw !important;
        scroll-snap-align: center !important;
        max-width: 100vw !important;
    }
    
    /* Work Card 字体 */
    .work-card h3 { font-size: 0.9rem !important; }
    .work-card p { font-size: 0.7rem !important; }
    .work-card .work-tag { font-size: 0.6rem !important; padding: 0.2rem 0.5rem !important; }
    .work-year { font-size: 0.75rem !important; }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .about-text h2 { font-size: 1.5rem !important; }
    .about-text h3 { font-size: 1.3rem !important; }
    .about-text p { font-size: 0.9rem !important; max-width: 100% !important; }
    .about-tags span { 
        font-size: 0.7rem !important; 
        padding: 0.3rem 0.6rem !important; 
    }
    
    /* Contact */
    .contact h2 { font-size: 1.5rem !important; }
    .contact-buttons { flex-direction: column !important; }
    .contact-btn { 
        width: 100% !important; 
        text-align: center !important;
        padding: 1rem 2rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Footer */
    .footer { padding: 2rem 1rem !important; }
}


/* 强制统一所有标题样式，包括链接内的 */
.work-card a h3,
.work-card a h3 {
    font-size: 1rem !important;
    font-family: 'Syne', 'Noto Sans SC', sans-serif !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 0.3rem !important;
    display: block;
}

/* 移除链接的下划线 */
.work-card a {
    text-decoration: none !important;
}

/* ===== 统一的 Work Card 样式 ===== */
.work-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.work-card .work-image {
    aspect-ratio: 1/1;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.work-card .work-info {
    padding: 0.8rem 0.3rem;
}

.work-card .work-year {
    font-size: 0.875rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.3rem;
}

.work-card h3 {
    font-family: 'Syne', 'Noto Sans SC', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.3;
}

.work-card p {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.work-card .work-tag {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.8rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 4px;
    color: var(--accent);
    display: inline-block;
}

.work-card a {
    text-decoration: none;
}

.work-card a h3 {
    display: block;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap !important;
}

.contact-btn.wechat-btn {
    background: var(--gradient) !important;
    border: 1px solid rgba(201, 162, 39, 0.5) !important;
    background: #07C160;
    border: none;
}

/* About 名字对齐 */
.about-text h3 {
    line-height: 1.2 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.3em !important;
    flex-wrap: wrap !important;
}


/* 强制横滑 */
.works-scroll {
    overflow-x: auto !important;
    display: flex !important;
    flex-direction: row !important;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.works-scroll::-webkit-scrollbar {
    height: 10px;
}
.works-scroll::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}
.works-scroll::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid rgba(8, 8, 8, 0.85);
}
.works-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
.works-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
// .work-card {
//     flex: 0 0 25% !important;
// }



/* Making of - 3 columns, auto-adaptive */
.making-of {
    padding: 6rem 4rem;
    background: var(--surface-1);
    position: relative;
    z-index: 1;
}
.making-of .section-title {
    font-family: 'Syne', sans-serif !important;
    font-size: var(--text-xl) !important;
    font-weight: 500 !important;
    color: #fff !important;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}
.making-of .works-scroll {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.making-of .works-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    flex: 0 0 100% !important;
    width: 100%;
    min-width: 100%;
}
.making-of .video-card {
    flex: 0 0 calc((100% - 2rem) / 3) !important;
    width: calc((100% - 2rem) / 3) !important;
    max-width: calc((100% - 2rem) / 3) !important;
    min-width: 0;
}
.making-of .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-2);
}
.making-of .video-cover-button {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.18s ease;
}
.making-of .video-cover-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.08), rgba(8, 8, 8, 0.42));
}
.making-of .video-cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}
.making-of .video-frame iframe {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: block;
}
.making-of .video-frame.is-loaded .video-cover-button {
    display: none;
}
@media (min-width: 769px) and (hover: hover) {
    .making-of .video-frame.is-primed:hover .video-cover-button,
    .making-of .video-frame.is-primed:focus-within .video-cover-button {
        opacity: 0;
        pointer-events: none;
    }
}
.making-of .video-card .work-info {
    padding: 0.8rem 0.3rem;
}
.making-of .video-card .work-info h3 {
    font-family: 'Syne', 'Noto Sans SC', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.3;
    margin-bottom: 0.8rem !important;
}


/* Making of video card overlays */
.making-of .video-card {
    position: relative;
}
.making-of .video-card .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 15px 15px;
    color: #fff;
    font-size: 0.9rem;
}
.making-of .video-card .video-desc {
    color: #888;
    font-size: 0.75rem;
    margin-top: 8px;
}


/* 强制覆盖 making of 标题 */
.making-of h2.section-title {
    font-family: 'Syne', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #fff !important;
}
.making-of h2.section-title .cn-label {
    font-size: 0.8em !important;
    opacity: 0.65 !important;
}

/* 导航栏滚动fade效果 */
.nav {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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