/* =========================================================
   52Me 前台皮肤  site.css  ·  明亮通透风格
   白底 + 柔和极光 + 玻璃卡片，保留站长背景图（白色蒙层）
   ========================================================= */

:root {
    --s-bg: #f5f7fc;
    --s-card: #ffffff;
    --s-card-2: #f8faff;
    --s-line: #e7eaf4;
    --s-line-strong: #d9deee;
    --s-ink: #131728;
    --s-ink-soft: #59617d;
    --s-ink-dim: #8d95ae;
    --s-primary: #6366f1;
    --s-violet: #8b5cf6;
    --s-pink: #ec4899;
    --s-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 48%, #ec4899 100%);
    --s-radius: 20px;
    --s-radius-lg: 28px;
    --s-shadow-sm: 0 2px 8px rgba(23, 29, 64, .05);
    --s-shadow: 0 18px 44px rgba(23, 29, 64, .10);
    --s-shadow-lg: 0 26px 70px rgba(23, 29, 64, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.s-site {
    margin: 0;
    min-height: 100vh;
    background: var(--s-bg);
    color: var(--s-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, .22); color: #1a1035; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f2f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cdd3e8, #b9c0da); border-radius: 10px; border: 2px solid #f0f2f9; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #b9c1dc, #a6aecd); }

/* ---------------- 背景：保留站长背景图 + 白色蒙层 ---------------- */
.s-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background-color: #f5f7fc;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .70) 45%, rgba(245, 247, 252, .74) 100%),
        radial-gradient(58% 50% at 10% 0%, rgba(99, 102, 241, .20), transparent 62%),
        radial-gradient(50% 46% at 90% 6%, rgba(236, 72, 153, .15), transparent 64%),
        radial-gradient(56% 46% at 50% 100%, rgba(34, 211, 238, .16), transparent 66%),
        url('https://t.alcy.cc/ycy');
    background-size: cover, cover, cover, cover, cover;
    background-position: center center, center top, right top, center bottom, center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.s-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 29, 64, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 29, 64, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 25%, transparent 78%);
    pointer-events: none;
}
.s-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    pointer-events: none;
    animation: sFloat 18s ease-in-out infinite;
}
.s-orb.o1 { width: 420px; height: 420px; left: -130px; top: -110px; background: rgba(99, 102, 241, .38); }
.s-orb.o2 { width: 380px; height: 380px; right: -120px; top: 100px; background: rgba(236, 72, 153, .26); animation-delay: -6s; }
.s-orb.o3 { width: 460px; height: 460px; left: 42%; bottom: -240px; background: rgba(34, 211, 238, .24); animation-delay: -11s; }

@keyframes sFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(22px, -26px, 0) scale(1.06); }
}

/* ---------------- 顶部导航 ---------------- */
.s-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-bottom: 1px solid transparent;
}
.s-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--s-line);
    box-shadow: 0 6px 24px rgba(23, 29, 64, .06);
}
.s-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.s-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--s-ink);
    text-decoration: none;
    white-space: nowrap;
}
.s-logo .mark {
    width: 34px; height: 34px;
    border-radius: 11px;
    background: var(--s-grad);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .38);
}
.s-nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.s-nav-links a {
    color: var(--s-ink-soft);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
}
.s-nav-links a:hover { color: var(--s-primary); background: rgba(99, 102, 241, .07); }

