

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    height: 7.5vh;
}

header {
    padding: 0 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.header-right-item {
    margin: 0 30px;
}
.email-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #f0f0f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    display: none;           /* 默认不显示 */
    z-index: 999;
}

.email-toast button {
    margin-left: 10px;
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
}
.header-right a {
    color: #222;             /* 默认深灰 */
    text-decoration: none;
    transition: color 0.2s;  /* 提升手感 */
}

.header-right a:hover {
    color: #666;             /* 鼠标移上去变浅一点，产生反馈感 */
}

.header-right a:active {
    color: #999;             /* 点击瞬间再变浅一点 */
}
.fade-in {
    opacity: 0;
    animation: fadeIn 8s ease-out forwards;
}
.fade-in-fast {
    opacity: 0;
    animation: fadeIn 3s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.wave-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* 这是水波纹层 */
.wave-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit; /* 用自身内容作为滤镜 source */
    filter: url(#waterwave); /* 波纹滤镜 */
    opacity: 0.9; /* 一开始明显一点 */
    animation: waveFadeOut 2.2s ease-out forwards;
}

/* 波纹淡出动画 */
@keyframes waveFadeOut {
    0% {
        opacity: 0.9;
        filter: blur(3px) url(#waterwave);
    }
    70% {
        opacity: 0.4;
        filter: blur(1px) url(#waterwave);
    }
    100% {
        opacity: 0;
        filter: blur(0px) url(#waterwave);
    }
}

/* 图片本体淡入 */
.fadein {
    opacity: 0;
    animation: fadeinSmooth 2s ease-out forwards;
}

@keyframes fadeinSmooth {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blurFade {
    0% {
        opacity: 0.3;
        filter: blur(8px) brightness(0.8);
    }
    60% {
        opacity: 0.6;
        filter: blur(4px) brightness(0.9);
    }
    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

.header-left {
    display: flex;
    align-items: center;
    padding-left: 40px;   /* 看你版面需要，可调 */
}

/* 整个“返回”区域 */
.back-link {
    display: flex;
    align-items: center;
    gap: 6px;             /* 图标和文字之间的距离 */
    text-decoration: none;
}

/* 图标大小 + 默认状态 */
.back-link img {
    width: 40px;          /* 调小尺寸，可以改 18 / 22 */
    height: 40px;
    opacity: 0.;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}

/* 文字样式 */
.back-text {
    font-size: 14px;
    color: #888;       /* 默认浅灰色 */
    transition: color 0.2s;
}

/* hover 效果（微亮 + transform）——但不作用到第二个图标 */
.back-link:hover img {
    filter: brightness(1.05);
    transition: transform 0.1s; /* 保证动画平滑 */
}

/* 文字效果保留 */
.back-link:hover .back-text {
    color: #333;
}

/* 间距保留 */
.back-works {
    margin-left: 20px;
}

/* 第一个图标（Main）下移 4px */
.back-link:not(.back-works):hover img {
    transform: translateY(4px);
}

/* 第二个图标（Back）上移 4px */
.back-works:hover img {
    transform: translateY(-4px);
}
/* 导航栏图标不允许被全局 img 规则拉伸 */
.header-left img,
.back-link img {
    width: auto !important;
    height: 28px !important;   /* 你可以根据原图高度调整 */
}
/* 下面那张始终半模糊的图 */
.hero-blur {
    filter: blur(10px) brightness(0.8);
    opacity: 0.1;
    animation: blurFadeSoft 6s ease-out forwards;
}

/* 不让它也触发水波纹 */
.hero-blur.wave-wrapper::after {
    display: none;
}

@keyframes blurFadeSoft {
    0% {
        opacity: 0.;
        filter: blur(10px) brightness(1.05);
    }
    60% {
        opacity: 0.5;
        filter: blur(5px) brightness(1.01);
    }
    100% {
        opacity: 0.7;                 /* 永远不满 1，稍微虚一点 */
        filter: blur(3px) brightness(0.98);  /* 保留一点模糊 */
    }
}

/* 通用：这两张图都占满宽度 */
.hero {
    width: 100%;
    height: auto;
    display: block;
}

/* -------- 手机 / 小屏幕下的导航栏调整 -------- */
@media (max-width: 768px) {
      .page-main {
        padding-top: 15px !important;  /* 只在手机上、只对有这个 class 的 main 生效 */
    }

    /* 整个导航栏 */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 1px;
        height: auto;
        margin-top: 8px;
    }

    /* 修复 Main 与 Back 间距过大 */
    .back-works {
        margin-left: 15px !important;   /* ← 4px 或 6px 都可以，随你调 */
    }
        
    /* 调整图标 ← → Main 的距离 */
    .back-link {
        display: flex;
        align-items: center;
        gap: 0;     /* ← 控制图标与文字之间的距离，推荐 6 */
    }

    /* 左侧：Back 区域，确保靠左并不被压缩 */
    .header-left {
        padding-left: 15px;     /* ⭐ 覆盖掉全局的 40px */
        margin-right: auto;  /* 把右侧导航推到最右 */
        min-width: 0;        /* 不强制宽度了，让它自然排就行 */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;    
    }

    .back-link img {
        height: 22px !important;
        width: auto !important;
    }

    .back-text {
        margin-left: 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* 右侧导航：自动推到右边 */
    .header-right {
        display: flex;
        margin-left: auto;
        font-size: 14px;
        gap: 12px;    /* ⭐文字之间的间距 */
    }

    .header-right-item {
        margin: 0;   /* 因为我们用 gap 控制了 */
    }

    .email-toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);  /* 手机上弹窗不要太窄 */
        font-size: 16px;
    }
}
