* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #f5f5f5;
  color: #2c3345;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

.doc-navbar {
  height: 54px;
  background: #2b3448;
}

.doc-nav-inner {
  width: min(960px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-logo img {
  display: block;
  width: 170px;
  height: auto;
}

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 104px;
  height: 32px;
  padding: 0 18px;
  border-radius: 18px;
  background: #23c9ef;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(35, 201, 239, 0.24);
}

.doc-download img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.docs-shell {
  width: min(820px, calc(100% - 32px));
  margin: 24px auto 80px;
}

.docs-panel,
.detail-panel {
  background: #fff;
}

.docs-panel {
  padding: 28px 34px 32px;
}

.docs-panel h1 {
  padding-bottom: 9px;
  border-bottom: 1px solid #eef0f4;
  color: #20283a;
  font-size: 20px;
  font-weight: 700;
}

.docs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 24px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #eef0f4;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.docs-row:hover {
  color: #18bde4;
  padding-left: 6px;
}

.docs-row time {
  color: #9ba3b1;
  text-align: right;
  font-weight: 500;
}

.docs-state {
  padding: 28px 0 10px;
  color: #8c95a5;
  font-size: 14px;
  text-align: center;
}

.docs-state.error,
.detail-panel .error {
  color: #d34b4b;
}

.detail-shell {
  width: min(820px, calc(100% - 32px));
}

.detail-panel {
  padding: 34px 34px 42px;
}

.detail-panel h1 {
  color: #252d3d;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.detail-divider {
  height: 1px;
  margin: 17px 0 14px;
  background: #edf0f4;
}

.detail-panel time {
  display: block;
  margin-bottom: 22px;
  color: #646b78;
  font-size: 14px;
  text-align: center;
}

.detail-panel p {
  margin-bottom: 14px;
  color: #5d6574;
  font-size: 14px;
}

.detail-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px auto 22px;
}

.doc-content {
  color: #5d6574;
  font-size: 14px;
}

.doc-content h1,
.doc-content h2,
.doc-content h3 {
  margin: 20px 0 10px;
  color: #252d3d;
  line-height: 1.45;
}

.doc-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.doc-content a {
  color: #18bde4;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.doc-content table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  color: #5d6574;
  font-size: 14px;
}

.doc-content th,
.doc-content td {
  padding: 10px 12px;
  border: 1px solid #e6e9ef;
  text-align: left;
  vertical-align: top;
}

.doc-content th {
  background: #f6f8fb;
  color: #252d3d;
  font-weight: 700;
}

.doc-content ul,
.doc-content ol {
  margin: 10px 0 14px 22px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: #18bde4;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 1921px) {
  .doc-nav-inner,
  .docs-shell,
  .detail-shell {
    width: min(1080px, calc(100% - 32px));
  }

  .doc-logo img {
    width: 200px;
  }

  .doc-download {
    gap: 8px;
    min-width: 122px;
    height: 38px;
    padding: 0 22px;
    border-radius: 20px;
    font-size: 15px;
  }

  .doc-download img {
    width: 18px;
    height: 18px;
  }

  .docs-panel h1 {
    font-size: 22px;
  }

  .docs-row,
  .detail-panel p,
  .detail-panel time,
  .doc-content,
  .back-link {
    font-size: 16px;
  }

  .detail-panel h1 {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .doc-navbar {
    height: 56px;
  }

  .doc-logo img {
    width: 142px;
  }

  .docs-panel,
  .detail-panel {
    padding: 24px 18px 30px;
  }

  .docs-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 11px 0;
  }

  .docs-row time {
    text-align: left;
  }
}
