:root {
  --pm-primary: #0e4a88;
  --pm-primary-dark: #093666;
  --pm-bg: #f3f6fb;
  --pm-text: #263443;
  --pm-muted: #67788a;
  --pm-border: #d8e1eb;
  --pm-card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--pm-text);
  background: linear-gradient(180deg, #eef4ff 0%, var(--pm-bg) 40%, #f7f9fc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.pm-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.pm-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pm-border);
  backdrop-filter: blur(6px);
}

.pm-header .pm-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pm-brand {
  display: inline-block;
  width: 250px;
}

.pm-brand img {
  display: block;
  width: 100%;
}

.pm-home-link {
  padding: 8px 14px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  color: var(--pm-muted);
  transition: all .2s ease;
}

.pm-home-link:hover {
  color: var(--pm-primary);
  border-color: var(--pm-primary);
}

.pm-hero {
  padding: 56px 0 26px;
}

.pm-hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  color: var(--pm-primary);
}

.pm-hero p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--pm-muted);
}

.pm-panel-wrap {
  padding-bottom: 48px;
}

.pm-panel {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(14, 74, 136, 0.08);
  overflow: hidden;
}

.pm-panel-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--pm-border);
  background: linear-gradient(90deg, rgba(14, 74, 136, 0.08) 0%, rgba(14, 74, 136, 0.02) 100%);
  text-align: center;
}

.pm-panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.pm-panel-head p {
  margin: 8px 0 0;
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-panel-head p span {
  color: #d23939;
}

.pm-form {
  padding: 28px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-field span {
  font-size: 15px;
  font-weight: 600;
}

.pm-field span em {
  color: #d23939;
  font-style: normal;
}

.pm-field input,
.pm-field textarea {
  width: 100%;
  border: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-text);
  border-radius: 8px;
  font-size: 15px;
  padding: 11px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pm-field input:focus,
.pm-field textarea:focus {
  outline: 0;
  border-color: var(--pm-primary);
  box-shadow: 0 0 0 3px rgba(14, 74, 136, 0.14);
}

.pm-field textarea {
  resize: vertical;
  min-height: 170px;
}

.pm-field small {
  font-size: 12px;
  color: #7f8fa0;
}

.pm-field-captcha-row {
  max-width: 340px;
}

.pm-captcha-inline {
  display: grid;
  grid-template-columns: minmax(0, 170px) 96px;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 276px;
}

.pm-captcha-inline input {
  width: 100%;
  min-width: 0;
  text-align: center;
  letter-spacing: 1px;
}

.pm-field-captcha-row small {
  margin-top: -2px;
}

.pm-field img[data-feedback-captcha-image] {
  display: block;
  width: 96px;
  max-width: 96px;
  height: 40px;
  flex: 0 0 96px;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  cursor: pointer;
  object-fit: contain;
  background: #f8fbff;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.pm-field-full {
  grid-column: 1 / -1;
}

.pm-field-hidden {
  display: none;
}

.pm-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.pm-btn {
  border: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-text);
  border-radius: 8px;
  min-width: 126px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s ease;
}

.pm-btn:hover {
  border-color: #b4c6db;
}

.pm-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.pm-btn-primary {
  background: var(--pm-primary);
  border-color: var(--pm-primary);
  color: #fff;
}

.pm-btn-primary:hover {
  background: var(--pm-primary-dark);
  border-color: var(--pm-primary-dark);
}

.pm-note {
  margin: 0 28px 28px;
  padding: 16px 18px;
  border: 1px dashed #b8c9dc;
  background: #f8fbff;
  border-radius: 8px;
}

.pm-note h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--pm-primary);
}

.pm-note ul {
  margin: 0;
  padding-left: 18px;
}

.pm-note li {
  margin-top: 7px;
  line-height: 1.75;
  color: var(--pm-muted);
}

.pm-result {
  margin: 0 28px 22px;
  padding: 18px;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  background: #fff;
}

.pm-result h3 {
  margin: 0;
  font-size: 18px;
  color: var(--pm-primary);
}

.pm-result-empty {
  margin-top: 10px;
  color: var(--pm-muted);
  font-size: 14px;
}

.pm-result-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pm-result-item {
  border-top: 1px dashed #d6e0eb;
  padding: 12px 0;
}

.pm-result-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pm-result-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2f44;
  line-height: 1.7;
}

.pm-result-time {
  margin-top: 3px;
  color: #7e8ea2;
  font-size: 12px;
}

.pm-result-feedback {
  margin-top: 8px;
  font-size: 14px;
  color: #50657b;
  line-height: 1.85;
}

.pm-result-reply {
  margin-top: 8px;
  font-size: 14px;
  color: #3f5368;
  line-height: 1.9;
}

.pm-footer {
  border-top: 1px solid var(--pm-border);
  background: #fff;
}

.pm-footer p {
  margin: 0;
  font-size: 13px;
  color: #8593a3;
  line-height: 58px;
  text-align: center;
}

@media (max-width: 900px) {
  .pm-hero {
    padding: 38px 0 18px;
  }

  .pm-hero h1 {
    font-size: 32px;
  }

  .pm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pm-field-captcha-row {
    max-width: 100%;
  }

  .pm-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .pm-wrap {
    width: calc(100% - 24px);
  }

  .pm-header .pm-wrap {
    height: 62px;
  }

  .pm-brand {
    width: 178px;
  }

  .pm-home-link {
    padding: 6px 10px;
    font-size: 13px;
  }

  .pm-hero h1 {
    font-size: 28px;
  }

  .pm-hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .pm-panel-head,
  .pm-form {
    padding: 16px;
  }

  .pm-panel-head h2 {
    font-size: 20px;
  }

  .pm-note {
    margin: 0 16px 16px;
    padding: 12px;
  }

  .pm-result {
    margin: 0 16px 14px;
    padding: 12px;
  }

  .pm-btn {
    width: 100%;
  }
}
