:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-muted: #eef7f3;
  --text: #17202a;
  --muted: #647084;
  --line: #dfe5ed;
  --primary: #0f9f6e;
  --primary-dark: #087b55;
  --primary-soft: #e9f8f2;
  --warning: #d97706;
  --warning-soft: #fff7e6;
  --processing: #2563eb;
  --processing-soft: #eef4ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #c83f3f;
  --radius: 14px;
  --shadow: 0 16px 38px rgba(23, 32, 42, 0.07);
  --shadow-soft: 0 10px 26px rgba(23, 32, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 16px 14px max(24px, env(safe-area-inset-bottom));
}

.repair-page {
  width: min(100%, 480px);
  margin: 0 auto;
}

.page-header {
  padding: 8px 2px 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid #cfe7dc;
  border-radius: 7px;
  background: var(--surface-muted);
  color: #245244;
}

.notice.is-warning {
  border-color: #f0d6a2;
  background: #fff7e6;
  color: #76520c;
}

.notice.is-error {
  border-color: #f0b7b7;
  background: #fff1f1;
  color: #8a2f2f;
}

.notice p {
  margin: 0;
  font-size: 13px;
}

.notice-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.repair-form {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: #263240;
  font-size: 14px;
  font-weight: 700;
}

.field-label b {
  color: var(--danger);
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b5;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.form-subsection {
  margin: 4px 0 -2px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.form-subsection h2 {
  margin: 0;
  color: #1f2c3a;
  font-size: 16px;
  line-height: 1.4;
}

.form-subsection p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.attachment-input {
  min-height: 52px;
  padding: 10px 12px;
}

.submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.submit-button:not(:disabled):hover {
  background: var(--primary-dark);
}

.result-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe7dc;
  border-radius: 8px;
  background: #fff;
}

.result-panel h2 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 18px;
}

.result-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

pre {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 10px;
  }

  .repair-form {
    padding: 14px 12px;
  }

  h1 {
    font-size: 25px;
  }
}

.is-wide {
  width: min(100%, 560px);
}

.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ghost-link,
.secondary-link-button,
.link-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ghost-link,
.secondary-link-button,
.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #1f2c3a;
}

