/**
 * DESK-SHIELD MATRIX (打工人 1㎡ 工位防小人吸金结界系统)
 * 极致赛博国风美学与 3:4 爆款社媒出片设计
 */

/* ── 遮罩与主弹窗 ────────────────────────────────────────────────────────── */
.desk-shield-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desk-shield-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.desk-shield-dialog {
  background: #0b0f19;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85),
              0 0 30px rgba(124, 58, 237, 0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
}

.desk-shield-overlay.active .desk-shield-dialog {
  transform: translateY(0) scale(1);
}

/* ── 弹窗顶栏 ────────────────────────────────────────────────────────── */
.desk-shield-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.15) 0%, transparent 100%);
}

.desk-shield-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desk-shield-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.desk-shield-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desk-shield-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.desk-shield-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.desk-shield-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

/* ── 步骤导航 ────────────────────────────────────────────────────────── */
.desk-shield-steps {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 24px;
  gap: 16px;
}

.desk-shield-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.desk-shield-step-item.active {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
}

.desk-shield-step-item.completed {
  color: #10b981;
}

.desk-shield-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.desk-shield-step-item.active .desk-shield-step-num {
  background: #7c3aed;
  color: #fff;
}

.desk-shield-step-item.completed .desk-shield-step-num {
  background: #10b981;
  color: #0b0f19;
  font-weight: 800;
}

/* ── 滚动内容区 ────────────────────────────────────────────────────────── */
.desk-shield-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── 选项卡片网格 ────────────────────────────────────────────────────────── */
.desk-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desk-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.desk-option-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.desk-option-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-2px);
}

.desk-option-card.selected {
  border-color: #a855f7;
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.25);
}

.desk-option-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.desk-option-card.selected .desk-option-checkbox {
  background: #a855f7;
  border-color: #a855f7;
}

.desk-option-checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: none;
}

.desk-option-card.selected .desk-option-checkbox::after {
  display: block;
}

.desk-option-text {
  flex: 1;
}

.desk-option-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.desk-option-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── 诊断评分大卡 ────────────────────────────────────────────────────────── */
.desk-result-hero {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.desk-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.desk-score-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.desk-score-lbl {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

.desk-hero-meta {
  flex: 1;
}

.desk-hero-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.desk-hero-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ── 命中痛点警告 ────────────────────────────────────────────────────────── */
.desk-warning-item {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.desk-warning-title {
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ── 9.9 元付费卡点拦截卡 ───────────────────────────────────────────────── */
.desk-paywall-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.35) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid #a855f7;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
  margin-top: 16px;
}

.desk-paywall-blur-bg {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(168, 85, 247, 0.4);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.desk-pay-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  padding: 4px 16px;
  border-radius: 30px;
  margin: 10px 0;
}

.desk-pay-amount {
  font-size: 32px;
  font-weight: 900;
  color: #facc15;
}

.desk-pay-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.desk-pay-btn {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.desk-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.6);
}

/* ── 支付二维码弹窗 ──────────────────────────────────────────────────────── */
.desk-qr-modal {
  background: #0f172a;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* ── 解锁后：1㎡ 工位鸟瞰图 ──────────────────────────────────────────────── */
.desk-blueprint-grid {
  background: #070b14;
  border: 2px dashed rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  display: grid;
  grid-template-areas:
    "top top top"
    "left center right"
    "bottom bottom bottom";
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
}

.desk-zone-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
}

.desk-zone-card.qinglong {
  grid-area: left;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.desk-zone-card.baihu {
  grid-area: right;
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
}

.desk-zone-card.zhuque {
  grid-area: top;
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.08);
}

.desk-zone-card.xuanwu {
  grid-area: bottom;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.desk-zone-card.screen-core {
  grid-area: center;
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.desk-zone-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.desk-zone-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── 3:4 出片海报容器 ────────────────────────────────────────────────────── */
.desk-poster-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.desk-poster-canvas {
  width: 360px;
  height: 480px;
  background: #090c15;
  border: 2px solid #7c3aed;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.35);
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.2) 0%, transparent 60%);
}

.desk-poster-seal {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1.5px solid #ef4444;
  color: #ef4444;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 4px;
  transform: rotate(6deg);
}

/* ── 底部控制按钮栏 ──────────────────────────────────────────────────────── */
.desk-shield-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 26, 0.95);
}
