@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #E6E2DD;
    --text-primary: #3B3836;
    --text-secondary: #7A7571;
    --theme-accent: #C19A6B; /* Default theme color: Camel */
    --border-color: #CFCBC6;
    --surface-color: #F0EDE9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Theme Block */
.theme-block {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--theme-accent);
    margin-right: 10px;
    vertical-align: middle;
    margin-bottom: 3px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 90vmin;
    height: 90vmin;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(163, 158, 147, 0.15) 0%, transparent 60%);
    top: -20%;
    right: -30%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
}

.section {
    display: none;
    flex-direction: column;
    flex: 1;
}

.section.active {
    display: flex;
    animation: fadeIn 0.8s ease forwards;
}

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

/* Home / Intro */
.intro-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 6px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 70px;
    font-weight: 300;
}

.btn {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 16px 45px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
}

.btn:active, .btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* Quiz Section */
.progress {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
    margin-top: 20px;
}

.question-text {
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 2;
    font-weight: 400;
    text-align: justify;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.option {
    background-color: var(--surface-color);
    border: 1px solid transparent;
    padding: 22px 20px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.option:active {
    border-color: var(--theme-accent);
    background-color: transparent;
}

/* Analyzing Section */
.analyzing {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--text-secondary);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Brand Logo */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.logo-mark {
    position: relative;
    width: 44px;
    height: 16px;
    border-top: 1.5px solid rgba(163, 158, 147, 0.65); 
    border-left: 0.5px solid rgba(163, 158, 147, 0.35); 
    border-right: 0.5px solid rgba(163, 158, 147, 0.35); 
    border-bottom: none; 
    border-radius: 22px 22px 0 0; 
    margin-bottom: 16px;
}

.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 32px; 
    height: 7px;
    border-bottom: none;
}

.logo-mark::before {
    left: -32px;
    border-top: 0.5px solid rgba(163, 158, 147, 0.35);
    border-left: 1.5px solid rgba(163, 158, 147, 0.65);
    border-right: none; 
}

.logo-mark::after {
    right: -32px;
    border-top: 0.5px solid rgba(163, 158, 147, 0.35);
    border-right: 1.5px solid rgba(163, 158, 147, 0.65);
    border-left: none; 
}

.logo-text {
    font-size: 9px;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    margin-right: -10px;
}

/* Result Section */
.result-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: -50px -30px 0 -30px; 
    background-color: var(--bg-color);
    background-image: 
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px);
}

.result-type {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.result-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.radar-chart-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.result-content-box {
    text-align: left;
    width: 100%;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.6s;
}

.drop-cap-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.85;
    margin-right: 8px;
    margin-top: 6px;
    color: var(--text-primary);
    font-weight: 700;
}

.highlight {
    font-weight: 600;
    border-bottom: 1px solid var(--theme-accent);
    padding-bottom: 2px;
}

em {
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 1px;
    color: #555;
}

.result-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    margin-top: 35px;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.result-section-title:first-child {
    margin-top: 0;
}

.result-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 2.3;
    text-align: justify;
    font-weight: 300;
    margin-bottom: 18px;
}

/* Poster Buttons */
.action-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

.upsell-container {
    width: 100%;
    margin-top: 15px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

.upsell-btn {
    background-color: var(--theme-accent);
    color: var(--surface-color);
    border: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    width: 100%;
    max-width: 320px;
    margin-bottom: 5px;
    padding: 16px 45px;
    letter-spacing: 4px;
    font-size: 14px;
}

.report-footer {
    width: 100%;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 0.5px solid rgba(163, 158, 147, 0.4);
    display: flex;
    flex-direction: column;
}

.footer-meta {
    font-size: 9px;
    font-family: 'Times New Roman', Helvetica, sans-serif;
    letter-spacing: 3px;
    color: rgba(163, 158, 147, 0.8);
    margin-bottom: 25px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 0.5px dotted rgba(163, 158, 147, 0.3);
    padding-bottom: 4px;
}

.footer-quote {
    text-align: center;
    font-size: 13px;
    color: rgba(59, 56, 54, 0.9);
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 2.2;
}

.footer-cta {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-secondary);
    border-bottom: 0.5px solid rgba(163, 158, 147, 0.6);
    padding-bottom: 3px;
}

/* Poster Overlay */
.poster-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 40px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.poster-overlay img {
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 4px;
    margin-bottom: 30px;
}

.poster-overlay-tip {
    color: #fff;
    margin-bottom: 20px;
    font-size: 15px;
    letter-spacing: 4px;
    font-weight: 300;
}

.poster-close {
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 40px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 2px;
    border-radius: 2px;
}

/* Catalog View */
.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.catalog-item {
    background-color: var(--surface-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    background-color: transparent;
    border-color: var(--theme-accent);
}

.catalog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.catalog-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
