/* 筛查评估页面样式 - 使用网站主配色 */

/* Hero Section */
.assessment-hero {
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.assessment-hero .container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}
@media (min-width: 768px) {
    .assessment-hero .container {
        max-width: var(--page-width-tablet);
    }
}
@media (min-width: 1024px) {
    .assessment-hero .container {
        max-width: var(--page-width-desktop);
    }
}

.assessment-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.assessment-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.assessment-hero .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFFFF !important;
}

.assessment-hero .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* 夜间模式 - Hero区域 */
.dark .assessment-hero {
    background: linear-gradient(135deg, #2A4A5C 0%, #1E3A47 100%);
}

.dark .assessment-guide {
    background: #2A2A2A;
}

.dark .assessment-guide h2 {
    color: #FFFFFF;
}

.dark .guide-card {
    background: #3A3A3A;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.dark .guide-card h3 {
    color: #FFFFFF;
}

.dark .guide-card p {
    color: #CCCCCC;
}

/* Guide Section */
.assessment-guide {
    padding: 60px 0;
    background: #F2EFE9;
}
.assessment-guide .container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}
@media (min-width: 768px) {
    .assessment-guide .container {
        max-width: var(--page-width-tablet);
    }
}
@media (min-width: 1024px) {
    .assessment-guide .container {
        max-width: var(--page-width-desktop);
    }
}

.assessment-guide h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #0D0D0D;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.guide-card {
    background: #FFFFFF;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.guide-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.guide-card h3 {
    margin-bottom: 8px;
    color: #0D0D0D;
    font-size: 1.1rem;
}

.guide-card p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Scale Categories Section */
.scale-categories {
    padding: 60px 20px;
    background: #FAF8F5;
}

.scale-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #0D0D0D;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #D8D4CC;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FFFFFF;
    border: 2px solid #D8D4CC;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #444444;
}

.tab-btn:hover {
    border-color: #3D8BA0;
    color: #3D8BA0;
    background: #E8EEF3;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    border-color: #3D8BA0;
    color: white;
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-weight: 500;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 11px;
    font-size: 0.75rem;
}

.tab-btn:not(.active) .tab-count {
    background: #E8EEF3;
    color: #3D8BA0;
}

/* Category Content */
.category-content {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.content-panel {
    display: none;
    padding: 32px;
}

.content-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EDE8E0;
}

.panel-header h3 {
    font-size: 1.4rem;
    color: #0D0D0D;
    margin-bottom: 8px;
}

.panel-desc {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal Overlay */
.scale-modal-overlay,
.result-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.scale-modal-overlay.show,
.result-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.scale-modal,
.result-modal {
    width: 90%;
    max-width: 600px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: 20px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-scale-info {
    padding: 16px;
    background: #F2EFE9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-scale-info h4 {
    margin-bottom: 8px;
    color: #0D0D0D;
}

.modal-scale-info p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modal Progress */
.modal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-text {
    font-size: 0.85rem;
    color: #666666;
    min-width: 50px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #E8EEF3;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-count {
    font-size: 0.85rem;
    color: #666666;
    min-width: 50px;
    text-align: right;
}

/* Modal Score */
.modal-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #E8EEF3;
    border-radius: 8px;
}

.score-label {
    font-size: 0.9rem;
    color: #3D8BA0;
}

.score-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #3D8BA0;
}

/* Questions Container */
.questions-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.questions-container::-webkit-scrollbar {
    width: 6px;
}

.questions-container::-webkit-scrollbar-track {
    background: #F2EFE9;
    border-radius: 3px;
}

.questions-container::-webkit-scrollbar-thumb {
    background: #D8D4CC;
    border-radius: 3px;
}

.question-item {
    padding: 16px;
    border-bottom: 1px solid #EDE8E0;
    transition: background 0.2s ease;
}

.question-item:hover {
    background: #FAF8F5;
}

.question-item:last-child {
    border-bottom: none;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3D8BA0;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-size: 0.95rem;
    color: #0D0D0D;
    line-height: 1.5;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 8px 16px;
    border: 2px solid #D8D4CC;
    background: #FFFFFF;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #3D8BA0;
    color: #3D8BA0;
}

.option-btn.selected {
    border-color: #3D8BA0;
    background: #3D8BA0;
    color: white;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #EDE8E0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-secondary {
    background: #E8EEF3;
    color: #3D8BA0;
}

.btn-secondary:hover:not(:disabled) {
    background: #D8D4CC;
}

/* Result Content */
.result-content {
    text-align: center;
}

.result-score-circle {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1;
    padding-top: 45px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.result-score-circle .score-unit {
    font-size: 1.1rem;
    font-weight: normal;
    margin-left: 4px;
}

.result-level {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0D0D0D;
    margin-bottom: 20px;
}

.result-dimensions {
    margin-bottom: 20px;
}

.result-dimensions h4 {
    margin-bottom: 12px;
    color: #0D0D0D;
    text-align: left;
}

.dimension-list {
    display: grid;
    gap: 8px;
}

.dimension-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #FAF8F5;
    border-radius: 6px;
}

