:root {
  --ink: #223041;
  --muted: #6b7787;
  --line: #b9c1cb;
  --bg: #eef2f6;
  --paper: #ffffff;
  --accent: #1f4f7a;
  --accent-2: #2b6aa3;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif;
}

.page {
  width: 820px;
  min-height: 1060px;
  margin: 22px auto;
  background: var(--paper);
  border: 1px solid #d7dde6;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 26px 34px 34px;
}

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

.top__title h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 800;
}

.top__icons {
  display: flex;
  gap: 16px;
  color: var(--accent);
}

.lang {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang a {
  width: 42px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 13px;
}

.lang a.is-active {
  background: var(--accent);
  color: #fff;
}

.lang a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.lang a.is-active:hover {
  color: #fff;
}

.icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.icon svg {
  width: 18px;
  height: 18px;
}

.rule {
  height: 10px;
  margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--accent) 0 68%, #9aa4b0 68% 100%);
  clip-path: polygon(0 0, 72% 0, 75% 100%, 0 100%);
}

.block {
  margin-top: 14px;
}

.block__label {
  position: relative;
  display: inline-block;
  padding: 6px 18px 6px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

.block__label::after {
  content: "";
  position: absolute;
  top: 0;
  right: -22px;
  width: 22px;
  height: 100%;
  background: linear-gradient(135deg, transparent 0 50%, var(--accent) 50% 100%);
}

.block__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0 2px,
    rgba(255, 255, 255, 0) 2px 5px
  );
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.block__body {
  border: 1px solid var(--line);
  border-top: none;
  padding: 14px 16px 12px;
}

.grid {
  display: grid;
  gap: 10px 18px;
}

.grid--basic {
  grid-template-columns: 1fr 1fr 170px;
  align-items: start;
}

.grid__col {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.kv {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.k {
  width: 92px;
  color: var(--muted);
  flex: none;
  letter-spacing: 1px;
}

.v {
  font-weight: 600;
}

.avatar {
  display: flex;
  justify-content: flex-end;
}

.avatar__frame {
  width: 140px;
  height: 170px;
  border: 1px solid #cfd6df;
  background: #f6f8fb;
  display: grid;
  place-items: center;
}

.avatar__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #6f7b8a;
  text-align: center;
  padding: 10px;
}

.avatar__ph1 {
  font-weight: 900;
  color: #536171;
  letter-spacing: 2px;
}

.avatar__ph2 {
  font-size: 11px;
}

.row {
  display: grid;
  grid-template-columns: 170px 1fr 210px;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.row__time {
  font-weight: 800;
  color: #2a2f36;
}

.row__main {
  font-weight: 800;
  font-size: 16px;
}

.row__tag {
  text-align: right;
  font-weight: 800;
  color: #2a2f36;
}

.p {
  font-size: 13.5px;
  line-height: 1.65;
  margin: 6px 0;
}

.bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
}

.bullets li {
  margin: 8px 0;
}

.b {
  font-weight: 800;
}

@media (max-width: 880px) {
  .page {
    width: auto;
    margin: 0;
    min-height: auto;
    border: none;
    box-shadow: none;
    padding: 18px 14px 22px;
  }

  .grid--basic {
    grid-template-columns: 1fr;
  }

  .avatar {
    justify-content: flex-start;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .row__tag {
    text-align: left;
  }

  .rule {
    clip-path: none;
  }
}

@media print {
  body {
    background: #fff;
  }
  .page {
    margin: 0;
    border: none;
    box-shadow: none;
    width: auto;
    min-height: auto;
    padding: 0;
  }
}
