:root {
  --page-bg: #efefef;
  --header-blue: #2f80e7;
  --card-bg: #ffffff;
  --text-main: #2f2f2f;
  --text-soft: #8d8d8d;
  --text-blue: #3f8ef6;
  --text-red: #ff6b6b;
  --line-blue: #cfe1fb;
  --button-blue: #78b7ff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --font-ui: "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-ui);
}

body,
button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.page-header {
  background: var(--header-blue);
  padding: 6px 16px 24px;
  text-align: center;
}

.page-header-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  min-height: 44px;
  margin: 0 auto 18px;
}

.header-back,
.header-capsule {
  border: none;
  background: transparent;
  padding: 0;
}

.header-back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.header-back svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-title {
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  color: #ffffff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.header-capsule {
  justify-self: end;
  width: 120px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  background: rgba(26, 103, 193, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.capsule-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.capsule-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.capsule-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.capsule-ring {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  position: relative;
}

.capsule-ring::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.account-row {
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-switch {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}

.avatar-switch--qq {
  background: #9dc8ff;
}

.avatar-switch--wechat {
  background: transparent;
}

.avatar-switch svg,
.avatar-switch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
}

.account-input {
  width: auto;
  min-width: 6ch;
  max-width: calc(100vw - 120px);
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.35),
    0 0 1px rgba(255, 255, 255, 0.9);
  outline: none;
  padding: 0;
}

.account-input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.account-measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  white-space: pre;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 0;
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.record-card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.record-banner {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: #1f1f1f;
}

.record-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.record-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 19, 19, 0.9) 0%, rgba(19, 19, 19, 0.38) 48%, rgba(19, 19, 19, 0) 100%);
}

.record-title {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.record-body {
  padding: 14px 16px 10px;
}

.headline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 54px;
  align-items: center;
  gap: 6px;
}

.headline-prefix {
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
}

.headline-input {
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-red);
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  outline: none;
}

.appeal-button {
  border: none;
  border-radius: 4px;
  width: 54px;
  padding: 6px 0;
  color: #ffffff;
  background: var(--button-blue);
  font-size: 13px;
}

.info-block {
  margin-top: 14px;
}

.info-block h3 {
  margin: 0 0 8px;
  color: var(--text-blue);
  font-size: 16px;
  font-weight: 700;
}

.data-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.data-label {
  flex: none;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.field-input,
.field-select {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: #666666;
  font-size: 12px;
  line-height: 1.45;
  padding: 0;
  outline: none;
}

.field-status {
  color: var(--text-red);
  font-weight: 700;
}

.record-extra-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.record-card.is-open .record-extra-shell {
  grid-template-rows: 1fr;
}

.record-extra {
  overflow: hidden;
}

.record-extra-inner {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.record-card.is-open .record-extra-inner {
  opacity: 1;
  transform: translateY(0);
}

.reason-box {
  padding: 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.55;
}

.reason-line {
  margin: 0;
}

.expand-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-blue);
  font-size: 13px;
  padding: 2px 0 0;
}

.expand-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

.record-card.is-open .expand-button svg {
  transform: rotate(180deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page-header {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .page-header-nav {
    min-height: 40px;
    margin-bottom: 14px;
  }

  .header-title {
    font-size: 24px;
    transform: translate(-50%, -60%);
  }

  .header-capsule {
    width: 108px;
    height: 40px;
    gap: 12px;
  }

  .account-row {
    margin-top: 0;
  }

  .avatar-switch {
    width: 58px;
    height: 58px;
  }

  .account-input {
    font-size: 21px;
  }

  .record-body {
    padding: 12px 14px 10px;
  }
}
