:root {
  --bg: #0f1117;
  --card: #181c26;
  --border: #2a3140;
  --text: #e8ecf4;
  --muted: #8b94a7;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --danger: #ff6b6b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, #1d2438 0%, transparent 55%),
    radial-gradient(1000px 600px at 110% 110%, #221a3d 0%, transparent 50%),
    var(--bg);
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffd479;
  background: rgba(255, 212, 121, 0.1);
  border: 1px solid rgba(255, 212, 121, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---- 倒计时圆环 ---- */
.countdown {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
}

.ring {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 8;
}

.ring-track {
  stroke: var(--border);
}

.ring-progress {
  stroke: url(#grad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}

.countdown-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seconds {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.unit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---- 信息块 ---- */
.info-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.info-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.target-url {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
}

.target-url:hover {
  text-decoration: underline;
}

.permanent-domain {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #7ee2a8;
  word-break: break-all;
}

/* ---- 按钮 ---- */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn.ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}
