/* ===== 全局 CSS 变量 ===== */
:root {
    --red: #C8102E;
    --red-dark: #8B0A1E;
    --red-deep: #5A0612;
    --red-light: #E8354A;
    --gold: #D4A843;
    --gold-light: #F0CC78;
    --cream: #FBF5E8;
    --ink: #1A0A06;
    --paper: #FDF8F0;
    --white: #FFFFFF;
}

/* ===== 全局重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif TC', serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

/* ===== 导航栏样式 ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(26, 10, 6, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 54px;
    width: auto;
    display: block;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-zh {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: .2em;
}

.nav-brand-en {
    font-size: .6rem;
    letter-spacing: .25em;
    color: rgba(212, 168, 67, .65);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

    .nav-links a {
        font-size: .85rem;
        font-weight: 600;
        color: rgba(253, 248, 240, .78);
        text-decoration: none;
        letter-spacing: .08em;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--gold-light);
        }

        .nav-links a.active {
            color: var(--gold);
        }

.nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    padding: .38rem 1.1rem;
    border-radius: 2px;
    transition: background .2s !important;
}

    .nav-cta:hover {
        background: var(--red-light) !important;
    }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gold-light);
        border-radius: 2px;
    }

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px;
        right: 0;
        width: 240px;
        height: 100vh;
        background: rgba(26, 10, 6, .97);
        padding: 2rem 1.5rem;
        gap: 1.4rem;
        border-left: 2px solid var(--gold);
    }

        .nav-links.open {
            display: flex;
        }
}

/* ===== 页脚样式 ===== */
footer {
    background: var(--ink);
    border-top: 2px solid var(--gold);
    padding: 1.8rem 5%;
    text-align: center;
    font-size: .73rem;
    color: rgba(253, 248, 240, .37);
    letter-spacing: .1em;
    line-height: 2.3;
}

    footer strong {
        color: var(--gold);
        font-size: .83rem;
    }

/* ===== 返回顶部按钮（全局） ===== */
#backTop {
    position: fixed;
    bottom: 26px;
    right: 22px;
    width: 46px;
    height: 46px;
    background: #06C755;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    z-index: 500;
}

    #backTop.vis {
        opacity: 1;
        transform: translateY(0);
    }

    #backTop:hover {
        background: #04b84d;
        transform: translateY(-2px) !important;
    }

    #backTop svg {
        width: 18px;
        height: 18px;
        fill: #fff;
    }
/* 浮动按钮 */
.float-btns {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

    .float-btn:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    }

.float-btn-line {
    background: #06C755;
}

    .float-btn-line svg {
        width: 28px;
        height: 28px;
    }

.float-btn-top {
    background: var(--red);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.35s, transform 0.35s, box-shadow 0.25s;
}

    .float-btn-top.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .float-btn-top svg {
        width: 22px;
        height: 22px;
    }

.float-btn::before {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 10, 5, 0.88);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-family: 'Noto Serif TC', serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.float-btn:hover::before {
    opacity: 1;
}

.float-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(212, 168, 67, 0.5);
    pointer-events: none;
}
