/* 浏览器端非 Top 50 模型「桌面端引导浮窗」与 /desktop 落地页样式 */
.dg-dialog [hidden],
.dp-page [hidden] {
  display: none !important;
}

.dg-dialog {
  width: min(1140px, calc(100vw - 48px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid #d5e4ed;
  border-radius: 22px;
  background: #ffffff;
  color: #16364d;
  box-shadow: 0 28px 72px rgba(15, 36, 55, 0.28), 0 4px 16px rgba(15, 36, 55, 0.1);
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
}

.dg-dialog::backdrop {
  background: rgba(12, 28, 43, 0.56);
  backdrop-filter: blur(5px);
}

.dg-dialog[open] {
  animation: dg-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes dg-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(240, 246, 250, 0.9);
  color: #546d80;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dg-close:hover {
  background: #e1edf3;
  color: #16364d;
}

.dg-layout {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  min-height: 0;
}

/* 左侧模型实景图展区 */
.dg-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
  background:
    radial-gradient(circle at 20% 15%, rgba(20, 199, 176, 0.22), transparent 52%),
    radial-gradient(circle at 85% 88%, rgba(56, 189, 248, 0.2), transparent 52%),
    linear-gradient(155deg, #0f2437 0%, #163854 60%, #112a40 100%);
  overflow: hidden;
}

.dg-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #edf7fb, #f8fbfd);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(4, 15, 26, 0.42);
}

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

.dg-media-diagram {
  position: absolute;
  inset: 0;
}

.dg-media-diagram .thumbnail-diagram {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dg-media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.dg-chip-subject {
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(15, 36, 55, 0.82);
  backdrop-filter: blur(6px);
  color: #e6fffb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dg-chip-num {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #173f59;
  font-size: 12px;
  font-weight: 800;
  font-family: Consolas, monospace;
}

.dg-media-caption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b7d3e4;
  font-size: 12.5px;
}

.dg-media-caption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dg-media-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ef0d7;
  box-shadow: 0 0 8px #4ef0d7;
}

/* 右侧简介与操作区 */
.dg-content {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
  background: #ffffff;
}

.dg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e6f7f4;
  color: #0e766b;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 11px;
}

.dg-title {
  margin: 0 32px 9px 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.32;
  color: #132f46;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dg-summary {
  margin: 0 0 15px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #546b7d;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dg-perks {
  list-style: none;
  margin: 0 0 17px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f5f9fb;
  border: 1px solid #e2ecf2;
  display: grid;
  gap: 7px;
}

.dg-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #294c64;
}

.dg-perks svg {
  flex-shrink: 0;
  color: #14a79b;
}

/* 右下方主动作区 */
.dg-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dg-primary-btn {
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: linear-gradient(135deg, #117f78 0%, #149e91 52%, #1686c7 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 127, 120, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  text-decoration: none;
}

.dg-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 127, 120, 0.34);
  filter: brightness(1.04);
}

.dg-primary-btn:active {
  transform: translateY(0);
}

.dg-primary-text {
  display: grid;
  text-align: left;
  gap: 1px;
}

.dg-primary-text strong {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dg-primary-text small {
  font-size: 12px;
  color: rgba(235, 255, 252, 0.92);
  font-weight: 600;
}

.dg-secondary-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
}

.dg-download-inline-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1.5px solid #149e91;
  background: #edf9f7;
  color: #0b6f66 !important;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.dg-download-inline-btn:hover {
  background: #d7f3ee;
  border-color: #0e7c71;
  color: #085750 !important;
}

.dg-continue-btn {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid #d1dfe8;
  background: #f7fafc;
  color: #345268 !important;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.dg-continue-btn:hover {
  background: #eaf3f8;
  border-color: #aac3d4;
  color: #16364d !important;
}

.dg-dismiss-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #6b8496;
  font-size: 12.5px;
  font-weight: 600;
  user-select: none;
}

.dg-dismiss-label input {
  width: 15px;
  height: 15px;
  accent-color: #149e91;
  cursor: pointer;
}

/* 唤起状态与下载展开卡片 */
.dg-launch-status {
  padding: 11px 13px;
  border-radius: 11px;
  background: #edf8f6;
  border: 1px solid #bfe8e0;
  color: #105e56;
  font-size: 13px;
  line-height: 1.55;
}

