@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

/* 小富富网络 - 全站UI主题 v8（橙暖科技风 · 无遮挡层） */
:root {
    --xff-primary: #FF9500;
    --xff-primary-dark: #FF6B00;
    --xff-primary-light: #FFB347;
    --xff-bg: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    --xff-bg-soft: linear-gradient(180deg, #FF9500 0%, #FFF5EB 280px);
    --xff-card: #FFFFFF;
    --xff-radius: 20px;
    --xff-radius-sm: 14px;
    --xff-shadow: 0 8px 32px rgba(255,149,0,0.12);
    --xff-text: #333333;
    --xff-muted: #999999;
    --xff-page-bg: #F0F1F5;
    --xff-max: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.xff-body, body.xff-site, body.xff-quiz, body.xff-pay, body.xff-result, body.xff-test {
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--xff-text);
    -webkit-font-smoothing: antialiased;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
}

/* 彻底禁用所有遮挡型装饰层 */
.xff-page-bg, .xff-hero-bg { display: none !important; height: 0 !important; overflow: hidden !important; }

body.xff-site, body.xff-test {
    background: var(--xff-page-bg);
    min-height: 100vh;
}

body.xff-body {
    min-height: 100vh;
    background: var(--xff-bg-soft);
}

body.xff-pay { background: var(--xff-page-bg); min-height: 100vh; }
body.xff-result { background: var(--xff-bg-soft); min-height: 100vh; }

/* ========== 首页 ========== */
.xff-site-shell {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--xff-page-bg);
    position: relative;
}

.xff-main {
    padding-bottom: 90px;
}

body.xff-site .home_header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 56px;
    background: var(--xff-bg) !important;
    box-shadow: 0 2px 16px rgba(255,149,0,0.2) !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
}

body.xff-site .home_header::before { display: none !important; }

body.xff-site .home_header .left img {
    border-radius: 12px;
    height: 36px !important;
    width: auto !important;
}

body.xff-site .home_header .right input {
    background: rgba(255,255,255,0.3) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    border-radius: 50px !important;
}

body.xff-site .home_header .right input::placeholder { color: rgba(255,255,255,0.85) !important; }

body.xff-site .home_banner { padding-top: 8px !important; }

body.xff-site .home_nav li,
body.xff-site .home_recommended_list li,
body.xff-site .home_hot_list li {
    border-radius: var(--xff-radius-sm) !important;
    box-shadow: var(--xff-shadow) !important;
    background: #fff !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: xffFadeUp 0.5s ease both;
}

body.xff-site .home_recommended_list li:hover,
body.xff-site .home_hot_list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255,149,0,0.15) !important;
}

body.xff-site .home_title h4 { font-weight: 700; color: #222; }

body.xff-site footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--xff-max);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 20px 20px 0 0;
}

body.xff-site footer li.action p { color: var(--xff-primary) !important; font-weight: 600; }

/* ========== 个人中心 ========== */
body.xff-site .my_top {
    background: var(--xff-bg) !important;
    border-radius: 0 0 28px 28px;
}

body.xff-site .my_top_user img {
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
}

body.xff-site .my_top_vip {
    background: rgba(255,255,255,0.2) !important;
    border-radius: var(--xff-radius-sm) !important;
}

body.xff-site:not(.xff-wode) .my_top_vip a {
    background: #fff !important;
    color: var(--xff-primary) !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    display: inline-block;
    text-decoration: none;
    margin-top: 8px;
}

/* ========== 登录注册 ========== */
.xff-auth-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 60px;
    background: var(--xff-bg-soft);
}

.xff-auth-page { width: 100%; max-width: 420px; }

.xff-auth-card {
    width: 100%;
    background: #fff;
    border-radius: 28px;
    padding: 36px 28px 32px;
    box-shadow: 0 20px 60px rgba(255,149,0,0.15);
    animation: xffFadeUp 0.5s ease;
}

.xff-auth-card .logo { text-align: center; margin-bottom: 24px; }
.xff-auth-card .logo img { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; }
.xff-auth-card h2 { text-align: center; font-size: 24px; font-weight: 700; margin: 12px 0 0; }

