:root {
  --bg: #f5f7f9;
  --panel: #ffffff;
  --text: #1e2933;
  --muted: #647484;
  --line: #dce3ea;
  --accent: #c85a24;
  --accent-dark: #9e4319;
  --green: #15803d;
  --blue: #1d4ed8;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 14px 14px 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

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

.brand {
  font-size: 18px;
  font-weight: 700;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 36px;
  flex: 0 0 auto;
}

.chip-active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff7ed;
}

.service-card {
  cursor: pointer;
}

.service-card:active {
  transform: translateY(1px);
}

.service-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.service-badge,
.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f7;
  color: #354052;
}

.result-badge.success {
  color: var(--green);
  background: #ecfdf3;
}

.result-badge.info {
  color: var(--blue);
  background: #eff6ff;
}

.result-badge.warning {
  color: #b45309;
  background: #fffbeb;
}

.service-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-dark);
}

.service-scene {
  color: #334155;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.service-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  background: #fbfcfd;
}

.meta-list {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.meta-item {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.text-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

.text-input:focus {
  border-color: var(--accent);
}

.option-section {
  margin-top: 14px;
}

.field-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.model-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-radio-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.model-radio-option-active {
  border-color: var(--accent);
  background: #fff7ed;
}

.primary-button,
.ghost-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-top: 14px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:disabled {
  background: #cbd5df;
  color: #f8fafc;
}

.ghost-button {
  color: var(--accent-dark);
  background: #fff;
  border-color: #f0c4a8;
}

.credential-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.notice {
  background: #fff7ed;
  border-color: #fed7aa;
}

.loading {
  opacity: 0.72;
}

@media (max-width: 420px) {
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel {
    padding: 14px;
  }

  .model-radio-group {
    grid-template-columns: 1fr;
  }
}
