/* 基础样式与重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #ff0054;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e8f0 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, #4361ee, #3a56d4);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 通用样式 */
.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 按钮样式 */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

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

.btn-secondary:hover {
    background: #5a08a0;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(to right, #4cc9f0, #3ab5d9);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(to right, #3ab5d9, #2a9bbf);
    transform: translateY(-3px);
}

.btn-download {
    background: linear-gradient(to right, #7209b7, #5a08a0);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(to right, #5a08a0, #430776);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 欢迎页面样式 */
.welcome-hero {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 50px;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 8rem;
    color: white;
}

/* 特性部分 */
.features-section {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 说明部分 */
.instructions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.instruction-card, .rating-scale-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.instruction-card h3, .rating-scale-card h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-card ul {
    list-style: none;
    padding-left: 0;
}

.instruction-card li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.instruction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.scale-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
}

.scale-item:hover {
    background: #e3e8f0;
}

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

.scale-content {
    display: flex;
    flex-direction: column;
}

.scale-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.scale-desc {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 用户信息表单 */
.user-info-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
}

.user-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-group input, .select-wrapper select {
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .select-wrapper select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    pointer-events: none;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    background: white;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 5px;
}

/* 测评页面样式 */
.test-header {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.test-title h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-subtitle {
    color: var(--gray-color);
}

.progress-container {
    min-width: 300px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-weight: 600;
    color: var(--dark-color);
}

.progress-percent {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-numbers {
    text-align: center;
    font-weight: 600;
    color: var(--gray-color);
}

.test-time {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-weight: 500;
}

.question-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.question-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.question-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.question-factor {
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.question-content h3 {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 40px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.option {
    padding: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
}

.option.selected {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
}

.option-number {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

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

.option-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.question-navigation {
    margin-top: 40px;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.navigation-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 侧边栏 */
.test-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sidebar-card h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-history {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.answer-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.answer-dot.unanswered {
    background: var(--light-gray);
    color: var(--gray-color);
}

.answer-dot.answered {
    background: var(--primary-color);
    color: white;
}

.answer-dot.current {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.2);
}

.factor-score .score-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.factor-score .score-fill {
    height: 100%;
    background: linear-gradient(to right, #4cc9f0, #3ab5d9);
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease;
}

.score-text {
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

/* 结果页面样式 */
.result-header {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-title h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-subtitle {
    color: var(--gray-color);
}

.result-actions {
    display: flex;
    gap: 15px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card.primary {
    border-top: 5px solid var(--primary-color);
}

.summary-card.success {
    border-top: 5px solid #4cc9f0;
}

.summary-card.warning {
    border-top: 5px solid #f72585;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card.primary .summary-icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.summary-card.success .summary-icon {
    background: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
}

.summary-card.warning .summary-icon {
    background: rgba(247, 37, 133, 0.1);
    color: #f72585;
}

.summary-icon i {
    font-size: 1.5rem;
}

.summary-content {
    flex: 1;
}

.summary-content h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-label {
    font-weight: 600;
    color: var(--gray-color);
}

.info-value {
    font-weight: 600;
    color: var(--dark-color);
}

.result-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.level-label {
    font-weight: 600;
    color: var(--gray-color);
}

.level-value {
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    background: var(--light-color);
}

/* 维度分析 */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.dimension-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dimension-card:hover {
    transform: translateY(-5px);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dimension-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.dimension-score {
    background: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.dimension-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 1s ease;
}

.dimension-level {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-level::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dimension-level.low::before { background: #4cc9f0; }
.dimension-level.medium::before { background: #ffd166; }
.dimension-level.high::before { background: #ef476f; }
.dimension-level.severe::before { background: #ff0054; }

.dimension-desc {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.dimension-symptoms {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.dimension-symptoms h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.symptoms-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.symptom-tag {
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* 雷达图 */
.radar-chart-container {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
}

.radar-chart-wrapper {
    height: 400px;
    margin-bottom: 30px;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 症状分析 */
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.symptom-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.symptom-card:hover {
    transform: translateY(-5px);
}

.symptom-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.symptom-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.symptom-title {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.symptom-severity {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.symptom-content {
    line-height: 1.6;
    color: var(--gray-color);
}

/* 建议部分 */
.recommendations-tabs {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--light-color);
    border-bottom: 1px solid var(--light-gray);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--dark-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content-inner h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tab-content-inner ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.tab-content-inner li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tab-content-inner p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--gray-color);
}

/* 危机资源 */
.crisis-resources {
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
}

.crisis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.crisis-header i {
    font-size: 2rem;
}

.crisis-header h3 {
    font-size: 1.8rem;
}

.crisis-content p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.crisis-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.contact-item {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.contact-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.crisis-note {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

/* 结果页脚按钮 */
.result-actions-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 25px;
}

.share-link {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-link input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.share-options {
    margin-top: 30px;
}

.share-options h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.share-button.wechat { background: #07C160; }
.share-button.qq { background: #12B7F5; }
.share-button.weibo { background: #E6162D; }

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 15px;
}

/* 帮助内容 */
.help-content h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.help-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray-color);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.faq-question {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .welcome-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .question-container {
        grid-template-columns: 1fr;
    }
    
    .test-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .progress-container {
        min-width: 100%;
    }
    
    .instructions-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    body {
        padding-top: 120px;
    }
    
    .welcome-hero {
        padding: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .result-actions-footer {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .crisis-contacts {
        grid-template-columns: 1fr;
    }
}