/* ============================================================
   小小三国志 · 登录页样式
   设计方向：暗墨底 + 鎏金描边 + 官方海报入框
   ============================================================ */

:root {
    --ink-0: #07080b;
    --ink-1: #0d0f14;
    --ink-2: #14100c;
    --gold-1: #f3dfae;
    --gold-2: #e2bd7b;
    --gold-3: #b0803a;
    --gold-line: rgba(226, 189, 123, 0.28);
    --seal: #a8322a;
    --text: #ece7dd;
    --text-dim: #9a938a;
    --err: #ff8272;

    --font-title: "Songti SC", "STSong", "Kaiti SC", "KaiTi", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--ink-0);
    overflow: hidden;
    position: relative;
}

/* ---------- 背景层 ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* 海报自身放大虚化，作为环境光，保证配色统一 */
.bg__ambient {
    position: absolute;
    inset: -12%;
    background: url("../img/loginbg.jpg") center 42% / cover no-repeat;
    filter: blur(64px) saturate(150%) brightness(0.55);
    opacity: 0.5;
    transform: scale(1.08);
}

.bg__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(110% 78% at 20% 32%, rgba(226, 189, 123, 0.1), transparent 64%),
        radial-gradient(95% 68% at 84% 80%, rgba(168, 50, 42, 0.12), transparent 68%),
        linear-gradient(180deg, #06070a 0%, #0a0b10 42%, #0b0906 100%);
}

/* 远景战场，只用来做质感，不抢主体 */
.bg__scene {
    position: absolute;
    inset: 0;
    background: url("../../scenes/battle/CJ004.jpg") right 46% / cover no-repeat;
    opacity: 0.22;
    filter: blur(2px) saturate(0.85) brightness(0.62);
    -webkit-mask-image: linear-gradient(102deg, transparent 18%, #000 70%);
    mask-image: linear-gradient(102deg, transparent 18%, #000 70%);
}

/* 细密纸纹 */
.bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* 竖向暗角，压住两侧 */
.bg__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.82) 100%);
}

/* 飘散的金屑 */
.embers {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.embers i {
    position: absolute;
    bottom: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-1);
    box-shadow: 0 0 8px 2px rgba(243, 223, 174, 0.55);
    opacity: 0;
    animation: rise linear infinite;
}

.embers i:nth-child(1) { left: 6%;  animation-duration: 16s; animation-delay: 0s;   }
.embers i:nth-child(2) { left: 15%; animation-duration: 21s; animation-delay: 3s;   }
.embers i:nth-child(3) { left: 24%; animation-duration: 18s; animation-delay: 7s;   }
.embers i:nth-child(4) { left: 33%; animation-duration: 24s; animation-delay: 1.5s; }
.embers i:nth-child(5) { left: 42%; animation-duration: 19s; animation-delay: 9s;   }
.embers i:nth-child(6) { left: 51%; animation-duration: 22s; animation-delay: 4s;   }
.embers i:nth-child(7) { left: 60%; animation-duration: 17s; animation-delay: 11s;  }
.embers i:nth-child(8) { left: 69%; animation-duration: 25s; animation-delay: 2s;   }
.embers i:nth-child(9) { left: 78%; animation-duration: 20s; animation-delay: 6s;   }
.embers i:nth-child(10){ left: 87%; animation-duration: 23s; animation-delay: 13s;  }
.embers i:nth-child(11){ left: 93%; animation-duration: 18s; animation-delay: 8s;   }
.embers i:nth-child(12){ left: 45%; animation-duration: 27s; animation-delay: 15s;  }

@keyframes rise {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
    12%  { opacity: 0.9; }
    70%  { opacity: 0.55; }
    100% { opacity: 0; transform: translate3d(28px, -108vh, 0) scale(1.1); }
}

/* ---------- 主舞台 ---------- */
.stage {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 84px);
    padding: 4vh clamp(20px, 5vw, 72px);
}

/* ---------- 海报 ---------- */
.hero {
    position: relative;
    height: min(86vh, 748px);
    aspect-ratio: 3 / 5;
    border-radius: 10px;
    transform: rotate(-1.2deg);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.9s ease;
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(226, 189, 123, 0.18),
        0 0 90px -10px rgba(226, 189, 123, 0.22),
        0 0 150px 12px rgba(222, 160, 92, 0.18);
}

.hero:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: saturate(108%) contrast(103%);
}

