.appeal-result {
    display: flex;
    flex-direction: column;
    align-items: center;     /* 水平置中 */
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.appeal_similar_cases,
.appeal_suggestion {
    width: 90%;              /* 根據螢幕寬度自動調整 */
    max-width: 1200px;       /* 避免超大螢幕太寬 */
    margin: 20px auto;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: left;        /* 內容靠左更易閱讀 */
}

.cases-scroll {
    max-height: 300px;        /* 可以依內容調整 */
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
    width: 100%;              /* 填滿父層寬度 */
    box-sizing: border-box;
}
.case-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-bottom: 1px solid #eee;
}
.case-item:last-child {
    border-bottom: none;
}
.case-index {
    font-weight: bold;
    min-width: 28px;
}
.case-link {
    text-decoration: none;
    color: #0044cc;
}
.case-link:hover {
    text-decoration: underline;
}
.case-reason {
    margin-left: auto;
    font-size: 0.9em;
    color: #666;
}
#assistant-advice {
    white-space: pre-wrap;   /* 保留原始換行與多空格 */
    word-break: break-word;  /* 超長網址自動換行 */
    line-height: 1.6;
}

@media (min-width: 992px) {  
    .appeal_similar_cases,
    .appeal_suggestion {
        width: 80%;
    }
}