/* ==========================================
   MBTI测试系统 - 全局样式
   冷调专业版本 · slate 高级灰
   ========================================== */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #334155;
    --primary-light: #64748B;
    --primary-dark: #1E293B;
    --accent: #3B82F6;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 6px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 页面切换 ---------- */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   启动页 — 干净深色背景
   ========================================== */
#page-home {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
}

.home-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: float 10s ease-in-out infinite;
}

.orb1 {
    width: 400px; height: 400px;
    background: rgba(59,130,246,0.2);
    top: -150px; right: -100px;
    animation-delay: 0s;
}

.orb2 {
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.06);
    bottom: 10%; left: -120px;
    animation-delay: 3s;
}

.orb3 {
    width: 350px; height: 350px;
    background: rgba(59,130,246,0.1);
    bottom: -120px; right: -80px;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.home-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.app-title {
    font-size: 30px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.app-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.stats-row {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
}

.feature-list {
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 400;
}

.feature-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.feature-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    opacity: 0.7;
}

/* ===== MBTI 四维度理论预览 ===== */
.theory-section {
    margin-bottom: 28px;
    text-align: center;
}

.theory-title {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.theory-subtitle {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    margin-bottom: 16px;
}

.dim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dim-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    transition: all 0.25s ease;
}

.dim-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.dim-card-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
    opacity: 0.6;
}

.dim-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 3px;
}

