/* =========================================================
   密码生成器专属样式
   ========================================================= */

/* 快捷长度/数量行 */
.pg-quick {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-3);
}

.pg-quick .dg-chip {
    min-width: 44px;
    padding: 0 var(--space-2);
    width: auto;
}

/* 结果行 */
.pg-result-row {
    display: grid;
    grid-template-columns: 64px 1fr 110px 40px;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px dashed var(--color-border-tertiary);
    transition: background var(--dur-fast);
}

.pg-result-row:hover {
    background: var(--color-bg-hover);
}

.pg-result-row:last-child {
    border-bottom: none;
}

.pg-result-row__idx {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-text-tertiary);
    text-align: right;
    padding-right: var(--space-2);
    border-right: 2px solid var(--color-border-tertiary);
    user-select: none;
}

.pg-result-row__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.pg-result-row__val {
    color: var(--color-text-primary);
    line-height: 1.5;
    padding: 0 var(--space-1);
    word-break: break-all;
}

/* 强度条 */
.pg-strength-bar {
    display: flex;
    align-items: stretch;
    height: 6px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-tertiary);
    gap: 1px;
}

.pg-strength-seg {
    display: block;
    height: 100%;
    transition: width var(--dur-fast);
    min-width: 2px;
}

.pg-strength-seg:first-child {
    border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.pg-strength-seg:last-child {
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* 结果元信息 */
.pg-result-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    user-select: none;
}

.pg-result-row__len {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
}

.pg-result-row__strength {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
}

/* 复制按钮 */
.pg-result-row__copy {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-tertiary);
    border-radius: var(--radius-button-alt);
    color: var(--color-text-secondary);
    opacity: 0;
    transform: translateX(4px);
    transition: all var(--dur-fast);
    flex-shrink: 0;
}

.pg-result-row:hover .pg-result-row__copy {
    opacity: 1;
    transform: translateX(0);
}

.pg-result-row__copy:hover {
    background: var(--color-accent-bg);
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
}

.pg-result-row__copy svg {
    width: 13px;
    height: 13px;
}
