:root {
    --primary-color: #ff9eb5;
    --primary-dark: #ff7eb9;
    --accent-color: #ffc2d1;
    --text-color: #5d4037;
    --bg-color: #fff0f5;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.watermark {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(255, 126, 185, 0.2);
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    user-select: none;
    transform: rotate(-15deg);
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.15);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

h1, h2 {
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #888;
}

.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(255, 126, 185, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 126, 185, 0.4);
}

.hidden {
    display: none !important;
}

/* Quiz Section */
.question-container {
    width: 100%;
}

.progress-indicator {
    width: 100%;
    height: 6px;
    background-color: #ffe0e9;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-dark);
    width: 0%;
    transition: width 0.3s ease;
}

.question-text {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 500;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background-color: white;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.option-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-dark);
}

.option-btn:active {
    background-color: var(--accent-color);
    color: white;
}

/* Result Section */
.result-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(255, 154, 158, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    padding: 20px;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.result-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.result-score {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.scale-container {
    width: 100%;
    margin: 30px 0;
    position: relative;
    padding: 0 10px;
}

.scale-bar {
    height: 12px;
    background: linear-gradient(90deg, #8e44ad 0%, #ff69b4 50%, #ff9f43 100%);
    border-radius: 10px;
    position: relative;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.scale-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: white;
    border: 4px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: left 1s cubic-bezier(0.22, 1, 0.36, 1);
    left: 0%; /* Will be set by JS */
}

.result-report {
    background-color: #fff8fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-dark);
    margin-bottom: 30px;
    width: 100%;
}

.report-title {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.report-content {
    font-size: 15px;
    text-align: justify;
}

.share-hint {
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
}
