﻿/* --- 全局变量与主题 --- */
:root {
  --primary-purple: #7c3aed;
  --primary-hover: #6d28d9;

  /* 浅色模式背景：微妙的流动渐变 */
  --hero-bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --hero-accent-blob: rgba(124, 58, 237, 0.1); /* 背景里的紫色光斑 */

  --step-badge-bg: #ede9fe;
  --step-badge-text: #7c3aed;
  --accordion-active-bg: #f3f0ff;

  /* 输入框样式变量 */
  --input-bg: #ffffff;
  --input-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --input-border: transparent;
}

/* 深色模式变量覆盖 */
[data-bs-theme="dark"] {
  --primary-purple: #a78bfa;
  --primary-hover: #c4b5fd;

  /* 深色模式背景：深邃的渐变 */
  --hero-bg-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --hero-accent-blob: rgba(139, 92, 246, 0.15);

  --step-badge-bg: #4c1d95;
  --step-badge-text: #ede9fe;
  --accordion-active-bg: #2d2a3d;

  /* 深色输入框 */
  --input-bg: #2d3748;
  --input-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --input-border: #4a5568;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

/* --- 按钮样式 --- */
.btn-primary-custom {
  background-color: var(--primary-purple);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  /* 按钮发光效果 */
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

[data-bs-theme="dark"] .btn-primary-custom {
  color: #000;
  box-shadow: 0 4px 14px 0 rgba(167, 139, 250, 0.3);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.23);
}

/* --- Hero Section (功能区美化核心) --- */
.hero-section {
  background: var(--hero-bg-gradient);
  padding: 100px 0 80px; /* 增加上下留白 */
  position: relative;
  overflow: hidden;
}

/* 背景装饰光斑 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--hero-accent-blob) 0%, transparent 70%);
  animation: pulse 15s infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* 渐变标题文字 */
.gradient-text {
  background: linear-gradient(to right, var(--primary-purple), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- 超大输入框样式 --- */
.search-container {
  max-width: 800px; /* 加宽容器 */
  margin: 0 auto;
  position: relative;
}

.custom-input-group {
  background: var(--input-bg);
  border-radius: 50px; /* 胶囊形状 */
  padding: 8px; /* 内部留白，让按钮不贴边 */
  box-shadow: var(--input-shadow);
  border: 1px solid var(--input-border);
  display: flex;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* 鼠标悬停时输入框微微浮起 */
.custom-input-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.input-icon {
  padding-left: 25px;
  padding-right: 15px;
  font-size: 1.5rem;
  color: var(--primary-purple);
}

.hero-input {
  border: none;
  background: transparent;
  height: 60px; /* 增加高度 */
  font-size: 1.25rem; /* 增大字体 */
  font-weight: 500;
  box-shadow: none !important; /* 去除Bootstrap默认聚焦蓝框 */
  color: var(--bs-body-color);
}

.hero-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.hero-btn {
  border-radius: 40px !important; /* 按钮也变圆 */
  padding-left: 40px;
  padding-right: 40px;
  height: 60px; /* 匹配输入框高度 */
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动端响应式：input和按钮各占一行 */
@media (max-width: 768px) {
  .search-container .custom-input-group {
    flex-direction: column !important;
    padding: 12px !important;
    border-radius: 20px !important;
    gap: 10px !important;
  }

  .search-container .input-icon {
    display: none !important; /* 移动端隐藏图标，节省空间 */
  }

  .search-container .hero-input {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-radius: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex: none !important;
  }

  .search-container .hero-btn {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 15px !important;
    margin-top: 0 !important;
    flex: none !important;
  }
  .hero-section{
    padding: 50px 0 80px;
  }
  h1{
    font-size: 24px!important;
  }
  #result h2{
    font-size: 15px!important;
  }
  #search-tips{
    display: none;
  }
  #txt-url{
      border: 1px solid #8A9099;
  }
}


/* --- 其他组件 --- */
.text-primary-custom { color: var(--primary-purple) !important; }

.step-card {
  background: var(--bs-body-bg);
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  height: 100%;
}

.step-badge {
  width: 45px;
  height: 45px;
  background-color: var(--step-badge-bg);
  color: var(--step-badge-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.3rem;
}

.feature-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  background: var(--bs-body-bg);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--primary-purple);
}
.feature-icon { font-size: 2.5rem; color: var(--primary-purple); margin-bottom: 1rem; }

.accordion-button:not(.collapsed) {
  color: var(--primary-purple);
  background-color: var(--accordion-active-bg);
}
.accordion-button:focus { box-shadow: none; border-color: var(--primary-purple); }

footer { background-color: #111827; color: #d1d5db; }
footer a { text-decoration: none; color: #9ca3af; transition: color 0.2s; }
footer a:hover { color: white; }

#theme-toggle {
  cursor: pointer; border: none; background: transparent;
  color: var(--bs-body-color); font-size: 1.2rem; padding: 0.5rem;
}
#btn-submit{
  background-color: #7c3aed;
  color: #ffffff;
}
#download-app{
  background-color: unset!important;
}
#btn-submit{
  min-width: 150px;
}