/* ===== 他山之石 · 预约演示弹窗（全站共享） ===== */
.tdm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 9, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tdm-overlay[hidden] { display: none; }
.tdm-overlay.tdm-open { opacity: 1; }

.tdm-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    #0e0e1a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tdm-overlay.tdm-open .tdm-card { transform: none; }

.tdm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.tdm-close:hover { color: var(--tszs-primary, #00d4ff); border-color: rgba(0, 212, 255, 0.45); }

.tdm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.07);
  font-size: 12px;
  color: #67e8f9;
}
.tdm-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tszs-primary, #00d4ff);
}
.tdm-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--tszs-foreground, #f8fafc);
}
.tdm-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--tszs-muted-foreground, #94a3b8);
}

.tdm-field { margin-bottom: 14px; }
.tdm-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.tdm-label em { font-style: normal; color: var(--tszs-primary, #00d4ff); }
.tdm-input,
.tdm-select,
.tdm-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--tszs-foreground, #f8fafc);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.tdm-textarea { resize: vertical; min-height: 72px; }
.tdm-input::placeholder,
.tdm-textarea::placeholder { color: rgba(148, 163, 184, 0.6); }
.tdm-input:focus,
.tdm-select:focus,
.tdm-textarea:focus {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}
.tdm-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.tdm-select option { background: #0e0e1a; color: #f8fafc; }

.tdm-error {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  color: #f87171;
}
.tdm-field.tdm-invalid .tdm-input { border-color: rgba(248, 113, 113, 0.6); }
.tdm-field.tdm-invalid .tdm-error { display: block; }

.tdm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--tszs-gradient-primary, linear-gradient(135deg, #00d4ff 0%, #0e7490 100%));
  color: #06060b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.14s ease, transform 0.14s ease;
}
.tdm-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.tdm-submit:active { transform: translateY(0); }
.tdm-submit svg { width: 16px; height: 16px; }

.tdm-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.8);
}
.tdm-note b { color: #cbd5e1; font-weight: 600; }

/* 成功视图 */
.tdm-success { text-align: center; padding: 10px 0 4px; }
.tdm-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}
.tdm-success-icon svg { width: 26px; height: 26px; }
.tdm-success h3 { margin: 0 0 8px; font-size: 19px; color: var(--tszs-foreground, #f8fafc); }
.tdm-success p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--tszs-muted-foreground, #94a3b8); }
.tdm-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  list-style: none;
  text-align: left;
}
.tdm-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #cbd5e1;
}
.tdm-contact-item svg { width: 15px; height: 15px; color: var(--tszs-primary, #00d4ff); flex-shrink: 0; }
.tdm-contact-item a { color: #cbd5e1; font-weight: 600; }
.tdm-contact-item a:hover { color: var(--tszs-primary, #00d4ff); }
.tdm-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--tszs-primary, #00d4ff);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, filter 0.14s ease;
}
.tdm-mail-link:hover { background: rgba(0, 212, 255, 0.14); }

@media (max-width: 479.98px) {
  .tdm-card { padding: 22px 18px; }
  .tdm-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tdm-overlay, .tdm-card { transition-duration: 0.01ms !important; }
}
