/* =========================
   整个网页
   ========================= */

body {
    margin: 0;
    min-height: 100vh;

    position: relative;

    background: #111;
    color: white;

    font-family: Arial, sans-serif;

    overflow: hidden;
}


/* =========================
   全屏背景视频
   ========================= */

.background-video {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;

    z-index: -2;

    pointer-events: none;
}


/* =========================
   视频整体轻微遮罩
   ========================= */

.background-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.12);

    z-index: -1;

    pointer-events: none;
}


/* =========================================================
   右上角控制区域
   ========================================================= */

.top-controls {
    position: fixed;

    top: 28px;
    right: 28px;

    display: flex;

    align-items: center;

    gap: 10px;

    z-index: 1000;
}


/* =========================================================
   控制按钮
   ========================================================= */

.control-button {
    width: 46px;
    height: 46px;

    padding: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    color: white;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* 按钮文字 / 图标 */

.control-button span {
    line-height: 1;

    user-select: none;
}


/* 声音图标 */

#sound-icon {
    font-size: 20px;
}


/* 语言图标 */

#language-icon {
    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.3px;
}


/* 悬停 */

.control-button:hover {
    background: rgba(255, 255, 255, 0.18);

    transform: scale(1.06);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.22);
}


/* 点击 */

.control-button:active {
    transform: scale(0.96);
}


/* =========================
   中央：个人信息
   ========================= */

.profile {
    position: fixed;

    top: 18%;
    left: 50%;

    transform: translateX(-50%);

    width: 320px;

    text-align: center;

    z-index: 1;

    opacity: 0;

    animation:
        profile-entry 0.8s ease-out 0.1s forwards;
}


/* 头像 */

.profile img {
    width: 180px;
    height: 180px;

    display: block;

    margin: 0 auto 30px;

    object-fit: cover;

    border-radius: 50%;
}


/* 名字 */

.profile h1 {
    margin: 0 0 20px;

    font-size: 36px;

    font-weight: 600;
}


/* 简介 */

.profile .description {
    margin: 0;

    font-size: 18px;

    font-weight: 400;
}


@keyframes profile-entry {

    0% {
        opacity: 0;

        transform:
            translateX(-50%)
            translateY(18px);
    }

    100% {
        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0);
    }
}


/* =========================
   左下：社交媒体
   ========================= */

.social-links {
    position: fixed;

    left: 11vw;
    bottom: 70px;

    width: 36vw;
    max-width: 600px;
    min-width: 420px;

    height: 320px;

    padding: 26px;

    background: rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 18px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    z-index: 1;

    opacity: 0;

    animation:
        card-entry 0.7s ease-out 0.55s forwards;
}


/* 标题 */

.social-links h2 {
    margin: 0 0 18px;

    font-size: 22px;
}


/* 社交媒体按钮 */

