/* ================================================================
   AXIOM · css/pages/register.css — 注册页专项
   来源: 由 register.php 内联 <style> 搬移而来（v4.0.0 单源化）
   v24.2 2026-09-12 新增: 邀请专属视觉区 / 桌面双列网格 / 验证码等比与热区
   说明: 本文件在 style.css 之后加载，同特异度时以本文件为准
   ================================================================ */

/* ---- 验证码 ---- */
.captcha-group { display: flex; gap: 10px; align-items: center; }
.captcha-group .captcha-input { flex: 1; min-width: 0; }
.captcha-group img {
    /* v24.2 2026-09-12 改为等比显示（原 120×45 把 140×45 的图画横压扁），点击热区随高度放大 */
    width: auto;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(245, 179, 66, 0.25);
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.captcha-group img:hover {
    border-color: rgba(245, 179, 66, 0.5);
    box-shadow: 0 0 12px rgba(245, 179, 66, 0.15);
    transform: scale(1.02);
}
.captcha-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    /* v24.2 2026-09-12 保持右对齐：提示落在验证码图片正下方 */
    text-align: right;
}
.captcha-hint a {
    display: inline-flex;
    align-items: center;
    /* v24.2 2026-09-12 触控热区由 36×18 提升到约 48×32 */
    min-height: 32px;
    padding: 0 8px;
    color: #F5B342;
    text-decoration: none;
    transition: opacity 0.2s;
}
.captcha-hint a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ================================================================
   v24.2 2026-09-12 邀请专属视觉区
   取代原先「一行棕色 alert」：展示邀请人【角色名】、邀请关系与真实奖励节奏
   ================================================================ */
.invite-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    /* v24.2 2026-09-12 与下方注册表单拉开距离（原 4px 贴太近） */
    margin: 2px 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(245, 179, 66, 0.28);
    border-radius: 14px;
    /* v24.2 2026-09-12 原 overflow:hidden 会裁掉群号铭牌的悬停提示气泡；背景/顶部细线本身受
       border-radius 裁剪，无需 overflow:hidden，故放开 */
    overflow: visible;
    background:
        radial-gradient(420px 160px at 0% 0%, rgba(245, 179, 66, 0.13), transparent 70%),
        linear-gradient(180deg, rgba(245, 179, 66, 0.06), rgba(245, 179, 66, 0.02));
}
.invite-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 66, 0.6), transparent);
    pointer-events: none;
}
.invite-hero-crest {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1;
    color: #0A0B0D;
    background: linear-gradient(135deg, #F5B342 0%, #E08A2A 100%);
    box-shadow: 0 4px 14px rgba(224, 138, 42, 0.3);
}
.invite-hero-body { min-width: 0; }
.invite-hero-kicker {
    margin: 0 0 4px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: rgba(245, 179, 66, 0.85);
}
.invite-hero-title {
    margin: 0 0 5px;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary, #F1F5F9);
}
.invite-hero-title strong {
    color: #F5B342;
    font-weight: 700;
}
.invite-hero-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary, #B4BAC4);
}
.invite-hero-desc b {
    color: #F5C86B;
    font-weight: 600;
}

/* ================================================================
   v24.2 2026-09-12 邀请卡 · 官方 QQ 群号（金属铭牌）
   群号来自后台「服务器设置 · 站点设置」（单个）；未配置则整块不渲染。
   ================================================================ */
