/* =========================================================
   鴻翔交通 — 2026-11 特斯拉風（白底、一屏一件事）
   載入順序在 styles.css 之後，把舊頁面一起拉成白底
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-warm: #f4f4f4;
  --paper-cool: #f7f7f7;
  --ink: #171a20;
  --ink-soft: #393c41;
  --ink-mute: #5c5e62;
  --rule: #171a20;
  --hairline: rgba(23, 26, 32, 0.1);
  --red: #9e1b32;
  --red-deep: #7d1527;
  --t-gray: #f4f4f4;
  --t-gray-2: #eeeeee;
  --t-radius: 6px;
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: var(--font-sans);
  --font-display: var(--font-sans);
}

body { background: #fff; color: var(--ink); font-family: var(--font-sans); letter-spacing: 0; font-feature-settings: normal; }
.t-screen, .t-screen * { font-feature-settings: normal; }

/* ---------- 按鈕 ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 44px; padding: 0 24px;
  border-radius: var(--t-radius); border: 0;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.t-btn:active { transform: scale(.98); }
.t-btn-red { background: var(--red); color: #fff; }
.t-btn-red:hover { background: var(--red-deep); }
.t-btn-light { background: rgba(255,255,255,.82); color: var(--ink); backdrop-filter: blur(8px); }
.t-btn-light:hover { background: #fff; }
.t-btn-gray { background: var(--t-gray); color: var(--ink); }
.t-btn-gray:hover { background: #e6e6e6; }
.t-btn-dark { background: var(--ink); color: #fff; }
.t-btn-dark:hover { background: #393c41; }
.t-btn-line { background: #06c755; color: #fff; }
.t-btn-line:hover { background: #05b04b; }
.t-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .t-btns { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; padding: 0 24px; }
  .t-btn { min-width: 0; width: 100%; }
}

/* ---------- 一屏一件事 ---------- */
.t-screen {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 104px 0 48px; overflow: hidden; text-align: center;
}
.t-screen-auto { min-height: auto; padding: 112px 0 96px; justify-content: flex-start; }
.t-bg-gray { background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e9 100%); }
.t-bg-white { background: #fff; }
.t-bg-soft { background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%); }

.t-title { font-size: clamp(32px, 5vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.t-title b { font-weight: 700; color: var(--red); }
.t-sub { margin-top: 10px; font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); line-height: 1.6; }
.t-sub u { text-decoration: none; border-bottom: 1px solid currentColor; }
.t-h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 500; line-height: 1.25; }
.t-kicker { font-size: 13px; letter-spacing: .12em; color: var(--ink-mute); font-weight: 500; margin-bottom: 10px; }

/* 車照：去背圖放在淺灰地板上 */
.t-car { position: relative; width: min(980px, 94vw); flex: 1; display: flex; align-items: center; justify-content: center; margin: 12px auto; }
.t-car img { width: 100%; max-height: 52vh; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 24px 22px rgba(0,0,0,.16)); }
.t-car::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 8%; height: 34px; background: radial-gradient(ellipse at center, rgba(0,0,0,.22), transparent 70%); filter: blur(6px); }

/* 規格三格 */
.t-specs { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin-bottom: 28px; }
.t-spec .v { font-size: clamp(22px, 3vw, 30px); font-weight: 500; color: var(--ink); line-height: 1.2; }
.t-spec .l { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }

/* 進場動畫 */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 導覽列 ---------- */
.t-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); transition: background .3s, box-shadow .3s; }
.t-nav.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.t-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.t-logo img { height: 30px; width: auto; }
.t-logo span { font-size: 17px; font-weight: 700; letter-spacing: .12em; }
.t-links { display: flex; gap: 4px; }
.t-links a { padding: 7px 14px; border-radius: var(--t-radius); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background .2s; }
.t-links a:hover, .t-links a.on { background: rgba(0,0,0,.06); }
.t-nav-right { display: flex; gap: 4px; align-items: center; }
.t-nav-right a { padding: 7px 14px; border-radius: var(--t-radius); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.t-nav-right a:hover { background: rgba(0,0,0,.06); }
.t-menu-btn { display: none; padding: 7px 14px; border-radius: var(--t-radius); background: rgba(0,0,0,.06); border: 0; font: 500 14px var(--font-sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .t-links, .t-nav-right .t-hide-m { display: none; }
  .t-menu-btn { display: inline-block; }
}
.t-drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); z-index: 70; }
.t-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 71; padding: 64px 24px 24px; overflow-y: auto; }
.t-drawer a { display: block; padding: 12px 14px; border-radius: var(--t-radius); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.t-drawer a:hover, .t-drawer a.on { background: var(--t-gray); }
.t-drawer .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 22px; cursor: pointer; border-radius: var(--t-radius); }
.t-drawer .x:hover { background: var(--t-gray); }

