/* =========================================================
   极简活动详情页样式 detail-v2.css（独立页面 detail.html 使用）
   ========================================================= */

body.dx-clean-page {
  background: #f6f8fb;
}

body.dx-clean-page .detail-shell > .detail-topbar,
body.dx-clean-page .detail-shell > .telegram-subscribe,
body.dx-clean-page .share-dock {
  display: none !important;
}

.dx-clean-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.dx-clean-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.dx-clean-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.dx-clean-back:hover {
  background: #eef2f7;
  color: #0f1b2d;
}

.dx-clean-share-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dx-clean-share-btn:hover {
  border-color: #cbd5e1;
  color: #0f1b2d;
}

.dx-clean-card {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.04);
}

.dx-clean-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dx-clean-bank {
  font-size: 13px;
  font-weight: 700;
  color: #0f1b2d;
}

.dx-clean-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.dx-clean-status.is-live { background: #e8f7ef; color: #0f9d58; }
.dx-clean-status.is-soon { background: #fff3ec; color: #ea580c; }
.dx-clean-status.is-ended { background: #f1f5f9; color: #64748b; }

.dx-clean-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}

.dx-clean-top-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.dx-clean-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dx-clean-top-pill.is-tg {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
}

.dx-clean-top-pill.is-tg:hover {
  background: #e0effe;
  border-color: #bfdbfe;
}

.dx-clean-top-pill.is-wx {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  color: #047857;
}

.dx-clean-top-pill.is-wx:hover {
  background: #d1fae5;
  border-color: #a7f3d0;
}

.dx-clean-top-pill:focus:not(:focus-visible) {
  outline: none;
}

.dx-clean-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.4;
  font-weight: 800;
  color: #0f1b2d;
}

.dx-clean-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #475569;
}

.dx-clean-kv {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dx-clean-kv > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  min-width: 0;
}

.dx-clean-kv dt {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.dx-clean-kv dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f1b2d;
  word-break: break-word;
}

.dx-clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.dx-clean-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f1b2d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dx-clean-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dx-clean-btn.is-primary {
  border-color: #1f5eff;
  background: #1f5eff;
  color: #ffffff;
}

.dx-clean-btn.is-primary:hover {
  background: #174ed9;
}

.dx-clean-path-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
  color: #334155;
  word-break: break-all;
}

.dx-clean-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef1f6;
}

.dx-clean-section h2 {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f1b2d;
  letter-spacing: 0.01em;
}

.dx-clean-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dx-clean-rule-group {
  padding: 13px 15px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.dx-clean-rule-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e9eef5;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f1b2d;
  line-height: 1.4;
}

.dx-clean-rule-group h3::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: #1f5eff;
  flex: none;
}

.dx-clean-rule-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dx-clean-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
  word-break: break-word;
}

.dx-clean-p.is-bullet {
  position: relative;
  padding-left: 13px;
}

.dx-clean-p.is-bullet::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.74em;
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #94a3b8;
}

.dx-clean-p.is-url {
  margin-top: 2px;
  line-height: 1.55;
}

.dx-rule-key {
  color: #0f1b2d;
  font-weight: 700;
}

.dx-num {
  color: #dc2626;
  font-weight: 600;
  padding: 0 1px;
}

.dx-inline-link {
  color: #1f5eff;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px dashed rgba(31, 94, 255, 0.38);
}

.dx-inline-link:hover {
  border-bottom-style: solid;
  color: #174ed9;
}

.dx-clean-steps {
  margin: 0;
  padding: 12px 15px 12px 32px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  display: grid;
  gap: 6px;
}

.dx-clean-steps li {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.dx-clean-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
}

.dx-clean-disclaimer {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.dx-clean-mobile-bar {
  display: none;
}

@media (max-width: 640px) {
  body.dx-clean-page {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .dx-clean-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .dx-clean-top-links {
    gap: 6px;
    margin-bottom: 10px;
  }

  .dx-clean-top-pill {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .dx-clean-title {
    font-size: 18.5px;
    line-height: 1.42;
  }

  .dx-clean-kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dx-clean-actions .dx-clean-btn {
    height: 38px;
    flex: 1 1 auto;
  }

  .dx-clean-rule-group {
    padding: 12px 13px;
  }

  .dx-clean-p {
    font-size: 13.5px;
    line-height: 1.76;
  }

  .dx-clean-steps {
    padding: 11px 13px 11px 28px;
  }

  .dx-clean-steps li {
    font-size: 13.5px;
  }

  .dx-clean-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e6ebf2;
  }

  .dx-clean-mobile-bar.has-direct {
    grid-template-columns: 1fr 0.72fr 1.4fr;
  }

  .dx-clean-mobile-bar .dx-clean-btn {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
  }

  .dx-clean-mobile-back {
    background: #0f1b2d;
    border-color: #0f1b2d;
    color: #ffffff;
  }
}
