/* ==========================================
   PORTFOLIO - 个人作品集网站样式
   风格：大胆前卫 · 高设计感 · 沉浸式体验
   ========================================== */

/* ---------- CSS变量 ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #555555;
    --accent: #c9ff4a;
    --accent-dark: #9de000;
    --accent-glow: rgba(201, 255, 74, 0.3);
    --border: #222222;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --font-primary: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    --font-size-hero: clamp(3rem, 8vw, 7rem);
    --font-size-h2: clamp(2rem, 5vw, 4rem);
    --font-size-h3: clamp(1.2rem, 2vw, 1.8rem);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    display: block;
    max-width: 100%;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ---------- 预加载动画 ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    display: flex;
    gap: 4px;
}

.loader-text span {
    display: inline-block;
    animation: loaderBounce 1.2s ease-in-out infinite;
}

.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; }
.loader-text span:nth-child(7) { animation-delay: 0.6s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); color: var(--accent); }
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    margin-top: 2rem;
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--accent);
    animation: loaderProgress 2s ease-in-out forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ---------- 导航栏 ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    padding: 0.8rem 3rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 1.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

.btn-contact {
    padding: 0.6rem 1.8rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    margin-left: 1.5rem;
    white-space: nowrap;
}

.btn-contact:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ---------- 移动端菜单 ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    z-index: 999;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border);
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent);
}

/* ---------- 首页全屏视频背景 ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.8s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 1.0s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 1.2s; }

.hero-title-divider {
    color: var(--accent);
    margin: 0 0.15em;
    font-weight: 300;
    animation: dividerPulse 3s ease-in-out 2s infinite !important;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 0 transparent; }
    50% { opacity: 1; text-shadow: 0 0 20px var(--accent-glow); }
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeUp 1s ease 1.5s forwards;
}

/* 底部角落滚动指示器 */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 3;
    opacity: 0;
    animation: fadeUp 1s ease 2s forwards;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotBreathe 2.5s ease-in-out infinite;
}

.scroll-line-h {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    animation: dotBreathe 2.5s ease-in-out infinite 0.3s;
}

@keyframes dotBreathe {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

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

/* 浮动装饰元素 — 光晕圆环 + 动态线条 + 散射粒子 */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* 光晕圆环 */
.deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 255, 74, 0.06);
}

.deco-ring::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(201, 255, 74, 0.15);
    border-right-color: rgba(201, 255, 74, 0.08);
}

.deco-ring-1 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 30s linear infinite;
}

.deco-ring-2 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 22s linear infinite reverse;
    border-style: dashed;
    border-color: rgba(201, 255, 74, 0.04);
}

.deco-ring-2::before {
    display: none;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 动态光线 */
.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(201, 255, 74, 0.06), transparent);
    height: 1px;
}

.deco-line-1 {
    width: 60%;
    top: 30%;
    left: 20%;
    animation: lineDrift 12s ease-in-out infinite;
    transform-origin: center;
}

.deco-line-2 {
    width: 40%;
    top: 65%;
    left: 30%;
    animation: lineDrift 15s ease-in-out infinite 3s;
    transform: rotate(2deg);
    transform-origin: center;
}

@keyframes lineDrift {
    0%, 100% { opacity: 0.3; transform: translateX(0) rotate(0deg); }
    25% { opacity: 0.6; transform: translateX(20px) rotate(0.5deg); }
    50% { opacity: 0.2; transform: translateX(-10px) rotate(-0.3deg); }
    75% { opacity: 0.5; transform: translateX(15px) rotate(0.2deg); }
}

/* 散射粒子点 */
.deco-dots {
    position: absolute;
    inset: 0;
}

.deco-dots i {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: dotTwinkle var(--dur) ease-in-out infinite var(--delay);
}

