#summary-result {
    color: #374151; /* 深灰色文字，閱讀舒適 */
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 大標題 (H2) - 對應你的 TL;DR、關鍵重點整理 */
#summary-result h2 {
    color: #4f46e5; /* Indigo-600 */
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e7ff; /* 柔和的底線 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#summary-result h2:first-child {
    margin-top: 0; /* 第一個標題不需要上方間距 */
}

/* 小標題 (H3) */
#summary-result h3 {
    color: #312e81;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* 段落 */
#summary-result p {
    margin-bottom: 1.25rem;
}

/* 條列式清單 (ul, li) */
#summary-result ul {
    list-style-type: none; /* 隱藏預設醜圓點 */
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}
#summary-result li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}
/* 自訂高質感的靛藍色清單點點 */
#summary-result li::before {
    content: "•";
    color: #4f46e5;
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 1.5rem;
    line-height: 1;
}

/* 粗體字特別凸顯 */
#summary-result strong {
    color: #111827;
    font-weight: 700;
    background: linear-gradient(120deg, #e0e7ff 0%, #e0e7ff 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 80%;
}

/* 表格美化 (如果有數據的話) */
#summary-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    overflow: hidden; /* 讓圓角生效 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
#summary-result th {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
}
#summary-result td {
    background-color: white;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
#summary-result tr:last-child td {
    border-bottom: none;
}
#summary-result tr:nth-child(even) td {
    background-color: #f8fafc; /* 斑馬紋底色 */
}

/* 行內程式碼 / 專有名詞標籤 */
#summary-result p code, #summary-result li code {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}

/* 程式碼區塊 (Fenced Code) */
#summary-result pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* 分隔線 (對應你 Python 裡的 <hr>) */
#summary-result hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(79, 70, 229, 0), rgba(79, 70, 229, 0.5), rgba(79, 70, 229, 0));
    margin: 2.5rem 0;
}