:root {
  --ink: #13202c;
  --muted: #617083;
  --line: #d9e2ea;
  --paper: #f7fafc;
  --panel: #ffffff;
  --blue: #195fa8;
  --red: #b8342f;
  --green: #27805f;
  --gold: #b17822;
  --shadow: 0 20px 60px rgba(19, 32, 44, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--blue);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--gold) 48%, var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #334255;
  font-size: 14px;
}

.main-nav a:hover {
  background: #edf4fb;
  color: var(--blue);
}

.account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-actions form {
  margin: 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 700 14px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

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

.button.ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.subtle,
.button.light {
  color: var(--blue);
  background: #eaf3fb;
}

.button.full {
  width: 100%;
}

.messages {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 0 18px;
}

.message {
  padding: 12px 14px;
  border-radius: 6px;
  background: #eaf3fb;
  border: 1px solid var(--line);
}

.message.error {
  color: #7f1f1a;
  background: #fff0ee;
  border-color: #f0c0bc;
}

.message.success {
  color: #175d44;
  background: #edf8f4;
  border-color: #b7dfcf;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 80px) 38px;
  background: linear-gradient(115deg, #f8fbfe 0%, #eef5f9 52%, #f8f1e8 100%);
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 8px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1.home-hero-title {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.16;
}

.lead {
  max-width: 660px;
  color: #34475c;
  font-size: 20px;
  line-height: 1.7;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #0f2536;
}

.hero-scroll-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 16px;
  animation: hero-gallery-scroll 28s linear infinite;
  scrollbar-width: none;
  will-change: transform;
}

.hero-scroll-track::-webkit-scrollbar {
  display: none;
}

.hero-visual img {
  display: block;
  width: min(74vw, 520px);
  aspect-ratio: 900 / 640;
  height: auto;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.hero-visual:hover .hero-scroll-track {
  animation-play-state: paused;
}

@keyframes hero-gallery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -20px auto 0;
  padding: 0 18px;
}

.metrics div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.metrics strong {
  display: block;
  min-height: 34px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.metrics span {
  color: var(--muted);
}

.content-band {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 18px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 8px 0 14px;
  font-size: 30px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.panel,
.card,
.person-card,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.06);
}

.panel {
  padding: 26px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.card-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-list {
  display: grid;
  gap: 20px;
}

.highlight-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.06);
}

.highlight-card:hover h3 {
  color: var(--blue);
}

.highlight-image {
  min-height: 250px;
  background: #e8eef4;
}

.highlight-image img,
.highlight-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.highlight-copy span {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.highlight-copy h3 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.highlight-copy p {
  margin-top: 0;
  font-size: 17px;
}

.highlight-copy strong {
  color: var(--blue);
  font-size: 14px;
}

.highlight-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.highlight-detail-cover {
  height: min(48vw, 460px);
  min-height: 280px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8eef4;
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.06);
}

.related-link {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.related-link span,
.related-link strong {
  display: block;
}

.related-link span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.related-link strong {
  margin-top: 6px;
  color: var(--ink);
}

.card,
.person-card {
  padding: 24px;
}

.person-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.person-card:hover h2 a,
.person-card:hover h2 {
  color: var(--blue);
}

.person-card h2 a {
  color: var(--ink);
}

.person-email,
.person-detail-link {
  position: relative;
  z-index: 2;
}

.person-detail-link {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 14px;
}

.person-email {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.clickable-card {
  position: relative;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}

.clickable-card h2,
.clickable-card h3,
.clickable-card p,
.clickable-card span,
.clickable-card time,
.card-actions,
.achievement-resource-actions,
.achievement-detail-actions {
  position: relative;
  z-index: 2;
}

.clickable-card h2 a {
  color: var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.card span,
.person-card span,
.meta {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.dataset-card h2,
.card h3 {
  margin: 10px 0;
}

.download-password {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  margin: 4px 0 0;
  padding: 0 10px;
  color: #34475c;
  background: #fff8e8;
  border: 1px solid #ead6a7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.download-password strong {
  margin-left: 5px;
  color: var(--red);
}

.hero-password {
  margin-top: 14px;
}

.page-hero {
  padding: 70px clamp(18px, 6vw, 80px);
  background: linear-gradient(115deg, #f8fbfe, #eef5f9 60%, #f8f1e8);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  min-height: 260px;
}

.page-hero.compact h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.dataset-detail-hero {
  padding-bottom: 46px;
}

.dataset-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dataset-meta-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: #34475c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.dataset-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.markdown-body {
  min-width: 0;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.06);
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.markdown-body h2:first-child,
.markdown-body h3:first-child,
.markdown-body h4:first-child {
  margin-top: 0;
}

.markdown-body p,
.markdown-body li {
  color: #34475c;
  font-size: 16px;
  line-height: 1.8;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 24px;
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3f7;
  color: #9c2e28;
  font-family: Consolas, Monaco, monospace;
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  border-radius: 6px;
  background: #11202d;
}

.markdown-body pre code {
  padding: 0;
  color: #eaf3fb;
  background: transparent;
}

.markdown-body blockquote {
  margin: 18px 0;
  padding: 10px 16px;
  color: #41546a;
  background: #f4f7fa;
  border-left: 4px solid #9ab2c6;
}

.markdown-body blockquote p {
  margin: 0;
}

.dataset-side-panel {
  position: sticky;
  top: 96px;
}

.person-detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.person-profile-panel {
  position: sticky;
  top: 96px;
}

.person-detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  overflow: hidden;
  background: #e8eef4;
  border-radius: 8px;
}

.person-detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-detail-body {
  min-height: 360px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-list article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline article,
.publication-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline time,
.publication-list strong {
  color: var(--red);
  font-weight: 700;
}

.avatar {
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9eef4, #cdd8e2);
}

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

.auth-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding: 48px 18px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 30px;
}

.auth-card.wide {
  width: min(100%, 560px);
}

.auth-card label {
  display: block;
  margin-bottom: 6px;
  color: #334255;
  font-weight: 700;
}

.auth-card input,
.auth-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 15px Arial, "Microsoft YaHei", sans-serif;
}

.auth-card .helptext,
.auth-card ul {
  color: var(--muted);
  font-size: 13px;
}

.auth-note {
  margin-bottom: 0;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.status-badge.pending {
  color: #806014;
  background: #fff6db;
}

.status-badge.email_unverified,
.status-badge.suspended,
.status-badge.archived {
  color: #4c5866;
  background: #edf1f5;
}

.status-badge.approved {
  color: #126244;
  background: #e4f6ef;
}

.status-badge.rejected {
  color: #8a241e;
  background: #ffe9e7;
}

.review-note {
  margin-top: 18px;
  padding: 16px;
  background: #f3f7fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-note.rejected {
  background: #fff0ee;
  border-color: #f0c0bc;
}

.review-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.review-note p {
  margin: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.profile-summary {
  position: sticky;
  top: 96px;
}

.profile-avatar {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #8ea7bd, #315f8d);
  border-radius: 8px;
  font-size: 42px;
  font-weight: 800;
}

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

.profile-info-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.profile-info-list dt {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.profile-info-list dd {
  margin: 0 0 8px;
  color: #34475c;
  overflow-wrap: anywhere;
}

.profile-form p {
  margin: 0 0 14px;
}

.profile-form label {
  display: block;
  margin-bottom: 6px;
  color: #334255;
  font-weight: 700;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 15px Arial, "Microsoft YaHei", sans-serif;
}

.profile-form input[type="file"] {
  padding: 8px;
  background: #fff;
}

.profile-form .helptext,
.profile-form ul {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 30px 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: start;
  }

  .hero,
  .two-column,
  .dataset-detail-layout,
  .highlight-detail-layout,
  .person-detail-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dataset-side-panel,
  .person-profile-panel,
  .profile-summary {
    position: static;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid,
  .people-grid,
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .metrics,
  .card-grid,
  .people-grid,
  .feature-list,
  .timeline article,
  .publication-list article {
    grid-template-columns: 1fr;
  }

  .account-actions,
  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

.achievement-hero p {
  max-width: 760px;
}

.achievement-sections {
  display: grid;
  gap: 56px;
}

.achievement-section {
  scroll-margin-top: 100px;
}

.achievement-section-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}


.achievement-section {
  display: grid;
  gap: 18px;
}

.achievement-section + .achievement-section {
  margin-top: 8px;
}

.achievement-section-head > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: #34475c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.achievement-list {
  display: grid;
  gap: 12px;
}

.achievement-row-card,
.achievement-empty-card {
  background: #fff;
  border: 1px solid #d5dee7;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.06);
}

.achievement-row-card {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.achievement-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(19, 32, 44, 0.10);
}

.achievement-row-card:hover h3 {
  color: var(--blue);
}

.achievement-cover {
  min-height: 0;
  height: 135px;
  aspect-ratio: 16 / 9;
  margin: 14px;
  overflow: hidden;
  background: #e8eef4;
  border: 1px solid #d5dee7;
  border-radius: 6px;
}

.achievement-cover img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.achievement-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px 14px 0;
}

.achievement-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.achievement-kicker span,
.achievement-kicker time {
  font-size: 12px;
  font-weight: 700;
}

.achievement-kicker span {
  color: var(--red);
}

.achievement-kicker time {
  color: var(--gold);
}

.achievement-copy h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.achievement-copy p {
  display: -webkit-box;
  max-width: 900px;
  margin: 0;
  overflow: hidden;
  color: #34475c;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.achievement-core-meta {
  display: flex;
  gap: 6px;
  max-height: 25px;
  margin-top: 4px;
  overflow: hidden;
}

.achievement-core-meta span {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 0;
  padding: 3px 8px;
  color: #34475c;
  background: #f3f7fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-core-meta .achievement-authors {
  flex-grow: 1.45;
}

.achievement-resource-actions,
.achievement-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.resource-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--blue);
  background: #edf5fb;
  border: 1px solid #c8ddeb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.achievement-resource-actions {
  gap: 6px;
  margin-top: 10px;
}

.achievement-resource-actions .resource-link {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.resource-link:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.resource-link.detail {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.resource-link.detail:hover {
  background: #8f302b;
  border-color: #8f302b;
}

.achievement-copy strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
}

.achievement-empty-card {
  padding: 18px;
}

.achievement-empty-card h3 {
  margin: 0 0 8px;
}

.achievement-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.achievement-detail-cover {
  height: min(42vw, 420px);
}

.achievement-detail-meta {
  margin: 0 0 28px;
}

.achievement-detail-actions {
  margin: 10px 0 28px;
}

.achievement-detail-actions p {
  margin: 0;
}

.achievement-detail-meta dt {
  margin-top: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.achievement-detail-meta dd {
  margin: 5px 0 0;
  color: #34475c;
  line-height: 1.6;
}

.achievement-side-panel h3 + .related-link,
.achievement-side-panel h3 + p {
  margin-top: 8px;
}

.zhihu-comments {
  margin-top: 28px;
}

.zhihu-compose {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.comment-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #8ea7bd, #315f8d);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

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

.zhihu-compose-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.zhihu-compose-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  font: 15px/1.6 Arial, "Microsoft YaHei", sans-serif;
  resize: vertical;
}

.zhihu-compose-form textarea::placeholder {
  color: #8593a6;
}

.zhihu-compose-form .button {
  min-height: 46px;
  border-radius: 4px;
}

.zhihu-compose-login {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  color: #8593a6;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
}

.zhihu-comment-panel {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  box-shadow: none;
}

.zhihu-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #eef1f4;
}

.zhihu-comment-head strong {
  color: #1f2d3d;
  font-size: 17px;
}

.zhihu-sort-tabs {
  display: flex;
  overflow: hidden;
  background: #f7f9fb;
  border: 1px solid #edf1f5;
  border-radius: 3px;
}

.zhihu-sort-tabs a {
  min-width: 58px;
  padding: 8px 14px;
  color: #66758a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.zhihu-sort-tabs a.active {
  color: #1f2d3d;
  background: #fff;
}

.comment-form.reply-form {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-form.reply-form textarea {
  min-height: 88px;
  background: #fff;
}

.comment-actions .reply-box[open] {
  flex-basis: 100%;
}

.comment-actions .reply-box[open] summary {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
}

.form-errors {
  color: #8a241e;
  font-size: 14px;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.comment-login-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  background: #f3f7fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comment-login-panel p {
  margin: 0;
}

.comment-list {
  display: block;
}

.zhihu-comment-item,
.reply-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.zhihu-comment-item {
  padding: 20px 24px;
  border-top: 1px solid #eef1f4;
}

.zhihu-comment-item:first-child {
  border-top: 0;
}

.zhihu-comment-item .comment-avatar,
.reply-item .comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  font-size: 14px;
}

.comment-main {
  min-width: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.comment-meta strong {
  color: #1f2d3d;
  font-size: 16px;
}

.comment-meta strong a {
  color: inherit;
}

.comment-meta strong a:hover {
  color: var(--blue);
}

.comment-more {
  margin-left: auto;
  padding: 0;
  color: #8593a6;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.comment-main > p {
  margin: 6px 0 0;
  color: #1f2d3d;
  font-size: 16px;
  line-height: 1.65;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  color: #8593a6;
  font-size: 13px;
}

.comment-actions a,
.comment-actions button,
.comment-actions summary {
  color: #66758a;
  background: transparent;
  border: 0;
  font: 13px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.comment-delete-form {
  margin: 0;
}

.comment-delete-form button {
  color: #b8342f;
}

.comment-actions a:hover,
.comment-actions button:hover,
.comment-actions summary:hover {
  color: var(--blue);
}

.comment-empty {
  margin: 0;
  padding: 28px 24px;
  color: #8593a6;
}

.reply-box {
  margin: 0;
}

.reply-box summary {
  display: inline;
  padding: 0;
  color: #66758a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 400;
  list-style: none;
}

.reply-box summary::-webkit-details-marker {
  display: none;
}

.reply-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #eef1f4;
}

.reply-item {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.reply-item .comment-meta span {
  color: var(--muted);
  font-size: 13px;
}

.reply-item p {
  margin-bottom: 0;
}

.forum-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.forum-toolbar,
.forum-post-row,
.forum-empty {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
}

.forum-home-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.forum-home-head h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 5vw, 54px);
}

.forum-create-actions,
.forum-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-intro-panel {
  margin-bottom: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
}

.forum-intro-panel p {
  margin: 0;
  color: #34475c;
  font-size: 16px;
  line-height: 1.8;
}

.forum-search input {
  width: 100%;
  border: 0;
  color: var(--ink);
  font: 16px/1.6 Arial, "Microsoft YaHei", sans-serif;
  outline: none;
}

.forum-search input::placeholder {
  color: #9aa7b8;
}

.forum-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
}

.forum-search {
  display: grid;
  grid-template-columns: minmax(160px, 260px) auto;
  gap: 8px;
  align-items: center;
}

.forum-search input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
}

.forum-list {
  display: grid;
  margin-top: 12px;
}

.forum-post-row {
  padding: 22px 24px;
  border-radius: 0;
  border-bottom: 0;
}

.forum-post-row:first-child {
  border-radius: 4px 4px 0 0;
}

.forum-post-row:last-child {
  border-bottom: 1px solid #dfe5ec;
  border-radius: 0 0 4px 4px;
}

.forum-post-type {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.forum-post-row h2 {
  margin: 8px 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.forum-post-row h2 a {
  color: var(--ink);
}

.forum-post-row h2 a:hover {
  color: var(--blue);
}

.forum-post-row p {
  margin: 0;
  color: #1f2d3d;
  font-size: 16px;
}

.forum-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #44546a;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  color: #7b8a9c;
  font-size: 14px;
}

.forum-post-actions form {
  margin: 0;
}

.forum-post-actions button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue);
  background: #eaf3fb;
  border: 0;
  border-radius: 4px;
  font: 700 14px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.forum-empty {
  padding: 28px 24px;
  color: #8593a6;
}

.forum-detail-layout {
  max-width: 920px;
}

.forum-post-body {
  margin-bottom: 28px;
}

.forum-editor-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 70px;
}