.deco-dots i:nth-child(1)  { top: 15%; left: 20%; --dur: 4s; --delay: 0s; }
.deco-dots i:nth-child(2)  { top: 25%; left: 70%; --dur: 3.5s; --delay: 0.5s; }
.deco-dots i:nth-child(3)  { top: 40%; left: 15%; --dur: 5s; --delay: 1s; }
.deco-dots i:nth-child(4)  { top: 35%; left: 85%; --dur: 4.2s; --delay: 1.5s; }
.deco-dots i:nth-child(5)  { top: 55%; left: 25%; --dur: 3.8s; --delay: 2s; }
.deco-dots i:nth-child(6)  { top: 60%; left: 75%; --dur: 4.5s; --delay: 0.3s; }
.deco-dots i:nth-child(7)  { top: 75%; left: 10%; --dur: 3.2s; --delay: 1.2s; }
.deco-dots i:nth-child(8)  { top: 80%; left: 60%; --dur: 4.8s; --delay: 0.8s; }
.deco-dots i:nth-child(9)  { top: 20%; left: 45%; --dur: 3.6s; --delay: 2.5s; }
.deco-dots i:nth-child(10) { top: 70%; left: 40%; --dur: 4.1s; --delay: 1.8s; }
.deco-dots i:nth-child(11) { top: 45%; left: 55%; --dur: 3.4s; --delay: 0.7s; }
.deco-dots i:nth-child(12) { top: 85%; left: 80%; --dur: 5.2s; --delay: 2.2s; }

@keyframes dotTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.6; transform: scale(1.5); }
}

/* ---------- 通用作品区样式 ---------- */
.works-section {
    padding: 8rem 3rem;
    position: relative;
}

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

.section-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ---------- 作品网格 ---------- */
.works-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.works-grid-large {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.works-grid-masonry {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ---------- 作品卡片 ---------- */
.work-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.work-card-featured {
    grid-row: span 2;
}

.work-card-tall {
    grid-row: span 2;
}

.work-card-wide {
    grid-column: span 2;
}

.work-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-card-featured .work-thumbnail {
    aspect-ratio: 3/4;
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.work-card:hover .work-thumbnail img {
    transform: scale(1.08);
}

.work-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(201, 255, 74, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-smooth);
    z-index: 2;
}

.work-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
    color: var(--bg-primary);
}

.work-card:hover .work-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.work-info {
    padding: 1.5rem;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.work-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- 模板设计横向滚动 ---------- */
.template-scroll-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.template-scroll-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 255, 74, 0.3) transparent;
}

.template-scroll-track::-webkit-scrollbar {
    height: 4px;
}

.template-scroll-track::-webkit-scrollbar-track {
    background: transparent;
}

.template-scroll-track::-webkit-scrollbar-thumb {
    background: rgba(201, 255, 74, 0.2);
    border-radius: 4px;
}

.template-scroll-track::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 255, 74, 0.4);
}

.template-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.template-card .work-thumbnail {
    aspect-ratio: 9/16;
    overflow: hidden;
}

.template-card .work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.template-card .work-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.template-card:hover .work-thumbnail video {
    transform: scale(1.08);
}

.template-card:hover .work-thumbnail img {
    transform: scale(1.08);
}

.template-card .work-info {
    padding: 1rem 1.2rem;
}

.template-card .work-category {
    font-size: 0.7rem;
}

