body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #222;
}

/* =========================
   共用元件
========================= */
.header {
  text-align: center;
  padding: 30px 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.car-desc {
  color: #777;
  font-size: 15px;
  line-height: 1.6;
}

.post-form {
  background: white;
  margin: 20px;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.post-form button {
  padding: 12px;
  background: black;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.post-entry {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.post-link-btn {
  display: inline-block;
  padding: 12px 24px;
  background: black;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
}

.car-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.delete-btn {
  margin-top: 20px;
  padding: 12px 20px;
  background: #b00020;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.post-form label {
  font-weight: bold;
  margin-top: 8px;
}

.post-form input[type="file"] {
  padding: 8px 0;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 23, 20, 0.82);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
  transform-origin: center center;
  cursor: zoom-in;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.detail-image,
.detail-gallery img {
  cursor: zoom-in;
}

.detail-image-wrapper {
  overflow: hidden;
  position: relative;
}

.detail-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
  transform-origin: center center;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.feature-card p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}

.section-title h2 {
  font-size: 42px;
  margin: 0 0 10px;
  font-weight: 900;
}

.section-title p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* =========================
   詳細頁版型
========================= */
.detail-left,
.detail-right {
  min-width: 0;
}

/* =========================
   輪播主圖
========================= */
.carousel {
  position: relative;
}

.detail-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f3f3;
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* =========================
   左右箭頭
========================= */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}

.arrow.left {
  left: 12px;
}

.arrow.right {
  right: 12px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}
/* =========================
   聯絡賣家
========================= */
.contact-box {
  margin-top: 24px;
}

/* ===== DETAIL NEW ===== */

.detail-container {
  display: flex;
  gap: 40px;
  padding: 30px;
}

.detail-left {
  flex: 1;
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
}

.thumb.active {
  opacity: 1;
  border: 2px solid #f5c518;
}

.detail-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.car-title {
  font-size: 22px;
  font-weight: bold;
}

.car-tags {
  color: #666;
}

.car-info {
  color: #444;
}

/* 🔴 價格重點 */
.car-price {
  font-size: 32px;
  color: #e53935;
  font-weight: bold;
  margin-top: 20px;
}

/* ===== detail 資訊美編 ===== */

.car-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-item-full {
  grid-column: 1 / -1;
}

.spec-label {
  min-width: 88px;
  padding: 8px 14px;
  background: #e58f05;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
}

.spec-value {
  font-size: 17px;
  color: #222;
  line-height: 1.5;
  word-break: break-word;
}

.car-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
}

.price-title {
  font-size: 22px;
  color: #333;
  font-weight: 500;
}

.car-price {
  font-size: 28px;
  line-height: 1;
  color: #d60000;
  font-weight: 900;
}

.price-unit {
  font-size: 28px;
  color: #222;
  font-weight: 700;
}

.contact-btn {
  margin-top: 18px;
  width: 100%;
  background: #f5c518;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
}

.contact-btn:hover {
  background: #d89c2c;
}

.contact-info {
  margin-top: 14px;
  display: none;
  background: #fff8e1;
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.8;
}

.contact-info p {
  margin: 0;
}

/* 手機版 */
@media (max-width: 900px) {
  .car-spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-item-full {
    grid-column: auto;
  }

  .spec-label {
    min-width: 84px;
  }

  .car-price {
    font-size: 42px;
  }

  .price-unit {
    font-size: 24px;
  }

  .detail-container {
  flex-direction: column;
  }

  .detail-main-img {
  max-height: 420px;
  }

  .thumb {
    width: 90px;
    height: 70px;
  }
}

#pagination button {
  padding: 10px 16px;
  margin: 0 6px;
  border: none;
  background: #f5c518;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#pagination button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* =========================
   詳細頁：車輛配備
========================= */
.equipment-section {
  margin-top: 32px;
  background: #d3b624;
  color: #fff;
  padding: 28px 32px 36px;
  border-radius: 14px;
}

.equipment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #dc6524;
  padding-bottom: 10px;
}

.equipment-deco {
  display: inline-block;
  width: 42px;
  height: 18px;
  background: #dc6524;
  transform: skewX(-30deg);
}

.equipment-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.equipment-content {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px 36px;
}

.equipment-label {
  font-size: 18px;
  font-weight: 700;
  color: #203968;
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 36px;
}

.equipment-item {
  font-size: 17px;
  line-height: 1.7;
  color: #203968;
}

@media (max-width: 900px) {
  .equipment-content {
    grid-template-columns: 1fr;
  }

  .equipment-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   首頁新版 header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-top {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("images/logo.png") center center / 100% 100% no-repeat;
  color: #fff;
}

.brand-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-btn {
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 28px;
  transition: 0.2s ease;
}

.btn-login {
  background: #f4c430;
  color: #111;
}

.btn-login:hover {
  transform: translateY(-1px);
}

.btn-register {
  color: #f4c430;
  border: 2px solid rgba(244, 196, 48, 0.75);
  background: transparent;
}

.btn-register:hover {
  background: rgba(244, 196, 48, 0.1);
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 0;
}

.nav-link.active {
  color: #111;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #f4c430;
}

/* =========================
   Hero 區塊
========================= */
.hero {
  position: relative;
  min-height: 600px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.52) 42%, rgba(0,0,0,0.18) 100%),
    url("images/cover.avif") center/cover no-repeat;
  overflow: hidden;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero-text {
  max-width: 580px;
  color: #fff;
}

