:root {
  --primary: #4f7cff;
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #333;
  --muted: #888;
  --radius: 0.875rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(#eef3ff, #fafbff);
  color: var(--text);
  font-size: 1rem;
  height: 100vh;
}

.page {
  max-width: 26.25rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.header {
  text-align: center;
  padding: 1.25rem 0 0.625rem;
}

.logo {
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 0.0625rem solid #e6ebff;
  font-size: 0.8125rem;
  color: var(--primary);
  cursor: pointer;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0.625rem 1.875rem rgba(79, 124, 255, 0.08);
  padding: 1rem;
  margin-top: 1.125rem;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input {
  display: flex;
  align-items: center;
  background: #f1f4ff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  gap: 0.5rem;
}

.input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.875rem;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.75rem;
  background: #d8dbe2;
  color: #fff;
  font-size: 0.9375rem;
  cursor: not-allowed;
  position: relative;
}

.btn.active {
  background: var(--primary);
  cursor: pointer;
}

.btn.loading {
  background: #9db2ff;
  cursor: wait;
}

.btn.loading::after {
  content: '';
  width: 1.125rem;
  height: 1.125rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.result {
  margin-top: 1rem;
}

.result .main {
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0.625rem 1.875rem rgba(79, 124, 255, 0.08);
  padding: 1rem;
  margin-top: 1.125rem;
}

.result .main .title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  align-items: center;
}

.result .main .title span {
  color: rgb(34, 197, 94, 1);
  vertical-align: middle;
}

.track-item {
  background-color: rgb(249, 250, 251, 1);
  padding: 0.625rem 1rem;
  margin-bottom: 0.625rem;
  border-radius: 0.75rem;
}

.track-item time {
  font-size: 0.75rem;
  color: #999;
}

.track-item div {
  font-size: 0.8125rem;
}

.empty {
  background: var(--card);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.875rem;
  color: #999;
  padding: 1rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.empty-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #666;
}

.empty-subtitle {
  font-size: 0.875rem;
  color: #999;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal {
  width: 90%;
  max-width: 22.5rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  position: relative;
}

.modal h3 {
  margin: 0 0 0.625rem;
  font-size: 1rem;
}

.modal ul {
  padding-left: 0;
  margin: 0;
}

.modal li {
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  cursor: pointer;
  color: #999;
}

.hint {
  text-align: center;
  margin: 1.625rem 0 0.625rem;
  font-size: 0.875rem;
  color: #666;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon.green {
  background: #e9fbf0;
  color: #2fb36f;
}

.icon.purple {
  background: #f0ecff;
  color: #7a5cff;
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

.feature-text small {
  font-size: 0.875rem;
  color: #777;
}

.clear-btn {
  margin-bottom: 0.75rem;
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-radius: 0.625rem;
  background: #f2f3f7;
  color: #666;
  font-size: 0.8125rem;
  cursor: pointer;
}

.clear-btn:hover {
  background: #e6e8f0;
}

#historyList li {
  list-style: none;
  padding: 0.75rem 1.5rem;
  background: #f9fafb;
  cursor: pointer;
  border-radius: 0.75rem;
}

#contactModal ul {
  list-style: none;
  padding: 0;
}

.company-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.company-icon {
  color: rgb(37, 99, 235);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.company-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.company-label {
  font-size: 0.875rem;
  color: #333;
}

.company-value {
  font-size: 0.875rem;
  color: #888;
  font-weight: 500;
}

.company-value a {
  color: inherit;
  text-decoration: none;
}

.clear-input {
  font-size: 0.875rem;
  color: #999;
  cursor: pointer;
  display: none;
  user-select: none;
}

.clear-input:hover {
  color: #666;
}
