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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 16px;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 80px;
}

/* Image */
.image-wrapper {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
}

.preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Title */
.title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* Description */
.description {
  font-size: 11px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 18px;
  padding: 0;
}

/* Link box */
.link-box {
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.link-text {
  font-size: 12px;
  color: #555;
  word-break: break-all;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Copy button */
.copy-btn {
  display: block;
  width: 100%;
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background 0.2s ease;
  margin-bottom: 12px;
}

.copy-btn:hover {
  background: #1d4ed8;
}

.copy-btn:active {
  background: #1e40af;
}

/* Open button */
.open-btn {
  display: block;
  width: 100%;
  background: #e5e7eb;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.open-btn:hover {
  background: #d1d5db;
}

.open-btn:active {
  background: #c0c4cc;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .card {
    padding: 28px 22px;
    border-radius: 14px;
    max-width: 100%;
    margin-top: 60px;
  }

  .title {
    font-size: 17px;
  }

  .description {
    font-size: 11px;
  }
}
