* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif; color: #696969; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #0077d9; outline-offset: 4px; }
.home-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.masthead, .site-footer {
 background-color: #58a7dc;
 background-image: linear-gradient(125deg, #188bd0bb 0%, #78bce466 30%, #94d1f466 58%, #53a2d166 58.5%, #87c5e9aa 100%);
 color: #fff;
}
.masthead { min-height: 88px; display: flex; align-items: center; gap: 50px; padding: 12px 28px; }
.brand { flex-shrink: 0; font-weight: 900; font-style: italic; font-size: 34px; letter-spacing: -2px; color: #fff; white-space: nowrap; text-shadow: 0 0 1px #fff; }
.bank-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 58px); font-size: 17px; }
.bank-links a { white-space: nowrap; }
.bank-links a:hover { text-decoration: underline; }
.home-content { flex: 1; min-height: 610px; background: #fff url("/__nav/bg-main.jpg") no-repeat center bottom; background-size: cover; }
.search-section { width: min(900px, 88%); margin: 44px auto 0; text-align: center; }
.hero-brand { color: #0088ff; font-size: clamp(38px, 4.8vw, 72px); font-weight: 900; line-height: 1.24; letter-spacing: -3px; margin: 0 0 22px; }
.search-form { width: 100%; height: 64px; display: flex; }
.search-form input { min-width: 0; flex: 1; width: 0; border: 1px solid #a9a9a9; border-right: 0; border-radius: 0; padding: 0 12px; font-size: 27px; color: #111; background: #fff; -webkit-appearance: none; }
.search-form input::placeholder { font-size: 21px; color: #aaa; }
.search-form button { flex: 0 0 145px; border: 0; border-radius: 0; color: #fff; background: #00b4dd; font-size: 21px; letter-spacing: 4px; }
.search-form button:hover { background: #00a8d2; }
.search-form button:disabled { opacity: .7; cursor: wait; }
.site-footer { text-align: center; padding: 23px 16px; }
.site-footer p { margin: 10px 0; font-size: 15px; }
.mobile-banks { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lines-page { background: #f9fcff; min-height: 100vh; }
.lines-page .masthead { min-height: 64px; padding: 8px 24px; justify-content: space-between; }
.lines-page .brand { font-size: 26px; }
.line-actions { display: flex; gap: 18px; align-items: center; font-size: 15px; white-space: nowrap; }
.line-actions button { color: inherit; border: 0; background: none; padding: 8px 0; }
.line-actions button:hover, .line-actions a:hover { text-decoration: underline; }
.line-actions button:disabled { opacity: .6; cursor: wait; }
.lines-content { padding: 16px 20px 20px; max-width: 1600px; margin: auto; }
.lines-content h1 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.table-shell { border: 1px solid #d5d5d5; border-radius: 8px; padding: 8px 18px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: 16px; }
th { font-weight: 700; padding: 10px; }
th:nth-child(1) { width: 23%; }
th:nth-child(2) { width: 40%; }
th:nth-child(3) { width: 37%; }
td { border-top: 1px solid #d5d5d5; padding: 8px 10px; line-height: 1.4; }
.line-cell { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.line-link { color: #00a4ee; white-space: nowrap; }
.line-link:hover { text-decoration: underline; }
.best { color: #ff1515; font-size: 14px; white-space: nowrap; }
[hidden] { display: none !important; }
.speed { font-variant-numeric: tabular-nums; font-size: 16px; }
.speed-note { font-size: 12px; color: #888; margin: 10px 2px 0; }
.empty-state { text-align: center; padding: 60px 16px; border: 1px solid #ddd; border-radius: 12px; }
.empty-state a { color: #00a4ee; }
.no-lines { color: #999; }
@media (min-width: 1700px) {
 .masthead { min-height: 118px; }
 .search-section { width: min(1200px, 88%); margin-top: 60px; }
 .hero-brand { font-size: 90px; margin-bottom: 22px; }
 .search-form { height: 84px; }
 .search-form input { font-size: 36px; }
 .search-form button { flex-basis: 195px; font-size: 27px; }
}
@media (max-width: 1100px) {
 .masthead { gap: 26px; }
 .brand { font-size: 28px; }
 .desktop-banks { gap: 18px; flex-wrap: wrap; font-size: 15px; }
}
@media (max-width: 767px) {
 .masthead { min-height: 64px; padding: 12px 24px; }
 .brand { font-size: 27px; letter-spacing: -1.5px; }
 .desktop-banks { display: none; }
 .home-content { min-height: 540px; background-position: left bottom; }
 .search-section { width: 84%; margin-top: 35px; }
 .hero-brand { font-size: clamp(34px, 8.8vw, 58px); letter-spacing: -2px; margin-bottom: 20px; }
 .search-form { height: 58px; }
 .search-form input { font-size: 25px; padding: 0 10px; }
 .search-form input::placeholder { font-size: 17px; }
 .search-form button { flex-basis: 33%; font-size: 20px; letter-spacing: 2px; }
 .site-footer { padding: 18px 20px 12px; }
 .mobile-banks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; max-width: 530px; margin: auto; }
 .mobile-banks a { color: #666; background: #fff; padding: 9px 2px; border-radius: 28px; font-size: clamp(12px, 3.2vw, 17px); }
 .site-footer p { font-size: 11px; line-height: 1.6; margin: 15px 0 0; }
 .lines-page .masthead { min-height: 56px; padding: 8px 16px; gap: 10px; }
 .lines-page .brand { font-size: clamp(21px, 5.3vw, 28px); }
 .line-actions { font-size: 13px; gap: 12px; }
 .lines-content { padding: 14px 16px 18px; }
 .lines-content h1 { font-size: 22px; margin-bottom: 10px; }
 .table-shell { padding: 6px 10px; border-radius: 8px; }
 table { font-size: 15px; }
 th { padding: 8px 3px; line-height: 1.35; font-size: 13px; }
 th:nth-child(1) { width: 24%; }
 th:nth-child(2) { width: 44%; }
 th:nth-child(3) { width: 32%; }
 td { padding: 7px 3px; line-height: 1.35; }
 .line-cell { gap: 2px 6px; }
 .best { font-size: 12px; }
 .speed { font-size: 14px; white-space: nowrap; }
 .speed-note { font-size: 11px; line-height: 1.5; }
}
@media (max-width: 359px) {
 .lines-page .masthead { padding: 10px; }
 .line-actions { gap: 8px; font-size: 12px; }
 .lines-content { padding-left: 12px; padding-right: 12px; }
 .table-shell { padding-left: 8px; padding-right: 8px; }
}