.hero-text h1 {
  margin: 0 0 22px;
  font-size: 76px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-text p {
  margin: 0 0 34px;
  font-size: 22px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.hero-main-btn {
  display: inline-block;
  text-decoration: none;
  background: #f4c430;
  color: #111;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(244, 196, 48, 0.28);
  transition: 0.2s ease;
}

.hero-main-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   首頁功能卡片
========================= */
.features {
  max-width: 1280px;
  margin: -48px auto 24px;
  padding: 0 48px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 5;
}

.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #111;
}

.feature-card p {
  margin: 0;
  color: #666;
  line-height: 1.8;
  font-size: 15px;
}

/* =========================
   區塊標題
========================= */
.section-title {
  max-width: 1280px;
  margin: 60px auto 28px;
  padding: 0 48px;
  box-sizing: border-box;
}

.section-title h2 {
  font-size: 42px;
  margin: 0 0 10px;
  font-weight: 900;
}

.section-title p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* =========================
   篩選列與車卡
========================= */
.filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.filters input,
.filters select {
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.filters input {
  min-width: 280px;
}

.car-list {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 48px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.car-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.car-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.car-content {
  padding: 20px 22px 24px;
}

.car-title {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 800;
}

.card-price {
  font-size: 28px;
  font-weight: 900;
  color: #222;
  margin-bottom: 8px;
}

.car-meta {
  color: #666;
  font-size: 15px;
  margin-bottom: 8px;
}

/* =========================
   分頁按鈕
========================= */
#pagination button {
  padding: 10px 18px;
  margin: 0 6px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

#pagination button:disabled {
  background: #bbb;
  cursor: not-allowed;
}

/* =========================
   RWD
========================= */
@media (max-width: 1024px) {
  .header-top-inner,
  .header-nav-inner,
  .hero-content,
  .features,
  .section-title,
  .filters,
  .car-list {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-text h1 {
    font-size: 56px;
  }

  .features,
  .car-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .features,
  .car-list {
    grid-template-columns: 1fr;
  }

  .features {
    margin-top: 24px;
  }

  .section-title h2 {
    font-size: 34px;
  }
}

/* 最上排直接放 logo、導覽、登入註冊 */
.header-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 110px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 48px;
  box-sizing: border-box;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 42px;
  justify-self: center;
}

.top-nav-menu .nav-link {
  position: relative;
  text-decoration: none;
  color: #f5f1e6;
  font-size: 17px;
  font-weight: 800;
  padding: 6px 0;
}

.top-nav-menu .nav-link.active {
  color: #f4c430;
}

.top-nav-menu .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #f4c430;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

html {
  scroll-behavior: smooth;
}

#homeSection,
#carSection,
#serviceSection,
#aboutSection {
  scroll-margin-top: 110px;
}

/* =========================
   手機 MENU
========================= */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 0;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-menu-btn strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 900px) {
  .header-top {
    position: relative;
  }

  .header-top-inner {
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    min-height: 92px;
    padding: 0 16px;
  }

  .top-nav-menu,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    background: #1f2a44;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    z-index: 1200;
  }

  .mobile-drawer.show {
    display: block;
  }

  .mobile-drawer-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-drawer-link:last-of-type {
    border-bottom: none;
  }

  .mobile-drawer-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .mobile-drawer-actions .header-btn {
    flex: 1 1 140px;
    text-align: center;
  }
}

/* =========================
   頁面載入中
========================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.page-loader.hide {
  display: none;
}

.loader-box {
  text-align: center;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e5e5e5;
  border-top: 5px solid #f4c430;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loader-box p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   detail 手機版修正
========================= */
@media (max-width: 768px) {
  .detail-top-banner {
    height: 88px;
    background-position: center;
    background-size: cover;
  }

  .detail-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 16px 28px;
  }

  .detail-left,
  .detail-right {
    width: 100%;
  }

  .detail-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
  }

  .detail-main-img,
  #mainImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-row::-webkit-scrollbar {
    height: 6px;
  }

  .thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 10px;
  }

  .car-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .car-spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec-item,
  .spec-item-full {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
  }

  .spec-label {
    min-width: auto;
    width: 96px;
    padding: 10px 8px;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box;
  }

  .spec-value {
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
  }

  .car-price-row {
    margin-top: 18px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .price-title {
    font-size: 18px;
  }

  .car-price {
    font-size: 28px;
  }

  .contact-btn {
    width: 100%;
    font-size: 20px;
    padding: 14px 16px;
    border-radius: 12px;
  }

  .equipment-section {
    margin: 24px 16px 32px;
    padding: 20px 16px 24px;
    border-radius: 14px;
  }

  .equipment-header h3 {
    font-size: 20px;
  }

  .equipment-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .equipment-label {
    font-size: 17px;
  }

  .equipment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .equipment-item {
    font-size: 16px;
    line-height: 1.6;
  }

  .arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow.left {
    left: 10px;
  }

  .arrow.right {
    right: 10px;
  }
}

