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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #f5f7fc;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 24px 20px 32px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    /*background: linear-gradient(135deg, #2c5f8a, #4c9f70);*/
    background: #2c5f8a;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
}

.sub {
    color: #5b6e8c;
    
    padding-left: 16px;
    margin: 12px 0 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rating-info {
    background: #eef3fa;
    border-radius: 24px;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
}
.rating-info p {
    margin: 8px 0;
}
.rating-info strong {
    color: #2c5f8a;
}

button {
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
}
.btn-primary {
    background: #2c5f8a;
    color: white;
    box-shadow: 0 4px 8px rgba(44,95,138,0.2);
    padding: 14px 28px;
}
.btn-primary:active {
    transform: translateY(1px);
}
.btn-outline {
    background: white;
    border: 1px solid #2c5f8a;
    color: #2c5f8a;
    padding: 10px 20px;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 开始界面 */
.start-screen {
    text-align: center;
}
.start-btn {
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 14px 40px;
}

/* 答题界面 */
.quiz-screen {
    display: none;
}
.quiz-header {
    margin-bottom: 20px;
    text-align: center;
}
.quiz-header h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}
.progress-area {
    background: #eef3fa;
    border-radius: 24px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.progress-bar-wrapper {
    flex: 2;
    min-width: 120px;
}
.progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #2c5f8a;
}
.progress-bg {
    background: #d9e2ec;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    background: #2c5f8a;
    width: 0%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.2s;
}
.stats {
    font-size: 0.8rem;
    background: white;
    padding: 4px 12px;
    border-radius: 40px;
    white-space: nowrap;
}

.question-card {
    background: white;
    border-radius: 28px;
    padding: 20px 16px;
    /*box-shadow: 0 8px 20px rgba(0,0,0,0.05), 0 0 0 1px #eef2f8;*/
    box-shadow: 0 0 0 1px #dee4ec;
    margin-bottom: 20px;
}
.q-text {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 28px;
    color: #1e2f3f;
    word-break: break-word;
}
.q-num {
    display: inline-block;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 10px;
    color: #2c5f8a;
}
/* 竖向选项排列 */
.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.option-item {
    background: #f9fafc;
    padding: 12px 16px;
    border-radius: 60px;
    border: 1px solid #dee4ec;
    cursor: pointer;
    transition: 0.1s;
}
.option-item.selected {
    background: #e0f0fe;
    border-color: #7f9fbf;
}
.option-item input {
    display: none;
}
.option-item label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3f4f;
    cursor: pointer;
    text-align: center;
}
.nav-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.nav-buttons button {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
}
.nav-buttons .btn-secondary {
    background: white;
    border: 1px solid #bdd4e4;
    color: #2c5f8a;
}

/* 结果界面 */
.results-screen {
    display: none;
}
.total-score-card {
    background: #eef3fa;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.factor-item {
    background: white;
    border-radius: 20px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eef2f8;
}
.factor-name {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.score-bar {
    background: #e2e8f0;
    border-radius: 12px;
    height: 6px;
    margin: 8px 0;
}
.bar-fill {
    background: #4c9f70;
    height: 6px;
    border-radius: 12px;
    width: 0%;
}
.norm-tip {
    font-size: 0.7rem;
    color: #5d7184;
    margin-top: 6px;
}
.caution {
    background: #fff6e0;
    border-radius: 20px;
    padding: 14px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #aa6f20;
    word-break: break-word;
}
.reset-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: white;
    border: 1px solid #2c5f8a;
    color: #2c5f8a;
    padding: 12px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
}
footer {
    text-align: center;
    font-size: 0.7rem;
    color: #7c8ea0;
    margin-top: 24px;
}
@media (max-width: 480px) {
    .app-card { padding: 20px 16px; }
    .q-text { font-size: 1rem; }
    .q-num { font-size: 1rem; }
    .option-item label { font-size: 0.9rem; }
}