/* static/css/style.css */
/* AI交友匹配 — 暗黑星空主题 v2 */

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

html {
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0c29;
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.75);
}

/* iOS Safari 不支持 background-attachment: fixed + gradient，
   用固定伪元素代替，兼容所有浏览器 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ============================================================
   落地页 — 新版
   ============================================================ */

.landing-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 8px;
}

.brand-icon {
    font-size: 24px;
}

.brand-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.landing-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
}

.hero-highlight {
    background: linear-gradient(135deg, #a78bfa, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* 特色卖点 */
.landing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s;
}

.feature-item:active {
    border-color: rgba(167, 139, 250, 0.3);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
}

.feature-info {
    flex: 1;
}

.feature-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.feature-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* 维度展示 */
.landing-dimensions {
    text-align: center;
    margin: 20px 0;
}

.dim-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.dim-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dim-tag {
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 8px;
    padding: 4px 12px;
}

/* 社交证明 */
.landing-social-proof {
    margin: 24px 0;
}

.proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px 0;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 2px;
}

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

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

/* CTA */
.landing-cta {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 48px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-cta {
    padding: 16px 56px;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    position: relative;
}

.btn-arrow {
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

.cta-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 12px;
}

/* 旧 hero 保留兼容 */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #fff;
}

.hero p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   答题页
   ============================================================ */

.quiz-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 16px;
}

.quiz-header {
    text-align: center;
    color: white;
    padding: 20px 0;
}

.quiz-header h2 {
    font-size: 20px;
    color: #c4b5fd;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease, background 0.5s ease;
}