/* =========================
   login / register 頁
========================= */
.auth-page {
  min-height: calc(100vh - 110px);
  background: #f4f4f4;
  padding: 48px 24px 60px;
  box-sizing: border-box;
}

.auth-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 36px;
  align-items: stretch;
}

.auth-visual {
  display: flex;
  align-items: stretch;
}

.auth-visual-card {
  width: 100%;
  min-height: 620px;
  border-radius: 28px;
  padding: 42px;
  box-sizing: border-box;
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-visual-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(244, 196, 48, 0.14);
  border: 1px solid rgba(244, 196, 48, 0.45);
  color: #f4c430;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-visual-card h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
}

.auth-visual-card p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: rgba(255,255,255,0.92);
}

.auth-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f4c430;
  font-weight: 900;
}

.auth-panel {
  background: #fff;
  border-radius: 28px;
  padding: 34px 32px 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.auth-brand {
  font-size: 15px;
  font-weight: 800;
  color: #b28704;
  margin-bottom: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-tab {
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  color: #333;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: #f4c430;
  color: #111;
  border-color: #f4c430;
}

.auth-form.hidden {
  display: none;
}

.auth-form-title {
  font-size: 34px;
  font-weight: 900;
  color: #111;
  margin-bottom: 22px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.auth-input {
  width: 100%;
  height: 54px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  outline: none;
}

.auth-input:focus {
  border-color: #f4c430;
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.12);
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.auth-check-row input {
  margin-top: 4px;
}

.auth-submit-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: #f4c430;
  color: #111;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(244, 196, 48, 0.26);
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
}

.auth-switch-text {
  text-align: center;
  margin: 18px 0 0;
  color: #666;
  font-size: 15px;
}

.inline-switch-btn,
.inline-link-btn {
  border: none;
  background: transparent;
  color: #b28704;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-message {
  min-height: 24px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
}

.auth-message.error {
  color: #d93025;
}

.auth-message.success {
  color: #1b7f3b;
}

.policy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.policy-modal.hidden {
  display: none;
}

.policy-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 18px 44px rgba(0,0,0,0.2);
}

.policy-card h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

.policy-content {
  color: #444;
  line-height: 1.9;
  font-size: 16px;
}

.policy-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual-card {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 24px 16px 40px;
  }

  .auth-panel {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .auth-form-title {
    font-size: 28px;
  }

  .auth-visual-card {
    min-height: 260px;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .auth-visual-card h1 {
    font-size: 32px;
  }

  .auth-visual-card p {
    font-size: 16px;
  }
}

.password-field {
  position: relative;
  margin-bottom: 16px;
}

.password-field .auth-input {
  margin-bottom: 0;
  padding-right: 52px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #666;
  padding: 0;
}

.toggle-password:hover {
  color: #111;
}

.hidden {
  display: none !important;
}

/* =========================
   收藏愛心按鈕
========================= */
.car-card {
  position: relative;
}

.favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.favorite-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.favorite-btn.active {
  color: #e53935;
}

.favorite-btn.detail-favorite {
  position: static;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 12px 18px;
  gap: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
}

.favorite-btn.detail-favorite.active {
  background: #fff5f5;
}

.detail-action-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .favorite-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }

  .detail-action-row {
    flex-direction: column;
  }

  .favorite-btn.detail-favorite,
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}

.member-layout {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
}

.member-sidebar {
  width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.member-sidebar ul {
  list-style: none;
  padding: 0;
}

.member-sidebar li {
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
}

.member-sidebar li.active {
  background: #f5f5f5;
  font-weight: bold;
}

.member-content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.verify-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.verify-modal.hidden {
  display: none;
}

.verify-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(244, 196, 48, 0.14);
  color: #b28704;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.verify-card h3 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
  color: #111;
}

.verify-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.verify-section {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 18px;
  background: #fafafa;
}

.verify-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #111;
  font-size: 18px;
}

.verify-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4c430;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #111;
}

.verify-tip {
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  min-height: 44px;
}

.verify-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.verify-half-btn {
  margin-top: 0;
}

@media (max-width: 768px) {
  .verify-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .verify-card h3 {
    font-size: 24px;
  }

  .verify-grid {
    grid-template-columns: 1fr;
  }
}

.verify-card-narrow {
  width: min(520px, 100%);
}

.verify-btn-row-single {
  grid-template-columns: 1fr 1fr;
}