/* Well Auto Collision Center — 客户网站共享样式 */
:root {
  --blue: #14508c;
  --blue-dark: #0d3a68;
  --blue-light: #e8f1f9;
  --accent: #e8862d;
  --text: #1f2733;
  --muted: #66727f;
  --line: #dde3ea;
  --bg: #f5f7fa;
  --ok: #1e8e4f;
  --warn: #c0392b;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--blue-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { color: #fff; display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-name { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.brand .brand-sub { font-size: 12px; opacity: .85; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a, .main-nav button.nav-link {
  color: #fff;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.main-nav a:hover, .main-nav button.nav-link:hover { background: rgba(255,255,255,.16); }
.main-nav a.nav-cta { background: var(--accent); font-weight: 600; }
.main-nav a.active { background: rgba(255,255,255,.18); box-shadow: inset 0 -3px 0 var(--accent); font-weight: 700; }
.main-nav a.nav-cta:hover { background: #d1761f; }

/* ---------- 通用布局 ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }
.section { margin-top: 34px; }
.section h2 {
  font-size: 22px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.3;
}
.lead { color: var(--muted); font-size: 15px; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d1761f; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-block { display: block; width: 100%; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(20,50,90,.05);
}

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
}
.hero h1 { font-size: 28px; margin-bottom: 6px; }
.hero .hero-en { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.hero p { margin: 14px auto 22px; max-width: 640px; font-size: 16px; opacity: .95; }
.hero .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-phone { margin-top: 18px; font-size: 15px; }
.hero .hero-phone a { color: #ffd9ae; font-weight: 700; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.service-item .svc-icon { font-size: 26px; margin-bottom: 6px; }
.service-item h3 { font-size: 17px; margin-bottom: 4px; }
.service-item p { font-size: 14px; color: var(--muted); }
.contact-list { list-style: none; font-size: 16px; }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .label { color: var(--muted); margin-right: 8px; }
.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-actions { padding: 14px 16px; text-align: center; }

/* ---------- 表单 ---------- */
.form-card { max-width: 560px; margin: 24px auto 0; }
.form-title { font-size: 22px; margin-bottom: 6px; text-align: center; }
.form-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.field textarea { resize: vertical; min-height: 76px; }
.form-error {
  display: none;
  background: #fdecea;
  color: var(--warn);
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-error.show { display: block; }
.form-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.success-box { text-align: center; padding: 12px 0; }
.success-box .ok-icon { font-size: 46px; margin-bottom: 8px; }
.success-box h3 { font-size: 20px; margin-bottom: 8px; color: var(--ok); }
.success-box p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.success-box .summary {
  text-align: left;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}
.success-box .summary div { padding: 3px 0; }
.success-box .summary .label { color: var(--muted); margin-right: 8px; }

/* ---------- 登录/注册选项卡 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}
.tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }

/* ---------- 我的修车 / 工单 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.page-head h2 { font-size: 22px; }
.order-card { margin-bottom: 20px; }
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.order-no { font-size: 18px; font-weight: 700; }
.order-vehicle { color: var(--muted); font-size: 14px; margin-top: 2px; }
.status-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge.done { background: #e2f4e9; color: var(--ok); }
.order-desc { font-size: 15px; margin-bottom: 6px; }
.order-meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* 进度条（9 阶段） */
.stepper {
  display: flex;
  list-style: none;
  margin: 18px 0 6px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.stepper li {
  flex: 1 0 0;
  min-width: 62px;
  text-align: center;
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.stepper li::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--line);
  position: relative;
  z-index: 1;
}
.stepper li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(-50% + 11px);
  width: calc(100% - 22px);
  height: 2.5px;
  background: var(--line);
}
.stepper li:first-child::after { display: none; }
.stepper li.completed { color: var(--blue); }
.stepper li.completed::before { background: var(--blue); border-color: var(--blue); }
.stepper li.completed::after { background: var(--blue); }
.stepper li.current { color: var(--blue-dark); font-weight: 700; }
.stepper li.current::before {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-light);
}
.stepper li .step-label { display: block; line-height: 1.35; }

/* 金额汇总 */
.money-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.money-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.money-item .m-label { font-size: 13px; color: var(--muted); }
.money-item .m-value { font-size: 18px; font-weight: 700; margin-top: 2px; }
.money-item .m-value.owe { color: var(--warn); }
.money-item .m-value.clear { color: var(--ok); }

/* 照片 */
.photo-title { font-size: 16px; font-weight: 600; margin: 14px 0 10px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.photo-item img { width: 100%; height: 110px; object-fit: cover; }
.photo-item figcaption { font-size: 12px; color: var(--muted); padding: 6px 8px; line-height: 1.4; }
.photo-item figcaption .p-stage { color: var(--blue-dark); font-weight: 600; }
.no-photo { color: var(--muted); font-size: 14px; background: var(--bg); border-radius: 8px; padding: 12px; text-align: center; }

.empty-state { text-align: center; padding: 44px 20px; }
.empty-state .e-icon { font-size: 44px; margin-bottom: 10px; }
.empty-state h3 { font-size: 19px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #cfdce9;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 16px;
  font-size: 14px;
  text-align: center;
  line-height: 1.9;
}
.site-footer a { color: #ffd9ae; }
.site-footer .f-name { color: #fff; font-weight: 700; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 34px; }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-item img { height: 130px; }
}
@media (max-width: 560px) {
  .money-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
  .hero { padding: 26px 16px; }
}

/* ---- payment rows + receipts (customer my page) ---- */
.pay-list { margin: 4px 0 8px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f3; }
.pay-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pay-type { font-weight: 600; }
.pay-amt { font-weight: 700; }
.pay-method { color: #64748b; font-size: 13px; }
.pay-side { display: flex; align-items: center; gap: 10px; }
.pay-date { color: #64748b; font-size: 13px; }
.btn-small { padding: 5px 12px; font-size: 13px; }
.rcpt-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 60; display: none; align-items: flex-start; justify-content: center; overflow: auto; padding: 24px 12px; }
.rcpt-overlay.open { display: flex; }
.rcpt-sheet { background: #fff; color: #111; width: 100%; max-width: 430px; border-radius: 10px; padding: 26px 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.rcpt-head { text-align: center; margin-bottom: 10px; }
.rcpt-shop { font-weight: 800; letter-spacing: .4px; }
.rcpt-shop-sub { font-weight: 700; margin-top: 2px; }
.rcpt-line { color: #444; font-size: 13px; margin-top: 2px; }
.rcpt-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 6px; border-top: 2px solid #111; border-bottom: 2px solid #111; padding: 8px 0; margin: 12px 0; }
.rcpt-title-en { display: block; font-size: 11px; letter-spacing: 3px; color: #555; margin-top: 2px; }
.rcpt-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.rcpt-kv td { padding: 5px 2px; border-bottom: 1px dashed #ddd; vertical-align: top; }
.rcpt-kv td:first-child { color: #555; width: 88px; }
.rcpt-kv td:last-child { text-align: right; font-weight: 600; }
.rcpt-amount { display: flex; justify-content: space-between; align-items: center; background: #f6f7f9; border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.rcpt-amount strong { font-size: 22px; }
.rcpt-foot { text-align: center; color: #555; font-size: 12.5px; margin-top: 14px; line-height: 1.7; }
.rcpt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
@media print {
  body.rcpt-open > *:not(.rcpt-overlay) { display: none !important; }
  body.rcpt-open .rcpt-overlay { position: static; display: flex !important; background: #fff; padding: 0; overflow: visible; }
  body.rcpt-open .rcpt-sheet { box-shadow: none; max-width: none; }
  body.rcpt-open .rcpt-actions { display: none !important; }
}

/* hidden must always win over component display styles (auth toggle) */
[hidden] { display: none !important; }

/* full-slot popup (booking page) */
.slot-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,16,.55); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.slot-modal-card { background: #fff; border-radius: 14px; max-width: 420px; width: 100%; padding: 26px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: center; box-sizing: border-box; }
.slot-modal-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: #171a20; }
.slot-modal-text { font-size: 15px; line-height: 1.75; color: #393c41; margin: 0 0 18px; }
.slot-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* language toggle in the inner-page nav */
.main-nav .lang-toggle {
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  margin-left: 8px; padding: 5px 12px; font-weight: 600;
}

/* custom bilingual file picker (native file buttons follow the browser's language) */
.file-pick {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; background: #fff;
}
.file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-pick-btn {
  background: #eef1f4; border: 1px solid #c8cdd4; border-radius: 6px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #101828;
}
.file-pick-name { font-size: 14px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* what's-new notice (shown once per version to returning visitors) */
.wa-news {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 12, 14, .55);
  display: flex; align-items: flex-end; justify-content: center;
  animation: waNewsFade .3s ease both;
}
.wa-news-card {
  background: #fff; width: min(520px, 100%); max-height: 82vh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 22px 22px 26px; box-sizing: border-box;
  animation: waNewsUp .38s cubic-bezier(.22, 1, .36, 1) both;
}
@media (min-width: 640px) {
  .wa-news { align-items: center; padding: 20px; }
  .wa-news-card { border-radius: 20px; }
}
.wa-news-badge { font-size: 19px; font-weight: 800; color: #101216; margin-bottom: 12px; }
.wa-news-list { margin: 0 0 18px; padding-left: 20px; color: #344054; font-size: 15px; line-height: 1.65; }
.wa-news-list li { margin-bottom: 8px; }
.wa-news-btn {
  width: 100%; border: 0; border-radius: 999px; padding: 13px;
  background: #e8862e; color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.wa-news-btn:hover { background: #d97706; }
@keyframes waNewsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes waNewsUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* unseen progress updates badge on the My Repairs nav link */
.nav-dot {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; margin-left: 6px; border-radius: 999px; vertical-align: 2px;
  background: #e03131; color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}
/* latest-updates list on My Repairs */
.act-item {
  display: flex; gap: 10px; align-items: baseline; padding: 9px 2px;
  border-bottom: 1px dashed #e4e7ec; font-size: 14.5px; color: #1d2939;
}
.act-item:last-child { border-bottom: 0; }
.act-date { color: #98a2b3; font-size: 12.5px; white-space: nowrap; }

/* ---------- booking entry wizard (one question per screen) ---------- */
#wizard { padding: 6px 0 4px; }
.wiz-q { font-size: 24px; font-weight: 800; color: #101216; margin: 10px 0 18px; text-align: center; }
.wiz-hint { text-align: center; color: #6b7280; font-size: 14px; margin: 0 0 14px; }
.wiz-big { display: block; width: 100%; text-align: left; background: #0a2547; color: #fff; border: 0; border-radius: 16px; padding: 22px 20px; margin: 0 0 14px; cursor: pointer; }
.wiz-big:active { transform: scale(.99); }
.wiz-big-alt { background: #fff; color: #101216; border: 2px solid #0a2547; }
.wiz-big-t { display: block; font-size: 22px; font-weight: 800; }
.wiz-big-s { display: block; font-size: 14px; opacity: .75; margin-top: 4px; }
.wiz-label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin: 14px 0 6px; }
.wiz-input { width: 100%; box-sizing: border-box; font-size: 20px; padding: 15px 14px; border: 1.5px solid #d1d5db; border-radius: 12px; background: #fff; color: #101216; }
.wiz-input:focus { outline: none; border-color: #17548f; box-shadow: 0 0 0 3px rgba(23, 84, 143, .15); }
.wiz-next { display: block; width: 100%; margin-top: 20px; background: #e8862e; color: #fff; border: 0; border-radius: 999px; font-size: 19px; font-weight: 700; padding: 16px; cursor: pointer; }
.wiz-next:disabled { opacity: .55; }
.wiz-back { display: block; margin: 12px auto 0; background: none; border: 0; color: #6b7280; font-size: 15px; cursor: pointer; padding: 8px; }
.wiz-skip { display: block; margin: 16px auto 0; background: none; border: 0; color: #17548f; font-size: 15px; text-decoration: underline; cursor: pointer; padding: 8px; }
.wiz-err { color: #b42318; font-size: 14px; min-height: 20px; margin-top: 10px; text-align: center; }
.wiz-demo { width: 100%; border-radius: 14px; background: #000; margin: 4px 0 14px; max-height: 420px; }
.wiz-record { display: block; text-align: center; background: #b92e3a; color: #fff; font-size: 21px; font-weight: 800; border-radius: 999px; padding: 18px; cursor: pointer; margin-top: 6px; }
.wiz-record:active { transform: scale(.99); }

.wiz-helpbtn { display: block; width: 100%; margin: 12px 0 4px; padding: 13px; background: #eff6ff; color: #1d4ed8; border: 1.5px solid #bfdbfe; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.wiz-helpbtn:active { transform: scale(.99); }
.wiz-demo { object-fit: contain; }

.wiz-locimg { width: 100%; border-radius: 12px; margin-top: 10px; display: block; }

/* v90: 手机端顶部导航不再挤成竖排或截断：LOGO 一行，标签栏整块换行 */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; padding: 10px 14px 10px; gap: 8px; }
  .brand .brand-name { font-size: 18px; white-space: nowrap; }
  .brand .brand-sub { font-size: 11px; white-space: nowrap; }
  .main-nav { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .main-nav a, .main-nav button.nav-link { flex-shrink: 0; white-space: nowrap; font-size: 14px; padding: 7px 11px; }
  .main-nav .lang-toggle { margin-left: 2px; }
}
