/* ============================================================
   爽玩西游 · 注册页 — 国风水墨 / 卷轴感 (v1)
   宣纸米黄 + 水墨远山红日 + 卷轴木轴 + 朱砂印 + 楷体
   ============================================================ */

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 24px;
    background: radial-gradient(ellipse at 50% 28%, #f5ecd6 0%, #e8d9b5 58%, #c9b585 100%);
    color: #2a1f15;
    font-family: "Noto Serif SC", "Songti SC", "STKaiti", "KaiTi", "楷体", "STSong", "SimSun", serif;
    position: relative;
    overflow-x: hidden;
}

/* ---------- 背景: 远山水墨 + 红日 ---------- */
.ink-mountain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.18;
    z-index: 0;
}

/* ---------- 背景: 竖排飘字 ---------- */
.drift {
    position: fixed;
    color: #2a1f15;
    font-weight: 900;
    writing-mode: vertical-rl;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.drift-r { right: 4vw;  top: 8vh;    font-size: clamp(80px, 18vw, 180px); letter-spacing: 20px; opacity: 0.06; }
.drift-l { left: 3vw;   bottom: 6vh; font-size: clamp(64px, 14vw, 140px); letter-spacing: 16px; opacity: 0.05; }

/* ============================================================
   卷轴主体
   ============================================================ */
.scroll {
    position: relative;
    z-index: 1;
    width: 440px;
    max-width: calc(100vw - 64px);
    padding: clamp(42px, 8vw, 58px) clamp(26px, 7vw, 58px);
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #fbf4dd 0%, #f5ead0 100%);
    border-left: 1px solid rgba(120,80,40,0.2);
    border-right: 1px solid rgba(120,80,40,0.2);
    box-shadow:
        0 30px 60px rgba(60,40,15,0.35),
        inset 0 0 0 1px rgba(120,80,40,0.15),
        inset 0 0 80px rgba(180,140,80,0.15);
    /* 入场动画 */
    opacity: 0;
    transform: translateY(30px) scaleY(0.96);
    transform-origin: top center;
    transition: opacity .9s ease, transform .9s cubic-bezier(.16,.84,.34,1);
}
.scroll.show {
    opacity: 1;
    transform: none;
}

/* ---------- 木轴 (上下) + 轴头 ---------- */
.roller {
    position: absolute;
    left: -18px;
    right: -18px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(180deg, #5a3a1c 0%, #8b5a2b 30%, #c98a4a 50%, #8b5a2b 70%, #3a2410 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.roller-top    { top: -12px; }
.roller-bottom { bottom: -12px; }
.cap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d4a05a 0%, #8b5a2b 50%, #2c1808 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 0 8px rgba(0,0,0,0.3);
}
.cap-l { left: -24px; }
.cap-r { right: -24px; }

/* ============================================================
   标题区
   ============================================================ */
.brand {
    text-align: center;
    margin-bottom: 26px;
    position: relative;
}
.seal {
    position: absolute;
    right: -4px;
    top: -6px;
    width: 46px;
    height: 46px;
    background: #a02020;
    color: #fbf4dd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    transform: rotate(4deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.title {
    margin: 0 0 10px;
    padding-left: 18px; /* 抵消字距视觉偏移 */
    font-size: clamp(38px, 11vw, 52px);
    font-weight: 900;
    letter-spacing: 18px;
    color: #1a0f08;
    text-shadow: 0 1px 0 rgba(255,240,200,0.6);
}
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 6px 0 6px;
    color: #6b4a2a;
    font-size: 11px;
    letter-spacing: 6px;
}
.dline {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6b4a2a, transparent);
}
.subtitle {
    font-size: 13px;
    color: #5a3a1c;
    letter-spacing: 4px;
}

/* ============================================================
   表单字段
   ============================================================ */
.ink-form { width: 100%; }

.field { margin-bottom: 16px; }

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6b4a2a;
    letter-spacing: 3px;
}
.field-label .ic { font-size: 14px; line-height: 1; }

.input-wrap {
    position: relative;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(255,250,235,0.6);
    border: 1px solid rgba(120,80,40,0.35);
    border-bottom: 2px solid rgba(60,40,20,0.5);
    transition: border-color .2s, background .2s;
}
.input-wrap:focus-within {
    background: rgba(255,250,235,0.92);
    border-color: rgba(160,32,32,0.55);
    border-bottom-color: #a02020;
}

/* 覆盖 layui input 外观: 透明无边框, 嵌进宣纸输入框 */
.ink-input.layui-input {
    flex: 1;
    height: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px;
    color: #1a0f08;
    font-family: inherit;
    border-radius: 0;
}
.ink-input.layui-input::placeholder { color: #9c8255; font-family: inherit; }
.ink-input.layui-input:focus { border: none !important; }

/* ---------- 验证码行 ---------- */
.captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}
.captcha-box {
    width: 130px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid rgba(120,80,40,0.35);
    overflow: hidden;
    cursor: pointer;
    background: #f5ead0;
}
.captcha-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* 完整显示验证码(SVG 150x50), 原 cover 会裁掉两侧字符 */
}

/* ============================================================
   提交按钮 (覆盖 layui-btn)
   ============================================================ */
.submit-btn.layui-btn {
    width: 100%;
    height: 56px;
    line-height: 56px;
    padding-left: 14px;
    margin-top: 4px;
    background: linear-gradient(180deg, #2a1f15 0%, #1a0f08 100%);
    color: #f5ead0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 14px;
    font-family: inherit;
    border: 1px solid #5a3a1c;
    border-radius: 0;
    box-shadow: 0 6px 16px rgba(60,40,15,0.3);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.submit-btn.layui-btn:hover {
    filter: brightness(1.18);
    box-shadow: 0 10px 22px rgba(60,40,15,0.42);
}
.submit-btn.layui-btn:active { transform: translateY(1px); }
.submit-btn.layui-btn-disabled,
.submit-btn.layui-btn-disabled:hover {
    filter: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- 落款 ---------- */
.scroll-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #6b4a2a;
    letter-spacing: 4px;
    font-style: italic;
}

/* ============================================================
   响应式 (窄屏手机)
   ============================================================ */
@media (max-width: 380px) {
    body { padding: 32px 18px; }
    .title { letter-spacing: 12px; padding-left: 12px; }
    .submit-btn.layui-btn { letter-spacing: 10px; font-size: 17px; }
    .captcha-box { width: 110px; }
}