.social-links a {
    display: flex;

    align-items: center;

    height: 42px;

    margin-top: 10px;

    padding: 0 16px;

    color: white;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* 社交媒体图标 */

.social-links a img {
    width: 24px;
    height: 24px;

    object-fit: contain;

    margin-right: 14px;

    filter: brightness(0) invert(1);

    flex-shrink: 0;

    transition:
        transform 0.2s ease;
}


/* =========================
   右侧整体区域
   ========================= */

.right-column {
    position: fixed;

    right: 11vw;
    bottom: 70px;

    width: 36vw;
    max-width: 600px;
    min-width: 420px;

    height: 320px;

    display: grid;

    grid-template-rows:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;

    box-sizing: border-box;

    z-index: 1;
}


/* =========================
   右上：购买我的剪辑资源
   ========================= */

.resource-links {
    min-height: 0;

    padding: 18px 26px;

    background: rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(20px) saturate(140%);

    -webkit-backdrop-filter: blur(20px) saturate(140%);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 18px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    box-sizing: border-box;

    display: grid;

    grid-template-rows:
        auto
        1fr
        1fr;

    gap: 10px;

    overflow: hidden;

    opacity: 0;

    animation:
        card-entry 0.7s ease-out 0.7s forwards;
}


/* 标题 */

.resource-links h2 {
    margin: 0;

    font-size: 22px;

    line-height: 28px;

    align-self: center;
}


/* Telegram / QQ */

.resource-links a {
    display: flex;

    align-items: center;

    height: 100%;

    min-height: 0;

    padding: 0 18px;

    color: white;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* 资源区域图标 */

.resource-links a img {
    width: 24px;
    height: 24px;

    object-fit: contain;

    margin-right: 14px;

    filter: brightness(0) invert(1);

    flex-shrink: 0;

    transition:
        transform 0.2s ease;
}


/* =========================
   右下：联系方式
   ========================= */

.contact-links {
    min-height: 0;

    padding: 18px 26px;

    background: rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(20px) saturate(140%);

    -webkit-backdrop-filter: blur(20px) saturate(140%);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 18px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    box-sizing: border-box;

    display: grid;

    grid-template-rows:
        auto
        1fr
        1fr;

    gap: 10px;

    overflow: hidden;

    opacity: 0;

    animation:
        card-entry 0.7s ease-out 0.85s forwards;
}


/* 标题 */

.contact-links h2 {
    margin: 0;

    font-size: 22px;

    line-height: 28px;

    align-self: center;
}


/* Discord / Email */

.contact-links a {
    display: flex;

    align-items: center;

    height: 100%;

    min-height: 0;

    padding: 0 18px;

    color: white;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* 联系方式图标 */

.contact-links a img {
    width: 24px;
    height: 24px;

    object-fit: contain;

    margin-right: 14px;

    filter: brightness(0) invert(1);

    flex-shrink: 0;

    transition:
        transform 0.2s ease;
}


/* =========================
   卡片进入动画
   ========================= */

@keyframes card-entry {

    0% {
        opacity: 0;

        transform:
            translateY(18px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================
   鼠标悬停
   ========================= */

.social-links a:hover,
.resource-links a:hover,
.contact-links a:hover {
    background: rgba(255, 255, 255, 0.13);

    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.22);
}


/* 图标悬停 */

.social-links a:hover img,
.resource-links a:hover img,
.contact-links a:hover img {
    transform: scale(1.08);
}


/* =========================
   复制成功提示
   ========================= */

.copy-message {
    position: fixed;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.95);

    padding: 14px 24px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    color: white;

    font-size: 16px;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    z-index: 9999;
}


.copy-message.show {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================
   鼠标点击白色圆形
   ========================= */

.click-ripple {
    position: fixed;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: white;

    pointer-events: none;

    z-index: 10000;

    transform:
        translate(-50%, -50%)
        scale(1);

    animation:
        click-ripple-animation 0.45s ease-out forwards;
}


@keyframes click-ripple-animation {

    0% {
        opacity: 0.95;

        width: 10px;
        height: 10px;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    100% {
        opacity: 0;

        width: 70px;
        height: 70px;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}


/* =========================================================
   手机端
   ========================================================= */

@media (max-width: 768px) {

    body {
        min-height: 100svh;

        overflow-x: hidden;
        overflow-y: auto;
    }


    /* 手机背景视频 */

    .background-video {
        width: 100%;
        height: 100%;

        object-fit: cover;

        object-position: center center;
    }


    /* 手机顶部控制按钮 */

    .top-controls {
        top: 18px;
        right: 18px;

        gap: 8px;
    }


    .control-button {
        width: 42px;
        height: 42px;
    }


    #sound-icon {
        font-size: 18px;
    }


    #language-icon {
        font-size: 14px;
    }


    /* 手机个人信息 */

    .profile {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        width: 100%;

        padding-top: 8vh;

        box-sizing: border-box;

        order: 1;

        opacity: 0;

        animation:
            mobile-profile-entry
            0.8s
            ease-out
            0.1s
            forwards;
    }


    .profile img {
        width: 130px;
        height: 130px;

        margin-bottom: 22px;
    }


    .profile h1 {
        margin-bottom: 14px;

        font-size: 30px;
    }


    .profile .description {
        font-size: 16px;
    }


    /* 手机购买资源 */

    .resource-links {
        position: relative;

        grid-column: 1;
        grid-row: 2;

        order: 2;

        width: calc(100% - 32px);

        min-width: 0;
        max-width: none;

        height: 220px;

        margin: 55px 16px 0;

        padding: 18px 22px;

        border-radius: 18px;

        box-sizing: border-box;

        opacity: 0;

        animation:
            mobile-card-entry
            0.7s
            ease-out
            0.7s
            forwards;
    }


    .resource-links h2 {
        font-size: 20px;

        line-height: 26px;
    }


    .resource-links a {
        height: 100%;

        padding: 0 14px;
    }


    .resource-links a img {
        width: 22px;
        height: 22px;

        margin-right: 12px;
    }


    /* 手机社交媒体 */

    .social-links {
        position: relative;

        left: auto;
        bottom: auto;

        grid-column: 1;
        grid-row: 3;

        order: 3;

        width: calc(100% - 32px);

        min-width: 0;
        max-width: none;

        height: auto;

        margin: 16px 16px 0;

        padding: 22px;

        border-radius: 18px;

        box-sizing: border-box;

        opacity: 0;

        animation:
            mobile-card-entry
            0.7s
            ease-out
            0.85s
            forwards;
    }


    .social-links h2 {
        margin-bottom: 14px;

        font-size: 20px;
    }


    .social-links a {
        height: 48px;

        margin-top: 10px;

        padding: 0 14px;
    }


    .social-links a img {
        width: 22px;
        height: 22px;

        margin-right: 12px;
    }


    /* 手机联系方式 */

    .right-column {
        display: contents;
    }


    .contact-links {
        position: relative;

        grid-column: 1;
        grid-row: 4;

        order: 4;

        width: calc(100% - 32px);

        min-width: 0;
        max-width: none;

        height: 220px;

        margin: 16px 16px 32px;

        padding: 18px 22px;

        border-radius: 18px;

        box-sizing: border-box;

        opacity: 0;

        animation:
            mobile-card-entry
            0.7s
            ease-out
            1s
            forwards;
    }


    .contact-links h2 {
        font-size: 20px;

        line-height: 26px;
    }


    .contact-links a {
        height: 100%;

        padding: 0 14px;
    }


    .contact-links a img {
        width: 22px;
        height: 22px;

        margin-right: 12px;
    }


    /* 手机进入动画 */

    @keyframes mobile-profile-entry {

        0% {
            opacity: 0;

            transform:
                translateY(18px);
        }

        100% {
            opacity: 1;

            transform:
                translateY(0);
        }

    }


    @keyframes mobile-card-entry {

        0% {
            opacity: 0;

            transform:
                translateY(18px);
        }

        100% {
            opacity: 1;

            transform:
                translateY(0);
        }

    }


    /* 手机复制提示 */

    .copy-message {
        font-size: 15px;

        padding: 12px 20px;
    }

}