.password-manager {
  min-height: 100vh;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}

/* ===== PWA 安装横幅 ===== */
.pwa-install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.98), rgba(200, 230, 201, 0.95));
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin: -20px -20px 20px -20px;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.15);
  flex-wrap: wrap;
}

.pwa-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  font-size: 14px;
  color: #2e7d32;
  font-weight: 500;
  min-width: 160px;
}

.pwa-install-btn {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4);
}

.pwa-dismiss-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pwa-dismiss-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

@media (max-width: 768px) {
  .pwa-install-banner {
    margin: -15px -15px 16px -15px;
    border-radius: 0;
    padding: 10px 14px;
    gap: 8px;
  }
  .pwa-banner-text {
    font-size: 13px;
  }
}

/* 大屏幕容器宽度控制 */
@media (min-width: 1600px) {
  .password-manager {
    max-width: 1800px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .password-manager {
    max-width: 1400px;
  }
}

@media (max-width: 1199px) {
  .password-manager {
    max-width: 1200px;
  }
}

.manager-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.manager-nav {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 255, 248, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  margin: -20px -20px 30px -20px;
  border-bottom: 2px solid rgba(200, 230, 201, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 大屏幕导航栏宽度控制 */
@media (min-width: 1600px) {
  .nav-content {
    max-width: 1800px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .nav-content {
    max-width: 1400px;
  }
}

@media (max-width: 1199px) {
  .nav-content {
    max-width: 1200px;
  }
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-title {
  color: #2e7d32;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.manager-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
}

.add-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

@media (max-width: 768px) {
  .password-manager {
    padding: 15px;
  }

  .nav-logo {
    height: 32px;
  }

  .nav-title {
    font-size: 20px;
  }

  .add-button {
    padding: 10px 20px;
    font-size: 14px;
  }
}