.invite-hero-qq {
    /* v24.2 2026-09-12 与正文同句流式排版；行高与铭牌等高（26.2px）避免首行被顶高；
       text-wrap:balance 防止末行只剩「铢。」两字孤行 */
    margin: 12px 0 0;
    padding-top: 11px;
    border-top: 1px dashed rgba(245, 179, 66, 0.22);
    font-size: 0.78rem;
    line-height: 2.1;
    text-wrap: balance;
    color: var(--text-secondary, #B4BAC4);
}
.invite-hero-qq b {
    color: #F5C86B;
    font-weight: 600;
}
/* v24.2 2026-09-12 群号独占一行 */
.invite-hero-qq-num {
    margin: 9px 0 0;
    line-height: 1.1;
}
/* ---- 悬停 / 键盘聚焦提示：官方游戏 QQ 群 · 点击复制群号 ----
   位置：铭牌**右侧垂直居中**（不是正上方）。
   原因：文案句就在铭牌正上方仅 9px，气泡放上方会把说明句整句盖住（实测重叠 16.5px）；
   而铭牌右侧在桌面有 440px 余量，放右侧既不成遮挡、也不影响阅读。 */
.qq-tip {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translate(-5px, -50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 7px 12px;
    white-space: nowrap;
    border-radius: 8px;
    /* 重置父级铭牌的钢印字效与宽字距，避免气泡文字被带歪 */
    letter-spacing: normal;
    text-indent: 0;
    text-shadow: none;
    background: linear-gradient(180deg, rgba(26, 29, 37, 0.98), rgba(16, 18, 24, 0.98));
    border: 1px solid rgba(245, 179, 66, 0.45);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
    opacity: 0;
    /* v24.2 2026-09-12 用 visibility 隐藏而非仅 opacity:0：
       opacity:0 的元素仍会被选中/被 innerText 采集，会把气泡文案混进正文的文本选择里 */
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
/* 气泡小三角：朝左指向铭牌（外描边 + 内填充两层拼出带边的箭头） */
.qq-tip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -6px;
    border: 6px solid transparent;
    border-right-color: rgba(245, 179, 66, 0.45);
}
.qq-tip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border: 5px solid transparent;
    border-right-color: #10121A;
}
.qq-tip b {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #F5C86B;
}
.qq-tip i {
    font-style: normal;
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: rgba(190, 196, 206, 0.85);
}
.qq-num:hover .qq-tip,
.qq-num:focus-visible .qq-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    /* 出现时立刻可见（visibility 不延迟） */
    transition-delay: 0s, 0s, 0s;
}
/* 窄屏：右侧放不下气泡（360px 下余量仅 42px），且触屏没有 hover；
   故窄屏隐藏悬停气泡，触屏靠点按后的「已复制 ✓」反馈 + aria-label 传达用途 */
@media (max-width: 768px) {
    .qq-tip {
        display: none;
    }
}
/* ---- 群号「金属铭牌」----
   设计要点（与卡片四角宝石共用同一套造型语言）：
     ① 铭牌轮廓：6px 小圆角矩形（5~6px 才像「牌」而不像「钮」）
     ② 金属底：降饱和压暗一档的四段古铜金（避免"糖果金/亮塑料"）
     ③ 拉丝纹理：2px 周期极淡横纹 —— 把「亮塑料」变「金属」最有效的一步
     ④ 真倒角：上亮唇 + 下暗唇两条 1px 硬边 + 底部内阴影（比纯竖直渐变更像金属）
     ⑤ 釉光压低到 .28、**完全不要金色外发光**（外发光是最大的"按钮"信号）
     ⑥ 钢印凹陷数字：凹槽上壁压暗 + 底唇亮线（两条硬边、无模糊，才是"压进去"）
     ⑦ 左右各一枚 8px 刻面菱形（补齐角饰的三层刻面 + 1.5px 圆角，与四角宝石同族）
     ⑧ 6s 斜向反光，与四角宝石 6s 呼吸同周期（整卡节奏统一）；prefers-reduced-motion 下关闭
     ⑨ 鼠标点击 / 触屏点按即复制，铭牌本身盖出「已复制 ✓」 */
