/* 依据旧站 pwgen/index.scss 移植，样式仅作用于工具正文。 */
.tool-root.pwgen {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
  min-height: calc(100vh - 100px);
}
.tool-root.pwgen .pwgen-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 20px;
  margin-bottom: 30px;
}
.tool-root.pwgen .pwgen-title {
  text-align: center;
  color: #FF5A00;
  font-size: 24px;
  margin: 10px 0;
  font-weight: 600;
}
.tool-root.pwgen .pwgen-subtitle {
  color: #FF5A00;
  font-size: 32px;
  margin: 25px 0;
  font-weight: 600;
  text-align: center;
}
.tool-root.pwgen .pwgen-main {
  display: flex;
  margin-top: 30px;
  gap: 20px;
}
@media screen and (max-width: 768px) {
  .tool-root.pwgen .pwgen-main {
    flex-direction: column;
  }
}
.tool-root.pwgen .pwgen-options {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
@media screen and (max-width: 768px) {
  .tool-root.pwgen .pwgen-options {
    margin-bottom: 20px;
  }
}
.tool-root.pwgen .pwgen-option {
  margin-bottom: 25px;
}
.tool-root.pwgen .pwgen-option label {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}
.tool-root.pwgen .pwgen-results {
  flex: 0 0 350px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
@media screen and (max-width: 768px) {
  .tool-root.pwgen .pwgen-results {
    flex: 1;
  }
}
.tool-root.pwgen .slider-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.tool-root.pwgen .slider-container .pwgen-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 3px;
  outline: none;
}
.tool-root.pwgen .slider-container .pwgen-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF5A00;
  cursor: pointer;
}
.tool-root.pwgen .slider-container .pwgen-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF5A00;
  cursor: pointer;
  border: none;
}
.tool-root.pwgen .slider-container .slider-value {
  margin-left: 15px;
  min-width: 30px;
  padding: 2px 8px;
  background-color: #FF5A00;
  color: white;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}
.tool-root.pwgen .checkbox-container, .tool-root.pwgen .radio-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.tool-root.pwgen .checkbox-container input[type=checkbox], .tool-root.pwgen .checkbox-container input[type=radio], .tool-root.pwgen .radio-container input[type=checkbox], .tool-root.pwgen .radio-container input[type=radio] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #FF5A00;
}
.tool-root.pwgen .checkbox-container input[type=checkbox]:checked, .tool-root.pwgen .checkbox-container input[type=radio]:checked, .tool-root.pwgen .radio-container input[type=checkbox]:checked, .tool-root.pwgen .radio-container input[type=radio]:checked {
  accent-color: #FF5A00;
}
.tool-root.pwgen .checkbox-container label, .tool-root.pwgen .radio-container label {
  margin-bottom: 0;
  cursor: pointer;
}
.tool-root.pwgen .pwgen-action {
  text-align: center;
  margin-top: 30px;
}
.tool-root.pwgen .pwgen-action .generate-btn {
  background-color: #FF5A00;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}
.tool-root.pwgen .pwgen-action .generate-btn:hover {
  background-color: #cc4800;
}
.tool-root.pwgen .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}
.tool-root.pwgen .results-title {
  font-size: 18px;
  color: #333;
  margin: 0;
}
.tool-root.pwgen .refresh-btn {
  background: none;
  border: 1px solid #FF5A00;
  color: #FF5A00;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.tool-root.pwgen .refresh-btn:hover {
  background-color: #FF5A00;
  color: white;
}
.tool-root.pwgen .password-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tool-root.pwgen .password-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}
.tool-root.pwgen .password-list li:last-child {
  margin-bottom: 0;
}
.tool-root.pwgen .password-list li:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tool-root.pwgen .password-list li.error-message {
  color: #e74c3c;
  text-align: center;
  justify-content: center;
  padding: 15px;
  border: 1px dashed #e74c3c;
  background-color: #fef5f5;
}
.tool-root.pwgen .password-list li .password-text {
  font-family: monospace;
  font-size: 16px;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  padding: 5px 0;
}
.tool-root.pwgen .password-list li .copy-btn {
  background-color: transparent;
  color: #FF5A00;
  border: 1px solid #FF5A00;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.tool-root.pwgen .password-list li .copy-btn:hover {
  background-color: #FF5A00;
  color: white;
}

.tool-root.pwgen .pwgen-container {
  display: flex;
  flex-direction: column;
}

.tool-root.pwgen .password-list li {
  background-color: #f9f9f9;
  border: 1px solid #eee;
}
.tool-root.pwgen .password-list li .password-text {
  font-weight: 500;
}

.tool-root.pwgen html:has(body .pwgen) .error-popup,
.tool-root.pwgen html:has(body .pwgen) div[role=alert],
.tool-root.pwgen html:has(body .pwgen) div[role=dialog][aria-modal=true]:not(.modal),
.tool-root.pwgen html:has(body .pwgen) div[class*=error],
.tool-root.pwgen html:has(body .pwgen) div[class*=Error],
.tool-root.pwgen html:has(body .pwgen) div[class*=notification],
.tool-root.pwgen html:has(body .pwgen) div[class*=Notification] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tool-root.pwgen body .error-popup,
.tool-root.pwgen body div[role=alert],
.tool-root.pwgen body div[role=dialog][aria-modal=true]:not(.modal),
.tool-root.pwgen body div[class*=error]:not(.error-message),
.tool-root.pwgen body div[class*=Error]:not(.error-message),
.tool-root.pwgen body div[class*=notification]:not(.notification-container),
.tool-root.pwgen body div[class*=Notification]:not(.notification-container) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tool-root.pwgen { --Dark: var(--tool-accent, #ff5a00); --DarkTone: #5e5d5b; --layout-max-width: 1200px; --content-padding: 20px; box-sizing: border-box; margin-left: auto; margin-right: auto; }
.tool-root.pwgen *, .tool-root.pwgen *::before, .tool-root.pwgen *::after { box-sizing: border-box; }
.tool-root.pwgen [hidden] { display: none !important; }
.tool-root.pwgen .pwgen-options { margin: 0; }
.tool-root.pwgen [data-feedback] { color: #b42318; }
.tool-root.pwgen .copy-btn { cursor: pointer; }
