/* ===== 脉轮测试页样式 ===== */

.container { max-width: 720px; }

.header {
    text-align: center;
    margin-bottom: 32px;
}
.header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.header p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}
.back-link {
    color: #7c3aed;
    text-decoration: none;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.question {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}
.question:last-child { border-bottom: none; }
.q-num {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 4px;
}
.q-text {
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.5;
}

.scale {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.scale-label {
    font-size: 0.8rem;
    color: #9ca3af;
    width: 56px;
    flex-shrink: 0;
}
.scale-label.right { text-align: right; }
.scale-options {
    display: flex;
    gap: 8px;
    align-items: center;
}
.scale-options input[type="radio"] {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}
.scale-options input[type="radio"]:checked {
    border-color: #7c3aed;
    background: #7c3aed;
    box-shadow: inset 0 0 0 5px #fff;
}
.scale-options input[type="radio"]:hover {
    border-color: #a78bfa;
}

.btn-wrap {
    text-align: center;
    margin-top: 8px;
}
.btn {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.validation-msg {
    text-align: center;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 12px;
    display: none;
}

/* Results */
#results { display: none; }
.results-title {
    text-align: center;
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}
.chart-label {
    width: 80px;
    font-size: 0.85rem;
    color: #4b5563;
    text-align: right;
    flex-shrink: 0;
    line-height: 1.3;
}
.chart-bar-wrap {
    flex: 1;
    height: 28px;
    background: #f3f4f6;
    border-radius: 14px;
    position: relative;
    overflow: visible;
}
.chart-bar {
    height: 100%;
    border-radius: 14px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    min-width: 0;
}
.chart-bar.neg {
    justify-content: flex-start;
    padding-left: 8px;
    margin-left: auto;
}
.chart-pct {
    width: 56px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    flex-shrink: 0;
    text-align: left;
}

.chakra-result {
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
    margin-top: 20px;
}
.chakra-result h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.chakra-result .status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.status-under { background: #dbeafe; color: #1e40af; }
.status-open  { background: #d1fae5; color: #065f46; }
.status-over  { background: #fee2e2; color: #991b1b; }

.chakra-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.retest-btn {
    display: block;
    margin: 32px auto 0;
    background: #fff;
    color: #7c3aed;
    border: 2px solid #7c3aed;
    padding: 10px 36px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.retest-btn:hover {
    background: #7c3aed;
    color: #fff;
}

@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .card { padding: 20px 16px; }
    .scale-options { gap: 4px; }
    .scale-options input[type="radio"] { width: 24px; height: 24px; }
    .scale-label { width: 44px; font-size: 0.7rem; }
    .chart-label { width: 64px; font-size: 0.75rem; }
}

/* iPhone 14 Pro Max (430px) 及更小屏幕 */
@media (max-width: 480px) {
    .header { margin-bottom: 20px; }
    .header h1 { font-size: 1.5rem; }
    .header p { font-size: 0.8rem; }
    .card { padding: 16px 12px; }
    .question { margin-bottom: 18px; padding-bottom: 14px; }
    .q-text { font-size: 0.9rem; margin-bottom: 8px; }
    .q-num { font-size: 0.7rem; }
    .scale-label { width: auto; font-size: 0.65rem; white-space: nowrap; }
    .scale-options { gap: 2px; }
    .scale-options input[type="radio"] { width: 22px; height: 22px; }
    .btn { padding: 12px 32px; font-size: 1rem; }
    .results-title { font-size: 1.2rem; margin-bottom: 20px; }
    .chart-row { gap: 4px; margin-bottom: 12px; }
    .chart-label { width: 52px; font-size: 0.7rem; }
    .chart-pct { width: 44px; font-size: 0.75rem; }
    .chart-bar-wrap { height: 22px; }
    .chakra-result { padding-top: 14px; margin-top: 14px; }
    .chakra-result h3 { font-size: 0.95rem; }
    .chakra-desc { font-size: 0.8rem; }
    .retest-btn { padding: 8px 24px; font-size: 0.9rem; margin-top: 20px; }
}
