/* 基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif; 
    background-color: #000; 
    color: #fff; 
    line-height: 1.6;
}

/* 导航栏：初始透明 + 20%白色底线 */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px; 
    background-color: transparent; 
    z-index: 1000; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

/* 滚动后的状态 */
.navbar.scrolled {
    height: 70px; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.nav-container {
    max-width: 1440px; 
    margin: 0 auto;
    padding: 0 40px; /* 侧边安全距离 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img { height: 80px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: #fff; font-size: 0.9rem; letter-spacing: 1px; opacity: 0.7; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* 视差 Banner 区域 */
.hero-parallax-container { 
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-wrapper {
    position: absolute;
    top: -10%; left: 0; 
    width: 100%; height: 110%; 
    z-index: 1;
    will-change: transform;
}

.hero-bg-img {
    width: 100%; height: 100%;
    background: url('assets/banner.jpg') center center / cover no-repeat;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    from { transform: scale(1.0); }
    to { transform: scale(1.15); }
}

/* Banner 文字内容：向上移动 300px */
.banner-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    margin-top: -300px; 
}

.banner-content h1 { 
    font-size: 4.5rem; 
    letter-spacing: 15px; 
    font-weight: 600; 
    margin-bottom: 15px;
}

.banner-content p { 
    font-size: 1rem; 
    color: #aaa; 
    letter-spacing: 12px; 
    text-transform: uppercase;
}

/* 作品展示区：铺满 1440px */
.main-content {
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 120px 40px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 一行两个 */
    gap: 80px; /* 图片之间距离保持 80 像素 */
}

.work-item { text-decoration: none; color: #fff; display: block; }

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
}

/* 常驻展示动图 */
.gif-display {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

/* 悬停毛玻璃效果 */
.glass-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.glass-overlay span {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 6px;
    padding: 12px 35px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.2);
}

.work-item:hover .gif-display { transform: scale(1.08); }
.work-item:hover .glass-overlay { opacity: 1; }

.work-info { margin-top: 30px; }
.work-info h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 1px; }
.work-info p { color: #555; font-size: 0.85rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* 底部 */
footer { padding: 120px 0; text-align: center; color: #222; font-size: 0.75rem; letter-spacing: 4px; }

/* 响应式适配 */
@media (max-width: 1024px) {
    .work-grid { gap: 40px; }
    .banner-content h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .work-grid { grid-template-columns: 1fr; }
    .nav-container { padding: 0 20px; }
    .main-content { padding: 80px 20px; }
    .banner-content { margin-top: -60px; }
}


/* --- 回到顶部按钮全局配置 --- */
:root {
    --btn-size: 80px;         /* 整体按钮大小 */
    --top-img-scale: 0.5;     /* 【这里调节顶部图的大小：0.1到1.0】 */
    --rotate-speed: 12s;      /* 旋转速度 */
}

.back-top-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: var(--btn-size);
    height: var(--btn-size);
    z-index: 99999;           /* 确保在所有元素之上 */
    cursor: pointer;          /* 确保鼠标移上去显示小手 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

/* 核心修复：给图片加 pointer-events: none，防止它们拦截点击事件 */
.btn-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;     /* 重要：让点击穿透图片直达父容器 */
}

.layer-rotating {
    z-index: 1;
    animation: slowRotate var(--rotate-speed) linear infinite;
}

.layer-static {
    z-index: 2;
    transform: scale(var(--top-img-scale)); /* 在这里控制顶部图大小 */
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.back-top-wrapper:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* 适配手机 */
@media (max-width: 768px) {
    :root { --btn-size: 60px; --top-img-scale: 0.4; }
    .back-top-wrapper { bottom: 20px; right: 20px; }
}

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px; /* 与下方标题的间距 */
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .sep {
    color: #333;
    user-select: none;
}

.breadcrumb .current {
    color: #aaa;
    pointer-events: none;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .breadcrumb {
        margin-bottom: 30px;
        font-size: 0.7rem;
    }
}
