/* ============================================================
   NEXUS · 角色与技能卡展示平台 — 克制科技风
   ============================================================ */
:root {
    --bg: #0a0d13;
    --bg-2: #0e131c;
    --panel: rgba(255, 255, 255, 0.025);
    --panel-solid: #11161f;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #4cc9f0;          /* 主色：冷静青蓝 */
    --accent-soft: rgba(76, 201, 240, 0.12);
    --char: #4cc9f0;            /* 角色卡 */
    --skill: #e0a44a;           /* 技能卡：琥珀，沉稳区分 */
    --text: #e6edf3;
    --text-dim: #8b97a7;
    --radius: 14px;
    --sidebar-w: 230px;
    --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Consolas, monospace;
    --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w); z-index: 40;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    padding: 26px 18px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 20px; letter-spacing: 2px;
    margin-bottom: 38px; padding-left: 6px;
}
.logo-mark { color: var(--accent); font-size: 22px; }
.logo-text { color: var(--text); }
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 10px;
    color: var(--text-dim); cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-item.active { color: var(--text); background: var(--accent-soft); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon { font-size: 18px; width: 22px; text-align: center; }
.nav-label { font-size: 14px; font-weight: 500; letter-spacing: .5px; }
.nav-bar {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
    width: 3px; height: 56%; border-radius: 3px;
    background: var(--accent); transition: transform .3s ease;
}
.nav-item.active .nav-bar { transform: translateY(-50%) scaleY(1); }
.sidebar-foot {
    margin-top: auto; display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px; color: var(--text-dim);
    letter-spacing: .5px;
}
.foot-line { display: inline-flex; align-items: center; gap: 8px; }
.foot-ver { margin-left: auto; color: var(--accent); }
.sys-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #3ddc84;
    box-shadow: 0 0 8px rgba(61,220,132,.6); animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: .3; } }

/* ---------- 主内容 ---------- */
.main-content {
    margin-left: var(--sidebar-w);
    position: relative; z-index: 10;
    min-height: 100vh; padding: 0 32px 60px;
}

/* 顶部栏 */
.top-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 20px;
    padding: 18px 0;
    background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.logo-large {
    font-weight: 700; font-size: 18px; letter-spacing: 1px; white-space: nowrap;
    color: var(--text);
}
.logo-large .logo-mark { font-size: 20px; }
.search-box {
    position: relative; flex: 1; max-width: 520px;
    display: flex; align-items: center;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 11px; padding: 4px 4px 4px 14px;
    transition: border-color .2s ease;
}
.search-box:focus-within { border-color: var(--accent); }
.search-icon { color: var(--text-dim); font-size: 18px; }
.search-box input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 14px; padding: 9px 10px; font-family: var(--font);
}
.search-box input::placeholder { color: var(--text-dim); }
.search-btn {
    background: var(--accent); color: #06121a; border: none; border-radius: 8px;
    padding: 9px 16px; font-weight: 600; cursor: pointer; transition: filter .2s ease;
}
.search-btn:hover { filter: brightness(1.1); }
.search-results-count {
    position: absolute; right: 12px; top: -28px;
    font-family: var(--mono); font-size: 12px; color: var(--accent);
    opacity: 0; transition: opacity .2s;
}
.search-results-count.show { opacity: 1; }