/* ---------- 頁尾 ---------- */
.t-foot { padding: 40px 24px 96px; text-align: center; font-size: 13px; color: var(--ink-mute); background: #fff; }
.t-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; }
.t-foot a { color: var(--ink-mute); text-decoration: none; }
.t-foot a:hover { color: var(--ink); }

/* LINE 浮動鈕：改成小圓角 */
.line-float { border-radius: 999px !important; }

/* ---------- 卡片、格子 ---------- */
.t-shell { width: min(1200px, 92vw); margin: 0 auto; }
.t-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .t-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .t-grid-3, .t-grid-2 { grid-template-columns: 1fr; } }
.t-card { background: var(--t-gray); border-radius: 12px; padding: 28px 24px; text-align: left; }
.t-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; letter-spacing: 0; }
.t-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.t-card .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 16px; color: var(--red); }
.t-card .ico svg { width: 22px; height: 22px; }
a.t-card { display: block; text-decoration: none; color: inherit; transition: background .2s, transform .2s; }
a.t-card:hover { background: #ececec; transform: translateY(-2px); }

/* 手機外框 */
.t-phone { width: 270px; max-width: 70vw; border-radius: 40px; background: #111; padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.18), inset 0 0 0 2px #333; position: relative; }
.t-phone img { width: 100%; display: block; border-radius: 32px; }
.t-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: #111; border-radius: 99px; z-index: 2; }

/* 六個圖示 */
.t-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; width: min(860px, 92vw); margin: 0 auto; }
.t-icons div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.t-icons i { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.t-icons svg { width: 26px; height: 26px; }
@media (max-width: 700px) { .t-icons { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }

/* 升級路線 */
.t-path { display: flex; align-items: stretch; justify-content: center; gap: 0; width: min(980px, 92vw); margin: 0 auto; }
.t-path > div { flex: 1; background: #fff; border-radius: 12px; padding: 28px 20px; position: relative; }
.t-path > span { display: flex; align-items: center; padding: 0 10px; color: var(--ink-mute); font-size: 22px; }
.t-path .n { font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.t-path h3 { font-size: 22px; font-weight: 700; margin: 6px 0; letter-spacing: 0; }
.t-path p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 760px) {
  .t-path { flex-direction: column; }
  .t-path > span { justify-content: center; padding: 6px 0; transform: rotate(90deg); }
}

/* 數字屏 */
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: min(900px, 92vw); margin: 0 auto; }
.t-stats .v { font-size: clamp(40px, 6vw, 64px); font-weight: 500; line-height: 1.1; }
.t-stats .l { font-size: 14px; color: var(--ink-mute); margin-top: 6px; }
@media (max-width: 600px) { .t-stats { grid-template-columns: 1fr; } }

/* 表單小工具 */
.t-tool { background: #fff; border-radius: 14px; padding: 28px; text-align: left; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.05); }
.t-tool h3 { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.t-tool .desc { font-size: 14px; color: var(--ink-mute); margin: 6px 0 20px; line-height: 1.6; }
.t-field { margin-bottom: 16px; }
.t-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-soft); }
.t-field input, .t-field select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d0d1d2; border-radius: var(--t-radius); font: 400 17px var(--font-sans); background: #fff; color: var(--ink); }
.t-field input:focus, .t-field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.t-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.t-seg button { flex: 1 0 auto; min-width: 64px; height: 42px; padding: 0 12px; border-radius: var(--t-radius); border: 1px solid #d0d1d2; background: #fff; font: 500 15px var(--font-sans); color: var(--ink); cursor: pointer; }
.t-seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-result { margin-top: 20px; padding: 20px; border-radius: 10px; background: var(--t-gray); }
.t-result .big { font-size: 34px; font-weight: 700; color: var(--red); line-height: 1.2; }
.t-result .small { font-size: 13px; color: var(--ink-mute); margin-top: 8px; line-height: 1.7; }
.t-note { font-size: 12px; color: var(--ink-mute); line-height: 1.7; margin-top: 14px; }

/* 子頁大標 */
.t-pagehead { padding: 120px 0 48px; text-align: center; }
.t-pagehead h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: 0; }
.t-pagehead p { margin-top: 12px; font-size: 17px; color: var(--ink-soft); }

/* 舊頁面（新手入行、靠行、關於、模擬考）拉成白底乾淨版 */
.masthead { display: none !important; }
.btn { border-radius: var(--t-radius) !important; letter-spacing: .02em !important; }
.btn-red { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.btn-ink { background: var(--ink) !important; color: #fff !important; }
.mono { font-family: var(--font-sans) !important; }
.chip { border-radius: 999px !important; }

@media (max-width: 600px) { .t-car { width: 116vw; } .t-car img { max-height: 44vh; } }

/* 彈出視窗（預約看車、電腦版 LINE 引導） */
.t-modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.t-modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 28px 24px 20px; text-align: left; }
.t-modal h3 { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.t-modal .desc { font-size: 14px; color: var(--ink-mute); margin: 6px 0 18px; line-height: 1.6; }
.t-modal .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: var(--t-radius); }
.t-modal .x:hover { background: var(--t-gray); }
button.t-btn { font-family: var(--font-sans); }

/* 首頁「還沒考執登」入口 */
.t-newbie { margin-top: 16px; font-size: 14px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid currentColor; }
.t-newbie:hover { color: var(--ink); }

/* 手機底部固定預約條 */
.t-mbar { display: none; }
@media (max-width: 600px) {
  .t-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(0,0,0,.06); }
  .t-mbar .t-btn { min-width: 0; width: 100%; height: 46px; }
  .line-float { display: none !important; }
  .t-foot { padding-bottom: 110px; }
}

/* 常見問題 */
.t-faq { text-align: left; }
.t-faq-item { border-bottom: 1px solid var(--hairline); }
.t-faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; background: none; border: 0; cursor: pointer; font: 500 17px var(--font-sans); color: var(--ink); text-align: left; }
.t-faq-item .pm { font-size: 22px; color: var(--ink-mute); }
.t-faq-item p { padding: 0 4px 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.8; }

/* 新手入行：步驟捷徑 */
.t-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.t-steps a { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 12px; background: var(--t-gray); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; text-align: left; transition: background .2s; }
.t-steps a:hover { background: #e9e9e9; }
.t-steps b { color: var(--red); font-size: 20px; }
@media (max-width: 760px) { .t-steps { grid-template-columns: 1fr; } .t-steps a { flex-direction: row; align-items: center; } }
@media (max-width: 560px) { .t-term { grid-template-columns: 1fr !important; gap: 4px !important; } }

/* 手機：底部預約條會蓋住每屏底部，留空間；首頁第一屏按鈕交給底部條 */
@media (max-width: 600px) {
  .t-screen { padding-bottom: 96px; }
}

/* 手機底部條：深色主鈕＋白底細框（Tim 11-01：紅綠像紅綠燈、很廉價）*/
.t-btn-outline { background: #fff; color: var(--ink); border: 1px solid #d0d1d2; gap: 8px; }
.t-btn-outline:hover { background: var(--t-gray); }
.t-mbar .t-btn-red { background: var(--ink); }
.t-mbar .t-btn-red:hover { background: #393c41; }

/* 11-01 Tim：按鈕改黑白（主鈕深炭黑、次鈕白／淺灰），紅色只留給重點字 */
.t-btn-red { background: var(--ink); }
.t-btn-red:hover { background: #393c41; }

/* 首頁開場數字條（照設計稿）*/
.t-hero-strip { width: min(860px, 92vw); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
@media (max-width: 600px) { .t-hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } .t-hero-strip .v { font-size: 24px; } }

/* 右下角 LINE 浮動鈕也改黑白，不用 LINE 綠 */
.line-float { background: var(--ink) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,.18) !important; }
.line-float:hover { background: #393c41 !important; }


/* 11-01 Tim：全站背景純白（淺灰漸層很醜），卡片淡灰、白鈕加細框 */
.t-bg-gray, .t-bg-soft { background: #fff !important; }
.t-btn-light { background: #fff; border: 1px solid #d0d1d2; backdrop-filter: none; }
.t-btn-light:hover { background: var(--t-gray); }
.t-path > div { background: var(--t-gray); }
.t-icons i { background: var(--t-gray); box-shadow: none; }

