/* ============================================================
   Muyuan behavior captcha - experience page styles
   ============================================================ */

:root {
    --brand: #ff6b35;
    --brand-hover: #e85a24;
    --brand-soft: rgba(255, 107, 53, 0.1);
    --text: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --bg: #f4f6f9;
    --card: #ffffff;
    --radius-lg: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    padding-bottom: 56px;
}

.bg {
    position: fixed;
    inset: 0;
    background: no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- header ---------- */

.site-header {
    padding: 28px 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 28px;
    width: auto;
    max-width: 140px;
}

.site-title {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.btn-buy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-buy:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
}

/* ---------- demo card ---------- */

.main-content {
    margin-bottom: 40px;
}

.captcha-demo {
    background: #f5f7fa;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.captcha-nav {
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
    padding: 10px 16px 8px;
    position: relative;
}

.captcha-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 0;
    list-style: none;
}

.captcha-type {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    user-select: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.captcha-type:hover {
    color: var(--brand);
    background-color: var(--brand-soft);
}

.captcha-type-active {
    color: var(--brand);
    font-weight: 700;
}

.captcha-type-active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* ---------- demo area ---------- */

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    padding: 72px 48px 84px;
    align-items: center;
}

.form-container {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.login-form {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 42px 30px;
    position: relative;
}

.form-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 26px;
}

.form-group {
    display: flex;
    align-items: center;
    height: 54px;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    padding: 0 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.field-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 14px;
    min-width: 52px;
    font-size: 13px;
}

.field-value {
    color: #374151;
    font-size: 14px;
}

.verify-button {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.verify-button:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.38);
}

.captcha-container {
    position: absolute;
    z-index: 1001;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
}

/* ---------- access card ---------- */

.consult-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 56px 28px;
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.consult-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.consult-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.consult-link {
    display: inline-block;
    padding: 10px 28px;
    color: var(--brand);
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.consult-link:hover {
    background: var(--brand);
    color: #fff;
}

/* ---------- footer ---------- */

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    min-height: 48px;
}

.footer-brand {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-sponsor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-sponsor:hover {
    color: var(--brand);
}

/* ---------- toast ---------- */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--card);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 480px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success { background: #059669; color: #fff; }
.toast-error { background: #dc2626; color: #fff; }
.toast-info { background: var(--brand); color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .container { padding: 0 14px; }

    .demo-content {
        grid-template-columns: 1fr;
        padding: 24px 16px 28px;
        gap: 20px;
    }

    .form-container,
    .consult-card { max-width: 100%; }
}

@media (max-width: 640px) {
    body { padding-bottom: 64px; }

    .site-header { padding: 14px 0 12px; }

    .brand-logo { height: 22px; max-width: 110px; }

    .site-title { font-size: 1.05rem; }

    .btn-buy { padding: 8px 12px; font-size: 12px; }

    .captcha-nav {
        padding: 0;
        overflow: hidden;
        position: relative;
    }

    .captcha-nav-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .captcha-nav-scroll::-webkit-scrollbar { display: none; }

    .captcha-types {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        width: max-content;
        min-width: 100%;
        padding: 12px 12px 10px;
    }

    .captcha-type { flex-shrink: 0; padding: 8px 12px; font-size: 13px; }

    .demo-content { padding: 18px 12px 22px; gap: 16px; }

    .login-form { padding: 20px 16px; }

    .form-title { font-size: 16px; margin-bottom: 18px; }

    .verify-button { height: 44px; }

    .consult-card { padding: 24px 16px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 8px 12px;
        min-height: auto;
    }

    .footer-brand { font-size: 11px; color: #9ca3af; order: 2; }

    .footer-sponsor { font-size: 12px; order: 1; }
}
