* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  min-height: 100vh;
  padding: 40px 16px;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 8px;
}

.subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.btn-locate {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-locate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-locate:active {
  transform: translateY(0);
}

.btn-locate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  word-break: break-all;
  display: none;
}

.result-box.loading {
  display: block;
  background: #fef9c3;
  color: #854d0e;
}

.result-box.success {
  display: block;
  background: #dcfce7;
  color: #14532d;
}

.result-box.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.records {
  margin-top: 32px;
}

.records h2 {
  font-size: 18px;
  color: #374151;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}

.record-time {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.record-addr {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 4px;
}

.record-coord {
  font-size: 13px;
  color: #6b7280;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4338ca;
}

.empty {
  text-align: center;
  color: #9ca3af;
  padding: 20px 0;
  font-size: 14px;
}

.view-link {
  margin-top: 20px;
  text-align: center;
}

.view-link a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

.view-link a:hover {
  text-decoration: underline;
}
