* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    background: #fff;
    padding: 0 20px;
}

.matrix {
    position: relative;
    width: 100%;
    height: 800px;
    background: #fff;
}

.axis {
    position: absolute;
    background: #e0e0e0;
}

.x-axis {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.y-axis {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.chart-title {
    text-align: center;
    margin-bottom: 30px;
}

.chart-title h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.nav-links {
    margin-bottom: 10px;
    font-size: 16px;
}

.nav-links a {
    color: #4A90E2;
    text-decoration: none;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #357ABD;
}

.chart-desc {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.quadrant-label {
    position: absolute;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qa-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.qa-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.qa-title h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.qa-subtitle {
    font-size: 12px;
    color: #666;
}

.question-item {
    padding: 10px 15px;
    margin: 5px 0;
    background: #f5f7fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.question-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.answer-container {
    min-height: 100px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    display: none;
}

.qrcode-container {
    position: fixed;
    left: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 1000;
    width: 280px;
}

.qrcode-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.toggle-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #357ABD;
}

/* 移动端响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .chart-title h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .chart-desc {
        font-size: 14px;
    }

    .matrix {
        height: 500px;
    }

    .qa-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .qrcode-container {
        display: none;
    }

    .question-item {
        font-size: 14px;
        padding: 12px;
    }

    .question-item:hover {
        transform: none;
    }

    .answer-container {
        font-size: 14px;
        padding: 12px;
    }

    .quadrant-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 375px) {
    .chart-title h1 {
        font-size: 20px;
    }

    .matrix {
        height: 400px;
    }

    .question-item {
        font-size: 13px;
        padding: 10px;
    }

    .answer-container {
        font-size: 13px;
        padding: 10px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

.navbar {
    margin-bottom: 20px;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}