/* 门户网站风格产品详情页 */
.github-source-bar {
  margin: 0;
  padding: 10px clamp(20px, 4vw, 40px);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  background: rgba(41, 151, 255, 0.08);
  border-bottom: 1px solid var(--line);
}
.github-source-bar a {
  color: var(--link);
  margin: 0 4px;
}
.github-source-bar a:hover { text-decoration: underline; }

.pd-page {
  --pd-glow: color-mix(in srgb, var(--pd-accent, #2997ff) 35%, transparent);
  padding-top: 0;
}

/* 产品页内容默认可见，避免 reveal 导致整页黑屏 */
.pd-page .reveal {
  opacity: 1;
  transform: none;
}
.pd-page .section.specs {
  display: block;
  width: min(1200px, calc(100% - 48px));
  padding: 60px 0 80px;
}
.pd-page .section.cta {
  width: min(1200px, calc(100% - 48px));
}
.pd-theme--violet { --pd-accent: #a78bfa; --link: #a78bfa; }
.pd-theme--blue { --pd-accent: #60a5fa; --link: #60a5fa; }

.pd-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.pd-subnav a {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 980px;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.pd-subnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.pd-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
.pd-wrap--narrow { max-width: 980px; }

.pd-band {
  padding: clamp(72px, 10vw, 120px) 0;
}
.pd-band--alt {
  background: var(--bg-elevated);
}

.pd-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 96px);
  overflow: hidden;
}
.pd-hero-glow {
  position: absolute;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--pd-glow), transparent 68%);
  pointer-events: none;
}
.pd-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.pd-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 980px;
  border: 1px solid color-mix(in srgb, var(--pd-accent) 40%, transparent);
  background: color-mix(in srgb, var(--pd-accent) 12%, transparent);
  color: var(--pd-accent);
}
.pd-title-gradient {
  background: linear-gradient(135deg, #f5f5f7 0%, var(--pd-accent) 55%, #f5f5f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(40px, 6vw, 72px);
}
.pd-hero-tagline {
  margin-top: 12px;
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}
.pd-hero-desc {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-tertiary);
  max-width: 520px;
}
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}
.pd-chips span {
  padding: 5px 12px;
  font-size: 11px;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.pd-app-window {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}
.pd-app-window img {
  width: 100%;
  height: auto;
  display: block;
}
.pd-app-window--tilt {
  transform: rotate(1deg);
  transition: transform 0.5s var(--ease-out);
}
.pd-app-window--tilt:hover { transform: rotate(0); }
.pd-window-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pd-window-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}
.pd-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #30d158;
  vertical-align: middle;
  animation: pd-pulse 2s ease infinite;
}
@keyframes pd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pd-section-head { margin-bottom: 48px; }
.pd-section-head--center { text-align: center; }
.pd-section-head--center .pd-subtitle { margin: 12px auto 0; }
.pd-subtitle {
  font-size: 19px;
  line-height: 1.47;
  color: var(--text-secondary);
  max-width: 640px;
}
.pd-muted { color: var(--text-tertiary); }

.pd-card-grid {
  display: grid;
  gap: 16px;
}
.pd-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pd-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pd-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pd-glass-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.pd-glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.pd-glass-card--compact { min-height: 140px; }
.pd-glass-card--tall { display: flex; flex-direction: column; }
.pd-glass-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.pd-glass-card p {
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.pd-glass-card figure {
  margin: 20px 0 0;
}
.pd-icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.pd-icon-box i { font-size: 18px; }
.pd-icon-box--blue { background: rgba(41, 151, 255, 0.15); }
.pd-icon-box--blue i { color: #2997ff; }
.pd-icon-box--green { background: rgba(48, 209, 88, 0.15); }
.pd-icon-box--green i { color: #30d158; }
.pd-icon-box--purple { background: rgba(167, 139, 250, 0.15); }
.pd-icon-box--purple i { color: #a78bfa; }

.pd-page .feat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pd-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pd-accent) 22%, transparent);
}
.pd-page .feat-icon i { font-size: 16px; color: var(--pd-accent); }
.pd-page .feat-icon--sm {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
}
.pd-page .feat-icon--sm i { font-size: 14px; }

.pd-advantage-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pd-advantage-item .feat-icon { flex-shrink: 0; margin-bottom: 0; }
.pd-advantage-item strong { display: block; margin-bottom: 6px; }

.pd-scan-item .feat-icon { margin-bottom: 10px; }

.pd-teacher-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pd-teacher-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  color: var(--pd-accent);
  background: color-mix(in srgb, var(--pd-accent) 12%, transparent);
}
.pd-darklink > h3::before {
  content: "\f3ed";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #ff6b6b;
  font-size: 0.9em;
}
.pd-mini-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 980px;
  border: 1px solid color-mix(in srgb, var(--pd-accent) 35%, transparent);
  color: var(--pd-accent);
}