.dimension-name {
    font-size: 0.9rem;
    color: #0D0D0D;
}

.dimension-score {
    font-size: 1rem;
    font-weight: bold;
    color: #3D8BA0;
}

.result-advice {
    padding: 16px;
    background: #FFF8E1;
    border-left: 4px solid #FFA000;
    border-radius: 0 6px 6px 0;
    text-align: left;
}

.result-advice h4 {
    margin-bottom: 8px;
    color: #E65100;
}

.result-advice p {
    color: #5D4037;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Result Interpretation */
.result-interpretation {
    padding: 16px;
    background: #E8EEF3;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.result-interpretation h4 {
    color: #3D8BA0;
    margin-bottom: 8px;
}

.result-interpretation p {
    color: #0D0D0D;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tips Section */
.assessment-tips {
    padding: 40px 20px;
    background: #FFF8E1;
}

.tips-card {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tips-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.tips-content h3 {
    margin-bottom: 8px;
    color: #E65100;
}

.tips-content p {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 夜间模式 */
.dark .assessment-tips {
    background: #3A2F24;
}

.dark .tips-card {
    background: #3A3A3A;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.dark .tips-content h3 {
    color: #FFB74D;
}

.dark .tips-content p {
    color: #CCCCCC;
}

/* Guide Page Button */
.guide-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guide-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 139, 160, 0.4);
}

/* Guide Entry Section */
.guide-entry {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.guide-entry h2 {
    margin-bottom: 12px;
    color: #0D0D0D;
    font-size: 1.6rem;
}

.guide-entry p {
    color: #666666;
    margin-bottom: 24px;
    font-size: 1rem;
}

/* 夜间模式 */
.dark .guide-entry {
    background: #3A3A3A;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.dark .guide-entry h2 {
    color: #FFFFFF;
}

.dark .guide-entry p {
    color: #CCCCCC;
}

/* Guide Page Styles */
.guide-main {
    min-height: 100vh;
}

.guide-hero {
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.guide-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.guide-content {
    padding: 60px 20px;
    background: #FAF8F5;
}

.guide-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content .guide-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: left;
}

.guide-content .guide-card h2 {
    color: #3D8BA0;
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: left;
}

.guide-content .guide-card p {
    color: #444444;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    padding: 12px 0;
    border-bottom: 1px solid #EDE8E0;
    color: #444444;
    line-height: 1.6;
    text-align: left;
}

.guide-list li:last-child {
    border-bottom: none;
}

.guide-list.warning li {
    color: #E65100;
}

/* Step Guide */
.step-guide {
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #EDE8E0;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3D8BA0 0%, #2E7489 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #0D0D0D;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Result Levels */
.result-levels {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.level-item {
    padding: 16px;
    border-radius: 8px;
    text-align: left;
}

.level-item.high {
    background: #FFEBEE;
    border-left: 4px solid #F44336;
}

.level-item.medium {
    background: #FFF8E1;
    border-left: 4px solid #FFA000;
}

.level-item.low {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.level-item.high .level-badge {
    background: #F44336;
    color: white;
}

.level-item.medium .level-badge {
    background: #FFA000;
    color: white;
}

.level-item.low .level-badge {
    background: #4CAF50;
    color: white;
}

.level-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666666;
}

/* FAQ Section */
.faq-section {
    margin-top: 16px;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #EDE8E0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #3D8BA0;
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: #666666;
}

/* Guide Action */
.guide-action {
    text-align: center;
    padding: 40px 0;
}

.guide-action .guide-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-entry {
        padding: 30px 16px;
    }

    .guide-content .guide-card {
        padding: 24px 16px;
    }

    .step-item {
        flex-direction: column;
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .category-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* 移动端显示完整标签名称 */
    .tab-label {
        display: inline !important;
    }

    .scale-list {
        grid-template-columns: 1fr;
    }

    .scale-item {
        padding: 16px;
    }

    .scale-item .scale-actions {
        flex-direction: column;
    }

    .modal-body {
        max-height: 70vh;
    }

    .question-options {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
        text-align: left;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .tips-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .assessment-hero {
        padding: 40px 15px;
    }

    .assessment-hero h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem !important;
    }

    .guide-cards {
        grid-template-columns: 1fr;
    }

    .content-panel {
        padding: 20px 16px;
    }
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E8EEF3;
    border-top-color: #3D8BA0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #666666;
    font-size: 0.95rem;
}

/* Error Message */
.error-message {
    text-align: center;
    color: #E65100;
    padding: 40px 20px;
    font-size: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    color: #666666;
    padding: 40px 20px;
    font-size: 1rem;
}


