/**
 * 落地页样式
 */

/* 落地页容器 */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 头部 */
.landing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-logo {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-tagline {
  font-size: 1.25rem;
  opacity: 0.7;
  font-weight: 300;
}

/* URL 输入区域 */
.landing-input-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 3rem;
}

.url-preview {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 1rem;
}

.url-prefix {
  opacity: 0.5;
  user-select: none;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin-left: 0.25rem;
}

.url-input::placeholder {
  opacity: 0.4;
}

.url-go {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}

.url-go:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.url-go:active {
  transform: scale(0.98);
}

/* 预设卡片区域 */
.presets-section {
  width: 100%;
}

.presets-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1rem;
  text-align: center;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.preset-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.preset-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.preset-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.preset-desc {
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}

/* 使用说明 */
.usage-section {
  width: 100%;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 1rem;
  text-align: center;
}

.usage-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.usage-example {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  opacity: 0.7;
}

/* 页脚 */
.landing-footer {
  margin-top: auto;
  padding-top: 3rem;
  opacity: 0.4;
  font-size: 0.75rem;
  text-align: center;
}

.landing-footer a {
  color: inherit;
}

/* 响应式 */
@media (max-width: 480px) {
  .landing {
    padding: 1.5rem 1rem;
  }

  .landing-logo {
    font-size: 2.5rem;
  }

  .landing-tagline {
    font-size: 1rem;
  }

  .presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preset-card {
    padding: 1rem 0.75rem;
  }

  .preset-icon {
    font-size: 1.5rem;
  }
}