.progress-fill.finishing {
    background: linear-gradient(90deg, #a78bfa, #f59e0b, #eab308);
}

/* 里程碑鼓励提示 */
.milestone-toast {
    text-align: center;
    font-size: 14px;
    color: #c4b5fd;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 全局 Toast 提示 */
.global-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.global-toast.error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
}
.global-toast.success {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
}
.global-toast.info {
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
}

.milestone-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.question-number {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(167, 139, 250, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

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

.option-btn.selected {
    background: rgba(167, 139, 250, 0.2);
    border-color: #a78bfa;
    color: #c4b5fd;
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.btn-next {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
}

.btn-next:disabled {
    opacity: 0.5;
}

/* 基本信息表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group:first-child {
    margin-top: 4px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
}

.form-group select {
    padding-right: 32px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a78bfa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-group input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.form-group select option {
    background: #24243e;
    color: white;
}

/* ============================================================
   报告页 — 头部（升级版）
   ============================================================ */

.report-header {
    text-align: center;
    color: white;
    padding: 30px 0 16px;
}

.report-label {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 1px;
}

.report-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

.report-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.report-tag {
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 16px;
}

/* ============================================================
   报告页 — Tab 导航
   ============================================================ */

.report-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

.report-tab {
    flex: 1;
    padding: 10px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.report-tab.active {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.report-tab:active {
    transform: scale(0.96);
}

/* Tab 面板 */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}

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

/* ============================================================
   报告页 — 卡片（升级版）
   ============================================================ */

.report-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

/* 报告文字板块 — 富文本排版 */
.card-text {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
}

.card-text h2 {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 18px 0 8px;
}

.card-text h2:first-child {
    margin-top: 0;
}

.card-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #c4b5fd;
    margin: 14px 0 6px;
}

.card-text h3:first-child {
    margin-top: 0;
}

.card-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.card-text p {
    margin-bottom: 10px;
}

.card-text p:last-child {
    margin-bottom: 0;
}

.card-text ul, .card-text ol {
    margin: 8px 0;
    padding-left: 20px;
}

.card-text li {
    margin-bottom: 4px;
}

/* ============================================================
   MBTI 进度条
   ============================================================ */

.mbti-dimension {
    margin-bottom: 16px;
}

.mbti-dimension:last-child {
    margin-bottom: 0;
}

.mbti-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.mbti-strong {
    color: #a78bfa;
    font-weight: 600;
}

.mbti-weak {
    color: rgba(255, 255, 255, 0.4);
}

.mbti-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.mbti-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    border-radius: 8px;
    transition: width 0.6s ease;
}

/* ============================================================
   MBTI 类型视觉标识
   ============================================================ */

.mbti-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.mbti-type-icon {
    font-size: 36px;
    line-height: 1;
}

.mbti-type-info {
    text-align: left;
}

.mbti-type-code {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2px;
}

.mbti-type-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* MBTI 类型颜色 — 按组分色 */
.mbti-analyst { color: #a78bfa; } /* NT: 紫色系 */
.mbti-diplomat { color: #34d399; } /* NF: 绿色系 */
.mbti-sentinel { color: #60a5fa; } /* SJ: 蓝色系 */
.mbti-explorer { color: #fbbf24; } /* SP: 金色系 */

/* SVG 雷达图 */
.radar-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* ============================================================
   名人卡片
   ============================================================ */

.celebrity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.celebrity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.celebrity-emoji {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.celebrity-info {
    flex: 1;
}

.celebrity-name {
    font-size: 15px;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 2px;
}

.celebrity-field {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.celebrity-reason {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* ============================================================
   底部分享
   ============================================================ */

.share-section {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-share {
    display: inline-block;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

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

.btn-match {
    display: inline-block;
    background: linear-gradient(135deg, #e879f9, #a78bfa);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.15s;
}
.btn-match:active {
    transform: scale(0.96);
}

.share-hint {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    font-size: 13px;
}

/* ============================================================
   骨架屏
   ============================================================ */

.skeleton-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    margin-bottom: 10px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

.skeleton-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin: 12px 0;
    animation: shimmer 1.5s infinite;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ============================================================
   Loading
   ============================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 0 30px;
}

.loading-hourglass {
    font-size: 48px;
    margin-bottom: 20px;
    animation: hourglassFlip 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes hourglassFlip {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.loading-main-text {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.loading-sub-text {
    font-size: 13px;
    color: rgba(167, 139, 250, 0.7);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.loading-tips {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    min-height: 20px;
    transition: opacity 0.4s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(167, 139, 250, 0.3);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* ============================================================
   职业方向推荐
   ============================================================ */

.career-directions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-direction-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.career-direction-emoji {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.career-direction-info {
    flex: 1;
}

.career-direction-name {
    font-size: 15px;
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 4px;
}

.career-direction-reason {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

/* ============================================================
   报告间跳转链接
   ============================================================ */

.btn-link {
    display: inline-block;
    margin-top: 16px;
    color: #c4b5fd;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(196, 181, 253, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.btn-link:active {
    color: #a78bfa;
}

/* ============================================================
   海报弹窗
   ============================================================ */

.poster-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.poster-image-wrap {
    max-width: 375px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.poster-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.poster-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-shrink: 0;
}

.poster-btn {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.poster-btn-download {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
}

.poster-btn-close {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.poster-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 10px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================
   付费题 — 迫选题 A/B 对比卡片
   ============================================================ */

.choice-cards {
    display: flex;
    gap: 12px;
}

.choice-card {
    flex: 1;
    position: relative;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

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

.choice-card-label {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.choice-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.choice-card.selected {
    background: rgba(167, 139, 250, 0.12);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.choice-card.selected .choice-card-label {
    background: #a78bfa;
    color: #fff;
}

.choice-card.selected .choice-card-text {
    color: #c4b5fd;
    font-weight: 500;
}

/* ============================================================
   付费题 — 量表题 水平按钮
   ============================================================ */

.scale-bar {
    display: flex;
    gap: 6px;
}

.scale-btn {
    flex: 1;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.scale-btn-value {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
}

.scale-btn-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

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

.scale-btn.selected {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
}

.scale-btn.selected .scale-btn-value {
    color: #a78bfa;
}

.scale-btn.selected .scale-btn-text {
    color: #c4b5fd;
}

/* 量表两端标签 */
.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   付费题 — 偏好题 胶囊标签
   ============================================================ */

.pref-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pref-capsule {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 42px;
}

.pref-capsule::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.pref-capsule:active {
    transform: scale(0.98);
}

.pref-capsule.selected {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
    font-weight: 500;
}

.pref-capsule.selected::before {
    background: #a78bfa;
    border-color: #a78bfa;
    box-shadow: inset 0 0 0 3px rgba(15, 12, 41, 0.6);
}

/* ============================================================
   付费题 — 信息采集 表单
   ============================================================ */

/* 时辰选择器 — 网格布局 */
.shichen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.shichen-btn {
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

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

.shichen-btn.selected {
    background: rgba(167, 139, 250, 0.12);
    border-color: #a78bfa;
    color: #c4b5fd;
    font-weight: 600;
}

/* 生肖选择器 — 网格布局 */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.zodiac-btn {
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.65);
}

.zodiac-btn .zodiac-emoji {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

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

.zodiac-btn.selected {
    background: rgba(167, 139, 250, 0.12);
    border-color: #a78bfa;
    color: #c4b5fd;
    font-weight: 600;
}

/* 省市选择器 */
.province-city-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s;
}

.province-city-input:focus {
    outline: none;
    border-color: #a78bfa;
}

.province-city-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   付费题 — 模块分隔提示
   ============================================================ */

.module-intro {
    text-align: center;
    padding: 20px 16px;
    margin-bottom: 8px;
}

.module-intro-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.module-intro-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.module-intro-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

/* ============================================================
   付费题 — 题型指示标签
   ============================================================ */

.q-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.q-type-badge.choice {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.q-type-badge.scale {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.q-type-badge.preference {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.q-type-badge.info {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
}

/* ===== 八字命理展示 ===== */

.bazi-pillars-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.bazi-pillar {
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 64px;
}

.bazi-pillar-unknown {
    opacity: 0.4;
}

.bazi-pillar-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.bazi-gan {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.bazi-zhi {
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.bazi-wuxing-tag {
    font-size: 10px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.4);
}

/* 五行颜色主题 */
.wuxing-金 { border-color: rgba(251, 191, 36, 0.4); }
.wuxing-金 .bazi-gan, .wuxing-金 .bazi-zhi { color: #fbbf24; }

.wuxing-木 { border-color: rgba(52, 211, 153, 0.4); }
.wuxing-木 .bazi-gan, .wuxing-木 .bazi-zhi { color: #34d399; }

.wuxing-水 { border-color: rgba(96, 165, 250, 0.4); }
.wuxing-水 .bazi-gan, .wuxing-水 .bazi-zhi { color: #60a5fa; }

.wuxing-火 { border-color: rgba(248, 113, 113, 0.4); }
.wuxing-火 .bazi-gan, .wuxing-火 .bazi-zhi { color: #f87171; }

.wuxing-土 { border-color: rgba(167, 139, 250, 0.4); }
.wuxing-土 .bazi-gan, .wuxing-土 .bazi-zhi { color: #a78bfa; }

.bazi-summary {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 12px;
    letter-spacing: 0.5px;
}

.bazi-wuxing-bar {
    display: flex;
    height: 24px;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.bazi-wuxing-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    min-width: 28px;
}

.bazi-missing {
    text-align: center;
    font-size: 12px;
    color: rgba(248, 113, 113, 0.8);
    margin-top: 4px;
}

/* ============================================================
   付款弹窗
   ============================================================ */

.pay-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.pay-modal {
    background: linear-gradient(160deg, #1e1b4b, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: paySlideUp 0.3s ease;
}

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

.pay-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.pay-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.pay-price {
    font-size: 36px;
    font-weight: 800;
    color: #facc15;
    margin-bottom: 4px;
}

.pay-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}

.pay-tabs {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.pay-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
}

.pay-tab.active {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

.pay-qr-wrap {
    margin-bottom: 12px;
}

.pay-qr {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.pay-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-paid {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
}

.pay-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.btn-unlock {
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #1a1a2e !important;
}

/* 匹配池CTA脉冲动画 */
.btn-pool-pulse {
    animation: poolPulse 2s ease-in-out infinite;
}

@keyframes poolPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ===== 分享操作面板 ===== */
.share-action-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.share-action-sheet {
    background: #1e1b2e;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 24px 20px calc(env(safe-area-inset-bottom, 20px) + 20px);
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.share-action-title {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 16px;
}
.share-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.share-action-btn:active {
    background: rgba(255,255,255,0.12);
}
.share-action-cancel {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 15px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}
