﻿/* 筛查评估页面样式 - 使用网站主配色 */

/* Hero Section */
.assessment-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.assessment-hero .container {
    max-width: var(--content-width, 1024px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 16px);
}

.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: 1rem;
    opacity: 0.9;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* 澶滈棿妯″紡 - Hero鍖哄煙 */












/* FAQ 鏆楄壊妯″紡 */






/* 鏆楄壊妯″紡 - 閫氱敤鍗＄墖鍜岃儗鏅?*/
















































/* Guide Section */
.assessment-guide {
    padding: 60px 0;
    background: var(--bg-secondary);
}
.assessment-guide .container {
    max-width: var(--content-width, 1024px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 16px);
}

.assessment-guide h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--text);
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.guide-card {
    background: var(--bg-card);
    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: var(--text);
    font-size: 1.1rem;
}

.guide-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Scale Categories Section */
.scale-categories {
    padding: 60px 20px;
    background: var(--bg-body);
}

.scale-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--text);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lightest);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    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: 1rem;
}

.tab-btn:not(.active) .tab-count {
    background: var(--primary-lightest);
    color: var(--primary);
}

/* Category Content */
.category-content {
    background: var(--bg-card);
    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 var(--border-light);
}

.panel-header h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}

.panel-desc {
    color: var(--text-muted);
    font-size: 1rem;
    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: var(--bg-card);
    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, var(--primary) 0%, var(--secondary) 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: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-scale-info h4 {
    margin-bottom: 8px;
    color: var(--text);
}

.modal-scale-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Modal Progress */
.modal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-text {
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 50px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--primary-lightest);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-count {
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

/* Modal Score */
.modal-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--primary-lightest);
    border-radius: 8px;
}

.score-label {
    font-size: 1rem;
    color: var(--primary);
}

.score-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}

/* 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: var(--bg-secondary);
    border-radius: 3px;
}

.questions-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.question-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.question-item:hover {
    background: var(--bg-body);
}

.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: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    border-radius: 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--primary-lightest);
    color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
}

/* 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, var(--primary) 0%, var(--secondary) 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: var(--text);
    margin-bottom: 20px;
}

.result-dimensions {
    margin-bottom: 20px;
}

.result-dimensions h4 {
    margin-bottom: 12px;
    color: var(--text);
    text-align: left;
}

.dimension-list {
    display: grid;
    gap: 8px;
}

.dimension-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-body);
    border-radius: 6px;
}

.dimension-name {
    font-size: 1rem;
    color: var(--text);
}

.dimension-score {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
}

.result-advice {
    padding: 16px;
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    border-radius: 0 6px 6px 0;
    text-align: left;
}

.result-advice h4 {
    margin-bottom: 8px;
    color: var(--warning);
}

.result-advice p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Result Interpretation */
.result-interpretation {
    padding: 16px;
    background: var(--primary-lightest);
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.result-interpretation h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.result-interpretation p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

/* Tips Section */
.assessment-tips {
    padding: 40px 20px;
    background: var(--warning-light);
}

.tips-card {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-card);
    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: var(--warning);
}

.tips-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* 澶滈棿妯″紡 */








/* Guide Page Button */
.guide-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 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: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.guide-entry h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.6rem;
}

.guide-entry p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* 澶滈棿妯″紡 */






/* Guide Page Styles */
.guide-main {
    min-height: 100vh;
}

.guide-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px var(--container-padding, 16px);
    text-align: center;
}

@media(min-width:768px){
    .guide-hero {
        padding: 50px var(--container-padding, 24px);
    }
}

@media(min-width:1024px){
    .guide-hero {
        padding: 60px var(--container-padding, 24px);
    }
}

.guide-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.guide-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.guide-content {
    padding: 40px var(--container-padding, 16px);
    background: var(--bg-body);
}

@media(min-width:768px){
    .guide-content {
        padding: 50px var(--container-padding, 24px);
    }
}

@media(min-width:1024px){
    .guide-content {
        padding: 60px var(--container-padding, 24px);
    }
}

/* 瀹瑰櫒浣跨敤鍏ㄥ眬CSS鍙橀噺锛屼笌鍏朵粬椤甸潰淇濇寔涓€鑷?*/
.guide-content .container {
    max-width: var(--content-width, 1024px);
    margin: 0 auto;
}

.guide-content .guide-card {
    background: var(--bg-card);
    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: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: left;
}

.guide-content .guide-card p {
    color: var(--text-muted);
    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 var(--border-light);
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.guide-list li:last-child {
    border-bottom: none;
}

.guide-list.warning li {
    color: var(--warning);
}

/* Step Guide */
.step-guide {
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-muted);
    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: var(--error-light);
    border-left: 4px solid var(--error);
}

.level-item.medium {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
}

.level-item.low {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.level-item.high .level-badge {
    background: var(--error);
    color: white;
}

.level-item.medium .level-badge {
    background: #FFA000;
    color: white;
}

.level-item.low .level-badge {
    background: var(--success);
    color: white;
}

.level-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* FAQ Section - 缁熶竴瀹瑰櫒璁捐 */
.faq-section {
    margin-top: 4px;
    background: var(--bg-body, #FAF8F5);
    border-radius: 10px;
    border: 1px solid var(--border-light, #EDE8E0);
    overflow: hidden;
}

.faq-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light, #EDE8E0);
    transition: background-color 0.15s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: rgba(61,139,160,0.04);
}

.faq-item h4 {
    color: var(--primary, #3D8BA0);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.faq-item p {
    margin: 0;
    color: var(--text-muted, #4A4A4A);
    font-size: 1rem;
    line-height: 1.65;
}

/* 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: 20px 16px;
    }

    .guide-hero h1 {
        font-size: 1.6rem;
    }

    .guide-hero .subtitle {
        font-size: 1rem;
    }

    .step-item {
        flex-direction: column;
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* FAQ 绉诲姩绔紭鍖?*/
    .faq-section {
        border-radius: 8px;
    }
    .faq-item {
        padding: 14px 16px;
    }
    .faq-item h4 {
        font-size: 1rem;
    }
    .faq-item p {
        font-size: 1rem;
    }
}

/* 灏忓睆骞曠Щ鍔ㄧ浼樺寲 */
@media(max-width:480px){
    .guide-content {
        padding: 24px 12px;
    }

    .guide-content .guide-card {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .guide-card h2 {
        font-size: 1.15rem;
    }

    .guide-card p {
        font-size: 1rem;
    }
}

/* 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: 1rem;
    }

    /* 绉诲姩绔樉绀哄畬鏁存爣绛惧悕绉?*/
    .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;
}

/* 鍔犺浇鏇村鎸夐挳灞呬腑 */
.load-more-btn-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    padding: 10px 0;
}

/* 楠ㄦ灦灞忔牱寮?*/
.skeleton {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton-placeholder {
    background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-placeholder.small {
    width: 60px;
    height: 14px;
}

.scale-card.skeleton .scale-category {
    width: 80px;
    height: 18px;
}

.scale-card.skeleton .scale-title {
    width: 70%;
    height: 22px;
    margin-top: 10px;
}

.scale-card.skeleton .scale-meta {
    gap: 12px;
}

.scale-card.skeleton .scale-desc {
    width: 100%;
    height: 40px;
    margin-top: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-lightest);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.loading-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    color: var(--warning);
    padding: 40px 20px;
    font-size: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 1rem;
}




