
.journey-button:hover {
  background: var(--color-bg-hover);
  color: var(--text-primary);
}

.journey-button.active {
  background: var(--card-background);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .journey-button {
  background: transparent;
  color: var(--text-secondary);
}

[data-theme="dark"] .journey-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

[data-theme="dark"] .journey-button.active {
  background: var(--card-background);
  color: var(--primary);
}

/* ==================== Forms ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

/* 到达时间不详按钮 */
.time-unknown-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.time-unknown-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg-surface));
}

.time-unknown-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.time-unknown-btn.active:hover {
  background: var(--color-primary-hover);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  padding-right: 30px;
}

.input-with-unit .unit {
  position: absolute;
  right: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* 鍒犻櫎纭�璁ゆ彁�??�?? */
.delete-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-bg-surface);
  padding: 24px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
  min-width: 300px;
}

.delete-confirm p {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-popup);
  min-width: 240px;
  text-align: center;
}

.toast-enter-active {
  animation: toastIn 0.35s ease-out;
}

.toast-leave-active {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
  }
}


.toast.warning {
  background-color: var(--color-primary-subtle);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.toast.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 2px solid var(--color-success);
}

.toast.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 2px solid var(--color-error);
}

.toast.info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 2px solid var(--color-info);
}

[data-theme="dark"] .toast.warning {
  background-color: var(--card-background);
  color: var(--color-warning);
  border: 1px solid color-mix(in srgb, var(--color-warning) 40%, transparent);
}
[data-theme="dark"] .toast.success {
  background-color: var(--card-background);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 40%, transparent);
}

[data-theme="dark"] .toast.error {
  background-color: var(--card-background);
  color: var(--color-error);
  border: 1px solid color-mix(in srgb, var(--color-error) 40%, transparent);
}

[data-theme="dark"] .toast.info {
  background-color: var(--card-background);
  color: var(--color-info);
  border: 1px solid color-mix(in srgb, var(--color-info) 40%, transparent);
}

[data-theme="dark"] .toast {
  box-shadow: var(--shadow-lg);
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 168px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}

.back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(0) scale(1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 164px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

[data-theme="dark"] .back-to-top {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* 瀵煎叆琛�??▼妯℃�佹�嗘牱�??�?? */
.import-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.import-instructions {
  background-color: var(--color-bg-hover);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.import-instructions h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.import-instructions ol {
  margin-left: 20px;
  margin-top: 8px;
}

.import-instructions li {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.template-download {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.file-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  background-color: var(--color-bg-hover);
}

.file-drop-area:hover {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.file-drop-area.active {
  border-color: var(--primary);
  background-color: var(--color-primary-light);
}

.file-drop-area svg {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.file-drop-area p {
  color: var(--text-secondary);
  margin: 0;
}

.file-info {
  padding: 12px;
  background-color: var(--color-bg-hover);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.import-preview-section {
  margin-top: 16px;
}

.import-preview-section h4 {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.import-preview-table {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.import-preview-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.import-preview-table th {
  background: var(--background-light);
  padding: 6px 4px;
  position: sticky;
  top: 0;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.import-preview-table td {
  padding: 4px;
  border-top: 1px solid var(--border);
}

.import-preview-table input {
  width: 100%;
  border: 1px solid transparent;
  padding: 3px 4px;
  font-size: 12px;
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-xs);
}

.import-preview-table input:focus {
  border-color: var(--primary);
  background: var(--card-background);
  outline: none;
}

/* 导入预览确认大弹窗 */
.modal-content.import-preview-modal {
  width: calc(100vw - 20px) !important;
  max-width: none !important;
  height: calc(100vh - 20px) !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 32px !important;
  margin: 10px !important;
  transform: scale(1) translateY(0) !important;
}

@media (max-width: 768px) {
  .modal-content.import-preview-modal {
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }
}

.import-preview-table-full {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  min-height: 400px;
}

.import-preview-table-full table {
  width: 100%;
  border-collapse: collapse;
}

.import-preview-table-full th,
.import-preview-table-full td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  min-width: 120px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.import-preview-table-full th {
  background-color: var(--color-bg-muted);
  font-weight: 600;
  color: var(--text-primary);
}

.import-preview-table-full input {
  width: 100%;
  min-width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  box-sizing: border-box;
}

.import-preview-table-full th:first-child {
  width: 50px;
  text-align: center;
}

.import-preview-table-full td {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}

.import-preview-table-full td:first-child {
  text-align: center;
  color: var(--text-secondary);
}

.import-preview-table-full input {
  width: 100%;
  border: 1px solid transparent;
  padding: 8px 10px;
  font-size: 14px;
  background: transparent;
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  box-sizing: border-box;
}

.import-preview-table-full input:focus {
  border-color: var(--primary);
  background: var(--card-background);
  outline: none;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--primary);
}

/* 错误提示 */
.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--error);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--error) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 30%, transparent);
  border-radius: var(--radius-md);
}
.error-message::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 闃叉�㈣Е鎽告粦鍔ㄦ�?�鐨�??�??璁よ�屼�?? */
.auth-container,
.auth-form,
.form-group,
input,
button {
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
}

/* 绂佺敤娴忚�堝櫒鐨勯�??璁ゆ粦鍔�??�屼�?? */
body {
  overscroll-behavior-x: none;
  overflow-x: hidden;
}

/* 杞︾�??鑷�鍔ㄨˉ鍏ㄦ牱�??�?? */
.input-with-suggestions {
  position: relative;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-surface);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-sm);
  z-index: var(--z-modal);
  max-height: 200px;
  overflow-y: auto;
  margin-top: -1px;
}

.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggestion-item .suggestion-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.suggestion-item .suggestion-city {
  font-size: 12px;
  color: var(--text-secondary);
}

.suggestion-item:hover {
  background-color: var(--background);
}

.suggestion-item:active {
  background-color: var(--primary);
  color: white;
}

/* �??ㄦ埛淇℃伅妯℃�佹�嗘牱�??�?? */
.user-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.user-details {
  background-color: var(--background-light);
  padding: 16px;
  border-radius: var(--radius-base);
  border: 1px solid var(--border);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-value {
  color: var(--text-primary);
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-actions h4 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.theme-setting .theme-buttons {
  display: flex;
  gap: 4px;
  background: var(--color-bg-surface);
  padding: 4px;
  border-radius: var(--radius-xl);
}

.theme-setting .theme-option {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-setting .theme-option:hover {
  background: var(--background-light);
}

.theme-setting .theme-option.active {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

[data-theme="dark"] .theme-setting .theme-buttons {
  background: var(--card-background);
}

[data-theme="dark"] .theme-setting .theme-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-setting .theme-option.active {
  background: var(--color-bg-hover);
  color: var(--text-secondary);
}

.close-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background-color: var(--background-light);
  color: var(--text-primary);
}