.link-button {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.secondary-button {
  cursor: pointer;
}

.ghost-link:hover,
.secondary-link-button:hover,
.secondary-button:hover {
  border-color: #bfd1df;
}

.link-button:hover {
  background: var(--primary-dark);
}

.link-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.toolbar-panel,
.summary-strip,
.panel,
.order-card {
  margin-top: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.toolbar-panel,
.panel {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.field-inline {
  gap: 6px;
}

.field-inline select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  min-width: 0;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-card small {
  display: inline-flex;
  margin-top: 8px;
}

.summary-card-wide {
  grid-column: 1 / -1;
}

.order-status-hero {
  gap: 10px;
}

.order-status-hero .summary-card {
  box-shadow: none;
}

.order-status-hero .summary-card-wide strong {
  font-size: 20px;
  line-height: 1.25;
}

.order-status-hero .summary-card:not(.summary-card-wide) strong {
  font-size: 18px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-card {
  padding: 16px;
  border: 1px solid #d9e6df;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-head > div {
  min-width: 0;
}

.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.card-head h2 {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.card-meta div {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta strong {
  color: var(--text);
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.order-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  margin-top: 14px;
}

.order-card-actions .link-button,
.order-card-actions .secondary-link-button {
  width: 100%;
  padding-inline: 10px;
  text-align: center;
}

.progress-hero {
  display: grid;
  gap: 12px;
}

.progress-hero-head,
.mini-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.progress-hero-head h2 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.3;
  word-break: break-all;
}

.progress-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.progress-hero-meta {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.progress-hero-meta div,
.mini-order-meta {
  display: grid;
  gap: 4px;
}

.progress-hero-meta span,
.mini-order-meta span {
  color: var(--muted);
  font-size: 13px;
}

.progress-hero-meta strong {
  color: var(--text);
  font-size: 15px;
  word-break: break-word;
}

.mini-order-list {
  display: grid;
  gap: 10px;
}

.mini-order-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-order-item.is-active {
  border-color: #9bd8bf;
  background: #f4fbf8;
}

.mini-order-top strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  word-break: break-all;
}

.mini-order-actions {
  margin-top: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #233243;
  font-size: 13px;
  font-weight: 700;
}

.status-badge.is-neutral {
  background: #edf2f7;
  color: #304255;
}

.status-badge.is-warning {
  background: #fff2d6;
  color: #8a5b00;
}

.status-badge.is-processing {
  background: #dff2ff;
  color: #155f97;
}

.status-badge.is-success {
  background: #def6eb;
  color: #117a52;
}

.status-badge.is-muted {
  background: #eceef1;
  color: #667085;
}

.empty-state,
.empty-inline {
  padding: 18px 14px;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 14px;
  font-size: 14px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.timeline-panel {
  display: block;
}

.section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 12px;
  cursor: pointer;
  list-style: none;
}

.section-summary::-webkit-details-marker {
  display: none;
}

.section-summary span {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.section-summary small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-collapsible > .section-summary {
  margin-bottom: 0;
}

.detail-collapsible[open] > .section-summary,
.timeline-panel[open] > .section-summary {
  margin-bottom: 12px;
}

.detail-collapsible > .section-summary small::after {
  content: " / 展开";
}

.detail-collapsible[open] > .section-summary small::after {
  content: " / 收起";
}

.timeline-panel {
  border-color: #cfe7dc;
  background: #fbfffd;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-item {
  display: grid;
  gap: 6px;
}

.info-item span {
  color: var(--muted);
  font-size: 13px;
}

.info-item strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

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

.logistics-panel {
  display: grid;
  gap: 12px;
}

.tracking-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #c9d7e2;
  border-radius: 8px;
  background: #fbfcfd;
}

.tracking-notice {
  display: grid;
  gap: 4px;
  color: #245244;
}

.tracking-notice strong {
  font-size: 14px;
}

.tracking-notice p,
.tracking-notice small,
.tracking-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tracking-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tracking-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.tracking-card-head strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.tracking-card-head p,
.tracking-latest {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.tracking-card-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.tracking-events {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-events li {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: #f6f8fb;
}

.tracking-events span,
.tracking-events small {
  color: var(--muted);
  font-size: 12px;
}

.tracking-events strong {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.plain-text {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c7d2df;
}

.timeline-dot.is-done {
  background: var(--primary);
}

.timeline-dot.is-current {
  background: #f59e0b;
}

.timeline-dot.is-cancelled {
  background: #ef4444;
}

.timeline-dot.is-pending {
  background: #d7dee8;
}

.timeline-body {
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.timeline-item.is-pending .timeline-body {
  opacity: 0.76;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.timeline-head strong {
  font-size: 15px;
}

.timeline-head span {
  color: var(--muted);
  font-size: 12px;
}

.timeline-head strong,
.timeline-head span,
.timeline-body p,
.progress-hero-meta strong,
.mini-order-item strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quote-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 163, 127, 0.18);
  border-radius: 999px;
  background: rgba(16, 163, 127, 0.08);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.detail-collapsible.is-priority-quote {
  border-color: rgba(16, 163, 127, 0.34);
  background: linear-gradient(180deg, #f0fdf8 0%, #ffffff 54%);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.12);
}

.detail-collapsible.is-priority-quote .section-summary span::after {
  content: "待确认";
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 163, 127, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.compact-stack {
  gap: 10px;
}

.record-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fbfd;
}

.record-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.record-head strong {
  font-size: 15px;
}

.record-head span {
  color: var(--muted);
  font-size: 12px;
}

.record-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.message-block {
  max-height: none;
  border: 1px solid #e2e8f0;
  background: #f9fbfd;
  color: #25313d;
  white-space: pre-wrap;
}

.attachment-list {
  display: grid;
  gap: 12px;
}

.selected-attachment-panel {
  display: grid;
  gap: 10px;
}

.selected-attachment-summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfe6dc;
  border-radius: 8px;
  background: #f0fbf6;
  color: #0b6b50;
  font-size: 13px;
  font-weight: 700;
}

.attachment-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.selected-attachment-card {
  border-color: #d6e1eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.attachment-preview {
  display: grid;
  overflow: hidden;
  min-height: 96px;
  border-radius: 8px;
  background: #eef2f6;
}

.attachment-thumb,
.attachment-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-fallback {
  display: grid;
  place-items: center;
  min-height: 96px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.attachment-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.attachment-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.attachment-name {
  font-weight: 700;
  word-break: break-all;
}

.attachment-remove-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #ffd7d7;
  border-radius: 999px;
  background: #fff5f5;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.attachment-remove-button:active {
  transform: translateY(1px);
}

.attachment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attachment-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7f3;
  color: #16624a;
  font-size: 12px;
  font-weight: 700;
}

.attachment-tag.is-subtle {
  background: #f3f6f9;
  color: #526170;
}

.attachment-meta {
  color: var(--muted);
  font-size: 12px;
}

.attachment-note {
  margin: 0;
  color: #344054;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-link {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.attachment-link:hover {
  text-decoration: underline;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 520px) {
  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .header-row,
  .toolbar-panel,
  .timeline-head,
  .card-head,
  .record-head {
    grid-auto-flow: row;
  }

  .header-row,
  .card-head,
  .record-head {
    display: grid;
  }

  .toolbar-panel {
    grid-template-columns: 1fr;
  }

  .page-actions,
  .result-actions {
    flex-direction: column;
  }

  .page-actions > *,
  .result-actions > * {
    width: 100%;
  }

  .attachment-card {
    grid-template-columns: 1fr;
  }

  .card-meta {
    grid-template-columns: 1fr;
  }

  .card-meta div {
    display: grid;
    gap: 4px;
  }

  .card-meta strong {
    text-align: left;
  }
}

/* Productized service center layer */
.service-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.service-switch a {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.service-switch a.is-active {
  background: var(--primary);
  color: #fff;
}

.repair-form,
.toolbar-panel,
.panel,
.summary-card,
.order-card,
.current-action-card,
.result-panel {
  border-radius: var(--radius);
}

.repair-form,
.toolbar-panel,
.panel,
.order-card,
.current-action-card,
.result-panel {
  box-shadow: var(--shadow-soft);
}

.success-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.success-summary {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.success-summary span,
.service-insight span,
.current-action-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.success-summary strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 18px;
}

.success-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-insight {
  border-color: #cfe7dc;
  background: linear-gradient(135deg, #ffffff, var(--primary-soft));
}

.service-insight strong {
  font-size: 18px;
}

.current-step-guide {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dfeee8;
}

.current-step-guide > strong {
  color: var(--text);
  font-size: 15px;
}

.step-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d5e7de;
  border-radius: 999px;
  background: #f6fffb;
  color: #145f49;
  font-size: 12px;
  font-weight: 800;
}

.order-card {
  position: relative;
  overflow: hidden;
}

.order-card.needs-action {
  border-color: #f0d6a2;
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.order-card.needs-action::before {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 10px;
  border-radius: 0 0 0 12px;
  background: var(--warning);
  color: #fff;
  content: "待你处理";
  font-size: 12px;
  font-weight: 900;
}

.order-progress {
  height: 8px;
  margin: 12px 0;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.order-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #5fd0a3);
}

.stage-dots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 12px 0 0;
}

.stage-dots span {
  height: 5px;
  border-radius: 999px;
  background: #d9e1ea;
}

.stage-dots span.is-done {
  background: var(--primary);
}

.current-action-card {
  display: grid;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 15px;
  border: 1px solid #cfe7dc;
  background: linear-gradient(135deg, #ffffff, var(--primary-soft));
}

.current-action-card.is-supporting {
  border-color: #dce7e2;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.current-action-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.current-action-card p {
  margin: 8px 0 0;
  color: #365246;
  font-size: 14px;
}

.action-buttons {
  margin: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 0 0 4px;
}

.timeline-item summary {
  list-style: none;
  cursor: pointer;
}

.timeline-item summary::-webkit-details-marker {
  display: none;
}

.timeline-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.timeline-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.timeline-title strong {
  min-width: 0;
}

.timeline-title span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item:not([open]) .timeline-body {
  display: none;
}

.timeline-item.is-current {
  padding: 12px;
  border: 1px solid #cfe7dc;
  border-radius: 14px;
  background: var(--primary-soft);
}

.timeline-item.is-pending {
  opacity: 0.72;
}

.timeline-dot.is-current {
  box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.12);
}

.status-badge.is-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.is-processing {
  background: var(--processing-soft);
  color: var(--processing);
}

.status-badge.is-success {
  background: var(--success-soft);
  color: var(--success);
}

@media (max-width: 480px) {
  .current-action-card strong {
    font-size: 20px;
  }

  .timeline-title {
    display: grid;
    gap: 4px;
  }
}
