:root {
  --pd-blue: #2f6bff;
  --pd-blue-deep: #225de5;
  --pd-ink: #202436;
  --pd-text: #4d5568;
  --pd-muted: #8a91a3;
  --pd-line: #e7eaf0;
  --pd-bg: #f2f4f8;
  --pd-card: #ffffff;
  --pd-dark: #151a25;
}

body.pd-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--pd-text);
  background: var(--pd-bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.pd-page *,
body.pd-page *::before,
body.pd-page *::after {
  box-sizing: border-box;
}

body.pd-page a {
  color: inherit;
  text-decoration: none;
}

body.pd-page img {
  max-width: 100%;
}

.pd-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.pd-header-inner {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 18px;
}

.pd-home-link {
  display: flex;
  min-width: 76px;
  align-items: center;
  gap: 8px;
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 600;
}

.pd-home-badge {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

.pd-home-badge i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #fff;
}

.pd-home-badge i:nth-child(1) { top: 7px; left: 7px; }
.pd-home-badge i:nth-child(2) { top: 7px; right: 7px; }
.pd-home-badge i:nth-child(3) { bottom: 7px; left: 7px; }
.pd-home-badge i:nth-child(4) { right: 7px; bottom: 7px; }

.pd-home-badge img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pd-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.pd-nav a {
  position: relative;
  padding: 17px 0 15px;
  color: #41485a;
  font-size: 13px;
}

.pd-nav a:hover,
.pd-nav a.is-active {
  color: var(--pd-blue);
}

.pd-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pd-blue);
  content: "";
}

.pd-header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
}

.pd-icon-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #4e5668;
  background: transparent;
  cursor: pointer;
}

.pd-icon-btn:hover {
  color: var(--pd-blue);
  background: #eef3ff;
}

.pd-login-btn {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 13px;
  border-radius: 4px;
  color: #fff !important;
  background: var(--pd-blue);
  font-size: 12px;
}

.pd-info-btn {
  width: 18px;
  height: 18px;
  border: 1px solid #cfd6e3;
  border-radius: 50%;
  color: #8790a1;
  font-size: 10px;
}

/* Main document */
.pd-document {
  overflow: hidden;
  margin: 14px auto 46px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 35, 58, 0.04);
}

.pd-summary {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
  border-bottom: 1px solid #edf0f4;
}

.pd-summary-media {
  display: flex;
  height: 160px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f6f8;
}

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

.pd-summary-media-placeholder {
  padding: 20px;
  color: #8e96a6;
  font-size: 12px;
  text-align: center;
}

.pd-summary-copy h1 {
  margin: 7px 0 9px;
  color: var(--pd-ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.pd-summary-copy > p {
  margin: 0;
  color: #555e70;
  font-size: 13px;
  line-height: 1.8;
}

.pd-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 16px;
  color: #8b92a2;
  font-size: 11px;
}

.pd-intro {
  padding: 32px 30px 28px;
  border-bottom: 1px solid #edf0f4;
  text-align: center;
}

.pd-kicker {
  margin: 0 0 9px;
  color: #8b92a3;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-intro h2 {
  margin: 0;
  color: var(--pd-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 15px 0 14px;
}

.pd-tags span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 3px;
  color: #5f6879;
  background: #f1f4f9;
  font-size: 11px;
}

.pd-tagline {
  margin: 0 auto;
  color: #4f586a;
  font-size: 14px;
  line-height: 1.8;
}

.pd-version {
  margin: 9px 0 0;
  color: #9ba2b0;
  font-size: 10.5px;
}

.pd-section {
  padding: 38px 28px;
  border-bottom: 1px solid #edf0f4;
}

.pd-section:last-of-type {
  border-bottom: 0;
}

.pd-section-head {
  margin-bottom: 26px;
  text-align: center;
}

.pd-section-head h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 13px;
  color: var(--pd-ink);
  font-size: 22px;
  font-weight: 700;
}

.pd-section-head h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: #24c7a3;
  content: "";
  transform: translateX(-50%);
}

.pd-section-head p {
  max-width: 720px;
  margin: 11px auto 0;
  color: #7f8798;
  font-size: 12px;
  line-height: 1.75;
}

