/* ============================================================
   组件样式：导航 / 弹窗 / 表单 / 通用卡片构件
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo {
  font-family: var(--font-title); font-size: 1.65rem; font-weight: 900;
  color: #fff; text-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
  display: flex; align-items: center; gap: 6px; letter-spacing: 0.1em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  position: relative; padding: 6px 0; transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; border: none; padding: 9px 22px; border-radius: 30px;
  font-family: var(--font-title); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; cursor: pointer;
  box-shadow: 0 0 16px rgba(123, 47, 247, 0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-login:hover { transform: scale(1.05); box-shadow: 0 0 26px rgba(123, 47, 247, 0.8); }

.nav-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; z-index: 1200;
}
.nav-toggle .bar {
  width: 26px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .2s;
  transform-origin: center;
}
.nav-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 预告片 / 预约 弹窗 ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(3, 2, 10, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  padding: 24px;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
  width: 100%; max-width: 940px; aspect-ratio: 16 / 9;
  background: #05030d;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: 0 0 80px rgba(123, 47, 247, 0.45), 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94); transition: transform var(--t-base) var(--ease);
}
.modal.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.modal-close:hover { background: rgba(255, 71, 71, 0.75); transform: rotate(90deg); }
.modal-video { width: 100%; height: 100%; display: block; border: none; }
.modal-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--text-dim); text-align: center; padding: 24px;
}
.modal-glow {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #05030d;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent));
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.7);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{ transform: scale(1); opacity: .9; } 50%{ transform: scale(1.08); opacity: 1; } }

/* 表单型弹窗（预约） */
.modal-form {
  max-width: 460px; aspect-ratio: auto; padding: 38px 34px 30px;
  display: flex; flex-direction: column; gap: 20px;
}
.modal-head { text-align: center; }
.modal-head .eyebrow { font-size: 12px; }
.modal-head h3 { font-size: 26px; margin: 8px 0 6px; color: #fff; }
.modal-head p { color: var(--text-dim); font-size: 13.5px; }

.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field > span, .field-check span {
  font-size: 13px; color: var(--text-dim); letter-spacing: 0.05em;
}
.field input, .chip {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  color: #fff; font-family: inherit; font-size: 14.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(0, 240, 255, 0.06); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12); }
.field-row { display: flex; gap: 10px; align-items: flex-end; }
.btn-code {
  padding: 13px 18px; white-space: nowrap; border-radius: 12px;
  border: 1px solid var(--primary); color: #fff; background: rgba(123,47,247,0.18);
  font-size: 13px;
}
.btn-code:hover:not(:disabled) { background: var(--primary); }
.btn-code:disabled { opacity: .55; cursor: not-allowed; }

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { width: auto; flex: 1; min-width: 70px; padding: 11px 10px; text-align: center; cursor: pointer; font-size: 13.5px; }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); border-color: var(--primary); color: #fff; box-shadow: 0 0 16px rgba(123,47,247,0.4); }

.field-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; position: relative; }
.field-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.field-check i {
  width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
  border: 1px solid var(--glass-border-strong); border-radius: 5px;
  background: rgba(255,255,255,0.05); position: relative; transition: all var(--t-fast);
}
.field-check input:checked + i { background: var(--accent); border-color: var(--accent); }
.field-check input:focus-visible + i { box-shadow: 0 0 0 3px rgba(0,240,255,0.25); }
.field-check i::after {
  content: ""; position: absolute; inset: 3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305030d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
  opacity: 0; transform: scale(.6); transition: all var(--t-fast);
}
.field-check input:checked + i::after { opacity: 1; transform: scale(1); }
.field-check a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(0,240,255,.4); }
.field-check a:hover { text-decoration-color: var(--accent); }
.form-tip { display: block; min-height: 18px; font-size: 13px; color: #ff8a8a; margin-top: 2px; }
.form-tip.ok { color: #6dffb0; }
.form-shake { animation: shake .42s; }
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  20%,60%{ transform: translateX(-6px); }
  40%,80%{ transform: translateX(6px); }
}

/* ---------- 通用小构件 ---------- */
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.hl { color: var(--accent); }
