/* Love Styles Test - Morandi Pink Mobile-First CSS */

:root {
    --primary: #4A4A4A;           /* 深灰 */
    --secondary: #6B6B6B;         /* 中灰 */
    --accent: #D4A5A5;            /* 莫兰迪粉 */
    --accent-dark: #C49595;       /* 深一点的粉 */
    --text: #2C2C2C;              /* 深灰文字 */
    --text-light: #4A4A4A;        /* 浅色文字 */
    --text-muted: #8A8A8A;        /* 淡灰文字 */
    --bg-light: #F5F0F0;          /* 浅粉背景 */
    --bg-white: #FAF8F8;          /* 白色背景 */
    --card-bg: rgba(255, 255, 255, 0.8);
    --border: rgba(200, 180, 180, 0.3);
    --gradient: linear-gradient(135deg, #F5F0F0 0%, #EBE5E5 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--gradient);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header */
.header {
    text-align: center;
    padding: 30px 0 20px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    padding: 15px 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(200, 180, 180, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4A5A5 0%, #C49595 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Quiz Container */
.quiz-container {
    padding: 10px 0 30px;
}

/* Page Group - 分页容器 */
.page-group {
    display: none;
}

.page-group.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.question-category {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-dark);
    background: rgba(212, 165, 165, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.question-category {
    display: none;
}

.question-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

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

/* Likert Scale */
.likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-label {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.scale-option:hover .scale-label {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.scale-option input:checked + .scale-label {
    background: linear-gradient(135deg, #D4A5A5 0%, #C49595 100%);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.4);
}

.scale-text {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}

/* Page Navigation - 分页导航 */
.page-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.nav-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-page-btn {
    background: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid var(--border);
    max-width: 100px;
}

.prev-page-btn:hover {
    background: var(--bg-light);
    color: var(--text);
}

.next-page-btn,
.submit-btn {
    flex: 1;
    background: linear-gradient(135deg, #D4A5A5 0%, #C49595 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 165, 0.3);
}

.next-page-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.4);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #D4A5A5 0%, #C49595 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 165, 0.4);
}

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

/* Result Container */
.result-container {
    padding: 20px 0 40px;
}

.result-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.result-level {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.result-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 20px;
    text-align: left;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    white-space: pre-wrap;
}

/* Chart Section */
.chart-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chart-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text);
}

.radar-chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Scores Section */
.scores-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.scores-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.score-pct {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.score-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(200, 180, 180, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

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

/* Unlock Section */
.unlock-section {
    margin-bottom: 24px;
}

.unlock-card {
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.15) 0%, rgba(235, 229, 229, 0.5) 100%);
    border: 1px solid rgba(212, 165, 165, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.unlock-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text);
}

.unlock-features {
    list-style: none;
    margin-bottom: 20px;
}

.unlock-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 6px 0;
}

.unlock-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D4A5A5 0%, #C49595 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.unlock-btn:hover {
    transform: scale(1.02);
}

.price {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Back Section */
.back-section {
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--bg-white);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: 1px solid var(--border);
}

.back-btn:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.share-hint {
    margin-top: 8px;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.question-card,
.result-card,
.chart-section,
.scores-section {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 380px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .likert-scale {
        gap: 4px;
    }

    .scale-label {
        font-size: 1rem;
    }

    .scale-text {
        font-size: 0.5rem;
    }

    .question-text {
        font-size: 1.05rem;
    }

    .radar-chart-container {
        height: 250px;
    }
}