.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.status-chip {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 12px; color: var(--text-dim);
    border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px;
    white-space: nowrap;
}
.pulse {
    width: 7px; height: 7px; border-radius: 50%; background: #3ddc84;
    box-shadow: 0 0 8px rgba(61,220,132,.6); animation: blink 1.6s infinite;
}
.upload-btn {
    background: transparent; color: var(--accent);
    border: 1px solid rgba(76,201,240,.4); border-radius: 20px;
    padding: 8px 16px; font-weight: 600; cursor: pointer; letter-spacing: .5px;
    transition: background .2s ease, color .2s ease;
}
.upload-btn:hover { background: var(--accent); color: #06121a; }

/* 状态栏 */
.status-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin: 4px 0 22px; padding: 12px 18px;
    background: var(--panel); border: 1px solid var(--line);
    border-left: 2px solid var(--accent); border-radius: 12px;
}
.stat-pill { display: flex; align-items: baseline; gap: 6px; }
.sp-num { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); }
.sp-label { font-size: 12px; color: var(--text-dim); }
.status-ticker {
    margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 标签导航 */
.tab-nav {
    position: relative; display: flex; gap: 4px; margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.tab-item {
    position: relative; padding: 12px 18px; cursor: pointer;
    color: var(--text-dim); font-weight: 500; letter-spacing: .5px;
    transition: color .2s ease;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--accent); }
.tab-underline {
    position: absolute; bottom: -1px; height: 2px; left: 0; width: 0;
    background: var(--accent); transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* 筛选工具栏 */
.filter-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.sort-options { display: flex; gap: 8px; flex-wrap: wrap; }
.sort-btn {
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text-dim); border-radius: 18px; padding: 7px 15px;
    cursor: pointer; font-size: 13px; transition: all .2s ease;
}
.sort-btn:hover { color: var(--text); border-color: var(--line-strong); }
.sort-btn.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.more-filter {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    color: var(--text-dim); font-size: 13px; padding: 7px 14px;
    border: 1px solid var(--line); border-radius: 18px; transition: all .2s;
}
.more-filter:hover { color: var(--text); border-color: var(--line-strong); }
.mf-icon { color: var(--accent); }

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
    cursor: pointer;
    transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
    opacity: 0; animation: cardIn .45s ease forwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.card:hover {
    border-color: rgba(76,201,240,.45);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.card-cover { position: relative; height: 150px; overflow: hidden; }
.card-image-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.card-image-placeholder::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10,13,19,.9));
}
.character-icon {
    font-size: 54px; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
    transition: transform .4s ease;
}
.card:hover .character-icon { transform: scale(1.08); }
.card-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 11px; font-weight: 600; letter-spacing: .5px;
    padding: 4px 10px; border-radius: 16px;
    background: rgba(10,13,19,.7); border: 1px solid var(--line);
    backdrop-filter: blur(4px);
}
.character-badge { color: var(--char); border-color: rgba(76,201,240,.35); }
.skill-badge { color: var(--skill); border-color: rgba(224,164,74,.35); }
.card-info { padding: 16px 18px 18px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.card-subtitle {
    font-family: var(--mono); font-size: 12px; color: var(--char);
    margin: 4px 0 12px; letter-spacing: .5px;
}
.card-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.detail-row { font-size: 13px; display: flex; gap: 6px; }
.detail-row .label { color: var(--text-dim); white-space: nowrap; }
.detail-row .value { color: var(--text); }
.passive-skill { color: #9bd9ef; }
.ultimate { color: #e8c08a; }
.skill-description {
    font-size: 13px; color: var(--text); margin-bottom: 12px;
    padding: 10px 12px; border-left: 2px solid var(--skill);
    background: rgba(224,164,74,.06); border-radius: 0 8px 8px 0;
}
.card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-dim); margin-bottom: 10px;
}
.author { cursor: pointer; transition: color .2s; }
.author:hover { color: var(--accent); }
.card-stats {
    display: flex; gap: 16px; font-family: var(--mono); font-size: 12px;
    color: var(--text-dim); border-top: 1px solid var(--line); padding-top: 10px;
}

/* ---------- 模态框 ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(4, 7, 12, 0.7); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn .25s ease; }
.modal {
    position: relative; width: 100%; max-width: 460px;
    background: var(--panel-solid); border: 1px solid var(--line-strong);
    border-radius: 18px; padding: 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
    animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--line);
    color: var(--text-dim); cursor: pointer; transition: all .2s;
}
.modal-close:hover { background: rgba(255,80,90,.15); color: #ff6b6b; border-color: rgba(255,80,90,.4); }
.author-header {
    display: flex; align-items: center; gap: 16px;
    padding: 18px; border-radius: 14px; margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.author-header::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.06));
}
.author-avatar {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
}
.author-name { font-size: 20px; font-weight: 600; }
.author-bio { font-size: 13px; color: rgba(230,237,243,.8); margin-top: 4px; }
.author-stats { display: flex; gap: 12px; margin-bottom: 22px; }
.stat-item {
    flex: 1; text-align: center; padding: 14px 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.stat-num { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-dim); }
.works-title, .contact-title { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; letter-spacing: .5px; }
.works-list { display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow-y: auto; }
.work-item {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    transition: border-color .2s;
}
.work-item:hover { border-color: rgba(76,201,240,.4); }
.work-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.work-info { flex: 1; min-width: 0; }
.work-name { font-size: 14px; font-weight: 500; }
.work-desc { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-type-tag {
    font-size: 11px; padding: 3px 9px; border-radius: 12px; color: #06121a; flex-shrink: 0; font-weight: 600;
}
.author-contact { margin-top: 18px; }
.contact-item {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--mono); font-size: 13px;
}
.contact-icon { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--panel-solid); border: 1px solid var(--accent);
    color: var(--text); padding: 13px 24px; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 200; font-size: 14px;
    transition: transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 移动端底部导航 ---------- */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-dim); cursor: pointer; padding: 6px 0;
}
.bottom-nav-item.active { color: var(--accent); }
.bn-icon { font-size: 20px; }
.bn-text { font-size: 11px; }
.mobile-overlay { display: none; }

