:root {
    --primary: #8e2de2;
    --secondary: #4a00e0;
    --accent: #f368e0;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --text-main: #2d3436;
    --text-light: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --type-a: #ff7675;
    --type-b: #74b9ff;
    --type-c: #55efc4;
    --type-d: #a29bfe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

/* Background animated elements */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

body::before {
    width: 400px;
    height: 400px;
    background: rgba(142, 45, 226, 0.15);
    top: -100px;
    left: -100px;
}

body::after {
    width: 300px;
    height: 300px;
    background: rgba(74, 0, 224, 0.15);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.app-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    position: relative;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-block;
    background: rgba(142, 45, 226, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

/* Welcome Page */
.title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.4;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 14px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.icon {
    font-size: 18px;
}

.hint-text {
    font-size: 12px;
    color: #e17055;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
    background: rgba(255, 118, 117, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* Buttons */
.primary-btn,
.secondary-btn,
.action-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 0, 224, 0.4);
}

.primary-btn:active {
    transform: translateY(1px);
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    padding: 12px;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    text-decoration: underline;
}

/* Quiz Page */
.quiz-card {
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-text {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--text-main);
}

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

.option-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 500;
}

.option-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.option-btn.selected {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.15);
    position: relative;
}

.option-btn.selected::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.option-letter {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-right: 12px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.option-btn.selected .option-letter {
    background: var(--primary);
    color: white;
}

/* Result Page */
.result-scroll-page {
    padding-bottom: 40px;
}

.result-card {
    padding: 24px 16px;
}

.result-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-header {
    text-align: center;
    margin-bottom: 12px;
}

.result-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.level-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.result-content {
    text-align: left;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 14px;
    border-left: 4px solid transparent;
}

.highlight-box {
    border-left-color: var(--primary);
}

.male-type-box {
    border-left-color: var(--accent);
}

.growth-box {
    border-left-color: var(--type-c);
}

.action-box {
    border-left-color: var(--type-d);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    white-space: pre-wrap;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.result-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    white-space: pre-wrap;
}

.action-list {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.action-list li {
    margin-bottom: 8px;
}

.note-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 118, 117, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #e17055;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.growth-vision {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.5;
}

/* Full report section styling */
.full-report-container {
    position: relative;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
    padding-top: 24px;
}

.lock-mask {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) min(300px, 40%), rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    text-align: center;
}

.lock-mask h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-top: 16px;
    margin-bottom: 12px;
}

