#app {
  width: 100%;
  height: 100%;
  background-color: #4f3439;
  background-color: #212121;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding-top: 24px;
  padding-bottom: 22px;
  z-index: 998;
}

.search-container [class^="ri-"] {
  color: #5a5a4a !important;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #18181a 0%, #0c0c0b 50%, #141413 100%);
  border: 2px solid #2a2820;
  padding: 0;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(107, 138, 58, 0.08),
    inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
  box-sizing: border-box;
  z-index: 999;
}

/* 搜索引擎选择器样式 */
.selector-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg,
      rgba(42, 40, 32, 0.3) 0%,
      transparent 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.selector-button:hover {
  background: linear-gradient(135deg,
      rgba(74, 90, 42, 0.2) 0%,
      rgba(74, 90, 42, 0.1) 100%);
}


.selected-engine {
  display: flex;
  align-items: center;

  img {
    display: block;
    filter: brightness(1.3);
  }

  .ri-baidu-fill,
  .ri-google-fill {
    color: #8ba859 !important;
  }
}


/* 下拉菜单样式 */
.engine-dropdown {
  position: absolute;
  top: 100%;
  left: -2px;
  background: linear-gradient(145deg, #18181a 0%, #0c0c0b 50%, #141413 100%);
  border: 2px solid #3a3830;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(107, 138, 58, 0.1);
  display: none;
  z-index: 1001;
}

.engine-option {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.engine-option:hover {
  background: linear-gradient(135deg,
      rgba(74, 90, 42, 0.2) 0%,
      rgba(74, 90, 42, 0.1) 100%);
}

.engine-option.selected {
  background: linear-gradient(135deg,
      rgba(74, 90, 42, 0.3) 0%,
      rgba(74, 90, 42, 0.2) 100%);
}

.engine-option.selected .ri-baidu-fill,
.engine-option.selected .ri-google-fill {
  color: #8ba859 !important;
  filter: drop-shadow(0 0 5px rgba(139, 168, 89, 0.6));
}

.engine-option img {
  display: block;
}

.engine-option span {
  color: #e0e0d0;
  font-size: 13px;
  font-family: "Consolas", "Courier New", monospace;
}

.search-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      #4a5a2a 15%,
      #8ba859 50%,
      #4a5a2a 85%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.search-wrapper:focus-within::before {
  opacity: 1;
  animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.5);
  }
}

.search-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.02) 3px,
      rgba(0, 0, 0, 0.02) 6px);
  pointer-events: none;
}

.search-wrapper:focus-within {
  border-color: #4a5a2a;
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(107, 138, 58, 0.1),
    0 0 0 1px rgba(107, 138, 58, 0.3),
    inset 0 2px 6px rgba(0, 0, 0, 0.5);
}


.search-wrapper:hover {
  border-color: #3a3830;
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg,
      rgba(42, 40, 32, 0.3) 0%,
      transparent 100%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, #3a3830, transparent);
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0d0;
  font-size: 14px;
  font-family: "Consolas", "Courier New", "Lucida Console", monospace;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 10px;
  box-sizing: border-box;
  text-transform: uppercase;
}

.search-input::placeholder {
  color: #3a3a2a;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.search-input:focus::placeholder {
  color: #4a5a3a;
}

.search-decoration {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg,
      rgba(107, 138, 58, 0.12) 0%,
      rgba(107, 138, 58, 0.05) 100%);
  border: 1px solid rgba(107, 138, 58, 0.25);
  border-radius: 2px;
  position: relative;
}

.search-decoration::before {
  content: "SPORE";
  position: absolute;
  top: -7px;
  left: 6px;
  font-family: "Consolas", monospace;
  font-size: 6px;
  color: #5a6a3a;
  letter-spacing: 1.5px;
  background: #141413;
  padding: 0 3px;
}

.spore {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #a0c060 0%, #6b8a3a 50%, #3a4a1a 100%);
  border-radius: 50%;
  box-shadow:
    0 0 6px rgba(139, 168, 89, 0.5),
    inset 0 -1px 3px rgba(0, 0, 0, 0.3);
  animation: sporePulse 2s ease-in-out infinite;
}

.spore:nth-child(2) {
  animation-delay: 0.3s;
  width: 4px;
  height: 4px;
}

.spore:nth-child(3) {
  animation-delay: 0.6s;
  width: 7px;
  height: 7px;
}

@keyframes sporePulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
    box-shadow: 0 0 6px rgba(139, 168, 89, 0.4);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow:
      0 0 12px rgba(139, 168, 89, 1),
      0 0 20px rgba(139, 168, 89, 0.4);
  }
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #3a4a1a 0%, #2a3a10 50%, #1a2a08 100%);
  border: none;
  border-left: 1px solid #4a5a2a;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.search-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(139, 168, 89, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.search-btn:hover::before {
  left: 100%;
}

.search-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(139, 168, 89, 0.2) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-btn:hover::after {
  opacity: 1;
}

.search-btn [class^="ri-"] {
  width: 18px;
  height: 18px;
  color: #8ba859 !important;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.search-btn:hover {
  background: linear-gradient(145deg, #4a5a2a 0%, #3a4a1a 50%, #2a3a10 100%);
  box-shadow: inset 0 0 20px rgba(139, 168, 89, 0.12);
}

.search-btn:hover i {
  color: #c0d080 !important;
  filter: drop-shadow(0 0 5px rgba(192, 208, 128, 0.5));
}

.search-btn:active i {
  transform: scale(0.8);
}

.search-glow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 30px;
  background: radial-gradient(ellipse,
      rgba(139, 168, 89, 0.15) 0%,
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(6px);
}

.search-wrapper:focus-within+.search-glow {
  opacity: 1;
}

.search-label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Consolas", monospace;
  font-size: 9px;
  color: #4a4a3a;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.4s ease;
}