/* ---------- 邀请码门禁 ---------- */
body.locked .sidebar,
body.locked .main-content,
body.locked .bottom-nav { display: none; }

.gate-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    padding: 20px;
}
.gate-card {
    position: relative; width: 100%; max-width: 380px;
    background: var(--panel-solid); border: 1px solid var(--line-strong);
    border-radius: 18px; padding: 40px 34px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    animation: modalIn .4s cubic-bezier(.2,.8,.2,1);
}
.gate-logo {
    font-weight: 700; font-size: 24px; letter-spacing: 3px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--text);
}
.gate-logo .logo-mark { font-size: 26px; }
.gate-version {
    display: inline-block; margin-top: 8px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
    color: var(--accent); border: 1px solid rgba(76,201,240,.35);
    border-radius: 16px; padding: 3px 12px;
}
.gate-title { margin-top: 24px; font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.gate-sub { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.gate-input-wrap {
    display: flex; align-items: center; gap: 10px;
    margin: 26px 0 4px; padding: 12px 14px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; transition: border-color .2s ease;
}
.gate-input-wrap:focus-within { border-color: var(--accent); }
.gate-lock { font-size: 18px; opacity: .7; }
.gate-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 16px; letter-spacing: 3px;
    font-family: var(--mono); text-align: center;
}
.gate-input::placeholder { color: var(--text-dim); letter-spacing: 1px; }
.gate-error {
    min-height: 18px; margin: 8px 0 2px;
    font-size: 12px; color: #ff6b6b; text-align: center;
}
.gate-btn {
    width: 100%; margin-top: 14px; padding: 13px;
    background: var(--accent); color: #06121a; border: none; border-radius: 12px;
    font-weight: 600; letter-spacing: 3px; font-size: 15px;
    cursor: pointer; transition: filter .2s ease;
}
.gate-btn:hover { filter: brightness(1.1); }
.gate-foot {
    margin-top: 22px; font-family: var(--mono); font-size: 11px;
    color: var(--text-dim); letter-spacing: .5px;
}
.gate-card.shake { animation: gateShake .4s ease; }
@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-9px); }
    40%, 80% { transform: translateX(9px); }
}

/* ---------- 波纹效果 ---------- */
.ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0); animation: rippleAnim .6s linear;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14); border-radius: 6px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.24); }

/* ---------- 响应式（移植自原版经实测的手机布局，按暗色主题重做） ---------- */

