/* 主题色 #d9534f */

/* --- 开发者卡片样式 --- */
.dev-card {
    display: flex;
    flex-direction: column;
}
.dev-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 10px;
}
.dev-avatar {
    width: 45px; /* 头像缩小 */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #d9534f;
}
.dev-info h4 {
    margin: 0 0 2px 0; /* 减小间距 */
    font-size: 1.1rem;
    color: #333;
}
.dev-email {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: block;
}
.dev-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --- 问题列表卡片样式 (更紧凑) --- */
.question-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border-top: 1px solid #eee;
}
.q-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0; /* 紧凑布局 */
    cursor: pointer;
    transition: background 0.3s;
}
.q-item:hover {
    background: #fdfdfd;
}
.q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px; /* 紧凑布局 */
}
.q-email {
    font-weight: bold;
    font-size: 0.85rem;
    color: #333;
}
.q-status {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    color: #fff;
}
.q-status.unreplied {
    background-color: #d9534f; /* 红色 未回复 */
}
.q-status.replied {
    background-color: #4CAF50; /* 绿色 已回复 */
}
.q-body {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 事故等级颜色 */
.level-badge {
    font-weight: bold;
    margin-right: 5px;
}
.level-blue { color: #0275d8; }   /* P4, P5 轻微 */
.level-orange { color: #f0ad4e; } /* P2, P3 橙色 */
.level-red { color: #d9534f; }    /* P0, P1 红色 */

/* 问题详情中的内容块样式 */
.q-detail-box {
    background: #f9f9f9;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    word-break: break-all;
}

/* --- 悬浮提问按钮 --- */
.floating-ask-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 25px; /* 椭圆外观适应文字 */
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none !important; /* 禁止有阴影 */
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}
.floating-ask-btn:hover {
    transform: translateY(-3px);
    background-color: #c9302c;
}
.lightbulb-icon {
    width: 20px;
    height: 20px;
}
.floating-btn-text {
    margin-left: 8px;
    font-size: 15px;
    font-weight: bold;
}

/* --- 提问及通用弹窗 --- */
.modal-overlay-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.modal-overlay-custom.active {
    opacity: 1;
    visibility: visible;
}
.ask-modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 25px;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay-custom.active .ask-modal-card {
    transform: translateY(0);
}
.ask-modal-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}
.ask-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.ask-input, .ask-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    background-color: #fff;
}
.ask-input:focus, .ask-textarea:focus {
    border-color: #d9534f;
}
.ask-textarea {
    resize: vertical;
    min-height: 100px;
}
.ask-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.ask-btn-cancel, .ask-btn-submit {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s, opacity 0.3s;
}
.ask-btn-cancel {
    background-color: #f1f1f1;
    color: #555;
}
.ask-btn-cancel:hover {
    background-color: #e4e4e4;
}
.ask-btn-submit {
    background-color: #d9534f;
    color: #fff;
}
.ask-btn-submit:hover {
    opacity: 0.9;
}
