@charset "UTF-8";

/* 核心配色 全保留 无冲突 */
:root {
    --brand-main: #168CFF;
    --text-main: #1A202C;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --accent: #FF4D5A;

    --iq-color: #0F52BA !important;
    --mbti-color: #6246EA !important;
    --bigfive-color: #0A915D !important;
    --disc-color: #FF7A45 !important;
    --enneagram-color: #D4A72C !important;
    --eq-color: #00B8D9 !important;
    --future-color: #F5F7FF !important;
    --future-text: #168CFF !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "思源黑体", "微软雅黑", "Helvetica Neue", sans-serif;
}

a { text-decoration: none; color: inherit; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}

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

.section-title {
    font-size: clamp(22px, 2.5vw, 28px);
    color: var(--brand-main);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
}

.section-subtitle {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--text-main);
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 40px);
    opacity: 0.8;
    line-height: 1.6;
    padding: 0 10px;
}

/* 顶部导航 */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(22,140,255,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 70px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: bold;
    color: var(--brand-main);
}

.logo i { margin-right: 8px; font-size: 20px; }

.logo span {
    font-size: clamp(14px, 1.2vw, 18px);
    opacity: 0.9;
    margin-left: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover { color: var(--brand-main); }

.nav-member-btn {
    background: var(--brand-main);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px !important;
}

.nav-member-btn:hover {
    background: #0077EE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22,140,255,0.3);
}

/* Language Switcher */
.lang-switch {
    margin-left: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-main);
}

.lang-switch-btn {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-weight: 500;
}

.lang-switch-btn:hover, .lang-switch-btn.active {
    opacity: 1;
    color: var(--brand-main);
    font-weight: bold;
}

