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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a3a;
}

header h1 {
    font-size: 24px;
    color: #ff6b6b;
    letter-spacing: 2px;
}

.header-btns {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: #2a2a3a;
    color: #e0e0e0;
    border: 1px solid #3a3a4a;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.header-btn:hover {
    background: #3a3a4a;
    border-color: #ff6b6b;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.welcome-content {
    text-align: center;
    padding: 40px 20px;
}

.welcome-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.welcome-content p {
    font-size: 16px;
    color: #a0a0b0;
    margin-bottom: 8px;
}

.welcome-content strong {
    color: #ff6b6b;
}

.stage-preview {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stage-item {
    background: #1a1a2e;
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.stage-num {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: bold;
}

.stage-title {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.stage-desc {
    font-size: 14px;
    color: #888;
}

.main-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.main-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.main-btn:disabled {
    background: #5a3a3a;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-bar {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

#stageName {
    color: #ff6b6b;
    font-weight: bold;
}

#progressText {
    color: #888;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #2a2a3a;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ff6b6b;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.loading-area {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #2a2a3a;
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loadingText {
    color: #a0a0b0;
    font-size: 16px;
}

.question-area {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 12px;
}

.question-text {
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.8;
    font-weight: 500;
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option-btn {
    background: #252538;
    color: #e0e0e0;
    border: 1px solid #3a3a4a;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    background: #2a2a3e;
    border-color: #ff6b6b;
}

.option-btn.selected {
    background: #3a1a1a;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.option-label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: #2a2a3a;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.option-btn.selected .option-label {
    background: #ff6b6b;
    color: #fff;
}

.open-answer-area {
    margin-bottom: 25px;
}

.open-answer-area textarea {
    width: 100%;
    background: #252538;
    color: #e0e0e0;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.open-answer-area textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.open-answer-area textarea::placeholder {
    color: #666;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.profile-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: #1a1a2e;
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

.profile-card h3 {
    color: #ff6b6b;
    font-size: 18px;
    margin-bottom: 15px;
}

.profile-card .content {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.profile-card.final {
    border-left-color: #ffd700;
    background: #1a1a2e;
}

.profile-card.final h3 {
    color: #ffd700;
    font-size: 22px;
}

.transition-msg {
    text-align: center;
    padding: 40px 20px;
    background: #1a1a2e;
    border-radius: 12px;
    margin-bottom: 20px;
}

.transition-msg h3 {
    color: #ff6b6b;
    font-size: 24px;
    margin-bottom: 10px;
}

.transition-msg p {
    color: #a0a0b0;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    header h1 {
        font-size: 18px;
    }
    .welcome-content h2 {
        font-size: 24px;
    }
    .question-text {
        font-size: 17px;
    }
    .main-btn {
        width: 100%;
    }
}