.pd-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pd-value-card {
  min-height: 160px;
  padding: 20px 15px;
  border: 1px solid #e7eaf0;
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.pd-value-num {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.pd-value-card:nth-child(4n + 1) .pd-value-num { background: linear-gradient(135deg, #3b8cff, #2f6bff); }
.pd-value-card:nth-child(4n + 2) .pd-value-num { background: linear-gradient(135deg, #a35cff, #7f43e8); }
.pd-value-card:nth-child(4n + 3) .pd-value-num { background: linear-gradient(135deg, #2ed0ad, #1ca88d); }
.pd-value-card:nth-child(4n + 4) .pd-value-num { background: linear-gradient(135deg, #ffb12f, #f08a16); }

.pd-value-card h3 {
  margin: 14px 0 8px;
  color: #353c4d;
  font-size: 13px;
  font-weight: 600;
}

.pd-value-card p {
  margin: 0;
  color: #858d9c;
  font-size: 10.5px;
  line-height: 1.75;
}

.pd-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pd-feature-card {
  min-height: 112px;
  padding: 17px 14px;
  border: 1px solid #e7eaf0;
  border-radius: 4px;
  background: #fff;
}

.pd-feature-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.pd-color-1 { background: linear-gradient(135deg, #a45cff, #7d3be8); }
.pd-color-2 { background: linear-gradient(135deg, #29c9a8, #12a98c); }
.pd-color-3 { background: linear-gradient(135deg, #489aff, #2f6bff); }
.pd-color-4 { background: linear-gradient(135deg, #45cb79, #20aa53); }
.pd-color-5 { background: linear-gradient(135deg, #ffb22e, #f18a13); }
.pd-color-6 { background: linear-gradient(135deg, #f274a2, #dc4f83); }
.pd-color-7 { background: linear-gradient(135deg, #29c5bd, #13a5a1); }
.pd-color-8 { background: linear-gradient(135deg, #4b95ff, #2b6dea); }
.pd-color-9 { background: linear-gradient(135deg, #ff7c3b, #e95d20); }
.pd-color-10 { background: linear-gradient(135deg, #8b5cf6, #6d3bea); }

.pd-feature-card h3 {
  margin: 11px 0 6px;
  color: #353c4d;
  font-size: 12px;
  font-weight: 600;
}

.pd-feature-card p {
  margin: 0;
  color: #8a91a1;
  font-size: 10px;
  line-height: 1.7;
}

.pd-table-wrap {
  overflow-x: auto;
}

.pd-module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10.5px;
}

.pd-module-table th {
  padding: 8px 10px;
  border: 1px solid #e8edf5;
  color: #4e5768;
  background: #f2f6fc;
  font-weight: 600;
  text-align: center;
}

.pd-module-table th:first-child {
  width: 130px;
}

.pd-module-table td {
  padding: 9px 11px;
  border: 1px solid #edf0f4;
  color: #70798a;
  line-height: 1.8;
  text-align: center;
  vertical-align: middle;
}

.pd-module-table td:last-child {
  text-align: left;
}

.pd-tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pd-tech-list span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 3px;
  color: #70798a;
  background: #f5f7fa;
  font-size: 10px;
}

.pd-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pd-security-card {
  padding: 16px 18px;
  border: 1px solid #e7eaf0;
  border-radius: 4px;
  background: #fff;
}

.pd-security-card h3 {
  margin: 0 0 7px;
  color: #495163;
  font-size: 11.5px;
  font-weight: 600;
}

.pd-security-card h3::before {
  margin-right: 5px;
  color: #23bba0;
  content: "✓";
}

.pd-security-card p {
  margin: 0;
  color: #8d94a4;
  font-size: 10px;
  line-height: 1.75;
}

.pd-content-stream {
  padding: 0 28px 28px;
}

.pd-content-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #edf0f4;
}

.pd-content-entry:last-child {
  border-bottom: 0;
}

.pd-content-entry-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #f5f6f8;
}

.pd-content-entry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-content-entry-copy {
  min-width: 0;
}

.pd-content-entry-copy > h2 {
  margin: 0 0 12px;
  color: var(--pd-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.pd-content-entry-desc {
  margin: 0 0 16px;
  color: #737c8d;
  font-size: 13px;
  line-height: 1.85;
}

.pd-content-entry-body {
  color: #4f586a;
  font-size: 13px;
  line-height: 1.9;
  word-break: break-word;
}

.pd-content-entry-body > :first-child {
  margin-top: 0;
}

.pd-content-entry-body > :last-child {
  margin-bottom: 0;
}

.pd-content-entry-body img,
.pd-stored-content img {
  height: auto;
  max-width: 100%;
  border-radius: 5px;
}

.pd-content-fields {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.pd-content-field {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f7f9fc;
  color: #657084;
  font-size: 11px;
  line-height: 1.7;
}

.pd-content-field > span {
  color: #929aaa;
}

.pd-content-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: #9aa2b0;
  font-size: 10.5px;
}

.pd-prevnext {
  display: grid;
  gap: 8px;
  padding: 20px 24px 24px;
  color: #70798a;
  font-size: 11.5px;
}

.pd-prevnext a:hover {
  color: var(--pd-blue);
}

.pd-prevnext span {
  display: inline-block;
  min-width: 78px;
  color: #353c4d;
  font-weight: 600;
}

/* Footer */
.pd-footer {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  color: #9ba3b2;
  background: #151a25;
}

.pd-footer-inner {
  display: grid;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 24px;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 44px;
}

.pd-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.pd-footer h3 {
  margin: 0 0 12px;
  color: #f4f5f7;
  font-size: 11px;
  font-weight: 600;
}

.pd-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 18px;
}

.pd-footer-nav a {
  color: #9ba3b2;
  font-size: 10.5px;
}

.pd-footer-nav a:hover {
  color: #fff;
}

.pd-footer-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #9ba3b2;
  font-size: 10.5px;
}

.pd-footer-stats b {
  min-width: 12px;
  color: #f5f6f8;
  font-weight: 400;
  text-align: left;
}

.pd-footer-stats b:not(:last-child) {
  margin-right: 10px;
}

.pd-footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #5d6574;
  font-size: 10px;
}

@media (max-width: 900px) {
  .pd-nav {
    display: none;
  }

  .pd-values,
  .pd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .pd-shell {
    padding: 0 12px;
  }

  .pd-document {
    margin-top: 8px;
  }

  .pd-summary {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .pd-summary-media {
    height: 190px;
  }

  .pd-intro,
  .pd-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .pd-values,
  .pd-features,
  .pd-security-grid {
    grid-template-columns: 1fr;
  }

  .pd-content-stream {
    padding-right: 16px;
    padding-left: 16px;
  }

  .pd-content-entry {
    grid-template-columns: 1fr;
  }

  .pd-content-entry-media {
    max-width: 260px;
  }

  .pd-content-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pd-module-table {
    min-width: 620px;
  }

  .pd-footer-inner {
    grid-template-columns: 1fr;
  }
}

.pd-page.pd-dark {
  --pd-bg: #11151e;
  --pd-card: #1b202c;
  --pd-ink: #f3f5f8;
  --pd-text: #b8c0ce;
  --pd-line: #303747;
  background: var(--pd-bg);
}

.pd-page.pd-dark .pd-header,
.pd-page.pd-dark .pd-document,
.pd-page.pd-dark .pd-summary,
.pd-page.pd-dark .pd-value-card,
.pd-page.pd-dark .pd-feature-card,
.pd-page.pd-dark .pd-security-card {
  border-color: var(--pd-line);
  background: var(--pd-card);
}

.pd-page.pd-dark .pd-nav a,
.pd-page.pd-dark .pd-home-link,
.pd-page.pd-dark .pd-summary-copy h1,
.pd-page.pd-dark .pd-intro h2,
.pd-page.pd-dark .pd-section-head h2,
.pd-page.pd-dark .pd-value-card h3,
.pd-page.pd-dark .pd-feature-card h3 {
  color: #f3f5f8;
}

.pd-page.pd-dark .pd-module-table th {
  color: #dfe4ed;
  background: #252d3b;
}

.pd-page.pd-dark .pd-module-table td {
  color: #afb8c8;
  background: #1b202c;
}

.pd-page.pd-dark .pd-tech-list span,
.pd-page.pd-dark .pd-tags span {
  color: #b9c1ce;
  background: #252b38;
}
