body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* background-color: #f0f2f5; */
    background-image: url('your-background-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: all 0.3s ease;
}

header h1 {
    font-size: 2.5rem;
    color: #1a73e8;
    margin: 0;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.stage {
    display: none;
}

.stage.active {
    display: block;
}

input[type="text"] {
    width: 80%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #1a73e8;
    outline: none;
}

button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: 80%;
    max-width: 300px;
}

button:hover {
    background: #155ab3;
}

button:active {
    transform: scale(0.98);
}

#stage-quiz h2, #stage-result h2 {
    margin-bottom: 20px;
}

.quiz-progress {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.quiz-item {
    text-align: left;
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.quiz-item p {
    font-weight: 600;
    margin-top: 0;
}

.options label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.options label:hover {
    background-color: #f5f5f5;
}

input[type="radio"] {
    margin-right: 10px;
}

/* A little trick to make the whole label clickable and show selection state */
.options input[type="radio"] {
    display: none;
}
.options input[type="radio"]:checked + label {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.result-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

#result-name {
    font-weight: bold;
    color: #1a73e8;
}

.result-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.score-display {
    flex: 1;
    min-width: 150px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a73e8;
    background: conic-gradient(#1a73e8 var(--score, 0deg), #e0e0e0 0deg);
    transition: background 1s ease-out;
}

.score-display p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

.report-text {
    flex: 2;
    min-width: 250px;
    text-align: left;
}

.report-text h3 {
    color: #333;
    margin-bottom: 8px;
}

.report-text p {
    color: #666;
    line-height: 1.6;
}

#reset-button {
    margin-top: 20px;
    background: #6c757d;
}

#reset-button:hover {
    background: #5a6268;
}

/* 分享功能样式 */
.share-section {
    margin: 25px 0;
    text-align: center;
}

#share-button {
    background: #28a745;
    width: 100%;
}
#share-button:hover {
    background: #218838;
}

.fallback-share-links {
    display: none;
    margin-top: 15px;
    font-size: 14px;
}
.fallback-share-links.active {
    display: block;
}
.fallback-share-links input {
    width: 90%;
    margin-top: 10px;
}


