html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
/* Chrome 相容性：移除所有元素的 focus ring */
*, *::before, *::after {
    outline: none !important;
}
button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
}
#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
#main-container {
    flex: 1;
    min-height: 0;
    display: flex;
    width: 100%;
    overflow: hidden;
}
#map-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    height: 100%;
}
#map {
    flex: 1;
    min-height: 0;
}
#info {
    width: 530px;
    min-width: 530px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    overflow-y: auto;
}
#info .info-hint {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}
/* ── 詳細列表面板（從下方推擠地圖）── */
#detail-panel {
    position: relative;
    height: 0;
    background: #fff;
    border-top: 2px solid #4A90D9;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    transition: height 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#detail-panel.open {
    height: 50vh;
}
#info h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #4A90D9;
    padding-bottom: 0.4rem;
}
.town-count-badge {
    font-size: 0.75em;
    color: #666;
    font-weight: normal;
    margin-left: 0.3em;
}

/* 右側面板摘要卡片（KPI 設計）── */
.district-summary {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-direction: row;
}
.summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);

    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.summary-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    line-height: 1.4;
}
/* 左側：標題靠上、大數字靠下 */
.summary-card .card-left {
    display: flex;
    flex-direction: column;
}
.summary-card .card-left .card-label {
    margin-bottom: auto;
}
.summary-card .card-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    line-height: 1.5;
}
.summary-card .card-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}
.summary-card .compare-label {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}
.summary-card .card-value-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    padding-top: 8px;
}
.summary-card .unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7c93;
}
.summary-card .change-pill {
    font-size: 0.85rem;
}
.summary-card .pct-str {
    font-size: 0.75rem;
    color: #6b7280;
}
.summary-card .summary-change.up { color: #16a34a; }
.summary-card .summary-change.down { color: #ef4444; }
/* 表格列用變化徽章 */
.cell-main {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 500;
}
.cell-prev {
    display: inline-block;
    margin-left: 1rem;
    text-align: right;
}
.row-pct {
    display: inline-block;
    font-size: 0.75rem;
}
.row-pct.up { color: #16a34a; }
.row-pct.down { color: #ef4444; }
.row-change {
    display: inline;
    font-size: 0.85rem;
}
.row-change.up { color: #16a34a; }
.row-change.down { color: #ef4444; }

/* 全國排名表格：排名欄位 */
.rank-num {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.rank-trend {
    display: inline-block;
    margin-right: 3px;
    font-size: 0.75rem;
}
.rank-trend.up { color: #16a34a; }
.rank-trend.down { color: #ef4444; }
.stats-table th:nth-child(1),
.stats-table td:nth-child(1) { width: 75px; min-width: 75px !important; max-width: 75px !important; text-align: center; padding-left: 4px; padding-right: 4px; }
.stats-table th:nth-child(2),
.stats-table td:nth-child(2) { width: 75px; min-width: 75px !important; max-width: 75px !important; text-align: center; padding-left: 4px; padding-right: 4px; }
.stats-table th:nth-child(3),
.stats-table td:nth-child(3) { width: 90px; min-width: 90px !important; max-width: 90px !important; text-align: center; }
.stats-table th:nth-child(5),
.stats-table td:nth-child(5) { width: 90px; min-width: 90px !important; max-width: 90px !important; text-align: right; }

/* 箭頭縮小 */
.arrow {
    font-size: 0.75rem;
}
/* 交易卡片 */
.tx-card {}
/* tx-card 與 price-card 保持一致 */
/* 價格卡片 */
.price-card {}

/* 摘要區塊（保留給舊版兼容） */
.summary-box {
    background: #fff;
    border: 1px solid #d0e0f5;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.summary-box p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* 統計表格 */
.stats-table-wrap {
    margin-top: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 34rem;
    display: flex;
    flex-direction: column;
}
.stats-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
/* 向下箭頭呼吸提示（sticky 於 scrollable 區底部，蓋在最後一列上方） */
.scroll-hint {
    position: sticky;
    bottom: 0;
    text-align: center;
    font-size: 1.4rem;
    color: #6b7280;
    padding: 1.5rem 0 0.6rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 60%, #fff 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}
.stats-table th, .stats-table td {
    border: 1px solid #d0d0d0;
    padding: 0.35rem 0.4rem;
    text-align: left;
    line-height: 1.35;
}
/* 均價欄位禁止換行，防止單位（萬）掉到下一列 */
#district-tbl td:nth-child(4) { white-space: nowrap; }
/* 欄寬設定：第1/3/5欄固定最小寬度，第2/4欄吃剩餘空間 */
#district-tbl th:nth-child(1), #district-tbl td:nth-child(1) { width: 70px; text-align: center; }
#district-tbl th:nth-child(3), #district-tbl td:nth-child(3) { min-width: 80px; text-align: right; }
#district-tbl th:nth-child(5), #district-tbl td:nth-child(5) { min-width: 80px; text-align: right; }
/* colspan 表頭置中 */
#district-tbl th[colspan] { text-align: center; }
/* 移除第2-3欄、第4-5欄之間的分隔線（鄉鎮表適用） */
#district-tbl td:nth-child(2), #district-tbl th:nth-child(2) { border-right: none; }
#district-tbl td:nth-child(3), #district-tbl th:nth-child(3) { border-left: none; }
#district-tbl td:nth-child(4), #district-tbl th:nth-child(4) { border-right: none; }
#district-tbl td:nth-child(5), #district-tbl th:nth-child(5) { border-left: none; padding-right: 15px; }
/* 全國排名表：所有欄位保留分隔線 */
#national-tbl td,
#national-tbl th {
    border-right: 1px solid #d0d0d0;
}
#national-tbl td:last-child,
#national-tbl th:last-child {
    padding-right: 15px;
}
#national-tbl th {
    background-color: #4A90D9; color: #fff; font-weight: 600;
    position: sticky; top: 0; z-index: 1;
}
#national-tbl tr:nth-child(even) { background-color: #f4f8ff; }
#national-tbl tr:hover { background-color: #e0edff; }
/* 本期筆數與較前期約 1:1 寬度 */
#national-tbl th:nth-child(4) { text-align: center; width: 80px; }
#national-tbl td:nth-child(4) { text-align: right; width: 80px; }
#national-tbl th:nth-child(5), #national-tbl td:nth-child(5) { width: 60px; }
#district-tbl tr:last-child td { padding-bottom: 0.15rem; }
#district-tbl th {
    background-color: #4A90D9; color: #fff; font-weight: 600;
    position: sticky; top: 0; z-index: 1;
}
#district-tbl th:first-child { text-align: center; }

#district-tbl tr:nth-child(even) { background-color: #f4f8ff; }
#district-tbl tr:hover { background-color: #e0edff; }

/* 數字欄位靠右對齊 */
#district-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 第2欄（本期筆數）靠右對齐 */
#district-tbl td:nth-child(2) { text-align: right; }

/* 鄉鎮市區欄位置中 */
#district-tbl td:first-child { text-align: center; }

/* 表格內單位字樣（萬、筆） */
.stats-table .unit {
    font-size: 0.85rem;
    color: #6b7c93;
    display: inline;
}
/* 表格內大數字與單位靠右對齐，使「萬」字垂直對齐 */
.stats-table .cell-main {
    display: inline-block;
    text-align: right;
}
.stats-table .cell-prev {
    display: inline-block;
    text-align: right;
}

/* ── 篩選列樣式 ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.8rem;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d0e0f5;
}
.filter-btn {
    padding: 5px 14px;
    border: 1.5px solid #4A90D9;
    border-radius: 16px;
    background: #fff;
    color: #4A90D9;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    outline: none;
}
.filter-btn:hover {
    background: #e8f0fe;
}
.filter-btn.active {
    background: #4A90D9;
    color: #fff;
}
.filter-label {
    font-size: 0.85rem;
    color: #666;
    margin-right: 4px;
}
/* ── 第一層分類 TAB（新建案 / 中古屋 / 租屋）── */
.ws-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
    background: #eef4fb;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 2px;
}
.ws-tab {
    flex: 1;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #4A6785;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    outline: none;
}
.ws-tab:hover {
    background: #dce8f7;
    color: #2c5a8f;
}
.ws-tab.active {
    background: #4A90D9;
    color: #fff;
    box-shadow: 0 1px 3px rgba(74, 144, 217, 0.4);
}
.exclude-special-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
}
.exclude-special-label input[type="checkbox"] {
    cursor: pointer;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #4A90D9;
    color: #fff;
}
.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.panel-filter-badges {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    align-items: center;
}
.panel-filter-badges .filter-badge {
    margin-left: 0;
}
.panel-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.85);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.panel-close:hover {
    background: rgba(255,255,255,0.2);
}
.panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.panel-content-inner {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
/* 捲動容器內層 padding：讓 sticky 表頭貼齊 scrollport 頂緣（內容在表頭處裁切），
   同時保留表格與面板邊緣的視覺間距 */
.panel-inner-pad {
    padding: 1rem;
}
/* 面板頂部 KPI 橫條：人口/所得 + 統計摘要，五張卡並列一行 */
.kpi-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: stretch;
    padding: 1rem 1rem 0;
    margin-bottom: 0;
}
.panel-content-inner:first-child {
    margin-top: 0;
}
/* 面板內的統計摘要（內容成為 KPI 橫條的直接 flex item） */
.panel-summary {
    display: contents;
}
.panel-summary-item {
    flex: 1 1 auto;
        min-width: 90px;
        max-width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 0.55rem 0.8rem;
    }
    .panel-summary-item .unit {
        font-size: 0.8rem;
        color: #64748b;
        font-weight: 500;
        margin-left: 0.2rem;
    }
    .panel-summary-item .label {
        font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.panel-summary-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}
/* 篩選條件卡：badge 依內容換行，避免長日期區間溢出卡片 */
.panel-summary-item .value.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    font-weight: 500;
}
/* 區域現況（人口 + 所得）：成為 KPI 橫條的直接 flex item */
#regional-status,
.regional-status-grid {
    display: contents;
}
.regional-status-card {
    flex: 2 1 auto;
    min-width: 150px;
    max-width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.55rem 0.8rem;
}
.regional-status-card .label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.regional-status-card .period {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
}
.regional-status-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}
.regional-status-card .unit {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 0.2rem;
}
.regional-status-card .sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
}
/* KPI 卡 YoY（年對年同期）變化行：regional-status 卡與 panel-summary 卡共用 */
.regional-status-card .yoy,
.panel-summary-item .yoy {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    min-height: 1.1em;
    color: #64748b;
}
.regional-status-card .yoy .summary-change,
.panel-summary-item .yoy .summary-change {
    font-size: 0.78rem;
    font-weight: 600;
}
.regional-status-card .yoy .summary-change.up,
.panel-summary-item .yoy .summary-change.up { color: #16a34a; }
.regional-status-card .yoy .summary-change.down,
.panel-summary-item .yoy .summary-change.down { color: #ef4444; }
.regional-status-card .yoy .pct-str,
.panel-summary-item .yoy .pct-str {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 400;
}
.regional-status-card .yoy .yoy-na,
.panel-summary-item .yoy .yoy-na {
    color: #cbd5e1;
}
/* 面板內的交易表格 */
.detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}
.detail-table th {
    background: #4A90D9;
    color: #fff;
    padding: 0.6rem;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}
.detail-table th,
.detail-table td {
    white-space: nowrap;
}
.detail-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #eee;
}
.detail-table tbody tr {
    position: relative;
    z-index: 0;
    cursor: pointer;
}
.detail-table tr:nth-child(even) {
    background: #f9f9f9;
}
.detail-table tr:hover {
    background: #e8f0fe;
}
.detail-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.detail-table .unit {
    font-size: 0.75em;
    color: #999;
    margin-left: 1px;
}
.detail-table th .unit {
    color: rgba(255, 255, 255, 0.8);
}
/* 分頁按鈕 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.pagination button {
    padding: 0.4rem 0.8rem;
    border: 1px solid #4A90D9;
    background: #fff;
    color: #4A90D9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}
.pagination button:hover:not(:disabled) {
    background: #e8f0fe;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination button.active {
    background: #4A90D9;
    color: #fff;
}
.pagination .page-info {
    font-size: 0.85rem;
    color: #666;
}

.filter-divider {
    width: 100%;
    height: 0;
    border-top: 1px solid #e0e0e0;
    margin: 4px 0;
}
.custom-date-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 10px;
}
.custom-date-panel.open {
    max-height: 60px;
    padding: 8px 10px 10px;
}
.custom-date-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}
.custom-date-inner input[type="date"] {
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.82rem;
}
.date-sep {
    color: #888;
}
.custom-date-inner button {
    padding: 4px 10px;
    background: #4A90D9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
}
.custom-date-inner button:hover {
    background: #357ABD;
}
/* 篩選徽章 */
.filter-badge {
    display: inline-block;
    background: #E3F2FD;
    color: #1565C0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* KPI 狀態提示 - 保留原卡片顏色，僅用文字顏色區分 */
.summary-card.status-up, .summary-card.status-down, .summary-card.status-stable {
    /* 保留原漸層背景 */
}
.summary-card .card-alert {
    margin-top: 0.4rem;
    padding: 0.35rem 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.price-card.status-down .card-value-large { color: #1a365d; }

/* 橘點對話泡泡（點選地點後顯示） */
.tx-bubble-tooltip {
    background: #fff;
    border: 2px solid #E86A10;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    font-size: 0.78rem;
    line-height: 1.4;
    white-space: nowrap;
}
.tx-bubble-tooltip::before {
    border-top-color: #E86A10;
}
.tx-bubble-price {
    font-weight: 700;
    color: #E86A10;
    font-size: 0.9rem;
}
.tx-bubble-price .unit {
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 1px;
}
.tx-bubble-detail {
    color: #555;
    font-size: 0.72rem;
}
.tx-bubble-detail .unit {
    font-size: 0.85em;
    color: #999;
    margin-left: 1px;
}
.tx-card.status-down .card-value-large { color: #7c3a00; }

/* Address text cannot enlarge the column; JS scales only text that exceeds it. */
/* Compact numeric columns; give the address all remaining table width. */
.detail-table th:not(.address-column),
.detail-table td:not(.address-column) { width: 1%; }
.detail-table .address-column { width: auto; }
.detail-table th,
.detail-table td { padding-left: 0.35rem; padding-right: 0.35rem; }
.detail-table .address-fit {
    display: block;
    width: 0;
    min-width: 100%;
    white-space: nowrap;
}
.detail-table .address-fit > span {
    display: inline-block;
    white-space: nowrap;
}

/* ── 全頁底部版權聲明與資料來源列 ── */
#app-footer {
    flex-shrink: 0;
    min-height: 34px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.74rem;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #334155;
    z-index: 1000;
    box-sizing: border-box;
}
#app-footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.15s ease;
}
#app-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}
.footer-left, .footer-center, .footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.footer-sep {
    color: #475569;
    font-size: 0.7em;
}
.footer-about-btn {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    font-family: inherit;
}
.footer-about-btn:hover {
    background: #475569;
    color: #fff;
    border-color: #64748b;
}

/* ── 授權與圖資詳細說明彈出視窗 (Modal) ── */
.about-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.about-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.about-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.about-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}
.about-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.about-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.about-modal-body {
    padding: 20px 24px;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.6;
}
.about-section {
    margin-bottom: 18px;
}
.about-section:last-child {
    margin-bottom: 0;
}
.about-section h4 {
    margin: 0 0 6px 0;
    color: #0f172a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.about-section p, .about-section ul {
    margin: 0 0 6px 0;
    color: #475569;
}
.about-section ul {
    padding-left: 20px;
}
.about-section li {
    margin-bottom: 4px;
}
.about-section a {
    color: #2563eb;
    text-decoration: none;
}
.about-section a:hover {
    text-decoration: underline;
}
.about-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.about-disclaimer {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 10px 14px;
    color: #991b1b;
    font-size: 0.82rem;
    margin-top: 14px;
}

@media (max-width: 1024px) {
    #app-footer {
        height: auto;
        padding: 6px 12px;
        flex-direction: column;
        gap: 6px;
    }
    .footer-left, .footer-center, .footer-right {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}