.xff-form-group { margin-bottom: 18px; }
.xff-form-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; font-weight: 500; }
.xff-form-group input {
    width: 100%; height: 50px; border: 2px solid #f0f0f0; border-radius: 14px;
    padding: 0 16px; font-size: 15px; background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.xff-form-group input:focus {
    outline: none; border-color: var(--xff-primary);
    box-shadow: 0 0 0 4px rgba(255,149,0,0.12); background: #fff;
}

.xff-field-hint {
    margin: 6px 0 0; font-size: 12px; line-height: 1.5; min-height: 18px;
}
.xff-field-hint.is-error { color: #e74c3c; }
.xff-field-hint.is-ok { color: #27ae60; }

.xff-code-row { display: flex; gap: 10px; }
.xff-code-row input { flex: 1; }

.xff-btn-code {
    height: 50px; padding: 0 18px; border: none; border-radius: 14px;
    background: #FFF5EB; color: var(--xff-primary); font-size: 14px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}

.xff-btn-primary {
    width: 100%; height: 52px; border: none; border-radius: 26px;
    background: var(--xff-bg); color: #fff; font-size: 17px; font-weight: 700;
    cursor: pointer; margin-top: 10px;
    box-shadow: 0 8px 24px rgba(255,149,0,0.35);
    transition: transform 0.2s;
}

.xff-btn-primary:active { transform: scale(0.98); }

.xff-auth-links { text-align: center; margin-top: 24px; font-size: 14px; line-height: 2; }
.xff-auth-links a { color: var(--xff-primary); text-decoration: none; margin: 0 10px; font-weight: 500; }

body.xff-body .xff-footer-copy { color: var(--xff-muted); padding: 20px; text-align: center; font-size: 12px; }
body.xff-body .xff-footer-copy a { color: var(--xff-primary); }

/* ========== 联系我们页 ========== */
.xff-contact-page {
    min-height: 100vh;
    background: var(--xff-page-bg);
}

.xff-contact-header {
    background: var(--xff-bg);
    color: #fff;
    text-align: center;
    padding: 16px;
    position: relative;
    font-size: 17px;
    font-weight: 600;
}

.xff-contact-header .back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.xff-contact-card {
    margin: 24px 16px;
    background: #fff;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--xff-shadow);
    animation: xffFadeUp 0.5s ease;
}

.xff-contact-card img { width: 80px; border-radius: 20px; margin-bottom: 16px; }
.xff-contact-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.xff-contact-card p { color: #666; font-size: 14px; line-height: 2; }

.xff-contact-qq-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    background: var(--xff-bg);
    color: #fff !important;
    border-radius: 28px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(255,149,0,0.3);
    transition: transform 0.2s;
}

.xff-contact-qq-btn:active { transform: scale(0.97); }

/* ========== 支付页 ========== */
body.xff-pay #bao, body.xff-pay .pay_box {
    border-radius: var(--xff-radius) !important;
    box-shadow: var(--xff-shadow) !important;
    max-width: 520px;
    margin: 16px auto !important;
    background: #fff !important;
}

.xff-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; height: 54px; margin: 12px 0; border: none; border-radius: 16px;
    font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
    text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.xff-pay-btn img { width: 28px; height: 28px; border-radius: 6px; }
.xff-pay-btn.wx { background: linear-gradient(135deg, #09BB07, #07C160); }
.xff-pay-btn.alipay { background: linear-gradient(135deg, #1677FF, #4096FF); }
.xff-pay-btn.primary-unlock { background: var(--xff-bg); border-radius: 28px; height: 56px; }

/* ========== 游客提示 ========== */
.xff-guest-banner {
    margin: 12px 16px; padding: 16px 18px;
    background: #FFF5EB; border: 1px solid rgba(255,149,0,0.25);
    border-radius: var(--xff-radius-sm); animation: xffFadeUp 0.5s ease;
}

.xff-guest-banner p { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 12px; }
.xff-guest-banner-btns { display: flex; gap: 10px; }

.xff-btn-sm {
    flex: 1; text-align: center; padding: 10px 16px; border-radius: 22px;
    background: var(--xff-bg); color: #fff !important; font-size: 14px;
    font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px rgba(255,149,0,0.25);
}

.xff-btn-sm.outline {
    background: #fff; color: var(--xff-primary) !important;
    border: 2px solid var(--xff-primary); box-shadow: none;
}

.xff-guest-tip {
    margin: 16px; padding: 14px 16px; background: #FFF5EB;
    border: 1px solid rgba(255,149,0,0.3); border-radius: var(--xff-radius-sm);
    font-size: 13px; color: #92400e; line-height: 1.6;
}

.xff-guest-tip a { color: var(--xff-primary); font-weight: 600; text-decoration: none; margin: 0 4px; }
.xff-guest-tip .skip { color: #999; cursor: pointer; margin-left: 8px; }

.xff-guest-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; background: var(--xff-bg-soft);
}

.xff-guest-card {
    width: 100%; max-width: 400px; background: #fff; border-radius: 28px;
    padding: 40px 28px; text-align: center; box-shadow: var(--xff-shadow);
    animation: xffFadeUp 0.5s ease;
}

.xff-guest-card .icon {
    width: 72px; height: 72px; margin: 0 auto 20px; background: var(--xff-bg);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; box-shadow: 0 8px 24px rgba(255,149,0,0.25);
}

.xff-guest-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.xff-guest-card p { font-size: 14px; color: var(--xff-muted); line-height: 1.7; margin: 0 0 28px; }
.xff-guest-card .btns { display: flex; flex-direction: column; gap: 12px; }
.xff-guest-card .btn-back { display: block; margin-top: 16px; color: var(--xff-muted); font-size: 14px; text-decoration: none; }

.xff-footer-copy { text-align: center; padding: 16px; font-size: 12px; color: var(--xff-muted); }
.xff-footer-copy a { color: var(--xff-primary); text-decoration: none; }

/* ========== 测评介绍页 ========== */
body.xff-test {
    background: var(--xff-page-bg) !important;
    padding-bottom: 80px;
}

body.xff-test .vip_footer {
    position: fixed; bottom: 0; left: 0; right: 0; transform: none;
    width: 100%; max-width: 100%;
    background: rgba(255,255,255,0.98); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 99;
    border-radius: 20px 20px 0 0;
}

body.xff-test .vip_footer .right button,
body.xff-test .tcbox .jx {
    background: var(--xff-bg) !important;
    border-radius: 24px !important; font-weight: 600 !important; color: #fff !important;
    border: none !important; box-shadow: 0 6px 20px rgba(255,149,0,0.3) !important;
}

@keyframes xffFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.xff-toast {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(26,32,44,0.92); color: #fff;
    padding: 16px 24px; border-radius: 16px; font-size: 15px;
    z-index: 99999; opacity: 0; transition: opacity 0.25s, transform 0.25s;
    max-width: 85%; text-align: center; line-height: 1.5;
}

.xff-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 768px) {
    .xff-auth-card { padding: 28px 20px; }
}