/* 内描金边 */
.hero::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(243, 223, 174, 0.42);
    border-radius: 4px;
    pointer-events: none;
}

/* 四角装饰 */
.hero__corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--gold-2);
    opacity: 0.85;
    pointer-events: none;
}
.hero__corner--tl { top: -6px;    left: -6px;    border-right: 0; border-bottom: 0; }
.hero__corner--tr { top: -6px;    right: -6px;   border-left: 0;  border-bottom: 0; }
.hero__corner--bl { bottom: -6px; left: -6px;    border-right: 0; border-top: 0;    }
.hero__corner--br { bottom: -6px; right: -6px;   border-left: 0;  border-top: 0;    }

/* 朱印 */
.hero__seal {
    position: absolute;
    right: -14px;
    bottom: 42px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c23c31, #8d2620 70%);
    color: #ffeede;
    font-family: var(--font-title);
    font-size: 15px;
    line-height: 1.05;
    letter-spacing: 1px;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 235, 220, 0.35);
    transform: rotate(6deg);
}

/* ---------- 登录卡 ---------- */
.panel {
    position: relative;
    width: min(392px, 92vw);
    padding: 34px 34px 22px;
    border-radius: 18px;
    background:
        linear-gradient(158deg, rgba(30, 25, 19, 0.94) 0%, rgba(14, 13, 12, 0.96) 58%, rgba(10, 9, 8, 0.97) 100%);
    border: 1px solid var(--gold-line);
    box-shadow:
        0 36px 90px -26px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 240, 205, 0.1);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

/* 顶部一条鎏金光带 */
.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    opacity: 0.85;
}

.panel__brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 26px;
}

.panel__title {
    font-family: var(--font-title);
    font-size: 27px;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(180deg, #fff4d6 8%, var(--gold-2) 58%, #a97c37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 14px rgba(226, 189, 123, 0.18);
}

.panel__sub {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-dim);
}

/* 选项卡 */
.tabs {
    position: relative;
    display: flex;
    gap: 28px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(226, 189, 123, 0.14);
}

.tabs__btn {
    appearance: none;
    background: none;
    border: 0;
    padding: 0 0 12px;
    font-family: var(--font-title);
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tabs__btn.is-active {
    color: var(--gold-1);
    text-shadow: 0 0 16px rgba(243, 223, 174, 0.35);
}

.tabs__ink {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(226, 189, 123, 0.15), var(--gold-1) 50%, rgba(226, 189, 123, 0.15));
    box-shadow: 0 0 12px rgba(226, 189, 123, 0.55);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 表单 */
.field {
    position: relative;
    margin-bottom: 14px;
}

.field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke: var(--gold-3);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
    pointer-events: none;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 246, 228, 0.045);
    border: 1px solid rgba(226, 189, 123, 0.18);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder {
    color: #6f6a63;
    letter-spacing: 0.5px;
}

.field input:focus {
    border-color: rgba(226, 189, 123, 0.62);
    background: rgba(255, 246, 228, 0.075);
    box-shadow: 0 0 0 3px rgba(226, 189, 123, 0.1);
}

.field input:focus ~ .field__icon,
.field:focus-within .field__icon {
    stroke: var(--gold-1);
}

.field__eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    opacity: 0.55;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.field__eye:hover {
    opacity: 1;
    background: rgba(255, 246, 228, 0.06);
}

