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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe9f0 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #E92063, #D92680);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.content {
    padding: 24px;
}

.question-item {
    background: #fef9fc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #ffe0e8;
    transition: all 0.2s;
}

.question-text {
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

/* 选项垂直排列 */
.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.option-btn {
    width: 100%;
    background: white;
    border: 1px solid #ffccd9;
    border-radius: 40px;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.option-btn.selected {
    background: #E92063;
    border-color: #E92063;
    color: white;
}

.submit-btn {
    background: #E92063;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    margin-top: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.result-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #ffe0e8;
}

.rpi-score {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 10px;
}

.level {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 6px 16px;   /* 紧凑内边距 */
    border-radius: 20px;
    background: none !important;
    
    
}

.dimension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.dimension-card {
    background: #fef3f7;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}

.dimension-name {
    font-weight: bold;
    color: #E92063;
}

.dimension-score {
    font-size: 20px;
    font-weight: bold;
    margin-top: 4px;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    padding-bottom: 20px;
}

.progress {
    margin-bottom: 20px;
    background: #ffe0e8;
    border-radius: 10px;
    height: 6px;
    width: 100%;
}

.progress-bar {
    height: 6px;
    background: #E92063;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.nav-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.nav-btn.primary {
    background: #E92063;
    color: white;
}

.nav-btn.primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.question-counter {
    text-align: right;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.view-selector {
    display: flex;
    gap: 12px;
    margin: 20px 0 10px;
}

.view-btn {
    flex: 1;
    background: white;
    border: 2px solid #ffe0e8;
    border-radius: 40px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.view-btn.selected {
    background: #E92063;
    border-color: #E92063;
    color: white;
}