/* 2026-11-30 W2143 #1 輪胎查詢（A「夜路」深色版；本檔自成一套，不依賴 rc.css） */
.tireApp {
	--t-gold: #F5C400;
	--t-gold-d: #F5C400;
	--t-ink: #F2F2EF;
	--t-mute: #A3A7AB;
	--t-line: #34383C;
	--t-band: #232629;
	--t-band-ink: #F2F2EF;
	--t-paper: #202326;
	max-width: 1240px; margin: 0 auto; padding: 0 16px; color: var(--t-ink); box-sizing: border-box;
}
.tireApp *, .tireApp *::before, .tireApp *::after { box-sizing: border-box; word-break: normal; overflow-wrap: anywhere; letter-spacing: .04em; font-family: 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
.tireApp h1, .tireApp h2, .tireApp h3, .tireApp p, .tireApp dl, .tireApp dd, .tireApp ul { margin: 0; padding: 0; }
.tireApp ul { list-style: none; }

/* 查詢列：像輪胎側壁上的尺寸標示 205 / 55 R 16 */
.tireBand { background: var(--t-band); color: var(--t-band-ink); padding: 34px 40px 30px; border-radius: 6px; border: 1px solid var(--t-line); }
.tireBand .bandTitle { font-size: 15px; font-weight: 700; color: var(--t-gold); margin-bottom: 18px; }
.tireSize { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 10px; }
.tireSize .sep { font-size: 44px; line-height: 64px; color: var(--t-gold); font-weight: 500; padding-bottom: 22px; font-family: 'Barlow Condensed', sans-serif; }
.tireField { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tireField .lab { font-size: 13px; color: var(--t-mute); order: 2; }
.tireSel { order: 1; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 132px; min-height: 64px; padding: 0 14px 0 16px; background: #1A1C1E; color: var(--t-band-ink); border: 1px solid #484D52; border-radius: 6px; cursor: pointer; font-size: 40px; font-weight: 700; font-family: 'Barlow Condensed', 'Noto Sans TC', sans-serif; line-height: 1; font-variant-numeric: tabular-nums; text-align: left; }
.tireSel .ph { font-size: 17px; color: var(--t-mute); font-weight: 400; font-family: 'Noto Sans TC', sans-serif; }
.tireSel svg { width: 14px; height: 14px; flex: none; stroke: var(--t-gold); transition: transform .2s ease; }
.tireSel[aria-expanded="true"] svg { transform: rotate(180deg); }
.tireSel:focus-visible, .tireBtn:focus-visible, .tireKw input:focus-visible, .tireTabs a:focus-visible { outline: 2px solid var(--t-gold); outline-offset: 2px; }
.tireSel.sm { min-height: 46px; font-size: 17px; min-width: 180px; }
.tireSel.sm .ph { font-size: 16px; }

.tireOpts { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 100%; max-height: 300px; overflow-y: auto; background: var(--t-paper); border: 1px solid #484D52; border-radius: 6px; padding: 6px; display: none; scrollbar-width: thin; }
.tireField .tireOpts { order: 3; }
.tireOpts.open { display: block; }
.tireOpts li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 16px; font-size: 17px; color: var(--t-ink); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; border-radius: 4px; }
.tireOpts li small { font-size: 13px; color: var(--t-mute); }
.tireOpts li.act, .tireOpts li:hover { background: #30353A; }
.tireOpts li[aria-selected="true"] { color: var(--t-gold-d); font-weight: 500; }

.tireMore { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--t-line); }
.tireKw { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.tireKw input { order: 1; height: 46px; padding: 0 14px; font-size: 16px; color: var(--t-band-ink); background: #1A1C1E; border: 1px solid #484D52; border-radius: 6px; width: 100%; }
.tireKw input::placeholder { color: #6E7378; }
.tireKw input:focus { outline: none; border-color: var(--t-gold); }
.tireKw .lab { order: 2; font-size: 13px; color: var(--t-mute); }
.tireBtns { display: flex; align-items: center; gap: 18px; padding-bottom: 28px; }
.tireBtn { height: 46px; padding: 0 34px; background: var(--t-gold); color: #1A1600; border: 0; border-radius: 6px; font-size: 17px; font-weight: 700; cursor: pointer; }
.tireBtn:hover { background: #FFD52E; }
.tireBtn:active { background: #E0B400; }
.tireClear { color: var(--t-mute); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* 結果 */
.tireHead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 44px 0 14px; }
.tireHead h2 { font-size: 30px; font-weight: 900; font-family: 'Barlow Condensed', 'Noto Sans TC', sans-serif; letter-spacing: .02em; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.tireHead h2 small { font-size: 18px; font-weight: 400; color: var(--t-mute); margin-left: 8px; }
.tireHead .cnt { color: var(--t-mute); font-size: 15px; }
.tireTabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--t-line); margin-bottom: 6px; }
.tireTabs a { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 0 9px; color: var(--t-mute); font-size: 16px; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tireTabs a span { font-size: 13px; color: #6E7378; font-variant-numeric: tabular-nums; }
.tireTabs a:hover { color: var(--t-ink); }
.tireTabs a.on { color: var(--t-ink); border-bottom-color: var(--t-gold); font-weight: 700; }
.tireTabs a.on span { color: var(--t-gold); }

.tireItem { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--t-line); }
.tirePic { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; background: #E9EAE7; border-radius: 6px; overflow: hidden; }
.tirePic img { width: 100%; height: 100%; object-fit: contain; }
.tirePic .noPic { width: 64px; height: 64px; color: #9AA0A6; display: block; }
.tirePic .noPic svg { width: 100%; height: 100%; display: block; }
.tireMain { min-width: 0; }
.tireBrand { font-size: 14px; color: var(--t-gold-d); font-weight: 700; }
.tirePattern { font-size: 24px; font-weight: 700; color: var(--t-ink); line-height: 1.35; margin-top: 2px !important; }
.tireSpec { font-size: 20px; font-weight: 600; font-family: 'Barlow Condensed', 'Noto Sans TC', sans-serif; letter-spacing: .04em; color: var(--t-ink); margin-top: 6px !important; font-variant-numeric: tabular-nums; }
.tireMeta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px !important; }
.tireMeta div { display: flex; gap: 10px; font-size: 15px; }
.tireMeta dt { color: var(--t-mute); flex: none; }
.tireMeta dd { color: var(--t-ink); }
.tireFeat { margin-top: 12px !important; max-width: 62ch; font-size: 15px; line-height: 1.85; color: #C9CCCF; }

.tireEmpty { padding: 60px 0; text-align: center; border-bottom: 1px solid var(--t-line); }
.tireEmpty p { text-align: center; font-size: 17px; color: var(--t-ink); }
.tireTips { margin-top: 14px !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.tireTips a { color: var(--t-gold-d); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.tireApp #pagenav { margin-top: 36px; }

/* 分頁（tire.php 用網站共用分頁 HTML） */
.tireApp #pagenav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tireApp #pagenav:empty { display: none; }
.tireApp #pagenav a, .tireApp #pagenav strong { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--t-line); border-radius: 6px; color: var(--t-mute); font: 600 17px 'Barlow Condensed', sans-serif; text-decoration: none; }
.tireApp #pagenav a:hover { border-color: var(--t-gold); color: var(--t-gold); }
.tireApp #pagenav strong { background: var(--t-gold); border-color: var(--t-gold); color: #1A1600; }
.tireApp #pagenav i.fa { font-style: normal; }
.tireApp #pagenav .fa-angle-double-left::before { content: "‹"; }
.tireApp #pagenav .fa-angle-double-right::before { content: "›"; }
@media (prefers-reduced-motion: reduce) { .tireSel svg { transition: none; } }
@media screen and (max-width: 980px) {
	.tireBand { padding: 28px 24px 24px; }
}
@media screen and (max-width: 640px) {
	.tireApp { padding: 0 16px; }
	.tireBand { padding: 22px 16px 20px; }
	.tireSize { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 6px; align-items: end; }
	.tireSize .sep { font-size: 26px; line-height: 50px; padding-bottom: 22px; }
	.tireSel { min-width: 0; width: 100%; min-height: 50px; font-size: 24px; padding: 0 8px 0 10px; gap: 4px; }
	.tireSel .ph { font-size: 14px; }
	.tireSel svg { width: 11px; height: 11px; }
	.tireField .lab { font-size: 12px; }
	.tireOpts li { font-size: 16px; padding: 11px 14px; }
	.tireMore { flex-direction: column; align-items: stretch; }
	.tireMore .tireField, .tireKw { flex: none; width: 100%; }
	.tireSel.sm { width: 100%; }
	.tireBtns { padding-bottom: 0; justify-content: space-between; }
	.tireBtn { flex: 1; }
	.tireHead { margin-top: 32px; }
	.tireHead h2 { font-size: 24px; }
	.tireTabs { gap: 2px 20px; }
	.tireItem { grid-template-columns: 92px 1fr; gap: 16px; padding: 22px 0; }
	.tirePic { width: 92px; height: 92px; }
	.tirePic .noPic { width: 44px; height: 44px; }
	.tirePattern { font-size: 19px; }
	.tireSpec { font-size: 16px; }
	.tireFeat { grid-column: 1 / -1; }
}

/* ===== 2026-11-30 查詢框版面調整：標籤在上、三個尺寸平均撐滿、高度一律 48px、文字與箭頭置中 ===== */
.tireField { gap: 8px; min-width: 0; }
.tireField .lab, .tireKw .lab { order: 0; font-size: 14px; line-height: 1.2; color: var(--t-mute); }
.tireSel { order: 1; width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 0 14px 0 16px; font-size: 24px; line-height: 1; align-items: center; }
.tireSel .val { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; line-height: 1; }
.tireSel .ph { font-size: 16px; line-height: 1; }
.tireSel svg { width: 14px; height: 14px; display: block; }
.tireSel.sm { min-width: 0; height: 48px; min-height: 48px; font-size: 17px; }
.tireField .tireOpts { order: 2; }
.tireSize { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: end; gap: 0 10px; }
.tireSize .sep { height: 48px; line-height: 48px; padding: 0; font-size: 30px; text-align: center; align-self: end; }
.tireMore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 16px; }
.tireMore .tireField, .tireKw { width: auto; flex: none; }
.tireKw { gap: 8px; }
.tireKw input { order: 1; height: 48px; }
.tireBtns { padding-bottom: 0; height: 48px; }
.tireBtn { height: 48px; }
.tireOpts { top: calc(100% + 6px); max-height: 280px; padding: 6px; z-index: 60; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.tireOpts li { align-items: baseline; padding: 11px 14px; font-size: 17px; line-height: 1.35; gap: 20px; }
.tireOpts li small { font-size: 13px; white-space: nowrap; }
@media screen and (max-width: 640px) {
	.tireSize { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 0 6px; }
	.tireSize .sep { font-size: 22px; padding: 0; line-height: 48px; }
	.tireSel { height: 48px; min-height: 48px; font-size: 20px; padding: 0 10px 0 12px; gap: 6px; }
	.tireSel .ph { font-size: 15px; }
	.tireMore { grid-template-columns: 1fr; gap: 16px; }
	.tireBtns { justify-content: space-between; }
	.tireOpts { min-width: 140px; }
	.tireField[data-k="d"] .tireOpts { left: auto; right: 0; }
}