.field__eye svg {
    width: 17px;
    height: 17px;
    stroke: var(--gold-2);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

/* 仅注册模式可见 */
.is-reg-only {
    display: none;
}

.panel.is-reg .is-reg-only {
    display: block;
}

/* 错误提示 */
.msg {
    min-height: 18px;
    margin: 4px 2px 10px;
    font-size: 12.5px;
    line-height: 18px;
    color: var(--err);
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.msg.is-on {
    opacity: 1;
    transform: translateY(0);
}

.msg--hint {
    color: var(--text-dim);
}

/* 主按钮 */
.submit {
    position: relative;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 17px;
    letter-spacing: 6px;
    text-indent: 6px;
    color: #2a1c07;
    background: linear-gradient(180deg, #f7e4b8 0%, #e2bd7b 42%, #c29447 100%);
    box-shadow:
        0 12px 26px -12px rgba(226, 189, 123, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 0 rgba(120, 80, 20, 0.35);
    transition: transform 0.18s ease, box-shadow 0.3s ease, filter 0.3s ease;
    overflow: hidden;
}

.submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-18deg);
    animation: sheen 4.6s ease-in-out infinite;
}

@keyframes sheen {
    0%, 62% { left: -60%; }
    86%, 100% { left: 130%; }
}

.submit:hover {
    filter: brightness(1.06);
    box-shadow:
        0 16px 32px -12px rgba(226, 189, 123, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(120, 80, 20, 0.35);
}

.submit:active {
    transform: translateY(1px) scale(0.995);
}

.submit[disabled] {
    cursor: default;
    filter: saturate(0.6) brightness(0.85);
}

.submit[disabled]::after {
    animation: none;
}

/* 辅助行 */
.aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 2px 0;
    font-size: 12px;
    color: var(--text-dim);
}

.aux label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.aux input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid rgba(226, 189, 123, 0.45);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.aux input[type="checkbox"]:checked {
    background: var(--gold-2);
    border-color: var(--gold-2);
}

.aux input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #2a1c07;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

.aux a {
    color: var(--gold-2);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.aux a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 分割线 */
.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: #6b665e;
    font-size: 11px;
    letter-spacing: 2px;
}

.rule::before,
.rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 189, 123, 0.2), transparent);
}

/* 区服状态 */
.zones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    color: #cfc7ba;
    background: rgba(255, 246, 228, 0.045);
    border: 1px solid rgba(226, 189, 123, 0.16);
}

.zone__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fce8f;
    box-shadow: 0 0 7px 1px rgba(111, 206, 143, 0.75);
    animation: pulse 2.6s ease-in-out infinite;
}

/* 维护中 / 已停服：金点不快闪、灰点静止，右侧挂一个状态小签 */
.zone--maintain {
    border-color: rgba(212, 171, 104, 0.32);
    background: rgba(212, 171, 104, 0.07);
    color: #d8cdb8;
}

.zone--closed {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.022);
    color: #8a857d;
}

.zone--closed .zone__dot { animation: none; }

.zone__tag {
    font-style: normal;
    font-size: 9.5px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    color: #1b1608;
    background: linear-gradient(180deg, #e0bd7c, #c39b57);
}

.zone--closed .zone__tag {
    color: #b5afa6;
    background: rgba(255, 255, 255, 0.09);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.panel__foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 189, 123, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #5d5952;
    letter-spacing: 0.6px;
}

/* 移动端无线下角合规条，改为登录卡内嵌；PC 端由 .foot 承担，这里隐藏 */
.panel__legal {
    display: none;
    margin-top: 8px;
    font-size: 10.5px;
    line-height: 1.8;
    color: #6a6357;
    letter-spacing: 0.2px;
}

/* 备案信息链接（ICP / 公安备案） */
.foot__link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(226, 189, 123, 0.16);
    padding-bottom: 1px;
    transition: color 0.22s ease, border-color 0.22s ease;
}

.foot__link:hover {
    color: var(--gold-2);
    border-color: rgba(226, 189, 123, 0.55);
}