.dim-code {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

.dim-name {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

.dim-card-body {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

.dim-arrow {
    opacity: 0.3;
    margin: 0 2px;
}

/* ===== /四维度理论 ===== */

.btn-start {
    width: 100%;
    padding: 16px 32px;
    background: white;
    color: #0f172a;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.btn-start:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: var(--transition);
    opacity: 0.6;
}

.btn-start:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.disclaimer {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}

/* ==========================================
   测试页
   ========================================== */
#page-test {
    background: var(--bg);
}

.test-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.question-counter span {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.dim-tag {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.question-area {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
}

.question-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-dim-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.question-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.7;
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg);
}

.option-btn.selected {
    border-color: var(--accent);
    background: rgba(59,130,246,0.05);
    color: var(--text);
    font-weight: 600;
}

.option-btn.selected::before {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.opt-emoji {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.opt-text {
    font-size: 14px;
    vertical-align: middle;
}

.option-btn.selected .opt-text {
    color: var(--text);
}

.test-footer {
    background: white;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-prev {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev:not(:disabled):hover {
    border-color: var(--text);
    color: var(--text);
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.question-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 200px;
    justify-content: flex-end;
}

.q-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.q-dot.answered {
    background: var(--primary-light);
}

.q-dot.current {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* ==========================================
   加载页
   ========================================== */
#page-loading {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    position: relative;
    margin: 0 auto 32px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255,255,255,0.5);
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    animation-delay: 0.15s;
    border-top-color: rgba(255,255,255,0.25);
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    animation-delay: 0.3s;
    border-top-color: rgba(255,255,255,0.15);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.loading-sub {
    font-size: 13px;
    opacity: 0.4;
}

/* ==========================================
   结果页
   ========================================== */
#page-result {
    background: var(--bg);
}

.result-header {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.result-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.result-hero {
    position: relative;
    z-index: 1;
    padding: 36px 24px 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.hero-emoji {
    font-size: 56px;
    margin-bottom: 12px;
    display: block;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hero-type {
    font-size: 48px;
    font-weight: 800;
    color: white;
    letter-spacing: 6px;
    margin-bottom: 6px;
    text-shadow: none;
}

.hero-name {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.hero-alias {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.result-body {
    background: var(--bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -24px;
    position: relative;
    z-index: 2;
    padding: 8px 16px 80px;
}

.result-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-top: 16px;
}

/* 维度条 */
.dimension-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dim-bar-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow);
}

.dim-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dim-bar-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.dim-bar-values {
    font-size: 11px;
    color: var(--text-secondary);
}

.dim-bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.dim-bar-fill-left {
    height: 100%;
    background: var(--accent);
    transition: width 1s ease;
    border-radius: 3px 0 0 3px;
}

.dim-bar-fill-right {
    height: 100%;
    background: var(--primary-light);
    transition: width 1s ease;
    border-radius: 0 3px 3px 0;
}

.dim-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
}

/* 性格解读卡片 */
.summary-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 18px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 14px;
    color: var(--text);
    border-left: 3px solid var(--accent);
}

/* 优劣势 */
.strength-weakness {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sw-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow);
}

.sw-card h3 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sw-strength h3 { color: #059669; }
.sw-weakness h3 { color: #D97706; }

.sw-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sw-card ul li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 10px;
}

.sw-card ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: bold;
}

/* 职业标签 */
.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.career-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.career-tag:hover {
    border-color: var(--primary);
    color: var(--text);
    background: white;
}

/* 人际关系 */
.relationship-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow);
}

.rel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text);
}

.rel-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.rel-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.rel-badge.star { background: #FEF3C7; color: #92400E; }
.rel-badge.good { background: #D1FAE5; color: #065F46; }
.rel-badge.warn { background: #FEE2E2; color: #991B1B; }

/* 成长建议 */
.growth-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow);
}

.growth-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.growth-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.growth-num {
    width: 20px;
    height: 20px;
    background: var(--bg);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 分享区域 */
.share-section {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

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

.share-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}

.share-card-item {
    width: 130px;
    height: 190px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.share-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.share-card-item canvas {
    width: 100%;
    height: 100%;
}

.btn-share-main {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #07C160, #06AD56);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}

.btn-share-main:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-share-secondary {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

/* 重试 */
.retry-section {
    text-align: center;
    padding: 16px 0;
}

.btn-retry {
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ==========================================
   分享卡片弹窗
   ========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.share-card-modal {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    max-width: 340px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ==========================================
   Toast提示
   ========================================== */
.toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: var(--transition);
    z-index: 200;
    white-space: nowrap;
}

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

/* ==========================================
   5级量表样式
   ========================================== */
.scale-container {
    background: white;
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    box-shadow: var(--shadow);
}

.scale-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
}

.scale-label-left,
.scale-label-right {
    font-size: 11px;
    font-weight: 600;
}

.scale-label-left { color: #EF4444; }
.scale-label-right { color: #22C55E; }

.scale-buttons {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
}

.scale-btn {
    flex: 1;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    gap: 4px;
    min-height: 64px;
}

.scale-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg);
    transform: scale(1.03);
}

.scale-btn:active {
    transform: scale(0.97);
}

.scale-btn.selected {
    border-color: var(--accent);
    background: rgba(59,130,246,0.06);
    transform: scale(1.03);
    box-shadow: 0 2px 10px rgba(59,130,246,0.15);
}

.scale-btn-icon {
    font-size: 20px;
    line-height: 1;
}

.scale-btn.selected .scale-btn-icon {
    transform: scale(1.15);
}

.scale-btn-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.scale-btn.selected .scale-btn-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.scale-selected-label {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: none;
    animation: fadeInUp 0.2s ease;
    background: rgba(59,130,246,0.06);
    padding: 6px 14px;
    border-radius: 6px;
}

/* 进度段样式 */
.progress-segment {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: white;
    transition: var(--transition);
}

.progress-segment.active {
    border-width: 1.5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.progress-segment.completed {
    background: var(--accent);
    border-color: var(--accent);
}

.segment-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 14px;
    text-align: center;
}

.progress-segment.completed .segment-label {
    color: white;
}

.segment-dots {
    display: flex;
    gap: 1.5px;
    flex-wrap: nowrap;
}

.mini-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.mini-dot.answered {
    background: var(--primary-light);
}

.mini-dot.current {
    background: var(--primary);
    transform: scale(1.5);
    box-shadow: 0 0 3px var(--primary);
}

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 375px) {
    .hero-type { font-size: 38px; letter-spacing: 4px; }
    .strength-weakness { grid-template-columns: 1fr; }
    .share-cards { flex-direction: column; align-items: center; }
    .share-card-item { width: 160px; }
}

@media (min-width: 768px) {
    .question-area {
        max-width: 600px;
        margin: 0 auto;
    }
    .result-body {
        max-width: 600px;
        margin: -24px auto 0;
        padding: 8px 24px 80px;
    }
}

/* ===== 关于我们页面 ===== */
#page-about { display: none; padding: 0; background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%); min-height: 100vh; }
#page-about.active { display: block; }

.about-header {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.about-header h2 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
  padding-right: 60px;
}
.btn-back {
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.btn-back:hover { background: rgba(255,255,255,0.12); color: white; }

.about-content {
  padding: 20px 16px 60px;
  max-width: 640px;
  margin: 0 auto;
}
.about-section {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.about-section h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.about-section > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list .dot {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 4px;
}

.crowd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.crowd-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}
.crowd-item strong { color: var(--text); font-size: 13px; }

.pricing-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.price-item {
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
}
.price-free {
  background: var(--bg);
  border: 1.5px solid var(--border);
}
.price-pro {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1.5px solid transparent;
  color: #fff;
}
.price-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.7;
}
.price-free .price-name { color: var(--text-secondary); }
.price-amount {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.price-free .price-amount { color: var(--text); }
.price-desc {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.75;
}
.price-unit { font-size: 12px; font-weight: 400; }

.about-contact p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* 关于我们入口链接 */
.about-entry {
  text-align: center;
  padding: 12px;
}
.about-link {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-decoration: none;
  padding-bottom: 1px;
}
.about-link:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 400px) {
  .crowd-grid, .pricing-table { grid-template-columns: 1fr; }
}

/* ===== 付费解锁区域 ===== */
.paywall-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.paywall-header { margin-bottom: 14px; }
.paywall-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.paywall-section .section-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}
.paywall-desc {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  line-height: 1.6;
}
.paywall-preview { margin: 12px 0; }
.preview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
  display: inline-block;
  min-width: 200px;
}
.preview-icon { font-size: 24px; margin-bottom: 6px; text-align: center; }
.preview-item {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 3px 0;
  padding-left: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ctext y='14' font-size='14'%3E✅%3C/text%3E%3C/svg%3E") no-repeat left center;
  background-size: 12px;
}
.paywall-price {
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.price-tag {
  font-size: 32px;
  font-weight: 800;
  color: white;
}
.price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.btn-unlock-report {
  background: white;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.3s;
  margin-top: 8px;
}
.btn-unlock-report:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.btn-unlock-report:active { transform: translateY(0); }

/* 完整报告iframe */
.report-section { margin-top: 16px; }
.report-iframe-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
}
#report-iframe {
  display: block;
  min-height: 600px;
  background: #fff;
}

/* ===== 支付弹窗 ===== */
.payment-modal {
  max-width: 380px !important;
  width: 90% !important;
  max-height: 85vh;
  overflow-y: auto;
  background: #1e293b;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.payment-header { margin-bottom: 16px; }
.payment-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 8px;
}
.payment-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0;
}
.payment-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}
.payment-methods {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 14px 0;
}
.payment-method {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
}
.method-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.method-icon { margin-right: 4px; }
.qr-container {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-placeholder {
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #999;
}
.qr-placeholder .qr-icon { font-size: 28px; margin-bottom: 4px; }
/* 支付二维码加载动画 */
.qr-loading {
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  gap: 8px;
}
.spinner-sm {
  width: 24px;
  height: 24px;
  border: 2.5px solid #f0f0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.qr-tip {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
}
.payment-status {
  margin: 10px 0;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.payment-status.success {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
}
.payment-status.loading {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-confirm-paid {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: all 0.3s;
}
.btn-confirm-paid:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.payment-note {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
}
@media (max-width: 360px) {
  .payment-methods { flex-direction: column; }
}
