/* 门户网站风格产品详情页 */
.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-theme--mint { --pd-accent: #48dfb0; --link: #48dfb0; }
.pd-theme--cyan { --pd-accent: #83f0d0; --link: #83f0d0; }
.pd-theme--ocean { --pd-accent: #5eb3ff; --link: #5eb3ff; --link-hover: #8ecfff; }
.pd-theme--amber { --pd-accent: #ffbd68; --link: #ffbd68; }
.pd-theme--ice { --pd-accent: #79d7ff; --link: #79d7ff; }
.pd-theme--rose { --pd-accent: #f87171; --link: #f87171; }

.pd-page[style*="--pd-accent"] {
  --link: var(--pd-accent);
}

.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-hero--stacked {
  text-align: center;
  min-height: auto;
}
.pd-hero--stacked .pd-hero-inner {
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
}
.pd-hero--stacked .pd-hero-copy {
  max-width: 760px;
  margin: 0 auto;
}
.pd-hero--stacked .pd-hero-desc {
  margin-left: auto;
  margin-right: auto;
}
.pd-hero--stacked .pd-chips,
.pd-hero--stacked .hero-actions,
.pd-hero--stacked .tag-row {
  justify-content: center;
}
.pd-hero--stacked .pd-hero-shot {
  width: min(880px, 100%);
  margin: 0 auto;
}
.pd-hero-shot--poster {
  width: min(480px, 78vw);
}
.pd-hero-shot--popup {
  width: min(340px, 78vw);
  margin-left: auto;
}
.pd-hero-shot--popup .pd-app-window {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.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 {
  font-size: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, #f5f5f7 0%, var(--pd-accent) 55%, #f5f5f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pd-theme--violet .pd-title-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pd-theme--ocean .pd-title-gradient {
  background: linear-gradient(135deg, #e8f4ff 0%, #5eb3ff 42%, #2a7fd4 78%, #e8f4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pd-theme--ocean .pd-hero-glow {
  background: radial-gradient(
    circle,
    rgba(30, 120, 200, 0.42) 0%,
    rgba(10, 50, 100, 0.18) 42%,
    transparent 68%
  );
}
.pd-theme--ocean .btn.primary {
  background: linear-gradient(135deg, #3d8fd9 0%, #5eb3ff 100%);
  color: #041018;
}
.pd-theme--ocean .btn.primary:hover {
  background: linear-gradient(135deg, #5eb3ff 0%, #8ecfff 100%);
}
.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-slogan {
  margin-top: 16px;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pd-hero-slogan-en {
  margin-top: 10px;
  font-size: clamp(15px, 1.8vw, 18px);
  font-style: italic;
  line-height: 1.5;
  color: var(--pd-accent, var(--link));
  letter-spacing: 0.01em;
}
.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);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.pd-app-window:hover {
  transform: scale(1.01);
  box-shadow: 0 40px 96px rgba(0, 0, 0, 0.62);
}
.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 h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.pd-page .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
}
.pd-section-head--spaced { margin-top: 72px; }
.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: linear-gradient(145deg, rgba(29, 29, 31, 0.92) 0%, rgba(20, 20, 22, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.pd-glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
}
.pd-glass-card--feature {
  min-height: 260px;
  padding: 32px 28px;
  border-radius: 24px;
}
.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: 16px;
  overflow: hidden;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.pd-shot-frame:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.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-steps {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 0 0 1.2em;
  color: #424245;
  font-size: 16px;
  line-height: 1.65;
  display: grid;
  gap: 12px;
}
.pd-install .pd-code-demo {
  max-width: 720px;
  margin: 24px auto;
}
.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-install .btn.ghost.firefox {
  color: #e85d1a;
  box-shadow: inset 0 0 0 1px rgba(232, 93, 26, 0.45);
}
.pd-install .btn.ghost.firefox:hover {
  background: rgba(255, 113, 57, 0.08);
}

.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); }

/* v1.0.3 版本更新区 */
.pd-release {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--pd-accent) 10%, transparent), transparent 65%),
    var(--bg-elevated);
}
.pd-release-banner {
  margin: 0 auto 48px;
  max-width: 720px;
}
.pd-shot-frame--glow {
  border-color: color-mix(in srgb, var(--pd-accent) 30%, rgba(255, 255, 255, 0.1));
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--pd-accent) 12%, transparent);
}
.pd-release-grid {
  gap: 20px;
}
.pd-glass-card--release {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 24px;
}
.pd-release-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.pd-release-card-head .feat-icon {
  margin-bottom: 0;
}
.pd-release-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pd-accent);
  opacity: 0.75;
}
.pd-glass-card--release h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.pd-glass-card--release p {
  font-size: 14px;
  line-height: 1.58;
  flex: 1;
}
.pd-glass-card--release figure {
  margin: 20px 0 0;
}
.pd-glass-card--release figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (max-width: 1068px) {
  .pd-hero-inner,
  .pd-split { grid-template-columns: 1fr; }
  .pd-hero--stacked .pd-hero-shot { order: unset; }
  .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; }
}
