/**
 * 官网子页面样式（陪玩师入驻注册页 / 404 页面）
 * ------------------------------------------------------------------
 * 依赖 style.css 中的设计变量：--brand-purple / --brand-blue / --bg-card / --bg-panel / --ease
 * 只补充子页面专用组件，通用组件（.wrap .section .btn .grid .steps .faq footer）沿用 style.css
 */

/* ===== 子页面 Hero：左文案 + 右表单 ===== */
.pg-hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    padding: clamp(56px, 9vw, 104px) 0 clamp(24px, 4vw, 40px);
}

.pg-hero-copy h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin: 18px 0 20px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .pg-hero-copy h1 { color: rgba(0, 0, 0, 0.88); }

.pg-hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--brand-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-lead {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

[data-theme="light"] .pg-lead { color: rgba(0, 0, 0, 0.62); }

.pg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pg-chips span {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(202, 90, 246, 0.1);
    border: 1px solid rgba(202, 90, 246, 0.28);
}

[data-theme="light"] .pg-chips span {
    color: rgba(0, 0, 0, 0.72);
    background: rgba(51, 177, 235, 0.08);
    border-color: rgba(51, 177, 235, 0.22);
}

.pg-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 40px);
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .pg-stats { border-top-color: rgba(0, 0, 0, 0.08); }

.pg-stats b {
    display: block;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-stats small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .pg-stats small { color: rgba(0, 0, 0, 0.45); }

/* ===== 表单卡片 ===== */
.pg-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(202, 90, 246, 0.28);
    border-radius: 24px;
    padding: clamp(24px, 3vw, 38px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 96px;
}

[data-theme="light"] .pg-card {
    border-color: rgba(51, 177, 235, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.pg-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(202, 90, 246, 0.16), transparent 62%);
    pointer-events: none;
}

.pg-card-head { position: relative; margin-bottom: 24px; }

.pg-card-head h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .pg-card-head h2 { color: rgba(0, 0, 0, 0.88); }

.pg-card-head p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .pg-card-head p { color: rgba(0, 0, 0, 0.5); }

.pg-form { display: flex; flex-direction: column; gap: 18px; position: relative; }

.pg-field { display: flex; flex-direction: column; gap: 8px; }

.pg-field > label {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .pg-field > label { color: rgba(0, 0, 0, 0.62); }

.pg-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 8, 48, 0.45);
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s var(--ease);
}

.pg-field input::placeholder { color: rgba(255, 255, 255, 0.32); }

.pg-field input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 24px rgba(202, 90, 246, 0.28);
}

[data-theme="light"] .pg-field input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.88);
}

[data-theme="light"] .pg-field input::placeholder { color: rgba(0, 0, 0, 0.32); }

.pg-field.has-error input { border-color: var(--brand-red); }

.pg-hint {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--brand-red);
    display: none;
}

.pg-field.has-error .pg-hint { display: block; }

.pg-inline { display: flex; gap: 10px; align-items: flex-end; }

.pg-inline .pg-field { flex: 1; min-width: 0; }

.pg-sms-btn {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(202, 90, 246, 0.55);
    background: rgba(202, 90, 246, 0.14);
    color: #EBCFFF;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.pg-sms-btn:hover:not(:disabled) {
    background: rgba(202, 90, 246, 0.26);
    transform: translateY(-2px);
}

.pg-sms-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .pg-sms-btn { color: #7B2FBE; }

.pg-captcha {
    flex: 0 0 auto;
    width: 130px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-captcha img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-submit { width: 100%; justify-content: center; margin-top: 4px; }

.pg-form-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .pg-form-foot { color: rgba(0, 0, 0, 0.5); }

.pg-form-foot a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
.pg-form-foot a:hover { text-decoration: underline; }

/* ===== 轻提示 ===== */
.pg-toast {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(90vw, 460px);
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(26, 22, 62, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
}

[data-theme="light"] .pg-toast {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.88);
}

.pg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pg-toast.is-error { border-color: var(--brand-red); }
.pg-toast.is-success { border-color: var(--brand-green); }
.pg-toast.is-info { border-color: var(--brand-blue); }

.pg-toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue);
    flex: 0 0 auto;
}

.pg-toast.is-error .pg-toast-dot { background: var(--brand-red); }
.pg-toast.is-success .pg-toast-dot { background: var(--brand-green); }

/* ===== 入驻流程时间轴 ===== */
.pg-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pg-flow-step {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px 24px;
    transition: all 0.4s var(--ease);
}

[data-theme="light"] .pg-flow-step {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pg-flow-step:hover {
    transform: translateY(-6px);
    border-color: var(--brand-purple);
    box-shadow: 0 12px 40px rgba(202, 90, 246, 0.28);
}

.pg-flow-step b {
    display: block;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--brand-purple);
    margin-bottom: 12px;
}

.pg-flow-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .pg-flow-step h3 { color: rgba(0, 0, 0, 0.88); }

.pg-flow-step p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .pg-flow-step p { color: rgba(0, 0, 0, 0.6); }

/* ===== 底部咨询条 ===== */
.pg-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(202, 90, 246, 0.16), rgba(51, 177, 235, 0.14));
    border: 1px solid rgba(202, 90, 246, 0.3);
    margin-bottom: clamp(48px, 8vw, 96px);
}

.pg-cta h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .pg-cta h2 { color: rgba(0, 0, 0, 0.88); }

.pg-cta p { font-size: 15px; color: rgba(255, 255, 255, 0.66); }

[data-theme="light"] .pg-cta p { color: rgba(0, 0, 0, 0.6); }

.pg-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== 404 页面 ===== */
.nf-hero {
    text-align: center;
    padding: clamp(72px, 12vw, 148px) 0 clamp(40px, 6vw, 64px);
}

.nf-code {
    font-size: clamp(88px, 18vw, 200px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--brand-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nfFloat 6s ease-in-out infinite;
}

@keyframes nfFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nf-hero h1 {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 700;
    margin: 12px 0 16px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nf-hero h1 { color: rgba(0, 0, 0, 0.88); }

.nf-hero p {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .nf-hero p { color: rgba(0, 0, 0, 0.6); }

.nf-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.nf-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.nf-links a {
    display: block;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    text-align: left;
    transition: all 0.35s var(--ease);
}

[data-theme="light"] .nf-links a {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nf-links a:hover {
    transform: translateY(-6px);
    border-color: var(--brand-purple);
    box-shadow: 0 12px 40px rgba(202, 90, 246, 0.28);
}

.nf-links strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nf-links strong { color: rgba(0, 0, 0, 0.88); }

.nf-links span { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }

[data-theme="light"] .nf-links span { color: rgba(0, 0, 0, 0.5); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .pg-hero {
        grid-template-columns: 1fr;
        padding-top: clamp(40px, 8vw, 72px);
    }

    .pg-card { order: -1; }
}

@media (max-width: 520px) {
    .pg-inline { flex-direction: column; align-items: stretch; }

    .pg-captcha { width: 100%; }

    .pg-sms-btn { width: 100%; }

    .pg-cta { flex-direction: column; align-items: flex-start; }

    .pg-cta-actions { width: 100%; }

    .pg-cta-actions .btn { flex: 1; justify-content: center; }
}