/* ---------------- 按钮 ---------------- */
.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, background .25s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    font-family: inherit;
}
.s-btn:active { transform: scale(.97); }
.s-btn-primary { background: var(--s-grad); color: #fff; box-shadow: 0 12px 28px rgba(109, 76, 255, .32); }
.s-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(109, 76, 255, .45); color: #fff; }
.s-btn-ghost {
    background: #fff;
    border-color: var(--s-line-strong);
    color: var(--s-ink);
    box-shadow: var(--s-shadow-sm);
}
.s-btn-ghost:hover { background: #fff; border-color: #c3cbec; color: var(--s-primary); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23, 29, 64, .10); }
.s-btn-sm { padding: 9px 16px; font-size: .84rem; border-radius: 10px; }
.s-btn-block { width: 100%; }
.s-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- 容器 / 标题 ---------------- */
.s-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.s-section { padding: 96px 0; position: relative; }
.s-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--s-line-strong);
    background: #fff;
    color: var(--s-ink-soft);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .4px;
    box-shadow: var(--s-shadow-sm);
}
.s-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.s-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin: 18px 0 12px; color: var(--s-ink); }
.s-sub { color: var(--s-ink-soft); font-size: 1rem; line-height: 1.75; margin: 0; }
.s-center { text-align: center; }
.s-grad-text { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------------- Hero ---------------- */
.s-hero { padding: 168px 0 96px; position: relative; text-align: center; }
.s-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 850; letter-spacing: -2px; line-height: 1.1; margin: 22px 0 0; color: var(--s-ink); }
.s-hero h1 .line-2 { display: block; }
.s-hero .lead { max-width: 640px; margin: 22px auto 0; color: var(--s-ink-soft); font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.8; }
.s-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.s-hero-note { margin-top: 18px; font-size: .82rem; color: var(--s-ink-dim); }
.s-hero-note i { color: #10b981; }

.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 860px; margin: 56px auto 0; }
.s-stat {
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 16px;
    padding: 18px 12px;
    box-shadow: var(--s-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.s-stat:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); border-color: #dbe1f4; }
.s-stat .num {
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--s-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.s-stat .lbl { font-size: .76rem; color: var(--s-ink-dim); margin-top: 4px; letter-spacing: .3px; }

.s-preview {
    margin: 72px auto 0;
    max-width: 940px;
    border-radius: var(--s-radius-lg);
    border: 1px solid var(--s-line);
    background: #fff;
    box-shadow: var(--s-shadow-lg);
    overflow: hidden;
}
.s-preview-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--s-line); background: #fafbff; }
.s-preview-bar .dotr { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.s-preview-bar .url {
    margin-left: 12px; font-size: .74rem; color: var(--s-ink-dim);
    background: #f1f4fc; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--s-line);
}
.s-preview-body { padding: 34px 24px 40px; display: grid; gap: 12px; justify-items: center; background: linear-gradient(180deg, #ffffff, #fbfcff); }
.s-avatar {
    width: 74px; height: 74px; border-radius: 22px;
    background: var(--s-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: #fff;
    box-shadow: 0 16px 36px rgba(109, 76, 255, .35);
}
.s-preview-name { font-weight: 700; font-size: 1.05rem; margin-top: 6px; color: var(--s-ink); }
.s-preview-bio { color: var(--s-ink-dim); font-size: .82rem; }
.s-preview-links { width: min(430px, 100%); display: grid; gap: 10px; margin-top: 10px; }
.s-preview-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 14px;
    border: 1px solid var(--s-line);
    background: #fbfcff;
    font-size: .86rem; color: var(--s-ink-soft);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.s-preview-link:hover { transform: translateX(3px); background: #fff; border-color: #cfd7ef; box-shadow: var(--s-shadow-sm); }
.s-preview-link .ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .78rem; color: #fff; }
.s-preview-link .arrow { margin-left: auto; opacity: .45; }

/* ---------------- 功能 / 模板 / 步骤 ---------------- */
.s-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-feature {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--s-radius);
    border: 1px solid var(--s-line);
    background: #fff;
    box-shadow: var(--s-shadow-sm);
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), border-color .28s ease, box-shadow .28s ease;
    overflow: hidden;
}
.s-feature:hover { transform: translateY(-6px); box-shadow: var(--s-shadow); border-color: #dbe1f4; }
.s-feature .ficon {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: #fff;
    background: var(--s-grad);
    box-shadow: 0 10px 24px rgba(109, 76, 255, .30);
    margin-bottom: 18px;
}
.s-feature h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.2px; color: var(--s-ink); }
.s-feature p { margin: 0; color: var(--s-ink-soft); font-size: .88rem; line-height: 1.7; }

.s-tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-tpl {
    border-radius: var(--s-radius);
    border: 1px solid var(--s-line);
    background: #fff;
    padding: 20px;
    box-shadow: var(--s-shadow-sm);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.s-tpl:hover { transform: translateY(-4px); border-color: #dbe1f4; box-shadow: var(--s-shadow); }
.s-tpl .swatch { height: 86px; border-radius: 14px; margin-bottom: 14px; position: relative; overflow: hidden; }
.s-tpl .swatch span {
    position: absolute; left: 12px; bottom: 10px;
    font-size: .7rem; font-weight: 700; color: #fff; z-index: 1;
    background: rgba(0, 0, 0, .28); padding: 3px 9px; border-radius: 999px;
    backdrop-filter: blur(6px);
}
.s-tpl h4 { font-size: .92rem; margin: 0 0 4px; font-weight: 700; color: var(--s-ink); }
.s-tpl p { margin: 0; font-size: .78rem; color: var(--s-ink-dim); }

.s-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-step {
    padding: 26px 22px;
    border-radius: var(--s-radius);
    border: 1px solid var(--s-line);
    background: #fff;
    box-shadow: var(--s-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.s-step:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); }
.s-step .idx {
    width: 34px; height: 34px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .85rem; color: #fff;
    background: var(--s-grad);
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(109, 76, 255, .30);
}
.s-step h4 { font-size: .96rem; margin: 0 0 6px; color: var(--s-ink); }
.s-step p { margin: 0; font-size: .84rem; color: var(--s-ink-soft); line-height: 1.7; }

/* ---------------- CTA / 页脚 ---------------- */
.s-cta {
    margin: 40px auto;
    max-width: 1000px;
    padding: 54px 32px;
    border-radius: var(--s-radius-lg);
    text-align: center;
    border: 1px solid #e2e7f7;
    background:
        radial-gradient(80% 120% at 20% 0%, rgba(99, 102, 241, .16), transparent 60%),
        radial-gradient(70% 120% at 85% 20%, rgba(236, 72, 153, .13), transparent 62%),
        #ffffff;
    box-shadow: var(--s-shadow);
    position: relative;
    overflow: hidden;
}
.s-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -.8px; color: var(--s-ink); }
.s-cta p { color: var(--s-ink-soft); margin: 0 0 26px; }

.s-footer { border-top: 1px solid var(--s-line); padding: 34px 0; margin-top: 60px; color: var(--s-ink-dim); font-size: .82rem; background: rgba(255, 255, 255, .6); }
.s-footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.s-footer a { color: var(--s-ink-soft); text-decoration: none; }
.s-footer a:hover { color: var(--s-primary); }

/* ---------------- 登录 / 注册 分栏 ---------------- */
.s-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.s-auth-brand {
    position: relative;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--s-line);
    background:
        radial-gradient(70% 60% at 15% 10%, rgba(99, 102, 241, .16), transparent 62%),
        radial-gradient(60% 55% at 85% 85%, rgba(236, 72, 153, .12), transparent 64%),
        rgba(255, 255, 255, .70);
    overflow: hidden;
}
.s-auth-brand::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(23, 29, 64, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 29, 64, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
.s-auth-brand h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 850; letter-spacing: -1.2px; line-height: 1.24; margin: 20px 0 14px; position: relative; color: var(--s-ink); }
.s-auth-brand p { color: var(--s-ink-soft); font-size: .95rem; line-height: 1.8; margin: 0; max-width: 420px; position: relative; }
.s-auth-points { margin-top: 34px; display: grid; gap: 14px; position: relative; }
.s-auth-point { display: flex; align-items: flex-start; gap: 12px; font-size: .88rem; color: var(--s-ink-soft); }
.s-auth-point .tick {
    width: 22px; height: 22px; border-radius: 7px;
    background: rgba(16, 185, 129, .14);
    color: #059669;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .66rem; flex: 0 0 auto; margin-top: 1px;
}
.s-auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.s-auth-card {
    width: 100%;
    max-width: 430px;
    padding: 38px 34px 32px;
    border-radius: var(--s-radius-lg);
    border: 1px solid #e6eaf6;
    background: #ffffff;
    box-shadow: var(--s-shadow-lg);
    position: relative;
}
.s-auth-card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; color: var(--s-ink); }
.s-auth-card .s-auth-sub { color: var(--s-ink-dim); font-size: .85rem; margin: 0 0 24px; }

/* 表单 */
.s-field { margin-bottom: 16px; }
.s-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--s-ink-soft); margin-bottom: 7px; letter-spacing: .2px; }
.s-input-wrap { position: relative; display: flex; align-items: center; }
.s-input-wrap > i.lead-icon { position: absolute; left: 15px; font-size: .82rem; color: #a9b1c9; pointer-events: none; transition: color .2s ease; }
.s-input, input.s-input, .form-control.s-input {
    width: 100%;
    padding: 13px 15px 13px 42px;
    border-radius: 12px;
    border: 1px solid var(--s-line-strong);
    background: #fbfcff;
    color: var(--s-ink);
    font-size: .92rem;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}
.s-input::placeholder { color: #aab1c7; }
.s-input:focus { outline: none; border-color: rgba(99, 102, 241, .8); box-shadow: 0 0 0 4px rgba(99, 102, 241, .13); background: #fff; }
.s-input-wrap:focus-within > i.lead-icon { color: var(--s-primary); }
.s-input.no-icon { padding-left: 15px; }
select.s-input { padding-left: 42px; color: var(--s-ink); background: #fbfcff; }

.s-toggle-pass { position: absolute; right: 10px; border: 0; background: transparent; color: #a9b1c9; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.s-toggle-pass:hover { color: var(--s-primary); background: rgba(99, 102, 241, .08); }

.s-field-hint { font-size: .74rem; color: var(--s-ink-dim); margin-top: 6px; }
.s-field-hint.err { color: #dc2626; }
.s-field-hint.ok { color: #059669; }

.s-auth-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: .84rem; color: var(--s-ink-dim); }
.s-auth-foot a { color: var(--s-primary); text-decoration: none; font-weight: 600; }
.s-auth-foot a:hover { color: #4f46e5; text-decoration: underline; }

.s-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--s-ink-dim); font-size: .75rem; }
.s-divider::before, .s-divider::after { content: ""; flex: 1; height: 1px; background: var(--s-line); }

.s-inline { display: flex; gap: 10px; align-items: stretch; }
.s-inline .s-input { flex: 1; }
.s-inline .s-btn { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.s-captcha-img { border-radius: 12px; border: 1px solid var(--s-line-strong); cursor: pointer; height: 47px; object-fit: cover; background: #f5f7fd; }

/* Bootstrap 组件适配 */
body.s-site .modal-content { background: #fff; border: 1px solid var(--s-line); border-radius: 20px; color: var(--s-ink); box-shadow: var(--s-shadow-lg); }
body.s-site .modal-body { text-align: center; padding: 32px 24px 12px; }
body.s-site .modal-body .icon { font-size: 3rem; margin-bottom: 10px; }
body.s-site .modal-body .icon-success { color: #10b981; }
body.s-site .modal-body .icon-error { color: #ef4444; }
body.s-site .modal-body h4 { color: var(--s-ink); font-weight: 800; }
body.s-site .modal-body p { color: var(--s-ink-soft); }
body.s-site .modal-footer { border-top: 1px solid var(--s-line); padding: 16px 24px 22px; }
body.s-site .text-muted { color: var(--s-ink-dim) !important; }

/* 提示条 */
.s-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .85rem; line-height: 1.6; margin-bottom: 18px; border: 1px solid; }
.s-alert.info { background: #eff8ff; border-color: #cfe8ff; color: #1d6ea8; }
.s-alert.err { background: #fff2f2; border-color: #ffd5d5; color: #b42318; }
.s-alert.ok { background: #effbf4; border-color: #cdeedd; color: #0b7a54; }

/* 滚动淡入 */
.s-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1); }
.s-reveal.in { opacity: 1; transform: none; }

/* ---------------- 兼容旧结构（login / register / forgot） ---------------- */
body.s-site .gradient-text {
    background: var(--s-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
body.s-site .card {
    background: #ffffff;
    border: 1px solid #e6eaf6;
    border-radius: var(--s-radius-lg);
    box-shadow: var(--s-shadow-lg);
    color: var(--s-ink);
}
body.s-site .card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 22px; }
body.s-site .form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--s-ink-soft); margin-bottom: 7px; letter-spacing: .2px; }
body.s-site .form-control {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--s-line-strong);
    background: #fbfcff;
    color: var(--s-ink);
    font-size: .92rem;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.s-site .form-control::placeholder { color: #aab1c7; }
body.s-site .form-control:focus {
    outline: none;
    border-color: rgba(99, 102, 241, .8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .13);
    background: #fff;
    color: var(--s-ink);
}
body.s-site .form-control:disabled { opacity: .6; }
body.s-site .btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    border: 0;
    background: var(--s-grad);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 12px 28px rgba(109, 76, 255, .32);
    transition: transform .2s ease, box-shadow .25s ease;
    cursor: pointer;
    font-family: inherit;
}
body.s-site .btn-custom:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(109, 76, 255, .45); color: #fff; }
body.s-site .btn-custom:disabled { opacity: .6; transform: none; }
/* 链接配色仅作用于登录/注册区，避免覆盖按钮自身的文字颜色 */
.s-auth a { color: var(--s-primary); text-decoration: none; }
.s-auth a:hover { color: #4f46e5; }
body.s-site .small, body.s-site small { color: var(--s-ink-dim); }

/* 验证码与发送按钮 */
body.s-site .input-group { display: flex; gap: 10px; align-items: stretch; flex-wrap: nowrap; }
body.s-site .input-group .form-control { flex: 1 1 auto; min-width: 0; }
body.s-site .btn-send {
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--s-line-strong);
    background: #fff;
    color: var(--s-ink-soft);
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--s-shadow-sm);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
body.s-site .btn-send:hover { background: #f7f9ff; border-color: #c3cbec; color: var(--s-primary); }
body.s-site .btn-send:active { transform: scale(.97); }
body.s-site .btn-send:disabled { opacity: .55; cursor: not-allowed; }
body.s-site .captcha-img { flex: 0 0 auto; height: 47px; border-radius: 12px; border: 1px solid var(--s-line-strong); object-fit: cover; cursor: pointer; background: #f5f7fd; }
body.s-site small.text-muted { display: block; margin-top: 6px; font-size: .74rem; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 991.98px) {
    .s-bg { background-attachment: scroll; }
    .s-auth { grid-template-columns: 1fr; }
    .s-auth-brand { display: none; }
    .s-auth-main { padding: 92px 20px 40px; }
    .s-grid-3, .s-tpl-grid, .s-steps { grid-template-columns: 1fr; }
    .s-stats { grid-template-columns: repeat(2, 1fr); }
    .s-nav-links .hide-sm { display: none; }
    .s-hero { padding: 132px 0 64px; }
    .s-hero h1 { letter-spacing: -1.2px; }
    .s-section { padding: 64px 0; }
    .s-preview { margin-top: 46px; }
    .s-cta { padding: 40px 22px; margin: 20px 16px; }
}
@media (max-width: 575.98px) {
    .s-wrap { padding: 0 18px; }
    .s-nav-inner { padding: 0 18px; }
    .s-auth-card { padding: 28px 22px 24px; border-radius: 22px; }
    .s-hero-actions .s-btn { width: 100%; }
    .s-stats { gap: 10px; }
    .s-stat { padding: 14px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}

/* 按钮配色兜底：防止被其他 a / .btn 规则覆盖导致文字看不清 */
body.s-site .s-btn-primary,
body.s-site a.s-btn-primary { color: #fff !important; }
body.s-site .s-btn-primary:hover,
body.s-site a.s-btn-primary:hover { color: #fff !important; }
body.s-site .s-btn-ghost,
body.s-site a.s-btn-ghost { color: var(--s-ink) !important; }
body.s-site .s-btn-ghost:hover,
body.s-site a.s-btn-ghost:hover { color: var(--s-primary) !important; }
body.s-site .s-nav-links a { color: var(--s-ink-soft); }
body.s-site .s-nav-links a:hover { color: var(--s-primary); }
body.s-site .s-footer a { color: var(--s-ink-soft); }
body.s-site .s-footer a:hover { color: var(--s-primary); }
body.s-site .s-auth-card a { color: var(--s-primary); }

/* 登录页按钮文字兜底 */
body.s-site .btn-custom,
body.s-site button.btn-custom { color: #fff !important; }
body.s-site .btn-send {
    color: var(--s-ink-soft) !important;
    background: #fff !important;
    width: auto !important;      /* 覆盖 .btn-custom 的 100% 宽，避免在输入框右侧被挤压 */
    box-shadow: none !important;
    padding: 0 18px !important;
    font-size: .85rem !important;
}
