﻿:root {
  --bg-0: #090d16;
  --bg-1: #0f1e2f;
  --ink: #ecf4ff;
  --muted: #9bb0c9;
  --line: #27374e;
  --panel: rgba(10, 18, 32, 0.7);
  --panel-soft: rgba(8, 13, 26, 0.55);
  --strong: #00d6a4;
  --strong-2: #00a57f;
  --warm: #ffb347;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(120deg, var(--bg-0), var(--bg-1));
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.bg-shape-a {
  width: 32rem;
  height: 32rem;
  left: -10rem;
  top: -8rem;
  background: #00d6a4;
  animation: floatA 11s ease-in-out infinite;
}

.bg-shape-b {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  bottom: -10rem;
  background: #ff9c3d;
  animation: floatB 13s ease-in-out infinite;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.panel {
  background: linear-gradient(170deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.tag {
  margin: 0;
  color: var(--warm);
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1 {
  margin: 0.4rem 0 0.4rem;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}

.lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-size: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: #bad0ea;
  font-size: 0.92rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #33445f;
  background: rgba(7, 12, 24, 0.68);
  color: #f1f7ff;
  padding: 0.68rem 0.8rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #00d6a4;
  box-shadow: 0 0 0 3px rgba(0, 214, 164, 0.22);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
}

.grid-two.compact {
  margin-top: 0.8rem;
}

.field-block {
  margin-bottom: 0.9rem;
}

.search-card {
  border: 1px solid #2c415f;
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(10, 17, 32, 0.5);
  margin-bottom: 0.8rem;
}

.row {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.65rem;
}

.compact-row {
  margin-top: 0.55rem;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  background: linear-gradient(180deg, #11c093, #0d896c);
  color: #001a14;
  font-weight: 700;
  transition: transform 110ms ease, filter 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

button.ghost {
  background: rgba(144, 169, 204, 0.2);
  color: #dceaff;
}

button.strong {
  background: linear-gradient(180deg, #ffcd6e, #ff9c3d);
  color: #231100;
}

.hint {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.suggestions {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #2f4361;
  overflow: hidden;
  background: rgba(6, 11, 22, 0.78);
}

.suggestions:empty {
  display: none;
}

.suggestion-item,
.suggestion-loading,
.suggestion-empty {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0.58rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(64, 91, 124, 0.35);
  border-radius: 0;
  background: transparent;
  color: #eaf4ff;
}

.suggestion-item .name {
  display: block;
  font-weight: 700;
}

.suggestion-item .meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.82rem;
  color: #9bb6d6;
}

.suggestion-item:hover {
  background: rgba(0, 214, 164, 0.18);
  transform: none;
  filter: none;
}

.suggestions li:last-child .suggestion-item,
.suggestions li:last-child .suggestion-loading,
.suggestions li:last-child .suggestion-empty {
  border-bottom: 0;
}

.suggestion-loading,
.suggestion-empty {
  font-size: 0.88rem;
  color: #9bb6d6;
}

.selected-tip {
  margin: 0.58rem 0 0;
  color: #85f1cf;
  font-size: 0.88rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.chip {
  border: 1px solid #30507a;
  background: rgba(27, 49, 78, 0.56);
  color: #dfeefe;
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.advanced {
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
  border: 1px solid #2b3f5a;
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(8, 14, 27, 0.55);
}

.advanced > summary {
  cursor: pointer;
  color: #ffd298;
  margin-bottom: 0.75rem;
}

.route-preview {
  margin-bottom: 0.9rem;
}

.preview-label {
  margin: 0 0 0.5rem;
  color: #bad0ea;
  font-size: 0.9rem;
}

#uriPreview {
  min-height: 8rem;
  resize: vertical;
}

.action-grid {
  display: grid;
  gap: 0.65rem;
}

.status {
  min-height: 1.2rem;
  margin: 0.9rem 0 0;
  color: #ffd39a;
  font-size: 0.92rem;
}

.tips {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: #9eb5cf;
  line-height: 1.55;
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 28px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-36px, -30px);
  }
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(96vw, 96vw);
    margin: 1rem auto;
  }

  .panel {
    border-radius: 16px;
    padding: 1rem;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .chips .chip {
    width: auto;
  }
}
