/* ============================================================
   css/ux3.css - 三端（手机 / 平板 / 桌面）统一适配层
   2026-11-15  目标：可读性、触点尺寸、注册与新手村引导
   断点：<=640 手机 | 641-1024 平板 | >=1025 桌面
   只做叠加与增强，不覆盖既有视觉体系
   ============================================================ */

/* ---------- 1. 基础可读性与触点（手机优先） ---------- */
@media (max-width: 767px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

    /* iOS 聚焦输入框会放大页面：字号必须 >=16px */
    .cyber-input,
    .tk-input,
    #tk-reg-form input,
    #tk-login-form input,
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        font-size: 16px !important;
        min-height: 46px;
        padding-top: 11px;
        padding-bottom: 11px;
        line-height: 1.35;
    }

    /* 主要按钮/门禁按钮：最小 44px 触点 */
    .cyber-btn,
    .gl-gate-btn,
    .tt-gate-b,
    .reg-submit button {
        min-height: 46px;
    }
    .gl-gate-btn { font-size: 13px; padding: 12px 18px; }

    /* 汉堡菜单项统一 48px 行高，避免误触 */
    .tt-menu a,
    .tt-menu button {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* ---------- 2. 注册页：桌面双栏（表单 + 你会得到什么） ---------- */
.reg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.reg-main { min-width: 0; }

/* 侧栏卡片 */
.reg-side { min-width: 0; }
.ux-sidecard {
    border: 1px solid rgb(var(--color-gold, 255 205 90) / .28);
    background: linear-gradient(160deg, rgba(255, 205, 90, .07), rgba(0, 0, 0, .55) 55%);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    padding: 16px 16px 14px;
}
.ux-sidetitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF TransRobotics', 'Zpix', sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    color: rgb(var(--color-gold, 255 205 90));
    margin-bottom: 12px;
}
.ux-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ux-perks li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, .03);
    border-left: 2px solid rgb(var(--color-gold, 255 205 90) / .5);
}
.ux-perks li > b {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 17px;
    line-height: 1;
    text-align: right;
    color: rgb(var(--color-gold, 255 205 90));
    text-shadow: 0 0 14px rgb(var(--color-gold, 255 205 90) / .5);
    white-space: nowrap;
}
.ux-perks li > span { font-size: 12.5px; color: #dfe6ef; line-height: 1.4; }
.ux-perks li > span > em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #8592a6;
    margin-top: 2px;
}
.ux-sidebtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #cfd8e3;
    font-size: 12px;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.ux-sidebtn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff; }

