body {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    color: #1a2330;
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
}
.zgjljs-password-tool {
    max-width: 700px;
    margin: 48px auto 0 auto;
    padding-bottom: 48px;
}
.zgjljs-password-tool-container {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 36px 32px 32px 32px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(60, 90, 180, 0.12), 0 1.5px 6px 0 rgba(60, 90, 180, 0.08);
    margin-bottom: 28px;
    /* 移除顶部渐变色条 */
    border-top: none;
    border-image: none;
    transition: box-shadow 0.2s, background 0.2s;
}
.zgjljs-password-tool-container:hover {
    box-shadow: 0 12px 36px 0 rgba(60, 90, 180, 0.18), 0 2px 8px 0 rgba(60, 90, 180, 0.12);
    background: rgba(255,255,255,0.92);
}
.zgjljs-password-tool-header {
    color: #1a2330;
    background: none;
    padding: 0 0 18px 0;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: none;
    border-bottom: 1.5px solid #e5eaf2;
    text-align: left;
}
.zgjljs-password-tool-header h2 {
    margin: 0 0 6px 0;
    font-size: 2.3rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.zgjljs-password-tool-info {
    font-size: 1.08rem;
    color: #64748b;
    opacity: 1;
    font-weight: 500;
}
.zgjljs-password-tool-form-group {
    margin-bottom: 22px;
}
.zgjljs-password-tool-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
}
.zgjljs-password-tool-length-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zgjljs-password-tool-length-control button {
    width: 38px;
    height: 38px;
    border: none;
    background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2563eb;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    box-shadow: 0 1px 4px 0 rgba(37,99,235,0.08);
    font-weight: 700;
}
.zgjljs-password-tool-length-control button:hover {
    background: linear-gradient(90deg, #2563eb 0%, #6a5af9 100%);
    color: #fff;
    transform: scale(1.08);
}
.zgjljs-password-tool-length-control input {
    width: 70px;
    text-align: center;
    padding: 7px 0;
    border: 1.5px solid #e5eaf2;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f4f8fb;
    transition: border 0.18s;
}
.zgjljs-password-tool-length-control input:focus {
    border: 1.5px solid #2563eb;
    outline: none;
    background: #fff;
}
.zgjljs-password-tool-char-input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e5eaf2;
    border-radius: 6px;
    height: 36px;
    font-size: 1rem;
    background: #f4f8fb;
    transition: border 0.18s;
}
.zgjljs-password-tool-char-input:focus {
    border: 1.5px solid #2563eb;
    outline: none;
    background: #fff;
}
.zgjljs-password-tool-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.zgjljs-password-tool-checkbox-group label {
    font-size: 1rem;
    color: #1a2330;
    background: #f4f8fb;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.18s;
    border: 1px solid #e5eaf2;
}
.zgjljs-password-tool-checkbox-group label:hover {
    background: #e5eaf2;
}
.zgjljs-password-tool-checkbox-group input[type="checkbox"] {
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
}
.zgjljs-password-tool-generate-btn {
    background: linear-gradient(90deg, #2563eb 0%, #6a5af9 100%);
    color: white;
    border: none;
    padding: 16px 0;
    border-radius: 28px;
    cursor: pointer;
    width: 100%;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 2px 12px 0 rgba(37,99,235,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.zgjljs-password-tool-generate-btn:hover {
    background: linear-gradient(90deg, #6a5af9 0%, #2563eb 100%);
    box-shadow: 0 4px 20px 0 rgba(37,99,235,0.16);
    transform: scale(1.02);
}
.zgjljs-password-tool-results-container {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.zgjljs-password-tool-results, .zgjljs-password-tool-history-container {
    flex: 1;
    margin-top: 0;
    padding: 24px 18px;
    background: rgba(244,248,251,0.95);
    border-radius: 14px;
    min-height: 220px;
    width: calc(50% - 10px);
    box-shadow: 0 1px 8px 0 rgba(37,99,235,0.06);
    border: 1px solid #e5eaf2;
    animation: fadein 0.5s;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
.zgjljs-password-tool-results h3, .zgjljs-password-tool-history-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #2563eb;
    font-weight: 700;
}
.zgjljs-password-tool-action-btn {
    background: #e5eaf2;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.18s, color 0.18s;
    font-weight: 600;
}
.zgjljs-password-tool-action-btn:hover {
    background: #2563eb;
    color: #fff;
}
.zgjljs-password-tool-export-btn {
    background: #e0e7ff;
    color: #2563eb;
    border: 1px solid #bcd0f7;
}
.zgjljs-password-tool-export-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.zgjljs-password-tool-clear-btn {
    background: #fff1f0;
    color: #e11d48;
    border: 1px solid #fca5a5;
}
.zgjljs-password-tool-clear-btn:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #fff;
}
#zgjljsHistoryList, #zgjljsPasswordList {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bcd0f7 transparent;
}
#zgjljsHistoryList::-webkit-scrollbar, #zgjljsPasswordList::-webkit-scrollbar {
    width: 6px;
}
#zgjljsHistoryList::-webkit-scrollbar-track, #zgjljsPasswordList::-webkit-scrollbar-track {
    background: transparent;
}
#zgjljsHistoryList::-webkit-scrollbar-thumb, #zgjljsPasswordList::-webkit-scrollbar-thumb {
    background-color: #bcd0f7;
    border-radius: 3px;
}
#zgjljsHistoryList::-webkit-scrollbar-thumb:hover, #zgjljsPasswordList::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
}
.zgjljs-password-tool-password-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e5eaf2;
    transition: background 0.18s;
}
.zgjljs-password-tool-password-item:hover {
    background: rgba(37,99,235,0.04);
}
.zgjljs-password-tool-password-item .zgjljs-password-tool-password-content {
    flex: 1;
    word-break: break-all;
    margin-right: 10px;
    font-size: 1.12rem;
    color: #1a2330;
    font-weight: 600;
}
.zgjljs-password-tool-password-item .zgjljs-password-tool-button-group {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.zgjljs-password-tool-password-item button,
.zgjljs-password-tool-history-item button {
    padding: 3px 10px;
    background-color: transparent;
    border: 1px solid #e5eaf2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.98rem;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
}
.zgjljs-password-tool-password-item button:hover,
.zgjljs-password-tool-history-item button:hover {
    background: #2563eb;
    color: #fff;
}
.zgjljs-password-tool-history-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5eaf2;
}
.zgjljs-password-tool-history-item .zgjljs-password-tool-password {
    word-break: break-all;
    margin-bottom: 5px;
    font-size: 1.08rem;
    color: #1a2330;
}
.zgjljs-password-tool-history-item .zgjljs-password-tool-timestamp {
    font-size: 0.95rem;
    color: #64748b;
    margin: 5px 0;
}
.zgjljs-password-tool-password-item .zgjljs-password-tool-button-group button {
    padding: 5px 16px;
    background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
    border: 1px solid #bcd0f7;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #2563eb;
    font-weight: 700;
    transition: background 0.18s, color 0.18s, transform 0.12s;
}
.zgjljs-password-tool-password-item .zgjljs-password-tool-button-group button:hover {
    background: linear-gradient(90deg, #2563eb 0%, #6a5af9 100%);
    color: #fff;
    transform: scale(1.08);
}
@media (max-width: 900px) {
    .zgjljs-password-tool {
        max-width: 98vw;
        padding: 0 2vw;
    }
    .zgjljs-password-tool-results-container {
        flex-direction: column;
        gap: 16px;
    }
    .zgjljs-password-tool-results, .zgjljs-password-tool-history-container {
        width: 100%;
        min-height: 180px;
        padding: 16px 8px;
    }
}
@media (max-width: 600px) {
    .zgjljs-password-tool-container {
        padding: 8px 1vw 8px 1vw;
        border-radius: 8px;
    }
    .zgjljs-password-tool-header {
        padding: 0 0 8px 0;
        border-radius: 0;
    }
    .zgjljs-password-tool-header h2 {
        font-size: 1.5rem;
    }
    .zgjljs-password-tool-info {
        font-size: 0.85rem;
    }
    .zgjljs-password-tool-form-group label {
        font-size: 0.95rem;
    }
    .zgjljs-password-tool-generate-btn {
        font-size: 0.98rem;
        padding: 9px 0;
    }
    .zgjljs-password-tool-form-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .zgjljs-password-tool-form-group:first-of-type > div[style*="display: flex"] {
        flex-direction: row !important;
        gap: 10px !important;
    }
    .zgjljs-password-tool-form-group:first-of-type > div[style*="display: flex"] > div {
        flex: 1 1 0;
        min-width: 0;
    }
    .zgjljs-password-tool-length-control {
        flex-direction: row;
        gap: 6px;
    }
    .zgjljs-password-tool-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    @media (max-width: 400px) {
        .zgjljs-password-tool-checkbox-group {
            grid-template-columns: 1fr;
        }
    }
    .zgjljs-password-tool-results-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }
    .zgjljs-password-tool-results, .zgjljs-password-tool-history-container {
        width: 100%;
        min-height: 120px;
        padding: 8px 2px;
    }
    .zgjljs-password-tool-password-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .zgjljs-password-tool-password-item .zgjljs-password-tool-password-content {
        font-size: 0.98rem;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .zgjljs-password-tool-password-item .zgjljs-password-tool-button-group {
        justify-content: flex-end;
    }
}