.template-card .work-title {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.template-scroll-wrapper:hover .scroll-hint {
    opacity: 0;
}

/* ---------- 静帧图集轮播 ---------- */
.stills-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stills-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.stills-slide-active {
    opacity: 1;
}

/* ---------- 关于我 ---------- */
.about-section {
    padding: 8rem 3rem;
    background: var(--bg-primary);
}

.about-grid {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    padding: 0;
}

.about-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 2rem auto;
    max-width: 550px;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: nowrap;
    justify-content: center;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- 联系我 ---------- */
.contact-section {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* 新联系方式网格布局 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-info-item {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-info-item:hover {
    border-color: rgba(201, 255, 74, 0.2);
    background: rgba(201, 255, 74, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.contact-info-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

a.contact-info-value:hover {
    color: var(--accent);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* ---------- 页脚 ---------- */
.footer {
    padding: 3rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-logo .dot {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.social-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--accent);
}

/* ---------- 灯箱 ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    padding: 1rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* 灯箱主体：上视频下详情 */
.lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 255, 74, 0.3) transparent;
}

.lightbox-body::-webkit-scrollbar {
    width: 4px;
}

.lightbox-body::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-body::-webkit-scrollbar-thumb {
    background: rgba(201, 255, 74, 0.2);
    border-radius: 4px;
}

.lightbox-video-wrap {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video {
    max-height: 60vh;
    max-width: 100%;
    border-radius: 12px;
    outline: none;
    display: block;
    object-fit: contain;
}

/* 详情区域 */
.lightbox-info {
    width: 100%;
    padding: 2rem 1.5rem 3rem;
    color: var(--text-secondary);
    text-align: left;
}

.lightbox-info .lb-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.lightbox-info .lb-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.lightbox-info .lb-role {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    padding: 0.35rem 1.2rem;
    border: 1px solid rgba(201, 255, 74, 0.25);
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

/* 获奖情况 */
.lightbox-info .lb-awards {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.lightbox-info .lb-awards-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.lightbox-info .lb-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lightbox-info .lb-awards-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lightbox-info .lb-awards-list li::before {
    content: '>';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lightbox-body {
        max-height: 100vh;
    }
    .lightbox-video-wrap {
        max-height: 45vh;
    }
    .lightbox-video {
        max-height: 45vh;
        border-radius: 8px;
    }
    .lightbox-info {
        padding: 1.2rem 1rem 2rem;
    }
    .lightbox-info .lb-title {
        font-size: 1.2rem;
    }
}

/* 图片灯箱左右导航 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    opacity: 0;
}

.lightbox-image:hover .lightbox-nav,
.lightbox-image.active .lightbox-nav {
    opacity: 1;
}

.lightbox-nav:hover {
    background: rgba(201, 255, 74, 0.15);
    color: var(--accent);
}

.lightbox-nav-left {
    left: 1.5rem;
}

.lightbox-nav-right {
    right: 1.5rem;
}

.lightbox-nav.hidden {
    display: none;
}

/* 静帧图集模态框 */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    overflow-y: auto;
    padding: 5rem 2rem 3rem;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    color: var(--accent);
}

.gallery-modal .gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-modal .gallery-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.gallery-modal .gallery-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-fast);
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-counter {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2rem;
}

/* ---------- 滚动动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid-large {
        grid-template-columns: 1fr 1fr;
    }

    .works-grid-large .work-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .about-grid {
        max-width: 100%;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .works-section {
        padding: 5rem 1.5rem;
    }

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

    .works-grid-large {
        grid-template-columns: 1fr;
    }

    .works-grid-large .work-card-featured,
    .work-card-wide {
        grid-column: span 1;
    }

    .about-section {
        padding: 5rem 1.5rem;
    }

    .template-card {
        flex: 0 0 200px;
    }

    .template-scroll-track {
        gap: 1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-section {
        padding: 5rem 1.5rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-scroll-indicator {
        bottom: 1.5rem;
        right: 1.5rem;
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

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

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

    .contact-info-grid {
        gap: 1rem;
    }

    .contact-info-item {
        padding: 1.5rem 1rem;
    }

    .contact-links {
        gap: 0.8rem;
    }
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- 光标效果 ---------- */
.cursor-glow {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ---------- 其他作品 ---------- */
.other-hero-preview {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.other-hero-slides {
    position: absolute;
    inset: 0;
}

.other-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    loading: lazy;
}

.other-hero-slide-active {
    opacity: 1;
}

/* 左右箭头导航 */
.other-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.other-hero-preview:hover .other-hero-arrow {
    opacity: 1;
}

.other-hero-arrow:hover {
    background: rgba(201, 255, 74, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.other-hero-arrow-left {
    left: 1.2rem;
}

.other-hero-arrow-right {
    right: 1.2rem;
}

    /* 3个小预览框 */
    .other-sub-grid {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

.other-sub-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.other-sub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.other-sub-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.other-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.other-sub-thumb-video {
    background: #000;
}

.other-sub-thumb-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.other-sub-card:hover .other-sub-thumb img,
.other-sub-card:hover .other-sub-thumb-video video {
    transform: scale(1.06);
}

.other-sub-info {
    padding: 0.9rem 1rem;
}

.other-sub-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.other-sub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* 分镜项目详情弹窗 */
.storyboard-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    padding: 2rem;
}

.storyboard-modal.active {
    opacity: 1;
    visibility: visible;
}

.storyboard-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition-fast);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storyboard-modal-close:hover {
    color: var(--accent);
}

.storyboard-modal-body {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.storyboard-modal-body video {
    width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    outline: none;
}

.storyboard-modal-body .sb-text {
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

.storyboard-modal-body .sb-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.storyboard-modal-body .sb-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .other-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .other-sub-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ 视频水印 ============ */
.video-watermark {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-family: var(--font-secondary, 'Noto Sans SC'), sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    pointer-events: none;
    user-select: none;
    text-align: center;
    opacity: 1;
    z-index: 20;
}