.lang-divider {
    opacity: 0.4;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* 首屏 Hero */
.hero {
    margin-top: 70px;
    padding: clamp(40px, 6vw, 80px) 0;
    background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 0.5em;
    color: var(--text-main);
    margin-top: 12px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.hero-slogan {
    font-size: clamp(15px, 1.2vw, 18px);
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.hero-slogan span {
    color: var(--brand-main);
    font-weight: bold;
}

.hero-btns {
    margin-top: 32px;
    display: flex;
    gap: 16px;
}

.hero-main-btn {
    background: var(--brand-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22,140,255,0.3);
}

.hero-main-btn:hover {
    background: #0077EE;
    transform: translateY(-2px);
}

.hero-sub-btn {
    background: #fff;
    color: var(--brand-main);
    border: 1px solid var(--brand-main);
}

.hero-sub-btn:hover {
    background: #F0F7FF;
}

.hero-right {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.test-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.test-card:hover { transform: translateY(-5px); }
.test-card h3 { font-size: 16px; color: var(--text-main); }

.test-card.iq { border-top: 4px solid var(--iq-color); }
.test-card.mbti { border-top: 4px solid var(--mbti-color); }
.test-card.bigfive { border-top: 4px solid var(--bigfive-color); }
.test-card.disc { border-top: 4px solid var(--disc-color); }
.test-card.enneagram { border-top: 4px solid var(--enneagram-color); }
.test-card.eq { border-top: 4px solid var(--eq-color); }

/* 测评库 */
.tests {
    padding: 60px 0;
    background: var(--bg-light);
}

.tests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.test-block {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.test-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(22,140,255,0.12);
}

.test-block h3 {
    font-size: 22px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.test-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
}

.test-block.mbti h3::before { background: var(--mbti-color); }
.test-block.mbti h3 { color: var(--mbti-color); }

.test-block.iq h3::before { background: var(--iq-color); }
.test-block.iq h3 { color: var(--iq-color); }

.test-block.bigfive h3::before { background: var(--bigfive-color); }
.test-block.bigfive h3 { color: var(--bigfive-color); }

.test-block.disc h3::before { background: var(--disc-color); }
.test-block.disc h3 { color: var(--disc-color); }

.test-block.enneagram h3::before { background: var(--enneagram-color); }
.test-block.enneagram h3 { color: var(--enneagram-color); }

.test-block.eq h3::before { background: var(--eq-color); }
.test-block.eq h3 { color: var(--eq-color); }

.test-block.future { background: var(--future-color); border: 1px dashed var(--future-text); }
.test-block.future h3 { color: var(--future-text); }
.test-block.future h3::before { background: var(--future-text); }

.test-tag {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.test-tag span {
    font-size: 12px;
    padding: 4px 8px;
    background: #F0F2F5;
    color: #666;
    border-radius: 4px;
}

.test-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.test-scene {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.test-btn {
    width: 100%;
    background: #fff;
    color: var(--brand-main);
    border: 1px solid var(--brand-main);
    padding: 10px;
    font-size: 15px;
}

.test-block:hover .test-btn {
    background: var(--brand-main);
    color: #fff;
}

/* 核心优势 */
.advantages { padding: 60px 0; background: #fff; }

.adv-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.adv-item {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    padding: 20px;
}

.adv-icon {
    width: 60px;
    height: 60px;
    background: #F0F7FF;
    color: var(--brand-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.adv-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.adv-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 会员中心 */
.members { padding: 60px 0; background: linear-gradient(180deg, #F8FAFC 0%, #EBF4FF 100%); }

.member-tip {
    text-align: center;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 16px;
}

.member-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.member-card {
    background: #fff;
    width: 320px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    transition: transform 0.3s;
}

.member-card:hover { transform: translateY(-10px); }

.member-card.high {
    border: 2px solid #FFD700;
    background: #FFFEFA;
}

.member-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.member-tag.basic { background: #A0AEC0; }
.member-tag.vip { background: linear-gradient(90deg, #FFD700, #FFA500); color: #8B4513; }

.member-card h3 { font-size: 24px; margin-bottom: 10px; }

.member-price {
    font-size: 32px;
    color: var(--brand-main);
    font-weight: 800;
    margin-bottom: 24px;
}

.member-price span { font-size: 14px; color: #666; font-weight: normal; }
.member-card.high .member-price { color: #D69E2E; }

.member-list {
    text-align: left;
    margin-bottom: 30px;
    list-style: none;
}

.member-list li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.member-list li i {
    color: var(--brand-main);
    margin-right: 8px;
    margin-top: 3px;
}

.member-card.high .member-list li i { color: #D69E2E; }

.member-btn {
    width: 100%;
    background: var(--brand-main);
    color: #fff;
    border-radius: 30px;
}

.member-card.high .member-btn {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #8B4513;
}

.member-upgrade {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.member-upgrade h4 { font-size: 15px; color: var(--text-main); margin-bottom: 12px; }

.upgrade-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 24px;
    font-size: 14px;
}

.upgrade-btn:hover { background: var(--accent); color: #fff; }

/* 价值闭环 */
.value { padding: 60px 0; background: #fff; }

.value-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.value-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.value-icon {
    font-size: 36px;
    color: var(--brand-main);
    margin-bottom: 16px;
}

.value-item h3 { font-size: 18px; margin-bottom: 10px; }
.value-item p { font-size: 14px; color: #666; line-height: 1.6; }

.value-btn { text-align: center; }
.value-btn .btn {
    background: var(--text-main);
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
}

.value-btn .btn:hover { background: #000; }

/* 页脚 */
.footer {
    background: #1A202C;
    color: #CBD5E0;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand { max-width: 300px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { opacity: 0.6; line-height: 1.6; margin-bottom: 8px; font-size: 13px; }

.footer h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; opacity: 0.7; cursor: pointer; transition: opacity 0.3s; }
.footer ul li:hover { opacity: 1; color: #fff; }

.qrcode { display: flex; gap: 20px; }
.qrcode-item { text-align: center; opacity: 0.8; cursor: pointer; }
.qrcode-item:hover { opacity: 1; }
.qrcode-item i { font-size: 24px; margin-bottom: 8px; display: block; }
.qrcode-item p { font-size: 12px; }

.footer-copyright { text-align: center; opacity: 0.4; font-size: 12px; }

/* 悬浮按钮 */
.float-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--brand-main);
    cursor: pointer;
    z-index: 990;
    transition: all 0.3s;
}

.float-btn:hover { transform: scale(1.1); background: var(--brand-main); color: #fff; }

.float-customer { bottom: 90px; }
.float-top { bottom: 30px; opacity: 0; pointer-events: none; }
.float-top.show { opacity: 1; pointer-events: auto; }

.float-member-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-main);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    z-index: 999;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header { height: 60px; }
    .hero { margin-top: 60px; padding: 40px 0; }
    .section-title { padding: 0 10px; }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        display: none; /* 默认隐藏，通过JS控制 */
    }

    .nav.active { display: flex; }

    /* Language Switcher Mobile */
    .lang-switch {
        margin: 10px 0 0 0;
        justify-content: center;
    }

    .hamburger { display: block; }

    .hero .container { flex-direction: column; gap: 30px; }
    .hero-right { width: 100%; grid-template-columns: repeat(2, 1fr); }

    .test-block { margin-bottom: 20px; }
    
    .member-card { width: 100%; }
    
    .float-member-mobile { display: block; }
    .float-btn { right: 10px; width: 40px; height: 40px; font-size: 20px; }
    .float-customer { bottom: 80px; }
    .float-top { bottom: 130px; } /* 避开底部通栏 */
    
    .footer { padding-bottom: 60px; } /* 避开底部通栏 */
    .footer-container { flex-direction: column; gap: 30px; }
}
