* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #e7f1fb 0%, #f3f8fd 45%, #eef9f2 100%);
  color: #1f2f42;
}

.repair-page {
  min-height: 100vh;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.hero {
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #165ab1, #1d7a8e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 83, 158, 0.25);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.hero p {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.repair-card,
.guide-card {
  background: rgba(252, 255, 255, 0.98);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(27, 60, 112, 0.08);
}

.guide-card {
  margin-top: 16px;
}

.guide-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.guide-head h2 {
  margin: 0;
  font-size: 18px;
}

.guide-sub {
  font-size: 13px;
  color: #5b6d82;
}

.guide-search {
  margin-bottom: 12px;
}

.manual-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manual-item {
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.manual-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.manual-item ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.manual-tag {
  display: inline-block;
  background: #e0ecff;
  color: #1f4b99;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin: 0 6px;
}

.manual-ok {
  color: #1e9b6b;
  font-weight: 600;
}

.manual-warn {
  color: #d97706;
  font-weight: 600;
}

.manual-bad {
  color: #dc2626;
  font-weight: 600;
}

.manual-images {
  margin-top: 14px;
}

.manual-images h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.manual-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  margin-bottom: 8px;
  background: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #2a3c52;
  font-weight: 700;
  letter-spacing: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1f2f42;
  background: #f8fbff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2e73d6;
  box-shadow: 0 0 0 3px rgba(46, 115, 214, 0.12);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a3c52' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #e8f0f8;
}

textarea {
  resize: vertical;
}

.required {
  color: #dc3c3c;
}

.company-group {
  position: relative;
}

.suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  background: #f8fbff;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 230px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(15, 47, 92, 0.12);
}

.suggestions li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.suggestions li:hover {
  background: #edf4ff;
}

.suggest-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.suggest-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-status {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #1f7a3a;
}

.suggestions li small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #5b6d82;
}

.label-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-btn {
  border: none;
  background: transparent;
  color: #1c69cf;
  cursor: pointer;
  font-size: 12px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #1b7f5a, #2f9f76);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 124, 91, 0.22);
}

.btn.secondary {
  background: #eaf1fb;
  color: #2a4d73;
  border: 1px solid #c8d6e6;
}

.media-preview {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.media-item {
  border: 1px solid #c8d6e6;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-thumb,
.media-video {
  width: 100%;
  max-height: 160px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
}

.media-name {
  font-size: 12px;
  color: #55647a;
  word-break: break-all;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-modal[hidden] {
  display: none !important;
}

.map-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.map-card {
  position: relative;
  width: min(92vw, 760px);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
  z-index: 1;
}

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.map-head h2 {
  margin: 0;
  font-size: 18px;
}

.map-tip {
  margin: 0 0 8px;
  color: #5b6d82;
  font-size: 13px;
}

.map-container {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c8d6e6;
}

.map-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.submit-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b7f5a, #2f9f76);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 124, 91, 0.25);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.status-message {
  margin: 12px 2px 2px;
  font-size: 13px;
  color: #37536f;
  min-height: 20px;
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .hero h1 {
    font-size: 22px;
  }

  .map-card {
    padding: 12px;
  }

  .map-container {
    height: 280px;
  }
}

.site-footer {
  padding: 18px 0 4px;
  text-align: center;
  font-size: 12px;
  color: #66758a;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1c69cf;
  text-decoration: underline;
}
