:root {
  --bg: #0b0d12;
  --glow: rgba(76, 141, 255, 0.18);
  --fg: #eef2f8;
  --muted: #8a93a5;
  --card: #141821;
  --line: #232838;
  --accent: #4c8dff;
  --radius: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --glow: rgba(37, 99, 235, 0.12);
    --fg: #101725;
    --muted: #5c6678;
    --card: #ffffff;
    --line: #e2e8f2;
    --accent: #2563eb;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: radial-gradient(70% 50% at 50% 0%, var(--glow), transparent 70%), var(--bg);
  color: var(--fg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

.shot {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -26px rgba(0, 0, 0, 0.62);
}

.shot__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--card);
}

.shot__img.is-hidden {
  display: none;
}

.shot__fallback {
  width: min(560px, 86vw);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(76, 141, 255, 0.1), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(128, 140, 160, 0.07) 10px 20px);
}

.shot__fallback.is-hidden {
  display: none;
}

.shot__fallback svg {
  width: 44px;
  height: 44px;
  opacity: 0.55;
}

.shot__fallback p {
  margin: 0;
  font-size: 15px;
}

.shot__fallback-title {
  font-weight: 600;
  color: var(--fg);
}

.shot__fallback-sub {
  font-size: 13px;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 12px 26px -12px rgba(76, 141, 255, 0.9);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cta__url {
  max-width: min(70vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta__icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.cta.is-disabled {
  background: var(--card);
  color: var(--muted);
  border: 1px dashed var(--line);
  box-shadow: none;
  font-weight: 500;
}

.hint {
  margin: 0;
  max-width: min(92vw, 46rem);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  /* 韩文：优先使用系统自带的韩文字体，避免移动端出现方框 */
  font-family: "Apple SD Gothic Neo", "AppleGothic", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
    "Nanum Gothic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  /* 韩文按词换行，过长时再按字符断开 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .shot {
    border-radius: 16px;
  }

  .shot__img {
    max-height: 60vh;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .cta__url {
    max-width: calc(100vw - 120px);
  }
}
