:root {
  --bg-color: #0f101c;
  --card-bg: rgba(26, 27, 46, 0.7);
  --accent-color: #ff2a6d;
  --accent-hover: #ff4785;
  --text-main: #ffffff;
  --text-sub: #8e90a6;
  --border-color: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px;
}

body::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 42, 109, 0.18) 0%, rgba(15, 16, 28, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 420px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2b1b3d, #14162b);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 42, 109, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.app-icon svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-color);
}

.app-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.app-slogan {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  color: #b3b5c6;
}

/* 永久网址样式 */
.permanent-url {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.url-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.url-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.btn-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #d81b60);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 42, 109, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-tips {
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.8;
}

.footer-tips p {
  margin-bottom: 8px;
}

.save-tip {
  color: var(--accent-color);
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  z-index: 9999;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
  }

  .app-icon svg {
    width: 40px;
    height: 40px;
  }

  .app-title {
    font-size: 22px;
  }

  .app-slogan {
    font-size: 13px;
  }

  .permanent-url {
    padding: 14px 16px;
  }

  .url-value {
    font-size: 16px;
  }

  .btn {
    font-size: 15px;
    padding: 14px 18px;
  }
}