/* 入场动画 */
.stage > * {
    animation: enter 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stage > .panel {
    animation-delay: 0.12s;
}

@keyframes enter {
    from { opacity: 0; transform: translateY(26px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px), (max-height: 620px) {
    body {
        overflow-y: auto;
    }

    .stage {
        min-height: 100%;
        height: auto;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 26px 16px 30px;
    }

    /* 海报改为背景：横向不再外扩，避免竖版海报左右被多切 */
    .hero {
        position: fixed;
        inset: -2% 0 auto;
        height: 102%;
        width: auto;
        aspect-ratio: auto;
        border-radius: 0;
        transform: none;
        opacity: 0.46;
        filter: blur(1px);
        box-shadow: none;
    }

    .hero__img {
        border-radius: 0;
        object-position: center 6%;
    }

    .hero::before,
    .hero__corner,
    .hero__seal {
        display: none;
    }

    .stage::after {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 7, 10, 0.55) 0%, rgba(6, 7, 10, 0.9) 46%, #07080b 100%);
        pointer-events: none;
    }

    .panel {
        position: relative;
        z-index: 3;
        width: min(400px, 100%);
        padding: 26px 22px calc(18px + env(safe-area-inset-bottom, 0px));
        margin-top: auto;
    }

    .panel__title {
        font-size: 23px;
    }

    .panel__legal {
        display: block;
    }
}

/* ============================================================
   PC 官网骨架：顶部导航 / 底部合规条 / 右侧悬浮 / 宽屏适配
   仅在 ≥901px 且 ≥621px 高时启用，移动端全部隐藏
   ============================================================ */

.nav,
.foot,
.dock,
.sideword {
    display: none;
}

/* 轻提示 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 60;
    max-width: 78vw;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    color: var(--text);
    background: rgba(22, 19, 15, 0.95);
    border: 1px solid rgba(226, 189, 123, 0.32);
    box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.95);
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 901px) and (min-height: 621px) {
    /* ---------- 顶部导航 ---------- */
    .nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
    }

    .nav__inner {
        display: flex;
        align-items: center;
        gap: 26px;
        height: 66px;
        padding: 0 clamp(20px, 3.4vw, 54px);
        background: linear-gradient(180deg, rgba(5, 6, 9, 0.92) 0%, rgba(5, 6, 9, 0.5) 62%, rgba(5, 6, 9, 0) 100%);
        animation: navIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes navIn {
        from { opacity: 0; transform: translateY(-14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav__logo {
        display: flex;
        align-items: baseline;
        gap: 11px;
        flex: none;
        text-decoration: none;
        white-space: nowrap;
    }

    .nav__name {
        font-family: var(--font-title);
        font-size: 22px;
        letter-spacing: 4px;
        background: linear-gradient(180deg, #fff4d6 6%, var(--gold-2) 58%, #a97c37 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 2px 16px rgba(226, 189, 123, 0.25);
    }

    .nav__tag {
        padding-left: 11px;
        border-left: 1px solid rgba(226, 189, 123, 0.24);
        font-size: 10.5px;
        letter-spacing: 1.6px;
        color: #6f6a63;
    }

    .nav__menu {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: clamp(6px, 1.6vw, 30px);
    }

    .nav__menu a {
        position: relative;
        padding: 9px 13px;
        font-size: 13.5px;
        letter-spacing: 1.6px;
        color: #b3aca0;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.25s ease;
    }

    .nav__menu a::after {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 3px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
        transform: scaleX(0);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav__menu a:hover {
        color: var(--gold-1);
    }

    .nav__menu a:hover::after {
        transform: scaleX(1);
    }

    .nav__side {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 18px;
        flex: none;
    }

    .nav__status {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        letter-spacing: 0.8px;
        color: #918a80;
        white-space: nowrap;
    }

    .nav__status i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #6fce8f;
        box-shadow: 0 0 8px 1px rgba(111, 206, 143, 0.75);
        animation: pulse 2.6s ease-in-out infinite;
    }

    /* 有区服在维护时，状态条改成金色提示，别让玩家以为一切正常 */
    .nav__status.nav__status--warn { color: #c9b493; }
    .nav__status.nav__status--warn i {
        background: #d4ab68;
        box-shadow: 0 0 8px 1px rgba(212, 171, 104, 0.8);
    }

    .nav__cta {
        appearance: none;
        height: 37px;
        padding: 0 22px;
        border-radius: 4px;
        cursor: pointer;
        font-family: var(--font-title);
        font-size: 13.5px;
        letter-spacing: 3px;
        text-indent: 3px;
        color: var(--gold-1);
        background: linear-gradient(180deg, rgba(226, 189, 123, 0.18), rgba(226, 189, 123, 0.05));
        border: 1px solid rgba(226, 189, 123, 0.55);
        box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.2);
        white-space: nowrap;
        transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    }

    .nav__cta:hover {
        color: #2a1c07;
        background: linear-gradient(180deg, #f7e4b8 0%, #d9b070 100%);
        border-color: #e2bd7b;
        box-shadow: 0 10px 24px -10px rgba(226, 189, 123, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    /* ---------- 右侧悬浮条 ---------- */
    .dock {
        display: flex;
        flex-direction: column;
        gap: 9px;
        position: fixed;
        right: clamp(14px, 1.4vw, 24px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 30;
        animation: enter 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .dock__btn {
        appearance: none;
        width: 46px;
        padding: 9px 0 8px;
        display: grid;
        place-items: center;
        gap: 4px;
        border-radius: 11px;
        cursor: pointer;
        border: 1px solid rgba(226, 189, 123, 0.18);
        background: rgba(15, 14, 12, 0.74);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #b3aca0;
        font-size: 10.5px;
        letter-spacing: 1px;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease,
            border-color 0.25s ease, background 0.25s ease;
    }

    .dock__btn svg {
        width: 17px;
        height: 17px;
        stroke: var(--gold-2);
        fill: none;
        stroke-width: 1.55;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke 0.25s ease;
    }

    .dock__btn:hover {
        color: var(--gold-1);
        border-color: rgba(226, 189, 123, 0.6);
        background: rgba(33, 27, 20, 0.94);
        transform: translateX(-4px);
    }

    .dock__btn:hover svg {
        stroke: var(--gold-1);
    }

    /* ---------- 底部合规条 ---------- */
    .foot {
        display: flex;
        align-items: center;
        gap: 14px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        padding: 12px clamp(20px, 3.4vw, 54px) 13px;
        font-size: 11.5px;
        letter-spacing: 0.4px;
        color: #7a746a;
        background: linear-gradient(0deg, rgba(5, 6, 9, 0.92) 0%, rgba(5, 6, 9, 0.45) 58%, rgba(5, 6, 9, 0) 100%);
        animation: enter 1s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .foot__age {
        flex: none;
        padding: 1px 7px;
        border: 1px solid rgba(226, 189, 123, 0.3);
        border-radius: 3px;
        font-size: 10.5px;
        letter-spacing: 1px;
        color: #90887c;
    }

    .foot__advice {
        flex: 1;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #6b6659;
    }

    /* 第二行：主体单位 + 审批文号 / 出版物号 / 登记号 */
    .foot__legal {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 3px 18px;
        margin: 0;
        font-size: 11.5px;
        color: #9a9184;
    }

    .foot__legal span {
        white-space: nowrap;
    }

    .foot__meta {
        flex: none;
        white-space: nowrap;
        letter-spacing: 0.8px;
        margin-left: auto;
    }

    /* ---------- 宽屏内容区 ---------- */
    .stage {
        max-width: 1560px;
        margin: 0 auto;
        padding: 82px clamp(24px, 4vw, 64px) 68px;
        gap: clamp(40px, 4.6vw, 92px);
    }

    .hero {
        height: min(calc(100vh - 152px), 820px);
    }

    .panel {
        width: 396px;
        padding: 30px 32px 20px;
    }

    .panel__brand {
        margin-bottom: 20px;
    }

    .panel__title {
        font-size: 25px;
    }
}

/* 窄桌面（901–1180px）：压缩导航，避免换行挤压 */
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 621px) {
    .nav__inner {
        gap: 14px;
    }

    .nav__tag,
    .nav__status {
        display: none;
    }

    .nav__menu {
        gap: 0;
        margin-left: 0;
    }

    .nav__menu a {
        padding: 9px 9px;
        font-size: 12.5px;
        letter-spacing: 0.9px;
    }

    .nav__menu a::after {
        left: 9px;
        right: 9px;
    }

    .nav__side {
        gap: 10px;
    }

    .nav__cta {
        height: 34px;
        padding: 0 15px;
        font-size: 12.5px;
        letter-spacing: 2px;
        text-indent: 2px;
    }

    .stage {
        gap: clamp(28px, 3.4vw, 48px);
    }

    .panel {
        width: 372px;
        padding: 28px 26px 18px;
    }
}

/* 超宽屏：左侧竖排题字，填补大屏左侧留白 */
@media (min-width: 1500px) and (min-height: 621px) {
    .sideword {
        display: block;
        position: fixed;
        left: clamp(26px, 2.2vw, 46px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        padding: 74px 0;
        writing-mode: vertical-rl;
        font-family: var(--font-title);
        font-size: 16px;
        letter-spacing: 0.7em;
        color: rgba(226, 189, 123, 0.22);
        user-select: none;
        pointer-events: none;
        animation: enter 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .sideword--r {
        left: auto;
        right: clamp(96px, 6.4vw, 126px);
        animation-delay: 0.52s;
    }

    .sideword::before,
    .sideword::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 1px;
        height: 48px;
        margin-left: -0.5px;
        background: linear-gradient(180deg, transparent, rgba(226, 189, 123, 0.22));
    }

    .sideword::before {
        top: 4px;
    }

    .sideword::after {
        bottom: 4px;
        transform: rotate(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .embers,
    .submit::after,
    .zone__dot,
    .nav__inner,
    .dock,
    .foot,
    .sideword,
    .stage > * {
        animation: none !important;
    }
}
