/* --- 保留原本所有樣式,並在下方追加以下內容 --- */ .divider { border: none; border-top: 1px solid #e0e0e0; margin: 4rem 0 3rem 0; } .bus-section { background: white; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.04); } .bus-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; } .bus-controls { display: flex; align-items: center; gap: 0.8rem; } select { padding: 0.5rem 1rem; border: 1px solid #e0e0e0; background: #fff; border-radius: 0; font-size: 0.9rem; outline: none; } .btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; } .time-text { font-size: 0.85rem; color: var(--text-muted); } /* 核心:精準設定滾動高度限制大約 10 行路線的視覺空間 */ .table-container { max-height: 400px; overflow-y: auto; border: 1px solid #eeeeee; } table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; } th { background-color: #fafafa; position: sticky; top: 0; z-index: 10; font-weight: 600; border-bottom: 1px solid #eeeeee; } th, td { padding: 0.75rem 1rem; border-bottom: 1px solid #f5f5f5; } tr:hover { background-color: #fcfcfc; }