.dg-launch-status strong {
  display: block;
  margin-bottom: 4px;
}

.dg-download-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f8fc;
  border: 1px solid #cde0ee;
  display: grid;
  gap: 8px;
}

.dg-download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #173f59;
}

.dg-download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dg-dl-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #142f46;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.dg-dl-btn:hover {
  background: #1d4464;
}

.dg-retry-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #c4d7e3;
  background: #ffffff;
  color: #2c4e66;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.dg-retry-btn:hover {
  background: #eef5f9;
}

.dg-smartscreen-tip {
  margin: 0;
  font-size: 11.5px;
  color: #647c8e;
  line-height: 1.5;
}

.dg-fallback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  font-size: 12px;
  color: #7990a1;
}

.dg-fallback-link {
  color: #5b7488;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.dg-fallback-link:hover {
  color: #1686c7;
}

.dg-fallback-muted {
  color: #93a4b1;
}

.dg-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f7f4;
  border: 1px solid #bce8df;
  color: #0c7469 !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.dg-detail-link:hover {
  background: #d3f1eb;
  border-color: #8fd8ca;
  color: #085b52 !important;
}

/* ==================== /desktop 独立落地页 ==================== */
.dp-page {
  width: min(1220px, calc(100% - 40px));
  margin: 22px auto 60px;
  display: grid;
  gap: 20px;
}

.dp-target-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 13px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9f7 0%, #f4f9fd 100%);
  border: 1px solid #c3e6df;
  box-shadow: 0 6px 20px rgba(15, 36, 55, 0.05);
}

.dp-target-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 360px;
}

.dp-target-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: #133149;
  color: #7ff5e1;
  font-family: Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
}

.dp-target-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dp-target-text strong {
  font-size: 16px;
  font-weight: 900;
  color: #132f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-target-text small {
  font-size: 12.5px;
  color: #516c7e;
}

.dp-target-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-target-primary {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #117f78, #1686c7);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dp-target-primary:hover {
  filter: brightness(1.06);
}

.dp-target-secondary {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #c7d9e4;
  background: #ffffff;
  color: #2b4c63 !important;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dp-target-secondary:hover {
  background: #eef5f9;
}

.dp-target-feedback {
  flex: 1 0 100%;
}

.dp-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 36px 40px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 16%, rgba(20, 199, 176, 0.24), transparent 50%),
    linear-gradient(145deg, #0f2437 0%, #163a57 100%);
  color: #f0f8fc;
  box-shadow: 0 22px 54px rgba(15, 36, 55, 0.18);
}

.dp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(127, 245, 225, 0.14);
  border: 1px solid rgba(127, 245, 225, 0.3);
  color: #7ff5e1;
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 14px;
}

.dp-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.18;
}

.dp-hero h1 em {
  font-style: normal;
  color: #7ff5e1;
}

.dp-hero-lead {
  margin: 14px 0 24px;
  color: #c2dce9;
  font-size: 16px;
  line-height: 1.7;
}

.dp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dp-download-cta {
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #14c7b0, #38bdf8);
  color: #0d2433 !important;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 199, 176, 0.34);
}

.dp-download-cta:hover {
  filter: brightness(1.06);
}

.dp-meta-line {
  margin: 12px 0 0;
  font-size: 13px;
  color: #95b5c9;
}

.dp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dp-feature {
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe6ed;
  border-top: 4px solid var(--c, #14a79b);
}

.dp-feature b {
  display: block;
  font-size: 17px;
  color: #16364d;
  margin-bottom: 6px;
}

.dp-feature span {
  font-size: 13.5px;
  line-height: 1.65;
  color: #5e7688;
}

.dp-faq {
  padding: 24px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe6ed;
}

.dp-faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #16364d;
}

.dp-faq details {
  border-top: 1px solid #e6eff4;
  padding: 12px 0;
}

.dp-faq details:first-of-type {
  border-top: 0;
}

.dp-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: #173f59;
}

.dp-faq p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5a7284;
}

@media (max-width: 780px) {
  .dg-layout {
    grid-template-columns: 1fr;
  }
  .dg-media {
    padding: 18px;
  }
  .dg-content {
    padding: 20px 20px 18px;
  }
  .dp-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .dp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