.pd-shot-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pd-shot-frame--light {
  background: #f5f5f7;
  border-color: #e5e5ea;
}
.pd-shot-frame img { width: 100%; height: auto; display: block; }
.pd-figure { margin: 48px 0 0; }
.pd-figure figcaption,
.pd-shot-grid figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.pd-shot-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.pd-shot-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pd-shot-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pd-darklink {
  margin-top: 56px;
  text-align: center;
}
.pd-darklink h3 { font-size: 28px; margin-bottom: 12px; }
.pd-darklink > p {
  max-width: 560px;
  margin: 0 auto 32px;
}

.pd-advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.pd-advantage-item strong {
  display: block;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 6px;
}
.pd-advantage-item p { font-size: 14px; }

.pd-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pd-table-wrap--light {
  border-color: #e5e5ea;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}
.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
}
.pd-table--light { background: #fff; color: #1d1d1f; }
.pd-table th,
.pd-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.pd-table--light th,
.pd-table--light td { border-color: #f0f0f2; }
.pd-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pd-table--light th { color: #6e6e73; background: #fbfbfd; }
.pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-highlight { color: #30d158; }
.pd-table--light .pd-highlight { color: #248a3d; font-weight: 500; }
.pd-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pd-scan-panel {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pd-scan-panel h4 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--text);
}
.pd-scan-panel p { font-size: 14px; }

.pd-code-demo {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #0d1117;
  border: 1px solid var(--line);
  overflow: auto;
}
.pd-code-demo code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #c9d1d9;
}

.pd-teacher-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.pd-teacher-list li strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.pd-teacher-list li span { font-size: 14px; color: var(--text-secondary); }

.pd-install {
  background: #fbfbfd;
  color: #1d1d1f;
  padding: clamp(72px, 10vw, 120px) 0;
}
.pd-install h2 {
  color: #1d1d1f;
  font-size: clamp(32px, 5vw, 56px);
}
.pd-install-sub {
  color: #6e6e73;
  font-size: 19px;
  margin-top: 12px;
}
.pd-install .eyebrow { color: var(--link); }
.pd-store-link {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff !important;
}
.pd-store-link:hover { background: #0077ed; }
.pd-offline-box {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #e5e5ea;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pd-offline-box h3 {
  font-size: 19px;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.pd-offline-box p { font-size: 14px; color: #6e6e73; }
.pd-btn-dark {
  background: #1d1d1f !important;
  color: #fff !important;
}
.pd-btn-dark:hover { background: #333 !important; }
.pd-install .btn.ghost {
  box-shadow: inset 0 0 0 1px #d2d2d7;
  color: #1d1d1f;
}

.pd-page .metrics { margin-bottom: 48px; }

.pd-specs-head {
  margin-bottom: 28px;
}
.pd-spec-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pd-spec-table .pd-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 16px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pd-spec-table .pd-spec-row:last-child { border-bottom: 0; }
.pd-spec-table .pd-spec-label {
  font-size: 14px;
  color: var(--text-tertiary);
}
.pd-spec-table .pd-spec-value {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.pd-spec-table a { color: var(--link); }

@media (max-width: 1068px) {
  .pd-hero-inner,
  .pd-split { grid-template-columns: 1fr; }
  .pd-hero-shot { order: -1; }
  .pd-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pd-card-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
  .pd-subnav { display: none; }
  .pd-card-grid--2,
  .pd-card-grid--4,
  .pd-shot-grid--2,
  .pd-shot-grid--3,
  .pd-advantage-list { grid-template-columns: 1fr; }
  .pd-table { font-size: 12px; }
  .pd-table th, .pd-table td { padding: 12px; }
}
