html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.sidebar-nav .nav-icon i {
    font-size: 1.1rem;
    color: #6c757d;        /* 默认灰色单色 */
}

.sidebar-nav .nav-link.active .nav-icon i,
.sidebar-nav .nav-link:hover .nav-icon i {
    color: #0d6efd;        /* 激活/悬停时高亮 */
}

  .sidebar .nav-link i {
      font-size: 1.1rem;
      color: #6c757d;
  }
  .sidebar .nav-link.active i,
  .sidebar .nav-link:hover i {
      color: #0d6efd;
  }
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #f5f7fb;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 240px;
  /* background: linear-gradient(180deg, #3b82f6 0%, #3b82f6 100%); */
  background: linear-gradient(180deg, #1f2a37 0%, #111827 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: relative;
  transition: width 0.3s ease;
}

.app-sidebar.collapsed {
  width: 70px;
}

.app-sidebar.collapsed .brand-title,
.app-sidebar.collapsed .brand-subtitle,
.app-sidebar.collapsed .nav-text,
.app-sidebar.collapsed .divider-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.app-sidebar.collapsed .app-brand {
  text-align: center;
}

.app-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.65rem 0.5rem;
}

.app-sidebar.collapsed .nav-icon {
  margin-right: 0;
  font-size: 1.5rem;
}

.app-sidebar.collapsed .nav-divider {
  padding: 0.5rem 0;
  text-align: center;
}

.app-sidebar.collapsed .sidebar-toggle .icon-expand {
  display: none;
}

.app-sidebar.collapsed .sidebar-toggle .icon-collapse {
  display: block;
}

.sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: -12px;
  width: 24px;
  height: 24px;
  background: #3b82f6;
  border: 2px solid #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
}

.sidebar-toggle:hover {
  background: #60a5fa;
  transform: scale(1.1);
}

.sidebar-toggle .icon-expand {
  display: block;
}

.sidebar-toggle .icon-collapse {
  display: none;
}

.app-brand {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.brand-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar-nav .nav-link {
  color: #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-nav .nav-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sidebar-nav .nav-text {
  flex: 1;
  white-space: nowrap;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-divider {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.75rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-divider .divider-text {
  transition: opacity 0.3s ease, width 0.3s ease;
}

.app-main {
  background-color: #f5f7fb;
}

.app-topbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* background: linear-gradient(180deg, #3b82f6 0%, #3b82f6 100%); */
background: linear-gradient(180deg, #1f2a37 0%, #111827 100%);
}

.topbar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.topbar-actions .navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.topbar-actions .nav-link {
  color: #d1d5db;
}

.topbar-actions .nav-link:hover {
  color: #fff;
}

.app-content {
  padding: 0rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-container {
  background-color: #fff;
  flex: 1;
  height: 100%;
}

.content-frame {
  width: 100%;
  height: 100%;
  border: none;
  /* border-radius: 0.75rem; */
  /* background-color: #fff;
  box-shadow: inset 0 0 0 1px #e5e7eb; */
}

.app-footer {
  padding: 1rem 2rem;
  /* border-top: 1px solid #e5e7eb; */
  /* background: linear-gradient(180deg, #3b82f6 0%, #3b82f6 100%); */
  background: linear-gradient(180deg, #1f2a37 0%, #111827 100%);
  background-color: #fff;
}

.plain-body {
  min-height: 100vh;
}

@media (max-width: 992px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 0.5rem;
  }

  .sidebar-nav .nav-link {
    margin-bottom: 0;
  }

  .app-content {
    padding: 1rem;
  }

  .content-container {
    padding: 1rem;
  }
}
.address-green {
  color: #4ade80;
}

.address-pink {
  color: #4ade80;
}

.address-red {
  color: #dc3545;
}