.search-label::before {
  content: "◆";
  font-size: 7px;
  color: #3a4a2a;
  transition: color 0.4s ease;
}

.search-wrapper:focus-within~.search-label {
  color: #8ba859;
}


.search-wrapper:focus-within~.search-label::before {
  color: #8ba859;
  text-shadow: 0 0 8px rgba(139, 168, 89, 0.8);
}

@keyframes statusBlink {

  0%,
  100% {
    opacity: 0.3;
    box-shadow: 0 0 4px rgba(139, 168, 89, 0.3);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(139, 168, 89, 0.8);
  }
}

.cards {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

/* 拖拽样式 */
.card[draggable="true"] {
  cursor: grab;
}

.card[draggable="true"]:active {
  cursor: grabbing;
}

/* ADD卡片样式 */
.add-card {
  cursor: pointer;
}

/* 垃圾桶样式 */
.trash-can {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #18181a 0%, #0c0c0b 100%);
  border: 2px solid #3a3830;
  border-radius: 10px;
  color: #8ba859;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.trash-can.visible {
  opacity: 0.7;
  visibility: visible;
}

.trash-can:hover {
  opacity: 1;
  border-color: #8ba859;
  box-shadow: 0 0 15px rgba(139, 168, 89, 0.3);
}

.trash-can i {
  font-size: 24px;
  margin-bottom: 5px;
}

.trash-can span {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trash-can.active {
  border-color: #ff013c;
  color: #ff013c;
  box-shadow: 0 0 20px rgba(255, 1, 60, 0.5);
}

/* 弹窗样式 */
.modal-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* From Uiverse.io by pharmacist-sabot */ 
/* --- Root Variables for the component --- */
.glitch-form-wrapper {
  --bg-color: #0d0d0d;
  --primary-color: #8ba859;
  --secondary-color: #8ba859;
  --text-color: #e0e0d0;
  --font-family: "Fira Code", Consolas, "Courier New", Courier, monospace;
  --glitch-anim-duration: 0.5s;
}

.glitch-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family);
  background-color: #050505;
}

/* --- Card Structure --- */
.glitch-card {
  background-color: var(--bg-color);
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(139, 168, 89, 0.2);
  box-shadow:
    0 0 20px rgba(139, 168, 89, 0.1),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5em 1em;
  border-bottom: 1px solid rgba(139, 168, 89, 0.2);
}

.card-title {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.card-title svg {
  width: 1.2em;
  height: 1.2em;
  stroke: var(--primary-color);
}

.card-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #333;
  margin-left: 5px;
}

.card-body {
  padding: 1.5rem;
}

/* --- Form Elements --- */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-label {
  position: absolute;
  top: 0.75em;
  left: 0;
  font-size: 1rem;
  color: var(--primary-color);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(139, 168, 89, 0.3);
  padding: 0.75em 0;
  font-size: 1rem;
  color: var(--text-color);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.form-group input:focus + .form-label,
.form-group input:not(:placeholder-shown) + .form-label {
  top: -1.2em;
  font-size: 0.8rem;
  opacity: 1;
}

.form-group input:focus + .form-label::before,
.form-group input:focus + .form-label::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
}

.form-group input:focus + .form-label::before {
  color: var(--secondary-color);
  animation: glitch-anim var(--glitch-anim-duration)
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.form-group input:focus + .form-label::after {
  color: var(--primary-color);
  animation: glitch-anim var(--glitch-anim-duration)
    cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
  20% {
    transform: translate(-5px, 3px);
    clip-path: inset(50% 0 20% 0);
  }
  40% {
    transform: translate(3px, -2px);
    clip-path: inset(20% 0 60% 0);
  }
  60% {
    transform: translate(-4px, 2px);
    clip-path: inset(80% 0 5% 0);
  }
  80% {
    transform: translate(4px, -3px);
    clip-path: inset(30% 0 45% 0);
  }
  100% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
}

/* --- Button Styling --- */
.submit-btn {
  width: 100%;
  padding: 0.8em;
  margin-top: 1rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.submit-btn:hover,
.submit-btn:focus {
  background-color: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 25px var(--primary-color);
  outline: none;
}

.submit-btn:active {
  transform: scale(0.97);
}

/* --- Glitch Effect for Button --- */
.submit-btn .btn-text {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.submit-btn:hover .btn-text {
  opacity: 0;
}

.submit-btn::before,
.submit-btn::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background-color: var(--primary-color);
  transition: opacity 0.2s ease;
}

.submit-btn:hover::before,
.submit-btn:focus::before {
  opacity: 1;
  color: var(--secondary-color);
  animation: glitch-anim var(--glitch-anim-duration)
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.submit-btn:hover::after,
.submit-btn:focus::after {
  opacity: 1;
  color: var(--bg-color);
  animation: glitch-anim var(--glitch-anim-duration)
    cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

@media (prefers-reduced-motion: reduce) {
  .form-group input:focus + .form-label::before,
  .form-group input:focus + .form-label::after,
  .submit-btn:hover::before,
  .submit-btn:focus::before,
  .submit-btn:hover::after,
  .submit-btn:focus::after {
    animation: none;
    opacity: 0;
  }

  .submit-btn:hover .btn-text {
    opacity: 1;
  }
}

