* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #4e6ef2;
    --primary-dark: #3b57d6;
    --primary-bg: #eef1ff;
    --bg: #f5f6f8;
    --card: #ffffff;
    --border: #e9ebf0;
    --text: #1f2937;
    --text-light: #8a93a3;
    --radius: 14px;
}
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}
.hidden {
    display: none !important;
}

/* 头部 */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.site-header nav a {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 16px;
}
.site-header nav a:hover {
    color: var(--primary);
}

/* 首页 Hero */
.hero {
    text-align: center;
    padding: 28px 8px 20px;
}
.hero h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
}

/* 分类 */
.cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 24px;
}
.cat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 14px;
    color: var(--text);
}
.cat-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.cat-item .cat-icon {
    font-size: 15px;
}

/* 区块 */
.section {
    margin-bottom: 28px;
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 测试卡片列表 */
.test-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.test-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color .15s;
}
.test-item:hover {
    border-color: var(--primary);
}
.test-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.test-info {
    flex: 1;
    min-width: 0;
}
.test-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.test-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.test-meta-mini {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}
.test-arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s;
}
.test-item:hover .test-arrow {
    background: var(--primary);
    color: #fff;
}

/* 测试详情 */
.test-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    margin: 16px 0;
    text-align: center;
}
.test-detail .test-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    font-size: 42px;
    margin: 0 auto 14px;
}
.test-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}
.test-intro {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}
.test-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 22px;
}
.test-meta b {
    color: var(--primary);
    font-weight: 700;
}

/* 按钮 */
.btn-primary {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 13px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-primary:active {
    background: var(--primary-dark);
}
.btn-ghost {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--card);
    cursor: pointer;
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 答题 */
.quiz-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    margin: 16px 0;
}
.progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.progress {
    flex: 1;
    height: 6px;
    background: #eef0f4;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width .3s;
}
.progress-count {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}
.q-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}
.q-options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s;
    background: var(--card);
}
.option:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.option:active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* 结果 */
.result-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 22px;
    margin: 16px 0;
    text-align: center;
}
.r-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: var(--primary-bg);
    font-size: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.r-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.r-tagline {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.r-section {
    text-align: left;
    margin-top: 18px;
}
.r-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.r-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--primary);
}
.r-content {
    font-size: 15px;
    line-height: 1.9;
    color: #3a4353;
    text-align: left;
    white-space: pre-line;
}
.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* 分页 */
.pager {
    margin-top: 16px;
    text-align: center;
}
.pager ul {
    list-style: none;
    display: inline-flex;
    gap: 6px;
}
.pager li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.pager li a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text);
}
.pager li.active {
    background: var(--primary);
    border-color: var(--primary);
}
.pager li.active a {
    color: #fff;
}

/* 维度占比结果 (type=3) */
.r3-head { text-align: center; margin-bottom: 16px; }
.r3-head .r-icon { margin: 0 auto 10px; }
.r3-title { font-size: 20px; font-weight: 800; }
.r3-main { text-align: center; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 20px; background: var(--primary-bg); }
.r3-main-name { font-size: 22px; font-weight: 800; color: var(--primary); }
.r3-main-pct { font-size: 16px; color: var(--primary); font-weight: 700; margin: 2px 0 8px; }
.r3-main-tag { font-size: 14px; color: var(--text); }
.r3-main-code { font-size: 12px; color: var(--text-light); margin-top: 6px; letter-spacing: 1px; }
.r3-top { margin-bottom: 20px; }
.r3-persona { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.r3-persona-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.r3-persona-head b { font-size: 15px; }
.r3-persona-pct { color: var(--primary); font-weight: 700; }
.r3-persona-role { font-size: 12px; color: var(--text-light); margin-bottom: 6px; letter-spacing: 1px; }
.r3-persona-tag { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.r3-persona-desc { font-size: 14px; line-height: 1.7; color: #3a4353; white-space: pre-line; }
.r3-dims { margin-bottom: 20px; }
.r3-dim { margin-bottom: 10px; }
.r3-dim-label { display: flex; align-items: baseline; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.r3-dim-label span:first-child { font-weight: 600; }
.r3-dim-code { color: var(--text-light); font-size: 11px; letter-spacing: 1px; flex: 1; }
.r3-dim-bar { height: 8px; background: #eef0f4; border-radius: 4px; overflow: hidden; }
.r3-dim-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.r3-summary { margin-bottom: 20px; }
.r3-summary-text { font-size: 14px; line-height: 1.9; color: #3a4353; white-space: pre-line; }
.r3-pair { margin-bottom: 16px; }
.r3-pair-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.r3-pair-row b { color: var(--primary); }
.r3-pair-pct { margin-left: auto; color: var(--text-light); }
.r3-disclaimer { margin-top: 16px; font-size: 11px; color: var(--text-light); text-align: center; line-height: 1.6; }

/* 底部 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}