@media (min-width: 1025px) {
    .reg-layout { grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
    .reg-side { position: sticky; top: 96px; }
    .ux-sidecard { padding: 20px 20px 18px; }
    .ux-perks li { grid-template-columns: 62px minmax(0, 1fr); padding: 11px 12px; }
    .ux-perks li > b { font-size: 19px; }
    .ux-perks li > span { font-size: 13px; }
}

/* 平板：侧栏压在表单下方，横向三列排布，不占首屏 */
@media (min-width: 641px) and (max-width: 1024px) {
    .reg-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ux-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ux-perks li { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 4px; }
    .ux-perks li > b { text-align: center; }
    .ux-perks li > span > em { display: none; }
}

/* 注册页「注册即送」药丸：任何宽度都不许被裁 */
.reg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.reg-gift { white-space: nowrap; max-width: 100%; }
@media (max-width: 400px) {
    .reg-gift { font-size: 10px; padding: 3px 8px; }
    .reg-gift b { font-size: 12px; }
}

/* ---------- 3. 新手村开营页（welcome.php） ---------- */
.nv-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px 130px; }
.nv-hero { text-align: center; padding: 10px 0 4px; }
.nv-cap {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: .45em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
}
.nv-title {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .1em;
    color: #fff;
    text-shadow: 0 0 26px rgb(var(--color-gold, 255 205 90) / .55);
}
.nv-sub { margin-top: 8px; font-size: 13px; color: #9fb0c4; line-height: 1.6; }

.nv-wallet {
    margin: 16px auto 0;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid rgb(var(--color-gold, 255 205 90) / .45);
    background: linear-gradient(140deg, rgba(255, 205, 90, .14), rgba(0, 0, 0, .6));
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.nv-wallet i { font-size: 26px; color: rgb(var(--color-gold, 255 205 90)); }
.nv-wallet-tx { text-align: left; line-height: 1.3; }
.nv-wallet-tx b {
    display: block;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 22px;
    color: rgb(var(--color-gold, 255 205 90));
    text-shadow: 0 0 18px rgb(var(--color-gold, 255 205 90) / .55);
}
.nv-wallet-tx span { font-size: 11.5px; color: #a9b6c7; }

.nv-progress { margin-top: 20px; }
.nv-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: .14em;
    color: #8592a6;
    margin-bottom: 8px;
}
.nv-progress-top b { color: rgb(var(--color-gold, 255 205 90)); font-size: 13px; }
.nv-bar { height: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.nv-bar > i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ffcd5a, #ff9f1a);
    box-shadow: 0 0 14px rgba(255, 205, 90, .7);
    transition: width .6s ease;
}

.nv-tasks { margin-top: 18px; display: grid; gap: 10px; }
@media (min-width: 768px) { .nv-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nv-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .1);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}
.nv-task:hover { border-color: rgb(var(--color-main) / .6); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.nv-task-ic {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgb(var(--color-main));
    border: 1px solid rgb(var(--color-main) / .35);
    background: rgba(0, 0, 0, .35);
}
.nv-task-tx { min-width: 0; flex: 1; }
.nv-task-tx b { display: block; font-size: 13.5px; color: #fff; letter-spacing: .04em; }
.nv-task-tx span { display: block; font-size: 11.5px; color: #8b98a9; margin-top: 2px; }
.nv-task-go { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: rgb(var(--color-main)); white-space: nowrap; }
.nv-task.done { border-color: rgba(120, 255, 170, .4); background: rgba(120, 255, 170, .06); }
.nv-task.done .nv-task-ic { color: #7dffb0; border-color: rgba(120, 255, 170, .5); }
.nv-task.done .nv-task-go { color: #7dffb0; }

.nv-prize {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed rgb(var(--color-gold, 255 205 90) / .45);
    background: rgba(255, 205, 90, .04);
    font-size: 12.5px;
    line-height: 1.75;
    color: #cfd8e3;
}
.nv-prize b { color: rgb(var(--color-gold, 255 205 90)); }

.nv-cta { margin-top: 20px; display: grid; gap: 10px; }
@media (min-width: 641px) { .nv-cta { grid-template-columns: 1fr auto; align-items: center; } }
.nv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 22px;
    font-family: 'SF TransRobotics', 'Zpix', sans-serif;
    font-size: 14px;
    letter-spacing: .1em;
    text-decoration: none;
    background: linear-gradient(180deg, #ffe6a2, #ffc94d);
    color: #241800;
    font-weight: 700;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 26px rgba(255, 205, 90, .35);
    transition: filter .2s, transform .2s;
}
.nv-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nv-btn.ghost {
    background: transparent;
    color: #cfd8e3;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
    font-weight: 400;
}
.nv-btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---------- 4. 游戏页：手机端正文放大一档 ---------- */
@media (max-width: 640px) {
    .game-lab-page .text-sm { font-size: 13.5px; line-height: 1.85; }
    .game-lab-page .text-xs { font-size: 12px; }
    .game-lab-page .gl-clip p { line-height: 1.8; }
}

/* ---------- 5. 极窄屏（<=360）头部防挤压 ---------- */
@media (max-width: 360px) {
    .tt-coin-tag { font-size: 9px !important; padding: 1px 4px !important; }
    .tt-dock .cyber-nav-btn { padding-left: 7px; padding-right: 7px; }
}

/* ---------- 6. 注册页布局修正：手机/平板=表单在前；桌面=表单左 + 收益右 ---------- */
.reg-main { order: 1; }
.reg-side { order: 2; }
@media (min-width: 1025px) {
    .reg-wrap { max-width: 1120px !important; }
    .reg-layout { grid-template-columns: minmax(0, 1fr) 348px; gap: 26px; }
    .reg-main { order: 1; grid-column: 1; grid-row: 1; }
    .reg-side { order: 2; grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .reg-wrap { max-width: 860px !important; }
}
/* ---------- 7. 游戏页门禁：注册优先（金色实心），登录降为次级 ---------- */
.gl-gate-btn.primary {
    background: transparent;
    color: #e6edf5;
    border: 1px solid rgba(255, 255, 255, .28);
    font-weight: 400;
    box-shadow: none;
}
.gl-gate-btn.primary:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
    box-shadow: none;
}
.gl-gate-btn.gold {
    background: linear-gradient(180deg, #ffe6a2, #ffc94d);
    color: #241800;
    border: 0;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 205, 90, .4);
}
.gl-gate-btn.gold:hover {
    filter: brightness(1.06);
    color: #241800;
}

/* ---------- 8. 开营页：手机端底部留白收紧 ---------- */
@media (max-width: 640px) {
    .nv-wrap { padding-bottom: 96px; }
    .nv-title { font-size: 21px; }
    .nv-wallet { padding: 12px 14px; gap: 10px; }
}
/* ---------- 9. 注册页手机端收尾：徽章不裁切、去掉重复登录入口 ---------- */
@media (max-width: 520px) {
    .reg-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .reg-gift { font-size: 10.5px; padding: 3px 8px; }
}
@media (max-width: 640px) {
    .ux-sidebtn { display: none; }
}