/* 投兔券 · 授权站公开页共享票根主题 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --ink: #0f1b2d;
  --ink-soft: #4b5f78;
  --ticket: #f2f6fb;
  --ticket-edge: #d5e0ee;
  --accent: #0d9488;
  --accent-deep: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.14);
  --ok: #0f766e;
  --err: #be123c;
  --stage-a: #08101c;
  --stage-b: #12243a;
  --line: rgba(232, 238, 247, 0.1);
  --muted: rgba(232, 238, 247, 0.55);
  --text: #e8eef7;
}

.ticket-stage {
  min-height: 100vh;
  font-family: "Noto Sans SC", Sora, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(13, 148, 136, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 85%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(160deg, var(--stage-a) 0%, var(--stage-b) 48%, #0a1422 100%);
}

.ticket-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.ticket-brand .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 238, 247, 0.55);
  margin-bottom: 0.65rem;
}
.ticket-brand .kicker img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: contain;
}
.ticket-brand h1 {
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  letter-spacing: 0.04em;
  color: #f0f7ff;
}
.ticket-brand p {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  color: rgba(232, 238, 247, 0.62);
}

/* 亮色票面卡片（登录框 / 侧栏） */
.ticket-panel {
  position: relative;
  background: var(--ticket);
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 50px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.ticket-panel::before,
.ticket-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stage-b);
  transform: translateX(-50%);
  z-index: 2;
}
.ticket-panel::before { top: -7px; }
.ticket-panel::after { bottom: -7px; }

.ticket-panel-inner {
  padding: 1.5rem 1.35rem 1.35rem;
  border-bottom: 1.5px dashed rgba(15, 27, 45, 0.12);
}
.ticket-panel-inner:last-child { border-bottom: none; }

.ticket-ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: Sora, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 27, 45, 0.42);
}
.ticket-ornament::before,
.ticket-ornament::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: rgba(15, 27, 45, 0.16);
}

/* 横版套餐票 */
.plan-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  background: var(--ticket);
  color: var(--ink);
  border-radius: 14px;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.45);
  height: 100%;
}
.plan-ticket::before,
.plan-ticket::after {
  content: "";
  position: absolute;
  left: 52px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stage-b);
  transform: translateX(-50%);
  z-index: 2;
}
.plan-ticket::before { top: -7px; }
.plan-ticket::after { bottom: -7px; }
.plan-ticket:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.55);
}
.plan-ticket.selected {
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.55),
    0 22px 40px -16px rgba(13, 148, 136, 0.35);
}
.plan-ticket.featured {
  box-shadow:
    0 0 0 1px rgba(13, 148, 136, 0.35),
    0 14px 32px -16px rgba(13, 148, 136, 0.3);
}
.plan-ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.35rem;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.16), transparent 42%),
    linear-gradient(180deg, #e8f1f8, #dce8f3);
  border-right: 1.5px dashed rgba(15, 27, 45, 0.18);
  border-radius: 14px 0 0 14px;
}
.plan-ticket-stub span {
  writing-mode: vertical-rl;
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
}
.plan-ticket-body {
  padding: 1.1rem 1.05rem 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0 14px 14px 0;
}
.plan-ticket .price-tag {
  font-family: Sora, sans-serif;
  font-weight: 700;
  color: var(--accent-deep);
  background: none;
  -webkit-text-fill-color: var(--accent-deep);
}

/* 列表里的小票根 */
.license-ticket {
  display: grid;
  grid-template-columns: 48px 1fr;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.75rem;
}
.license-ticket:hover,
.license-ticket.selected {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.08);
}
.license-ticket-stub {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.2), rgba(13, 148, 136, 0.06));
  border-right: 1.5px dashed rgba(255, 255, 255, 0.14);
  color: #5eead4;
  font-family: Sora, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}
.license-ticket-body { padding: 0.95rem 1rem; }

.btn-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: linear-gradient(135deg, #0f766e, #0d9488 55%, #14b8a6);
  color: #f0fdfa;
  box-shadow: 0 10px 22px -10px rgba(13, 148, 136, 0.55);
  transition: transform 0.15s;
}
.btn-ticket:hover { transform: translateY(-1px); }
.btn-ticket:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ticket-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(232, 238, 247, 0.18);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ticket-ghost:hover {
  border-color: rgba(13, 148, 136, 0.45);
  background: rgba(13, 148, 136, 0.1);
}

a.ticket-link {
  color: #5eead4;
  text-decoration: none;
  font-weight: 500;
}
a.ticket-link:hover { text-decoration: underline; color: #99f6e4; }

.ticket-input,
.ticket-stage input[type="text"],
.ticket-stage input[type="email"],
.ticket-stage input[type="password"],
.ticket-stage input[type="search"],
.ticket-stage textarea,
.ticket-stage select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 27, 45, 0.14);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ticket-stage input:focus,
.ticket-stage textarea:focus,
.ticket-stage select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.ticket-badge-dark {
  background: rgba(13, 148, 136, 0.18);
  color: #5eead4;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.ticket-header .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Sora, "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f0f7ff;
}
.ticket-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.ticket-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.ticket-footer a { color: #5eead4; text-decoration: none; }
.ticket-footer a:hover { text-decoration: underline; }

@keyframes ticket-in {
  from { opacity: 0; transform: translateY(14px) rotate(-0.4deg); }
  to { opacity: 1; transform: none; }
}
.ticket-in { animation: ticket-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .ticket-in, .plan-ticket:hover { animation: none; transform: none; }
}