.qq-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 3px;
    padding: 5px 13px;
    /* v24.2 2026-09-12 由 span 改为 button（点击/触碰即复制、键盘可达），故重置浏览器默认按钮样式；
       min-height:0 用于压掉 style.css 触屏段 button{min-height:44px}（否则窄屏会被撑成"厚砖"） */
    border: 0;
    min-height: 0;
    line-height: 1.1;
    vertical-align: middle;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    transition: filter 0.18s ease;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    color: #43300F;
    /* ⑨ 钢印凹陷：两条**硬边**（无模糊）—— 上壁压暗 + 底唇亮线。
       带模糊会读成"发光描边/浅凸"，硬边才是"压进去" */
    text-shadow:
        0 -1px 0 rgba(70, 44, 6, 0.62),
        0 1px 0 rgba(255, 253, 242, 0.6);
    border-radius: 6px;
    background-image:
        linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.065) 0px, rgba(255, 255, 255, 0.065) 1px, rgba(84, 56, 12, 0.055) 1px, rgba(84, 56, 12, 0.055) 3px),
        linear-gradient(135deg, #F6DCA0 0%, #E4B45C 34%, #C98F35 68%, #AE7727 100%);
    background-repeat: no-repeat;
    background-size: 240% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: -140% 0, 0 0, 0 0, 0 0;
    /* ⑩ 不做金色外发光（那是最大的"按钮"信号）：只保留外圈 1px 牌面边 + 上亮唇/下暗唇/底部内阴影。
       牌面做成"嵌在卡片上"，而不是"被点亮的胶囊"。 */
    box-shadow:
        0 0 0 1px rgba(214, 160, 76, 0.42),
        inset 0 1px 0 rgba(255, 250, 232, 0.6),
        inset 0 -1px 0 rgba(96, 62, 12, 0.5),
        inset 0 -3px 6px rgba(90, 55, 8, 0.4);
    animation: qqPlaqueSheen 6s ease-in-out infinite;
}
/* 可点复制的交互反馈（鼠标/触屏点击、键盘 Enter/空格均触发） */
.qq-num:hover { filter: brightness(1.07); }
.qq-num:active { filter: brightness(0.96); }
.qq-num:focus-visible { outline: 2px solid rgba(245, 179, 66, 0.7); outline-offset: 3px; }
/* ⑦ 左右菱形：与四角宝石完全同配方（底面金属 + 左上高光面 + 右下暗面 + 1.5px 圆角） */
.qq-num::before,
.qq-num::after {
    content: '';
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transform: rotate(45deg);
    border-radius: 1.5px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(315deg, rgba(58, 38, 8, 0.45) 0%, rgba(58, 38, 8, 0) 44%),
        linear-gradient(135deg, #F7D992 0%, #DDAB4F 48%, #B5842F 100%);
    box-shadow:
        0 0 0 0.5px rgba(255, 240, 200, 0.6),
        0 0 6px 1px rgba(245, 179, 66, 0.35);
}
@keyframes qqPlaqueSheen {
    0%, 60% {
        background-position: -140% 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 240% 0, 0 0, 0 0, 0 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .qq-num {
        animation: none;
    }
}
/* 触屏：略加厚以保住可点性（仍远小于全局 44px 的"厚砖"） */
@media (hover: none) and (pointer: coarse) {
    .qq-num {
        padding: 8px 13px;
    }
}
/* ---- 复制成功反馈：把铭牌本身盖成「已复制 ✓」----
   为何用覆盖层而不是浮动气泡：覆盖层零布局位移、不会被任何 overflow 裁切，
   且「点哪亮哪」的反馈最直接（同理，js 复原时会清空文字，避免残留在无障碍树里）。 */
.qq-copied {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-indent: 0;
    text-shadow: none;
    white-space: nowrap;
    color: #2A1B02;
    background: linear-gradient(135deg, #FFEFC8 0%, #F3C167 55%, #E0AE52 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 248, 228, 0.7), inset 0 -2px 5px rgba(120, 74, 10, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}
.qq-num.is-copied .qq-copied { opacity: 1; }

/* ================================================================
   v24.2 2026-09-12 桌面端双列网格
   注册页字段由 9 行竖排改为 2 列网格（约 7 行），显著缩短卡片高度，
   让页脚回到首屏内；移动端（≤768px）自动回落为单列。
   ================================================================ */
@media (min-width: 769px) {
    .auth-form.register-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        align-items: start;
    }
    .register-form .form-group-full {
        grid-column: 1 / -1;
    }
    /* 卡片加宽以容纳双列（原 520px 放两列会挤） */
    .auth-card.auth-card-wide {
        max-width: 720px;
    }
}

@media (max-width: 480px) {
    .captcha-group img {
        height: 40px;
    }
    /* v24.2 2026-09-12 窄屏缩紧铭牌（不缩菱形，8px 才看得出刻面；也不覆盖 padding，
       让上面「触屏加厚」那条继续生效，保证手指可点） */
    .qq-num {
        gap: 8px;
        margin: 0 2px;
        font-size: 0.84rem;
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }
    .invite-hero {
        /* v24.2 2026-09-12 窄屏改为纵向：正文与 QQ 群号获得整行宽度，减少换行与卡片高度 */
        flex-direction: column;
        gap: 10px;
        padding: 14px 14px;
    }
    .invite-hero-crest {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
