* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333333;
}

#app {
  height: 100%;
  overflow: hidden;
}

.page-container {
  height: 100%;
  position: relative;
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1a367a 0%, #2c50a3 100%);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.page-content {
  padding-top: 44px;
  padding-bottom: 66px;
}

.navbar-left {
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  width: 40px;
}

.navbar-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.navbar-right {
  width: 40px;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-icon {
  font-size: 22px;
}

.tab-label {
  font-size: 10px;
  color: #999999;
}

.tab-item.active .tab-label {
  color: #165dff;
}

.custom-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 14px;
  transition: opacity 0.3s;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-end;
}

.picker-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.picker-content {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.picker-cancel, .picker-confirm {
  font-size: 15px;
  cursor: pointer;
}

.picker-cancel {
  color: #999999;
}

.picker-confirm {
  color: #165dff;
  font-weight: 600;
}

.picker-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.picker-options {
  max-height: 300px;
  overflow-y: auto;
}

.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.page-enter {
  animation: fadeIn 0.3s ease-out;
}

.page-exit {
  animation: fadeOut 0.2s ease-in;
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(22, 93, 255, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(22, 93, 255, 0.3);
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
  background: rgba(22, 93, 255, 1);
  transform: scale(1.1);
}