/* ============ 冠城租車 — 設計系統 ============ */
:root {
  --ink: #1a1c22;
  --ink-2: #4a4e58;
  --ink-3: #8a8f9c;
  --gold: #c9a227;
  --gold-dark: #a8861a;
  --gold-soft: #f7f0dc;
  --sand: #faf8f3;
  --white: #ffffff;
  --line: #e8e6df;
  --green: #06c755;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(26, 28, 34, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 28, 34, 0.14);
  --font: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============ 導覽列 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); letter-spacing: .12em; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  transition: all .15s;
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff; border: none;
  padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: all .15s;
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201,162,39,.22), transparent),
    radial-gradient(ellipse 700px 400px at -5% 110%, rgba(201,162,39,.12), transparent),
    linear-gradient(160deg, #23252e 0%, #1a1c22 60%, #23252e 100%);
  color: #fff;
  padding: 72px 0 140px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.4);
  color: #e8ce7a; font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.25; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.sub { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.72); max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); }
.hero-trust b { color: #fff; font-size: 20px; margin-right: 2px; }

/* ============ 訂車查詢卡 ============ */
.search-card {
  position: relative; z-index: 5;
  margin-top: -84px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.search-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.search-tab {
  border: 1.5px solid var(--line); background: #fff;
  padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.search-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
  gap: 14px; align-items: end;
}
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.field select, .field input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.btn-primary {
  height: 48px; padding: 0 32px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(201,162,39,.35);
  transition: all .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,39,.45); }
.search-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }

/* ============ 區塊通用 ============ */
.section { padding: 88px 0 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--gold-dark);
  text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* ============ 車款卡片 ============ */
.fleet-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.chip.active, .chip:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-dark); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .2s; border: 1px solid var(--line);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-photo {
  height: 170px; display: grid; place-items: center; font-size: 72px;
  background: linear-gradient(160deg, #f2ede0, #e9e2cf);
  position: relative;
}
.car-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.car-tag.hot { background: #d84343; }
.car-body { padding: 20px 22px 22px; }
.car-body h3 { font-size: 18px; font-weight: 700; }
.car-specs { display: flex; gap: 14px; margin: 10px 0 16px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.car-foot { display: flex; align-items: center; justify-content: space-between; }
.car-price { font-size: 13px; color: var(--ink-3); }
.car-price b { font-size: 24px; color: var(--ink); font-weight: 800; }
.car-price span { color: var(--gold-dark); }
.btn-ghost {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ============ 服務 ============ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: all .2s;
}
.svc-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); font-size: 26px; margin-bottom: 18px;
}
.svc-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; color: var(--ink-2); }

/* ============ 流程 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-size: 22px; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ============ 優惠橫幅 ============ */
.promo {
  margin-top: 88px;
  background: linear-gradient(120deg, #23252e, #1a1c22);
  color: #fff; border-radius: 24px; padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.promo::before {
  content: "早鳥"; position: absolute; right: -20px; bottom: -60px;
  font-size: 180px; font-weight: 900; color: rgba(201,162,39,.08); line-height: 1;
}
.promo h2 { font-size: 28px; font-weight: 800; }
.promo h2 em { font-style: normal; color: var(--gold); }
.promo p { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 15px; }
.promo-codes { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.promo-code {
  border: 1px dashed rgba(201,162,39,.6); border-radius: 8px; padding: 6px 14px;
  font-size: 13px; color: #e8ce7a; font-weight: 600;
}

/* ============ 評價 ============ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 14.5px; color: var(--ink-2); }
.review-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); font-weight: 700; color: var(--gold-dark); font-size: 15px;
}
.review-who b { font-size: 14px; display: block; }
.review-who small { font-size: 12.5px; color: var(--ink-3); }

/* ============ Footer ============ */
.footer { margin-top: 96px; background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer a, .footer li { display: block; font-size: 14px; margin-bottom: 10px; list-style: none; }
.footer a:hover { color: var(--gold); }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff !important; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; margin-top: 6px;
}
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.45);
  flex-wrap: wrap; gap: 8px;
}

/* ============ 訂車流程頁 ============ */
.booking-page { padding: 40px 0 96px; }
.progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 44px; }
.p-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.p-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); background: #fff; font-size: 14px; font-weight: 700;
}
.p-step.done .p-dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.p-step.current { color: var(--ink); }
.p-step.current .p-dot { border-color: var(--gold); color: var(--gold-dark); }
.p-line { width: 64px; height: 2px; background: var(--line); margin: 0 12px; }
.p-line.done { background: var(--gold); }

.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }

.option-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; cursor: pointer; transition: all .15s;
}
.option-row:hover { border-color: var(--gold); }
.option-row.selected { border-color: var(--gold); background: var(--gold-soft); }
.option-info { display: flex; align-items: center; gap: 14px; }
.option-emoji { font-size: 28px; }
.option-info b { font-size: 15px; display: block; }
.option-info small { font-size: 13px; color: var(--ink-3); }
.option-price { font-weight: 700; font-size: 15px; }

.summary { position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; color: var(--ink-2); }
.summary-row b { color: var(--ink); }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1.5px solid var(--line); margin-top: 12px; padding-top: 16px;
}
.summary-total .amt { font-size: 28px; font-weight: 800; color: var(--gold-dark); }
.btn-block { width: 100%; margin-top: 18px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pay-method {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff;
  transition: all .15s;
}
.pay-method.selected { border-color: var(--gold); background: var(--gold-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ============ RWD ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .fleet-grid, .svc-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .promo { flex-direction: column; text-align: center; padding: 40px 28px; }
}
@media (max-width: 600px) {
  .search-grid, .fleet-grid, .svc-grid, .review-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 130px; }
  .p-line { width: 24px; }
  .p-step span.p-label { display: none; }
  .p-step.current span.p-label { display: inline; }
}
