/* 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.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; }
}