@media (max-width: 860px) {
    /* 隐藏桌面侧边栏，避免挤出竖条（基座已设 transform 位移，这里直接 none 最稳） */
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 0 14px 72px; }

    /* 顶部栏：隐藏大 logo，搜索框吸满，按钮不换行 */
    .top-bar { padding: 12px 0; gap: 10px; flex-wrap: nowrap; }
    .logo-large { display: none; }
    .search-box { max-width: none; flex: 1; min-width: 0; padding: 3px 3px 3px 12px; }
    .search-box input { padding: 8px 8px; font-size: 13px; }
    .search-btn { padding: 8px 14px; font-size: 13px; }
    .top-actions { margin-left: 0; gap: 8px; flex-shrink: 0; }
    .upload-btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
    .status-chip { display: none; } /* 手机端省空间，状态信息已在状态栏展示 */

    /* 状态栏：横向滚动，不折行 */
    .status-bar {
        gap: 12px; padding: 10px 14px;
        flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .status-bar::-webkit-scrollbar { display: none; }
    .stat-pill { white-space: nowrap; flex-shrink: 0; }
    .sp-num { font-size: 17px; }
    .sp-label { font-size: 11px; }
    .status-ticker { display: none; }

    /* 标签导航：横向滚动 */
    .tab-nav {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tab-nav::-webkit-scrollbar { display: none; }
    .tab-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 12px 14px;
        font-size: 14px;
    }

    /* 筛选工具栏：排序横向滚动（关键——父级不能 overflow:hidden，否则裁掉滚动条） */
    .filter-toolbar { margin-bottom: 12px; gap: 10px; flex-wrap: nowrap; align-items: center; overflow: visible; }
    .sort-options {
        display: flex; gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .sort-options::-webkit-scrollbar { display: none; }
    .sort-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 7px 13px;
        font-size: 12px;
    }
    .more-filter {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 13px;
        font-size: 12px;
    }

    /* 内容区域 & 卡片：单列 */
    .content-area { padding: 12px 0; }
    .card-grid { grid-template-columns: 1fr; gap: 12px; }
    .card-cover { aspect-ratio: 16 / 9; }
    .card-info { padding: 12px; }
    .card-title { font-size: 14px; }
    .card-details { gap: 6px; margin-bottom: 10px; }
    .skill-description { font-size: 12px; padding: 10px; }

    /* 底部导航：固定底部（基座已设 position:fixed，这里仅激活 flex） */
    .bottom-nav { display: flex; }

    /* 模态框贴边 */
    .author-modal { width: calc(100vw - 32px); margin: 0 16px; max-height: 85vh; }

    /* Toast 抬到顶部导航之上 */
    .toast { bottom: 80px; max-width: 90vw; font-size: 13px; padding: 10px 20px; }
}

/* 手机端（≤480px）进一步收紧 */
@media (max-width: 480px) {
    .card-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 10px; }
    .card-cover { aspect-ratio: 4 / 3; }
    .card-stats { font-size: 11px; gap: 12px; }
    .card-meta { font-size: 11px; flex-wrap: wrap; gap: 4px; }

    /* 门禁卡片手机适配 */
    .gate-overlay { padding: 14px; }
    .gate-card { padding: 30px 20px 22px; border-radius: 16px; }
    .gate-title { margin-top: 18px; font-size: 18px; }
    .gate-sub { font-size: 12px; }
    .gate-input-wrap { margin: 20px 0 2px; padding: 11px 12px; }
    .gate-input { font-size: 15px; letter-spacing: 2px; }
    .gate-btn { margin-top: 16px; padding: 14px; font-size: 15px; }
    .gate-foot { margin-top: 16px; font-size: 10px; }
}

/* 超小屏（≤360px）进一步收紧 */
@media (max-width: 360px) {
    .tab-item { padding: 10px 12px; font-size: 13px; }
    .gate-card { padding: 26px 16px 18px; }
    .gate-logo { font-size: 21px; letter-spacing: 2px; }
    .gate-input-wrap { padding: 10px; }
}

/* ---------- 人机验证 widget ---------- */
.gate-turnstile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}
.gate-hint {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.gate-btn.ready {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(76, 201, 240, 0.35);
}
.gate-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
/* Turnstile 在暗色卡片内居中并撑满宽度（适配手机） */
.cf-turnstile {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}
.gate-notice {
    font-size: 12.5px;
    line-height: 1.5;
    color: #f0a868;
    background: rgba(224, 164, 74, 0.08);
    border: 1px solid rgba(224, 164, 74, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
}