.forum-editor-form {
  display: grid;
  gap: 18px;
}

.forum-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.forum-editor-head h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 5vw, 56px);
}

.forum-editor-type {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
}

.forum-editor-type ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.forum-editor-type label {
  color: #334255;
  font-weight: 700;
}

.forum-editor-type input {
  margin-right: 6px;
}

.forum-title-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  font: 700 22px/1.35 Arial, "Microsoft YaHei", sans-serif;
}

.forum-markdown-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}

.forum-editor-pane,
.forum-preview-pane {
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
}

.forum-editor-pane {
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr);
  overflow: hidden;
}

.forum-editor-pane .markdown-editor-toolbar {
  min-height: 48px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f4;
}

.forum-editor-pane .markdown-editor-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  color: #334255;
  background: #f7f9fb;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  font: 700 13px/1 Arial, "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.forum-editor-pane textarea {
  width: 100%;
  min-height: 520px;
  padding: 18px;
  color: #1f2d3d;
  background: #fff;
  border: 0;
  font: 15px/1.75 Consolas, Monaco, "Microsoft YaHei", monospace;
  outline: none;
  resize: vertical;
}

.forum-preview-pane {
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr);
  overflow: hidden;
}

.forum-preview-head {
  min-height: 48px;
  padding: 14px 16px;
  color: #334255;
  border-bottom: 1px solid #eef1f4;
  font-weight: 700;
}