.unlock-benefits-intro {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.unlock-benefits {
    text-align: left;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-left: 20px;
    line-height: 1.6;
}

.unlock-benefits li {
    margin-bottom: 6px;
}

.locked-icon {
    font-size: 36px;
}

.pay-hint {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
}

.report-content-blur {
    pointer-events: none;
}

.report-unlocked .lock-mask {
    display: none;
}

.report-unlocked .report-content-blur {
    pointer-events: auto;
}

.report-header-banner {
    text-align: center;
    background: linear-gradient(45deg, var(--type-d), var(--primary));
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.report-header-banner h2 {
    font-size: 18px;
    font-weight: 700;
}

/* Persona Card Update */
.persona-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(142, 45, 226, 0.2);
    box-shadow: 0 10px 24px rgba(142, 45, 226, 0.08);
}

.persona-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.persona-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.persona-subtitle {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.persona-quote {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    background: rgba(142, 45, 226, 0.03);
    padding: 16px;
    border-radius: 8px;
    position: relative;
    line-height: 1.6;
    text-align: center;
}

.quote-mark {
    font-size: 28px;
    color: rgba(243, 104, 224, 0.4);
    position: absolute;
    font-family: serif;
    line-height: 1;
}

.left-mark {
    top: 4px;
    left: 8px;
}

.right-mark {
    bottom: -12px;
    right: 8px;
}

.share-copy-box {
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed rgba(142, 45, 226, 0.2);
    text-align: left;
}

.share-copy-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.share-copy-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.summary-text {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    padding: 0 10px;
    line-height: 1.6;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, #1e272e 0%, #2f3640 100%);
    border-radius: 14px;
    padding: 20px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.product-tag {
    position: absolute;
    top: 0;
    right: 20px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #f1c40f;
}

.product-desc {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.action-btn {
    background: #f1c40f;
    color: #2f3640;
    padding: 12px;
    font-size: 14px;
}

.action-btn:hover {
    background: #f39c12;
}

/* Score Bars */
.score-bars {
    margin-bottom: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.4);
    padding: 14px;
    border-radius: 14px;
}

.score-block {
    margin-bottom: 12px;
}

.score-block:last-child {
    margin-bottom: 0;
}

.score-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.score-meta {
    font-size: 11px;
    padding-left: 68px;
    /* 56+12 */
}

.score-status {
    font-weight: 700;
    margin-right: 6px;
}

.score-desc {
    color: var(--text-light);
}

.score-label {
    width: 56px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-right: 12px;
}

.score-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-out;
}

.score-value {
    width: 16px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.type-a {
    background: var(--type-a);
}

.type-b {
    background: var(--type-b);
}

.type-c {
    background: var(--type-c);
}

.type-d {
    background: var(--type-d);
}

.type-a-text {
    color: var(--type-a);
}

.type-b-text {
    color: var(--type-b);
}

.type-c-text {
    color: var(--type-c);
}

.type-d-text {
    color: var(--type-d);
}

/* WeChat Contact Module */
.wechat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.wechat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.wechat-qr {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0 auto 10px auto;
    object-fit: contain;
    display: block;
}

.wechat-desc {
    font-size: 12px;
    color: var(--text-light);
}

.secondary-btn {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
    background: #f8f9fa;
}

/* Utility */
.mt-24 {
    margin-top: 24px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-8 {
    margin-top: 8px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* Phone input area (claim report flow) */
.phone-input-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.phone-input {
    width: 100%;
    border: 2px solid rgba(142, 45, 226, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background: white;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 2px;
}

.phone-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.12);
}

.phone-hint {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.35);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.phone-error {
    font-size: 12px;
    color: #e17055;
    text-align: center;
    margin-top: 6px;
    background: rgba(255, 118, 117, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
}
/* Recommendation Area Upgrade */
.recommendation-area {
    padding: 10px 0;
}

.recommendation-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recommendation-main-subtitle {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.recommendation-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2d3436;
}

.card-desc-short {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.card-desc-full {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 12px;
}

.card-extra-tip {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Tier Hierarchies */
.card-tier-1 {
    border-top: 4px solid #a29bfe;
}
.card-tier-1 .card-tag {
    background: rgba(162, 155, 254, 0.1);
    color: #6c5ce7;
}
.card-tier-1 .card-btn {
    background: #ffffff;
    color: #6c5ce7;
    border: 1.5px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.05);
}
.card-tier-1 .card-btn:hover {
    background: rgba(108, 92, 231, 0.05);
    border-color: #6c5ce7;
    transform: translateY(-2px);
}

.card-tier-2 {
    border-top: 4px solid var(--primary);
    background: linear-gradient(to bottom, #ffffff, #f9f7ff);
}
.card-tier-2 .card-tag {
    background: rgba(142, 45, 226, 0.1);
    color: var(--primary);
}
.card-tier-2 .card-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}
.card-tier-2 .card-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(74, 0, 224, 0.4);
}

.card-tier-3 {
    border: 1px solid #ffeaa7;
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    color: rgba(255, 255, 255, 0.9);
}
.card-tier-3 .card-title {
    color: #ffeaa7;
}
.card-tier-3 .card-tag {
    background: #ffeaa7;
    color: #d35400;
}
.card-tier-3 .card-desc-short {
    color: #fab1a0;
}
.card-tier-3 .card-desc-full,
.card-tier-3 .card-extra-tip {
    color: rgba(255, 255, 255, 0.7);
}
.card-tier-3 .card-extra-tip {
    background: rgba(255, 255, 255, 0.05);
}
.card-tier-3 .card-btn {
    background: linear-gradient(45deg, #f7e7ce, #edc967);
    color: #8a6d3b;
    box-shadow: 0 4px 15px rgba(237, 201, 103, 0.3);
}
.card-tier-3 .card-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 234, 167, 0.5);
}