.forum-editor-preview {
  min-height: 520px;
  padding: 24px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.forum-editor-preview img,
.forum-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero-actions form,
.comment-actions form {
  margin: 0;
}

.contact-list {
  margin-top: 28px;
}

.contact-list h3 {
  margin: 22px 0 8px;
}

@media (max-width: 980px) {
  .achievement-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .achievement-row-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .achievement-cover {
    height: 77px;
    min-height: 0;
    margin: 12px;
  }

  .achievement-copy {
    padding: 12px 12px 12px 0;
  }

  .achievement-copy h3 {
    font-size: 17px;
  }

  .achievement-core-meta {
    display: grid;
    max-height: 48px;
    grid-template-columns: minmax(0, 1fr);
  }

  .zhihu-compose {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .zhihu-compose .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .zhihu-compose-form {
    grid-template-columns: 1fr;
  }

  .zhihu-compose-form .button {
    width: 100%;
  }

  .zhihu-comment-head {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
  }

  .zhihu-sort-tabs {
    width: 100%;
  }

  .zhihu-sort-tabs a {
    flex: 1;
  }

  .comment-form .button {
    width: 100%;
  }

  .zhihu-comment-item {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 18px 16px;
  }

  .zhihu-comment-item .comment-avatar,
  .reply-item .comment-avatar {
    width: 30px;
    height: 30px;
  }

  .reply-list {
    margin-left: 0;
    padding-left: 0;
  }

  .forum-home-head,
  .forum-editor-head,
  .forum-toolbar,
  .forum-create-actions,
  .forum-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .forum-search,
  .forum-markdown-editor {
    display: grid;
    grid-template-columns: 1fr;
  }

  .forum-post-row {
    padding: 20px 16px;
  }
}
